Skip to content

Commit

Permalink
Change lib_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
w-masahiro-ct committed Jan 6, 2025
1 parent 7ff86bb commit b4afb2f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ Trash
_yardoc/
coverage/
doc/
lib/*.bundle
lib/*.so
lib/**/*.bundle
lib/**/*.so
lib/bundler/man/
pkg/
rdoc/
Expand Down
4 changes: 3 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ if RUBY_ENGINE == 'jruby'
else
require 'rake/extensiontask'

Rake::ExtensionTask.new('sin_fast_blank', gemspec)
Rake::ExtensionTask.new('sin_fast_blank', gemspec) do |task|
task.lib_dir = 'lib/sin_fast_blank'
end
end

Gem::PackageTask.new(gemspec)
Expand Down
4 changes: 2 additions & 2 deletions lib/sin_fast_blank.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ class ::String
JRuby::Util.load_ext('sin_fast_blank.SinFastBlankLibrary')
else
if RUBY_PLATFORM.include?('darwin')
require 'sin_fast_blank.bundle'
require 'sin_fast_blank/sin_fast_blank.bundle'
else
require 'sin_fast_blank.so'
require 'sin_fast_blank/sin_fast_blank.so'
end
end

Expand Down

0 comments on commit b4afb2f

Please sign in to comment.