Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ GEM
rake (10.4.2)
rake-compiler (0.9.5)
rake
rake-compiler-dock (0.5.1)
rdoc (3.12.2)
json (~> 1.4)
rspec (3.3.0)
Expand All @@ -37,6 +38,7 @@ PLATFORMS
DEPENDENCIES
bcrypt!
rake-compiler (~> 0.9.2)
rake-compiler-dock (~> 0.5.1)
rdoc (~> 3.12)
rspec (>= 3)

Expand Down
14 changes: 10 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ require 'benchmark'

CLEAN.include(
"tmp",
"lib/1.8",
"lib/1.9",
"lib/2.0",
"lib/2.1",
"lib/1.?",
"lib/2.?",
"lib/bcrypt_ext.jar",
"lib/bcrypt_ext.so"
)
Expand Down Expand Up @@ -80,6 +78,14 @@ else
end
end

desc "Build the windows binary gems per rake-compiler-dock"
task 'gem:windows' do
require 'rake_compiler_dock'
RakeCompilerDock.sh <<-EOT
bundle && rake cross native gem
EOT
end

desc "Run a set of benchmarks on the compiled extension."
task :benchmark do
TESTS = 100
Expand Down
1 change: 1 addition & 0 deletions bcrypt.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Gem::Specification.new do |s|
s.require_path = 'lib'

s.add_development_dependency 'rake-compiler', '~> 0.9.2'
s.add_development_dependency 'rake-compiler-dock', '~> 0.5.1'
s.add_development_dependency 'rspec', '>= 3'
s.add_development_dependency 'rdoc', '~> 3.12'

Expand Down