in_threads 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/.gitignore +5 -0
  2. data/Rakefile +24 -16
  3. data/VERSION +1 -0
  4. data/in_threads.gemspec +29 -12
  5. metadata +16 -20
  6. data/VERSION.yml +0 -1
data/.gitignore ADDED
@@ -0,0 +1,5 @@
1
+ .DS_Store
2
+ /pkg
3
+ /doc
4
+ *.gem
5
+ *.swp
data/Rakefile CHANGED
@@ -1,20 +1,28 @@
1
- require 'rubygems'
2
- require 'rake'
3
- require 'rake/clean'
4
- require 'fileutils'
5
- require 'echoe'
1
+ begin
2
+ require 'jeweler'
6
3
 
7
- version = YAML.load_file(File.join(File.dirname(__FILE__), 'VERSION.yml')).join('.') rescue nil
4
+ name = 'in_threads'
5
+ summary = 'Execute ruby blocks in parallel'
8
6
 
9
- echoe = Echoe.new('in_threads', version) do |p|
10
- p.author = 'toy'
11
- p.summary = 'Execute ruby code in parallel.'
12
- p.project = 'toytoy'
13
- end
7
+ jewel = Jeweler::Tasks.new do |j|
8
+ j.name = name
9
+ j.summary = summary
10
+ j.homepage = "http://github.com/toy/#{name}"
11
+ j.authors = ["Boba Fat"]
12
+ end
13
+
14
+ Jeweler::GemcutterTasks.new
15
+
16
+ require 'pathname'
17
+ desc "Replace system gem with symlink to this folder"
18
+ task 'ghost' do
19
+ gem_path = Pathname(Gem.searcher.find(name).full_gem_path)
20
+ current_path = Pathname('.').expand_path
21
+ cmd = gem_path.writable? && gem_path.parent.writable? ? %w() : %w(sudo)
22
+ system(*cmd + %W[rm -r #{gem_path}])
23
+ system(*cmd + %W[ln -s #{current_path} #{gem_path}])
24
+ end
14
25
 
15
- desc "Replace system gem with symlink to this folder"
16
- task :ghost do
17
- path = Gem.searcher.find(echoe.name).full_gem_path
18
- system 'sudo', 'rm', '-r', path
19
- symlink File.expand_path('.'), path
26
+ rescue LoadError
27
+ puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
20
28
  end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.0.2
data/in_threads.gemspec CHANGED
@@ -1,22 +1,38 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
1
4
  # -*- encoding: utf-8 -*-
2
5
 
3
6
  Gem::Specification.new do |s|
4
7
  s.name = %q{in_threads}
5
- s.version = "0.0.1"
8
+ s.version = "0.0.2"
6
9
 
7
- s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
- s.authors = ["toy"]
9
- s.date = %q{2009-09-21}
10
- s.description = %q{Execute ruby code in parallel.}
11
- s.email = %q{}
12
- s.extra_rdoc_files = ["README.rdoc", "lib/in_threads.rb"]
13
- s.files = ["Manifest", "README.rdoc", "Rakefile", "VERSION.yml", "lib/in_threads.rb", "spec/in_threads_spec.rb", "spec/spec_helper.rb", "in_threads.gemspec"]
14
- s.homepage = %q{}
15
- s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "In_threads", "--main", "README.rdoc"]
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Boba Fat"]
12
+ s.date = %q{2009-12-30}
13
+ s.extra_rdoc_files = [
14
+ "README.rdoc"
15
+ ]
16
+ s.files = [
17
+ ".gitignore",
18
+ "Manifest",
19
+ "README.rdoc",
20
+ "Rakefile",
21
+ "VERSION",
22
+ "in_threads.gemspec",
23
+ "lib/in_threads.rb",
24
+ "spec/in_threads_spec.rb",
25
+ "spec/spec_helper.rb"
26
+ ]
27
+ s.homepage = %q{http://github.com/toy/in_threads}
28
+ s.rdoc_options = ["--charset=UTF-8"]
16
29
  s.require_paths = ["lib"]
17
- s.rubyforge_project = %q{toytoy}
18
30
  s.rubygems_version = %q{1.3.5}
19
- s.summary = %q{Execute ruby code in parallel.}
31
+ s.summary = %q{Execute ruby blocks in parallel}
32
+ s.test_files = [
33
+ "spec/in_threads_spec.rb",
34
+ "spec/spec_helper.rb"
35
+ ]
20
36
 
21
37
  if s.respond_to? :specification_version then
22
38
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
@@ -28,3 +44,4 @@ Gem::Specification.new do |s|
28
44
  else
29
45
  end
30
46
  end
47
+
metadata CHANGED
@@ -1,48 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: in_threads
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
- - toy
7
+ - Boba Fat
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-21 00:00:00 +04:00
12
+ date: 2009-12-30 00:00:00 +03:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
16
- description: Execute ruby code in parallel.
17
- email: ""
16
+ description:
17
+ email:
18
18
  executables: []
19
19
 
20
20
  extensions: []
21
21
 
22
22
  extra_rdoc_files:
23
23
  - README.rdoc
24
- - lib/in_threads.rb
25
24
  files:
25
+ - .gitignore
26
26
  - Manifest
27
27
  - README.rdoc
28
28
  - Rakefile
29
- - VERSION.yml
29
+ - VERSION
30
+ - in_threads.gemspec
30
31
  - lib/in_threads.rb
31
32
  - spec/in_threads_spec.rb
32
33
  - spec/spec_helper.rb
33
- - in_threads.gemspec
34
34
  has_rdoc: true
35
- homepage: ""
35
+ homepage: http://github.com/toy/in_threads
36
36
  licenses: []
37
37
 
38
38
  post_install_message:
39
39
  rdoc_options:
40
- - --line-numbers
41
- - --inline-source
42
- - --title
43
- - In_threads
44
- - --main
45
- - README.rdoc
40
+ - --charset=UTF-8
46
41
  require_paths:
47
42
  - lib
48
43
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -55,14 +50,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
55
50
  requirements:
56
51
  - - ">="
57
52
  - !ruby/object:Gem::Version
58
- version: "1.2"
53
+ version: "0"
59
54
  version:
60
55
  requirements: []
61
56
 
62
- rubyforge_project: toytoy
57
+ rubyforge_project:
63
58
  rubygems_version: 1.3.5
64
59
  signing_key:
65
60
  specification_version: 3
66
- summary: Execute ruby code in parallel.
67
- test_files: []
68
-
61
+ summary: Execute ruby blocks in parallel
62
+ test_files:
63
+ - spec/in_threads_spec.rb
64
+ - spec/spec_helper.rb
data/VERSION.yml DELETED
@@ -1 +0,0 @@
1
- [0, 0, 1]