systemu 2.6.2 → 2.6.3

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/Rakefile +34 -16
  3. data/lib/systemu.rb +1 -1
  4. data/systemu.gemspec +2 -3
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTEyZTJiYjU5OTcxYjBjNjg3MWUxMWFhNzJhNzQyYmNlNDVlY2QzNg==
4
+ ZjQwYjgxOGUxYjU4YWVmNTkwNzM1OWM0YjVlZDJjNGU5ZmM5OWQyZQ==
5
5
  data.tar.gz: !binary |-
6
- ZjNmZTViMTMxZjIwNTFhY2YyMmUxM2JiNDYzYWEyOTI3YTQ4N2YzMg==
6
+ ODU1Y2MxZGE2YzVlOWEwZDE2MTY0NWJkNmFmYzlkNWRmODExZTdiOQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- OTM2ZTFjODk2NTUzZmZjYTZhYjMwYmE4OWM5MjIwYWMxNTNkMmFiM2E5NmIx
10
- M2FjYmQ3ZGNiZTJjNTRkMzA3YWY3Zjk5MzAzNmZmZDA3OGExNDI1ZjE3NWQy
11
- NTJlNTI5YTMwNjRmNTBiYWQzM2Y5MDNmNWExM2Q4MmJlYjI3ODk=
9
+ OGU0OTc3Y2FmNWVkNjEzYmE2NDc4Y2ViYmRlZDBiZjg3OTIwZWI2NTJlNWQz
10
+ NjcyNGIzYWZhMDdkODUyMTM1NjI5NTRkYzgxODBkNGFlZTJkZDRlMDk0MjM0
11
+ YWUzNTIzYjYwNDQzNWFiNmFmNjc1NzdjZmVlMjk3NjZjYzYzMjc=
12
12
  data.tar.gz: !binary |-
13
- YzM3NmUzZGI1MGMzMzFlNzc2OWIzMTFmODAyZjVjNWQ2YmMxMGI1OWE2NjNj
14
- YjEzOWYwNjAzZDAyOGJjZGI3NmFkNDE5OWY5ZGJlNzc4YTNmN2VlZmEyNDc5
15
- MDRmYjU5ZDNkZDA3YzQ1ODQ2YmYzMTFiZTBkNDFkMzg5MGI1ZDE=
13
+ ZjBjNDkxZjBkMmEzYTE2ODZlZTlhZjg0NGZkNDc3ZTdmODUzNDljMDQ4YmU4
14
+ OTAyZDgzZWFhYzlkMDY0YzkzNmE2MzcwYzBlYWRkZDdiNTBjMTQwYjNmZjMx
15
+ MjM4MjcyODQxODQ1OTJjMzIxYTI0NDI1MzY3ZDIwMjIxNGQ2YmU=
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
@@ -14,7 +14,7 @@ class SystemUniversal
14
14
  #
15
15
  # constants
16
16
  #
17
- SystemUniversal::VERSION = '2.6.2' unless SystemUniversal.send(:const_defined?, :VERSION)
17
+ SystemUniversal::VERSION = '2.6.3' unless SystemUniversal.send(:const_defined?, :VERSION)
18
18
  def SystemUniversal.version() SystemUniversal::VERSION end
19
19
  def version() SystemUniversal::VERSION end
20
20
  def SystemUniversal.description
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "systemu"
6
- spec.version = "2.6.2"
6
+ spec.version = "2.6.3"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "systemu"
9
9
  spec.description = "universal capture of stdout and stderr and handling of child process pid for windows, *nix, etc."
@@ -34,8 +34,7 @@ Gem::Specification::new do |spec|
34
34
 
35
35
  spec.test_files = nil
36
36
 
37
- ### spec.add_dependency 'lib', '>= version'
38
- #### spec.add_dependency 'map'
37
+
39
38
 
40
39
  spec.extensions.push(*[])
41
40
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: systemu
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.2
4
+ version: 2.6.3
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: universal capture of stdout and stderr and handling of child process
14
14
  pid for windows, *nix, etc.