right_popen 1.0.16 → 1.0.17

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -56,7 +56,19 @@ task :build => [:clean] do
56
56
  end
57
57
 
58
58
  desc "Build a binary gem"
59
- task :gem => [:build]
59
+ task :gem => [:build] do
60
+ if RUBY_PLATFORM =~ /mswin/
61
+ # the built .so file must appear under 'lib/win32' for the windows gem and
62
+ # the base gem task doesn't appear to handle this. this may be an issue with
63
+ # calculating the file list in the gemspec before the .so has actually been
64
+ # created. workaround is to invoke the gem build gemspec command line after
65
+ # the build step produces the .so file.
66
+ sh 'gem build right_popen.gemspec'
67
+ FileUtils::rm_rf('pkg')
68
+ FileUtils::mkdir_p('pkg')
69
+ Dir.glob('*.gem').each { |gem_path| FileUtils::mv(gem_path, File.join('pkg', File.basename((gem_path)))) }
70
+ end
71
+ end
60
72
 
61
73
  desc 'Install the right_popen library as a gem'
62
74
  task :install_gem => [:gem] do
data/lib/right_popen.rb CHANGED
@@ -60,7 +60,6 @@ module RightScale
60
60
  raise "EventMachine reactor must be started" unless EM.reactor_running?
61
61
  raise "Missing command" unless options[:command]
62
62
  raise "Missing target" unless options[:target] || !options[:stdout_handler] && !options[:stderr_handler] && !options[:exit_handler] && !options[:pid_handler]
63
- GC.start # To garbage collect open file descriptors from passed executions
64
63
  return RightScale.popen3_imp(options)
65
64
  end
66
65
 
@@ -133,7 +133,7 @@ module RightScale
133
133
  #
134
134
  # See RightScale.popen3
135
135
  def self.popen3_imp(options)
136
- # note GC.start moved to common popen3 entry method for use by both windows and linux.
136
+ GC.start # To garbage collect open file descriptors from passed executions
137
137
  EM.next_tick do
138
138
  process = RightPopen::Process.new(:environment => options[:environment] || {})
139
139
  process.fork(options[:command])
@@ -23,6 +23,6 @@
23
23
 
24
24
  module RightScale
25
25
  module RightPopen
26
- VERSION = "1.0.16"
26
+ VERSION = "1.0.17"
27
27
  end
28
28
  end
data/right_popen.gemspec CHANGED
@@ -47,8 +47,8 @@ EOF
47
47
  end
48
48
  spec.files = candidates.sort!
49
49
 
50
- # Current implementation supports >= 0.12.10
51
- spec.add_runtime_dependency(%q<eventmachine>, [">= 0.12.10"])
50
+ # Current implementation supports >= 0.12.11
51
+ spec.add_runtime_dependency(%q<eventmachine>, [">= 0.12.11"])
52
52
  if is_windows
53
53
  spec.add_runtime_dependency(%q<win32-process>, [">= 0.6.1"])
54
54
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: right_popen
3
3
  version: !ruby/object:Gem::Version
4
- hash: 55
4
+ hash: 53
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 16
10
- version: 1.0.16
9
+ - 17
10
+ version: 1.0.17
11
11
  platform: ruby
12
12
  authors:
13
13
  - Scott Messier
@@ -17,27 +17,29 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2012-05-15 00:00:00 Z
20
+ date: 2011-09-21 00:00:00 -07:00
21
+ default_executable:
21
22
  dependencies:
22
23
  - !ruby/object:Gem::Dependency
23
24
  name: eventmachine
24
- version_requirements: &id001 !ruby/object:Gem::Requirement
25
+ prerelease: false
26
+ requirement: &id001 !ruby/object:Gem::Requirement
25
27
  none: false
26
28
  requirements:
27
29
  - - ">="
28
30
  - !ruby/object:Gem::Version
29
- hash: 59
31
+ hash: 57
30
32
  segments:
31
33
  - 0
32
34
  - 12
33
- - 10
34
- version: 0.12.10
35
+ - 11
36
+ version: 0.12.11
35
37
  type: :runtime
36
- requirement: *id001
37
- prerelease: false
38
+ version_requirements: *id001
38
39
  - !ruby/object:Gem::Dependency
39
40
  name: rspec
40
- version_requirements: &id002 !ruby/object:Gem::Requirement
41
+ prerelease: false
42
+ requirement: &id002 !ruby/object:Gem::Requirement
41
43
  none: false
42
44
  requirements:
43
45
  - - ~>
@@ -48,11 +50,11 @@ dependencies:
48
50
  - 3
49
51
  version: "1.3"
50
52
  type: :development
51
- requirement: *id002
52
- prerelease: false
53
+ version_requirements: *id002
53
54
  - !ruby/object:Gem::Dependency
54
55
  name: rake
55
- version_requirements: &id003 !ruby/object:Gem::Requirement
56
+ prerelease: false
57
+ requirement: &id003 !ruby/object:Gem::Requirement
56
58
  none: false
57
59
  requirements:
58
60
  - - ~>
@@ -64,11 +66,11 @@ dependencies:
64
66
  - 7
65
67
  version: 0.8.7
66
68
  type: :development
67
- requirement: *id003
68
- prerelease: false
69
+ version_requirements: *id003
69
70
  - !ruby/object:Gem::Dependency
70
71
  name: flexmock
71
- version_requirements: &id004 !ruby/object:Gem::Requirement
72
+ prerelease: false
73
+ requirement: &id004 !ruby/object:Gem::Requirement
72
74
  none: false
73
75
  requirements:
74
76
  - - ">="
@@ -78,8 +80,7 @@ dependencies:
78
80
  - 0
79
81
  version: "0"
80
82
  type: :development
81
- requirement: *id004
82
- prerelease: false
83
+ version_requirements: *id004
83
84
  description: |
84
85
  RightPopen allows running external processes aynchronously while still
85
86
  capturing their standard and error outputs. It relies on EventMachine for most
@@ -118,6 +119,7 @@ files:
118
119
  - spec/runner.rb
119
120
  - spec/spec_helper.rb
120
121
  - spec/stdout.rb
122
+ has_rdoc: true
121
123
  homepage: https://github.com/rightscale/right_popen
122
124
  licenses: []
123
125
 
@@ -152,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
154
  requirements: []
153
155
 
154
156
  rubyforge_project: right_popen
155
- rubygems_version: 1.8.24
157
+ rubygems_version: 1.6.2
156
158
  signing_key:
157
159
  specification_version: 3
158
160
  summary: Provides a platform-independent popen implementation