fastthread 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,4 @@
1
+ v1.0.4 Fix for JRuby, and re-enable fastthread for 1.8.6p111
1
2
 
2
3
  v1.0.3. Make native build a noop on Rubies that have no real need for fastthread
3
4
 
@@ -1,16 +1,16 @@
1
- require 'mkmf'
2
-
3
1
  version_components = RUBY_VERSION.split('.').map { |c| c.to_i }
4
2
 
5
3
  need_fastthread = ( !defined? RUBY_ENGINE )
6
4
  need_fastthread &= ( RUBY_PLATFORM != 'java' )
7
- need_fastthread &= ( version_components[0..1] == [1, 8] && ( version_components[2] < 6 || version_components[2] == 6 && RUBY_PATCHLEVEL < 111 ) )
5
+ need_fastthread &= ( version_components[0..1] == [1, 8] && ( version_components[2] < 6 || version_components[2] == 6 && RUBY_PATCHLEVEL.to_i < 112 ) )
8
6
 
9
7
  if need_fastthread
8
+ require 'mkmf'
10
9
  create_makefile('fastthread')
11
10
  else
11
+ require 'rbconfig'
12
12
  File.open('Makefile', 'w') do |stream|
13
- CONFIG.each do |key, value|
13
+ Config::CONFIG.each do |key, value|
14
14
  stream.puts "#{key} = #{value}"
15
15
  end
16
16
  stream.puts
@@ -1,10 +1,10 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{fastthread}
3
- s.version = "1.0.3"
3
+ s.version = "1.0.4"
4
4
 
5
5
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
6
6
  s.authors = ["MenTaLguY <mental@rydia.net>"]
7
- s.date = %q{2009-03-19}
7
+ s.date = %q{2009-03-20}
8
8
  s.description = %q{Optimized replacement for thread.rb primitives}
9
9
  s.email = %q{mental@rydia.net}
10
10
  s.extensions = ["ext/fastthread/extconf.rb"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastthread
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - MenTaLguY <mental@rydia.net>
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-03-19 00:00:00 -04:00
12
+ date: 2009-03-20 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15