fastthread 1.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Binary file
@@ -0,0 +1,3 @@
1
+
2
+ v1.0.1. Signed gem.
3
+
@@ -0,0 +1,9 @@
1
+ test/test_queue.rb
2
+ test/test_mutex.rb
3
+ test/test_condvar.rb
4
+ test/test_all.rb
5
+ setup.rb
6
+ Manifest
7
+ ext/fastthread/fastthread.c
8
+ ext/fastthread/extconf.rb
9
+ CHANGELOG
@@ -0,0 +1,52 @@
1
+
2
+ # Gem::Specification for Fastthread-1.0.1
3
+ # Originally generated by Echoe
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = %q{fastthread}
7
+ s.version = "1.0.1"
8
+
9
+ s.specification_version = 2 if s.respond_to? :specification_version=
10
+
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.authors = ["MenTaLguY <mental@rydia.net>"]
13
+ s.date = %q{2007-10-26}
14
+ s.description = %q{Optimized replacement for thread.rb primitives}
15
+ s.email = %q{}
16
+ s.extensions = ["ext/fastthread/extconf.rb"]
17
+ s.files = ["test/test_queue.rb", "test/test_mutex.rb", "test/test_condvar.rb", "test/test_all.rb", "setup.rb", "Manifest", "ext/fastthread/fastthread.c", "ext/fastthread/extconf.rb", "CHANGELOG", "fastthread.gemspec"]
18
+ s.has_rdoc = true
19
+ s.homepage = %q{}
20
+ s.require_paths = ["lib", "ext"]
21
+ s.rubyforge_project = %q{mongrel}
22
+ s.rubygems_version = %q{0.9.4.6}
23
+ s.summary = %q{Optimized replacement for thread.rb primitives}
24
+ s.test_files = ["test/test_all.rb"]
25
+ end
26
+
27
+
28
+ # # Original Rakefile source (requires the Echoe gem):
29
+ #
30
+ #
31
+ # require 'echoe'
32
+ #
33
+ # Echoe.new("fastthread") do |p|
34
+ # p.project = "mongrel"
35
+ # p.author = "MenTaLguY <mental@rydia.net>"
36
+ # p.summary = "Optimized replacement for thread.rb primitives"
37
+ # p.extensions = "ext/fastthread/extconf.rb"
38
+ # p.clean_pattern = ['build/*', '**/*.o', '**/*.so', '**/*.a', 'lib/*-*', '**/*.log', "ext/fastthread/*.{bundle,so,obj,pdb,lib,def,exp}", "ext/fastthread/Makefile", "pkg", "lib/*.bundle", "*.gem", ".config"]
39
+ #
40
+ # p.need_tar_gz = false
41
+ # p.need_tgz = true
42
+ # p.require_signed = true
43
+ #
44
+ # p.eval = proc do
45
+ # if RUBY_PLATFORM.match("win32")
46
+ # platform = Gem::Platform::WIN32
47
+ # files += ['lib/fastthread.so']
48
+ # task :package => [:clean, :compile]
49
+ # end
50
+ # end
51
+ #
52
+ # end
metadata CHANGED
@@ -1,42 +1,95 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.11
3
- specification_version: 1
2
+ rubygems_version: 0.9.4.6
3
+ specification_version: 2
4
4
  name: fastthread
5
5
  version: !ruby/object:Gem::Version
6
- version: "1.0"
7
- date: 2007-03-20 00:00:00 -04:00
6
+ version: 1.0.1
7
+ date: 2007-10-26 00:00:00 -04:00
8
8
  summary: Optimized replacement for thread.rb primitives
9
9
  require_paths:
10
10
  - lib
11
- email:
12
- homepage:
13
- rubyforge_project:
14
- description:
11
+ - ext
12
+ email: ""
13
+ homepage: ""
14
+ rubyforge_project: mongrel
15
+ description: Optimized replacement for thread.rb primitives
15
16
  autorequire:
16
17
  default_executable:
17
18
  bindir: bin
18
- has_rdoc: false
19
- required_ruby_version: !ruby/object:Gem::Version::Requirement
19
+ has_rdoc: true
20
+ required_ruby_version: !ruby/object:Gem::Requirement
20
21
  requirements:
21
- - - ">"
22
+ - - ">="
22
23
  - !ruby/object:Gem::Version
23
- version: 0.0.0
24
+ version: "0"
25
+ version:
26
+ required_rubygems_version: !ruby/object:Gem::Requirement
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ version: "0"
24
31
  version:
