Commit d03543e1f563bb0f4ee9b8a8d923dbfcf26586b1
Make win32 binary gems only support Ruby 1.9
Ruby 1.8 was officially retired on Jun 30, 2013: http://www.ruby-lang.org/en/news/2013/06/30/we-retire-1-8-7/T.J. Schuck committed on 7/10/2013, 4:54:08 AM
Parent: c4a7a65e55b498c4e26d4d939082eeb4c2041ea6
Files changed
README.md | changed |
Rakefile | changed |
README.md | ||
---|---|---|
@@ -30,9 +30,9 @@ | ||
30 | 30 | |
31 | 31 | The bcrypt-ruby gem is available on the following ruby platforms: |
32 | 32 | |
33 | 33 | * JRuby |
34 | -* RubyInstaller 1.8 and 1.9 builds on win32 | |
34 | +* RubyInstaller 1.9 builds on win32 | |
35 | 35 | * Any 1.8 or 1.9 ruby on a BSD/OSX/Linux system with a compiler |
36 | 36 | |
37 | 37 | ## How to use `bcrypt()` in your Rails application |
38 | 38 |
Rakefile | ||
---|---|---|
@@ -57,27 +57,11 @@ | ||
57 | 57 | Rake::ExtensionTask.new("bcrypt_ext", GEMSPEC) do |ext| |
58 | 58 | ext.ext_dir = 'ext/mri' |
59 | 59 | ext.cross_compile = true |
60 | 60 | ext.cross_platform = ['x86-mingw32', 'x86-mswin32-60'] |
61 | - | |
62 | - # inject 1.8/1.9 pure-ruby entry point | |
63 | - ext.cross_compiling do |spec| | |
64 | - spec.files += ["lib/#{ext.name}.rb"] | |
65 | - end | |
66 | 61 | end |
67 | 62 | end |
68 | 63 | |
69 | -# Entry point for fat-binary gems on win32 | |
70 | -file("lib/bcrypt_ext.rb") do |t| | |
71 | - File.open(t.name, 'wb') do |f| | |
72 | - f.write <<-eoruby | |
73 | -RUBY_VERSION =~ /(\\d+.\\d+)/ | |
74 | -require "\#{$1}/#{File.basename(t.name, '.rb')}" | |
75 | - eoruby | |
76 | - end | |
77 | - at_exit{ FileUtils.rm t.name if File.exists?(t.name) } | |
78 | -end | |
79 | - | |
80 | 64 | desc "Run a set of benchmarks on the compiled extension." |
81 | 65 | task :benchmark do |
82 | 66 | TESTS = 100 |
83 | 67 | TEST_PWD = "this is a test" |
Built with git-ssb-web