sfl 2.0 → 2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/README.md +4 -1
  2. data/Rakefile +5 -5
  3. data/lib/sfl.rb +5 -1
  4. data/sfl.gemspec +1 -1
  5. data/spec/sfl_spec.rb +5 -2
  6. metadata +37 -58
data/README.md CHANGED
@@ -41,7 +41,10 @@ Currently there are no supports on:
41
41
  * MRI 1.8 on Windows
42
42
  * Other Ruby implementations such as JRuby, Rubinius and MacRuby
43
43
 
44
- ## Author
44
+ ## Authors
45
45
 
46
46
  Tatsuhiro Ujihisa
47
47
  <http://ujihisa.blogspot.com/>
48
+
49
+ Bernard Lambeau
50
+ <http://revision-zero.org/>
data/Rakefile CHANGED
@@ -1,16 +1,16 @@
1
1
  require "rspec/core/rake_task"
2
- require "rake/gempackagetask"
3
2
 
4
3
  task :default => :spec
5
4
 
6
5
  desc "Run all examples"
7
6
  RSpec::Core::RakeTask.new(:spec) do |t|
8
- t.rspec_opts = %w[--color]
9
- t.verbose = false
7
+ t.rspec_opts = %w[--color]
8
+ t.verbose = false
10
9
  end
11
10
 
12
11
  desc "Create the .gem package"
12
+ require 'rubygems/package_task'
13
13
  $gemspec = eval("#{File.read('sfl.gemspec')}")
14
- Rake::GemPackageTask.new($gemspec) do |pkg|
15
- pkg.need_tar = true
14
+ Gem::PackageTask.new($gemspec) do |pkg|
15
+ pkg.need_tar = true
16
16
  end
data/lib/sfl.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  class SFL
2
- VERSION = "2.0".freeze
2
+ VERSION = "2.1".freeze
3
3
 
4
4
  attr_reader :command, :environment, :argument, :option
5
5
 
@@ -179,6 +179,10 @@ if RUBY_VERSION <= "1.9"
179
179
  SFL.new(*x).run
180
180
  end
181
181
 
182
+ def spawn(*x)
183
+ Kernel.spawn(*x)
184
+ end
185
+
182
186
  def Process.spawn(*x)
183
187
  SFL.new(*x).run
184
188
  end
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.summary = %q{Spawn For Ruby 1.8}
8
8
  s.description = %q{Spawn For Ruby 1.8}
9
9
 
10
- s.author = 'ujihisa'
10
+ s.authors = %w[ujihisa blambeau]
11
11
  s.email = %q{ujihisa at gmail.com}
12
12
 
13
13
  s.files =
@@ -171,7 +171,10 @@ end
171
171
 
172
172
  describe 'spawn()' do
173
173
  it 'exists' do
174
- Kernel.should be_respond_to(:spawn, true)
175
- Process.should be_respond_to(:spawn, true)
174
+ Kernel.respond_to?(:spawn).should be_true
175
+ Process.respond_to?(:spawn).should be_true
176
+ end
177
+ it 'is callable' do
178
+ lambda{ Process.wait spawn("ruby -e 'true'") }.should_not raise_error
176
179
  end
177
180
  end
metadata CHANGED
@@ -1,95 +1,74 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: sfl
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 2
7
- - 0
8
- version: "2.0"
3
+ version: !ruby/object:Gem::Version
4
+ version: '2.1'
5
+ prerelease:
9
6
  platform: ruby
10
- authors:
7
+ authors:
11
8
  - ujihisa
9
+ - blambeau
12
10
  autorequire:
13
11
  bindir: bin
14
12
  cert_chain: []
15
-
16
- date: 2011-01-19 00:00:00 -08:00
17
- default_executable:
18
- dependencies:
19
- - !ruby/object:Gem::Dependency
13
+ date: 2012-01-05 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
20
16
  name: rake
21
- prerelease: false
22
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &2156998460 !ruby/object:Gem::Requirement
23
18
  none: false
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 0
29
- version: "0"
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
30
23
  type: :development
31
- version_requirements: *id001
32
- - !ruby/object:Gem::Dependency
33
- name: rspec
34
24
  prerelease: false
35
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: *2156998460
26
+ - !ruby/object:Gem::Dependency
27
+ name: rspec
28
+ requirement: &2156997600 !ruby/object:Gem::Requirement
36
29
  none: false
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- segments:
41
- - 2
42
- - 4
43
- - 0
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
44
33
  version: 2.4.0
45
34
  type: :development
46
- version_requirements: *id002
35
+ prerelease: false
36
+ version_requirements: *2156997600
47
37
  description: Spawn For Ruby 1.8
48
38
  email: ujihisa at gmail.com
49
39
  executables: []
50
-
51
40
  extensions: []
52
-
53
- extra_rdoc_files:
41
+ extra_rdoc_files:
54
42
  - README.md
55
- files:
43
+ files:
56
44
  - lib/sfl.rb
57
45
  - spec/sfl_spec.rb
58
46
  - sfl.gemspec
59
47
  - Rakefile
60
48
  - README.md
61
49
  - CHANGELOG.md
62
- has_rdoc: true
63
50
  homepage: https://github.com/ujihisa/spawn-for-legacy
64
51
  licenses: []
65
-
66
52
  post_install_message:
67
53
  rdoc_options: []
68
-
69
- require_paths:
54
+ require_paths:
70
55
  - lib
71
- required_ruby_version: !ruby/object:Gem::Requirement
56
+ required_ruby_version: !ruby/object:Gem::Requirement
72
57
  none: false
73
- requirements:
74
- - - ">="
75
- - !ruby/object:Gem::Version
76
- segments:
77
- - 0
78
- version: "0"
79
- required_rubygems_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ required_rubygems_version: !ruby/object:Gem::Requirement
80
63
  none: false
81
- requirements:
82
- - - ">="
83
- - !ruby/object:Gem::Version
84
- segments:
85
- - 0
86
- version: "0"
64
+ requirements:
65
+ - - ! '>='
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
87
68
  requirements: []
88
-
89
69
  rubyforge_project:
90
- rubygems_version: 1.3.7
70
+ rubygems_version: 1.8.11
91
71
  signing_key:
92
72
  specification_version: 3
93
73
  summary: Spawn For Ruby 1.8
94
74
  test_files: []
95
-