git ssb

0+

dangerousbeans / %aPBe2k3ugtjBr4rrsU1…



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.mdchanged
Rakefilechanged
README.mdView
@@ -30,9 +30,9 @@
3030
3131 The bcrypt-ruby gem is available on the following ruby platforms:
3232
3333 * JRuby
34-* RubyInstaller 1.8 and 1.9 builds on win32
34+* RubyInstaller 1.9 builds on win32
3535 * Any 1.8 or 1.9 ruby on a BSD/OSX/Linux system with a compiler
3636
3737 ## How to use `bcrypt()` in your Rails application
3838
RakefileView
@@ -57,27 +57,11 @@
5757 Rake::ExtensionTask.new("bcrypt_ext", GEMSPEC) do |ext|
5858 ext.ext_dir = 'ext/mri'
5959 ext.cross_compile = true
6060 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
6661 end
6762 end
6863
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-
8064 desc "Run a set of benchmarks on the compiled extension."
8165 task :benchmark do
8266 TESTS = 100
8367 TEST_PWD = "this is a test"

Built with git-ssb-web