slave 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/Rakefile +34 -16
  3. data/lib/slave.rb +1 -1
  4. data/slave.gemspec +43 -0
  5. metadata +3 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZmE0ZTYxNmU0MjhmN2NhZTE4OGE2MzVkZWJjYjE1NGZlNWY1OWFiMg==
4
+ MzM0YWM5YjVkZTYxNGQ0YTFiZGU0MDc0ZTllZWM5N2E5YTc3N2U0NA==
5
5
  data.tar.gz: !binary |-
6
- YWY1ZDg2NTBhZGRjYzI4ZmNlYjY1NTVlZmI1ZGUxZTI3OTFkNmNiOQ==
6
+ YjNiZGNiOGIwYWEzNTc3MmE2MGEyZDQ2NWM0ZmFjZWM5ZTQzMTJhYw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MWY0ZWI2YTkyMDZjYjI5ODIxZWZkNzg3OTFlMGIzYzFhM2IzN2Q1MWZkNjM0
10
- NTY1ZDM5MzAwMDE4MWFiMDlmMDM1Njg4OGEzNjQ5MWY5NTlmMDU3MTZjMjYz
11
- YjYwMzUzYWI4MDdhZThhN2Q2NGY3YTk0NWVkN2ZmYmM5YTRkMTE=
9
+ MjU5NTViMTJhNTQ4MDRmOWYwNDFiYzJmOGFlNDg1ODI4YTU5MWM3M2U1Yzlj
10
+ OTZlN2VjYTI1OTI1MDc1ZGQxYzFlOWVhZTlhN2FiMTg5YmFhZWIxNjE1YjY3
11
+ OTA2MGNjODY0YTYyZTYxMWEzN2NjYzc0ZGZkNjhhOGYzNzk1ODQ=
12
12
  data.tar.gz: !binary |-
13
- MDllZWIwMWMzM2NmMzgzMDI3N2E3ZTYxZTU1MTYwNmI2OTg5NzhmNGI5ODFk
14
- MzFkZWVkNzFiMDkzYjZhZWY2NmQ3MDg0YzJiMWFlNWFmZjA5ZjBlMmY0MmNj
15
- ZGY0MjY5N2U4NWQ2MDBlODhkMDhhMjMzMDBkYmQxM2RkOWVhYTA=
13
+ Y2YxMjAwODEzNjkyNTkyNmUzZGE4Zjk4NGI5M2VjNmJiMWJkNGVjNzhiZTZj
14
+ M2MyMzkxY2EyY2Y4MDE3ZDA3YjhjNWM4ZGRjZjU3MzgwZDZiZGRiZjk1YjBj
15
+ MzU4ZDM0YjAxMmU3MTRmMjFjYTBkZmVhM2Q1NDdhNWJhYzA2Mzk=
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
@@ -39,7 +39,7 @@ require 'sync'
39
39
  # of the two 'b' is preferred.
40
40
  #
41
41
  class Slave
42
- VERSION = '1.3.1'
42
+ VERSION = '1.3.2'
43
43
  def self.version() VERSION end
44
44
 
45
45
  def Slave.description
@@ -0,0 +1,43 @@
1
+ ## slave.gemspec
2
+ #
3
+
4
+ Gem::Specification::new do |spec|
5
+ spec.name = "slave"
6
+ spec.version = "1.3.2"
7
+ spec.platform = Gem::Platform::RUBY
8
+ spec.summary = "slave"
9
+ spec.description = "easily start a drb server in another process"
10
+ spec.license = "same as ruby's"
11
+
12
+ spec.files =
13
+ ["README",
14
+ "Rakefile",
15
+ "lib",
16
+ "lib/slave-1.2.1.rb",
17
+ "lib/slave.rb",
18
+ "readme.erb",
19
+ "samples",
20
+ "samples/a.rb",
21
+ "samples/b.rb",
22
+ "samples/c.rb",
23
+ "samples/d.rb",
24
+ "samples/e.rb",
25
+ "samples/f.rb",
26
+ "samples/g.rb",
27
+ "slave.gemspec"]
28
+
29
+ spec.executables = []
30
+
31
+ spec.require_path = "lib"
32
+
33
+ spec.test_files = nil
34
+
35
+
36
+
37
+ spec.extensions.push(*[])
38
+
39
+ spec.rubyforge_project = "codeforpeople"
40
+ spec.author = "Ara T. Howard"
41
+ spec.email = "ara.t.howard@gmail.com"
42
+ spec.homepage = "https://github.com/ahoward/slave"
43
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slave
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: easily start a drb server in another process
14
14
  email: ara.t.howard@gmail.com
@@ -28,6 +28,7 @@ files:
28
28
  - samples/e.rb
29
29
  - samples/f.rb
30
30
  - samples/g.rb
31
+ - slave.gemspec
31
32
  homepage: https://github.com/ahoward/slave
32
33
  licenses:
33
34
  - same as ruby's