25
32
  platform: ruby
26
33
  signing_key:
27
34
  cert_chain:
35
+ - |
36
+ -----BEGIN CERTIFICATE-----
37
+ MIIDU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7+zDkWcbBl8FpQq1DtRcATh1oyTkQT7t+
72
+ rFEBYMmb0FxbbUnojQp8hIFgFkUwFpStwWBL/okLSehntzI2iwjuEtfj4ac9Q3Y2
73
+ uSdbmZqsQTuu+lEUc5C4qLK7YKwToaul+cx7vWxyk1YendcVwRlFLIBqA5cPrwo3
74
+ yyGLTHlRYn2c9PSbM1B63Yg+LqSSAa4QSU3Wv9pNdffVpvwHPVEQpO7ZDo5slQFL
75
+ Gf6+gbD/eZAvhpvmn8JlXb+LxKaFVMs2Yvrk1xOuT76SsPjEGWxkr7jZCIpsYfgQ
76
+ ALN3mi/9z0Mf1YroliUgF0v5Yw==
77
+ -----END CERTIFICATE-----
78
+
79
+ post_install_message:
28
80
  authors:
29
81
  - MenTaLguY <mental@rydia.net>
30
82
  files:
31
- - Rakefile
32
- - setup.rb
33
- - test/test_all.rb
34
- - test/test_condvar.rb
35
- - test/test_mutex.rb
36
83
  - test/test_queue.rb
84
+ - test/test_mutex.rb
85
+ - test/test_condvar.rb
86
+ - test/test_all.rb
87
+ - setup.rb
88
+ - Manifest
37
89
  - ext/fastthread/fastthread.c
38
90
  - ext/fastthread/extconf.rb
39
- - tools/rakehelp.rb
91
+ - CHANGELOG
92
+ - fastthread.gemspec
40
93
  test_files:
41
94
  - test/test_all.rb
42
95
  rdoc_options: []
