open4 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +8 -8
  2. data/lib/open4.rb +1 -1
  3. data/open4.gemspec +2 -3
  4. data/rakefile +34 -16
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Mjg2OTllN2JkYWYxOTI3NzJkMTA5ZTA0MWEwMTdmOTU2M2U4Zjk0Nw==
4
+ NDIwYzkzZTQ4MTE2YTZmM2UxMDk4ZWQ0MmQxOWU4NzliODhlY2JjZg==
5
5
  data.tar.gz: !binary |-
6
- ODllZjAxNTM3MzYwOGQwMTgyOGEzNTdmZGE3N2ZmMTU0ZTYxZWRlNg==
6
+ ZmNjNGI5MWQwNGM1MWVhN2Y2NDlhYTc4MTIxZTI4YzIwZjc4ZTA1Zg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NDc5MTFjNjFiNGNlNjQzZjMxYTY5NWNkNjRiMzgzNjQ4MjQ5NmFiYzdjYWQ0
10
- NmRjMWFmMTQ1YTk5NjI4ZTJhOTJiNGI4MGVjNTkxMzU1YzYyMDgyNDVjMTIw
11
- YjE3NGZlN2JjYjk1ZTNmZWIwYWU5NTdhMTU0NzdkYTc0MDIyNTY=
9
+ ZWNmYjIwMGVhYzM0ZTc2N2E3YTFmY2JjYjNjYTllYzQ1M2Q0NTI0ZWZhNTAw
10
+ NjdhNDQ4OWRhNTMzZTcwYWQ3ZTI1MDYzZGEwOGZkZDA5ZDljNzM4N2Y3Yzk2
11
+ Njk4MTE3YWQ2ZWUxMTA5NjA2ZjE3NWUxMDYzMWMyNWUyZjUwMWY=
12
12
  data.tar.gz: !binary |-
13
- ODAyYWRiNmIyZjY0ZTQ2NzBkYjZmYTFhMjY1MzY0ZTI3NTU5YTk4ODI1Zjhh
14
- MDkzMzY0ZTlkNGZmNmUxOWQ1ZjA5OGMyYTgxYjVhNWQ3ZTg3Yzk3ODljZmQz
15
- NzY2M2M2ZWM1NTY4NTVhYzc4ZmVhYzZiM2ViODg0Zjk4ZjdkNGE=
13
+ OTdmYjhiZjhmOTRhOWM0OTI4MDY4ZDM3OWU2NjQ1OGNiMWI4ZGU0N2FiODJk
14
+ ZTkzNzExNTk5MWZiOTA1OGI2NmViYmQ1ZDA1MmEyM2E1M2I0Y2IzY2E1NGJj
15
+ NjJmMzYxYWJhNGU5YjJiZWUzMzZmZDFmNWUwZTU5ZGVkYTA4YTA=
@@ -4,7 +4,7 @@ require 'timeout'
4
4
  require 'thread'
5
5
 
6
6
  module Open4
7
- VERSION = '1.3.1'
7
+ VERSION = '1.3.2'
8
8
  def Open4.version() VERSION end
9
9
 
10
10
  def Open4.description
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "open4"
6
- spec.version = "1.3.1"
6
+ spec.version = "1.3.2"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "open4"
9
9
  spec.description = "open child process with handles on pid, stdin, stdout, and stderr: manage child processes and their io handles easily."
@@ -42,8 +42,7 @@ Gem::Specification::new do |spec|
42
42
 
43
43
  spec.test_files = nil
44
44
 
45
- ### spec.add_dependency 'lib', '>= version'
46
- #### spec.add_dependency 'map'
45
+
47
46
 
48
47
  spec.extensions.push(*[])
49
48
 
data/rakefile CHANGED
@@ -104,39 +104,51 @@ task :gemspec do
104
104
  end
105
105
  extensions = [extensions].flatten.compact
106
106
 
107
+ if This.dependencies.nil?
108
+ dependencies = []
109
+ else
110
+ case This.dependencies
111
+ when Hash
112
+ dependencies = This.dependencies.values
113
+ when Array
114
+ dependencies = This.dependencies
115
+ end
116
+ end
117
+
107
118
  template =
108
119
  if test(?e, 'gemspec.erb')
109
120
  Template{ IO.read('gemspec.erb') }
110
121
  else
111
122
  Template {
112
123
  <<-__
113
- ## #{ lib }.gemspec
124
+ ## <%= lib %>.gemspec
114
125
  #
115
126
 
116
127
  Gem::Specification::new do |spec|
117
- spec.name = #{ lib.inspect }
118
- spec.version = #{ version.inspect }
128
+ spec.name = <%= lib.inspect %>
129
+ spec.version = <%= version.inspect %>
119
130
  spec.platform = Gem::Platform::RUBY
120
- spec.summary = #{ lib.inspect }
121
- spec.description = #{ description.inspect }
122
- spec.license = #{ license.inspect }
131
+ spec.summary = <%= lib.inspect %>
132
+ spec.description = <%= description.inspect %>
133
+ spec.license = <%= license.inspect %>
123
134
 
124
- spec.files =\n#{ files.sort.pretty_inspect }
125
- spec.executables = #{ executables.inspect }
135
+ spec.files =\n<%= files.sort.pretty_inspect %>
136
+ spec.executables = <%= executables.inspect %>
126
137
 
127
138
  spec.require_path = "lib"
128
139
 
129
- spec.test_files = #{ test_files.inspect }
140
+ spec.test_files = <%= test_files.inspect %>
130
141
 
131
- ### spec.add_dependency 'lib', '>= version'
132
- #### spec.add_dependency 'map'
142
+ <% dependencies.each do |lib_version| %>
143
+ spec.add_dependency(*<%= Array(lib_version).flatten.inspect %>)
144
+ <% end %>
133
145
 
134
- spec.extensions.push(*#{ extensions.inspect })
146
+ spec.extensions.push(*<%= extensions.inspect %>)
135
147
 
136
- spec.rubyforge_project = #{ This.rubyforge_project.inspect }
137
- spec.author = #{ This.author.inspect }
138
- spec.email = #{ This.email.inspect }
139
- spec.homepage = #{ This.homepage.inspect }
148
+ spec.rubyforge_project = <%= This.rubyforge_project.inspect %>
149
+ spec.author = <%= This.author.inspect %>
150
+ spec.email = <%= This.email.inspect %>
151
+ spec.homepage = <%= This.homepage.inspect %>
140
152
  end
141
153
  __
142
154
  }
@@ -272,6 +284,12 @@ BEGIN {
272
284
  end
273
285
  This.version = version
274
286
 
287
+ # see if dependencies are export by the module
288
+ #
289
+ if This.object.respond_to?(:dependencies)
290
+ This.dependencies = This.object.dependencies
291
+ end
292
+
275
293
  # we need to know the name of the lib an it's version
276
294
  #
277
295
  abort('no lib') unless This.lib
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: open4
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ara T. Howard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-15 00:00:00.000000000 Z
11
+ date: 2014-02-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: ! 'open child process with handles on pid, stdin, stdout, and stderr:
14
14
  manage child processes and their io handles easily.'