@@ -0,0 +1,2 @@
1
+ šiLX�\4��2�dF������=��WG�k���H��H������X���t�
2
+ �O�G�7�T�"؊��U�V�9�4g��*�qH� �c�oG_Iv�?�ޣ��C_��|e���:�1��&�������� ��ӻ�p5�o��`F�cLvdc��¼׸g����}V.Q�1��-�����Z��X|��;�SK�Pr����yA�|O����ħP?�؊����'�V?Υ��E���K��B�r�$
data/Rakefile DELETED
@@ -1,58 +0,0 @@
1
- require 'rake'
2
- require 'rake/clean'
3
- require 'rake/testtask'
4
- require 'rake/gempackagetask'
5
- require 'tools/rakehelp'
6
-
7
- GEM_VERSION="1.0"
8
-
9
- setup_extension('fastthread', 'fastthread')
10
-
11
- desc "Compiles native extensions"
12
- task :compile => [:fastthread]
13
-
14
- task :default => [:compile, :test]
15
-
16
- Rake::TestTask.new do |task|
17
- task.libs << 'test'
18
- task.test_files = Dir.glob( 'test/test*.rb' )
19
- task.verbose = true
20
- end
21
-
22
- gemspec = Gem::Specification.new do |gemspec|
23
- gemspec.name = "fastthread"
24
- gemspec.version = GEM_VERSION
25
- gemspec.author = "MenTaLguY <mental@rydia.net>"
26
- gemspec.summary = "Optimized replacement for thread.rb primitives"
27
- gemspec.test_file = 'test/test_all.rb'
28
- gemspec.files = %w( Rakefile setup.rb ) +
29
- Dir.glob( 'test/*.rb' ) +
30
- Dir.glob( 'ext/**/*.{c,rb}' ) +
31
- Dir.glob( 'tools/*.rb' )
32
-
33
- gemspec.require_path = 'lib'
34
-
35
- if RUBY_PLATFORM.match("win32")
36
- gemspec.platform = Gem::Platform::WIN32
37
- gemspec.files += ['lib/fastthread.so']
38
- else
39
- gemspec.platform = Gem::Platform::RUBY
40
- gemspec.extensions = Dir.glob( 'ext/**/extconf.rb' )
41
- end
42
- end
43
-
44
- task :package => [:clean, :compile, :test]
45
- Rake::GemPackageTask.new( gemspec ) do |task|
46
- task.gem_spec = gemspec
47
- task.need_tar = true
48
- end
49
-
50
- setup_clean ["ext/fastthread/*.{bundle,so,obj,pdb,lib,def,exp}", "ext/fastthread/Makefile", "pkg", "lib/*.bundle", "*.gem", ".config"]
51
-
52
- task :install => [:default, :package] do
53
- sh %{ sudo gem install pkg/fastthread-#{GEM_VERSION}.gem }
54
- end
55
-
56
- task :uninstall do
57
- sh %{ sudo gem uninstall fastthread }
58
- end
@@ -1,117 +0,0 @@
1
- def make(makedir)
2
- Dir.chdir(makedir) do
3
- sh(PLATFORM =~ /win32/ ? 'nmake' : 'make')
4
- end
5
- end
6
-
7
-
8
- def extconf(dir)
9
- Dir.chdir(dir) do ruby "extconf.rb" end
10
- end
11
-
12
-
13
- def setup_tests
14
- Rake::TestTask.new do |t|
15
- t.libs << "test"
16
- t.test_files = FileList['test/test*.rb']
17
- t.verbose = true
18
- end
19
- end
20
-
21
-
22
- def setup_clean otherfiles
23
- files = ['build/*', '**/*.o', '**/*.so', '**/*.a', 'lib/*-*', '**/*.log'] + otherfiles
24
- CLEAN.include(files)
25
- end
26
-
27
-
28
- def setup_rdoc files
29
- Rake::RDocTask.new do |rdoc|
30
- rdoc.rdoc_dir = 'doc/rdoc'
31
- rdoc.options << '--line-numbers'
32
- rdoc.rdoc_files.add(files)
33
- end
34
- end
35
-
36
-
37
- def setup_extension(dir, extension)
38
- ext = "ext/#{dir}"
39
- ext_so = "#{ext}/#{extension}.#{Config::CONFIG['DLEXT']}"
40
- ext_files = FileList[
41
- "#{ext}/*.c",
42
- "#{ext}/*.h",
43
- "#{ext}/extconf.rb",
44
- "#{ext}/Makefile",
45
- "lib"
46
- ]
47
-
48
- task "lib" do
49
- directory "lib"
50
- end
51
-
52
- desc "Builds just the #{extension} extension"
53
- task extension.to_sym => ["#{ext}/Makefile", ext_so ]
54
-
55
- file "#{ext}/Makefile" => ["#{ext}/extconf.rb"] do
56
- extconf "#{ext}"
57
- end
58
-
59
- file ext_so => ext_files do
60
- make "#{ext}"
61
- cp ext_so, "lib"
62
- end
63
- end
64
-
65
-
66
- def base_gem_spec(pkg_name, pkg_version)
67
- rm_rf "test/coverage"
68
- pkg_version = pkg_version
69
- pkg_name = pkg_name
70
- pkg_file_name = "#{pkg_name}-#{pkg_version}"
71
- Gem::Specification.new do |s|
72
- s.name = pkg_name
73
- s.version = pkg_version
74
- s.platform = Gem::Platform::RUBY
75
- s.has_rdoc = true
76
- s.extra_rdoc_files = [ "README" ]
77
-
78
- s.files = %w(COPYING LICENSE README Rakefile) +
79
- Dir.glob("{bin,doc/rdoc,test}/**/*") +
80
- Dir.glob("ext/**/*.{h,c,rb,rl}") +
81
- Dir.glob("{examples,tools,lib}/**/*.rb")
82
-
83
- s.require_path = "lib"
84
- s.extensions = FileList["ext/**/extconf.rb"].to_a
85
- s.bindir = "bin"
86
- end
87
- end
88
-
89
- def setup_gem(pkg_name, pkg_version)
90
- spec = base_gem_spec(pkg_name, pkg_version)
91
- yield spec if block_given?
92
-
93
- Rake::GemPackageTask.new(spec) do |p|
94
- p.gem_spec = spec
95
- p.need_tar = true if RUBY_PLATFORM !~ /mswin/
96
- end
97
- end
98
-
99
- def sub_project(project, *targets)
100
- targets.each do |target|
101
- Dir.chdir "projects/#{project}" do
102
- sh %{rake --trace #{target.to_s} }
103
- end
104
- end
105
- end
106
-
107
- # Conditional require rcov/rcovtask if present
108
- begin
109
- require 'rcov/rcovtask'
110
-
111
- Rcov::RcovTask.new do |t|
112
- t.test_files = FileList['test/test*.rb']
113
- t.rcov_opts << "-x /usr"
114
- t.output_dir = "test/coverage"
115
- end
116
- rescue Object
117
- end