map 6.5.2 → 6.5.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +8 -8
  2. data/Rakefile +34 -16
  3. data/lib/map.rb +1 -1
  4. data/map.gemspec +2 -4
  5. metadata +2 -3
  6. data/a +0 -0
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODU5NDc3YjlkZGE3YzljYjgzZjk2NWU1YzBlOGIwNGNmMDlkZWJiNA==
4
+ YmRlMTBhYTg0YWYwZDU0OGY1Zjk0MWQwYzAyZWQ3NzQyZjMwMTdkNw==
5
5
  data.tar.gz: !binary |-
6
- ZWU1NTdkOWFiOGE4YTFlYjM5ZGFkMTYxNmQ3MTViYjJlNmM3ODQ5OA==
6
+ ZWQwNzA0OGNmMzZjOWU5MWZhMTM5NzIzNjBiYmE5NzllZGI4Njg2Ng==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- M2QxYWM3OThmMDBiYzlhMTZmMzJiYzRlNzg3MzA3OGM1NGNjMDgzZGMyNDEz
10
- MTE3NDNlMzIyNTU2YmY5ODdhZDBjZWZjNGZmMzZlOTgyZWNlODU0YTQwNjk2
11
- M2Q0ZWY5MTkzZDQxNGE1YzEzZTFjNzQ1YzFiMTQxN2MxN2FjNDc=
9
+ NWRjNmFhYWNmMjg1NGZiYjBjZmIxZjgyMGU0N2EyYTg1MTM2N2I1NjBkNmY3
10
+ OWRkZmFiOGVlOWE0MmIzMzlmNDA3ZjI1MmM4OWM5YjYzODZmNTc0NmFlODc5
11
+ OTcwMTg0NjkyNWNhN2VhMDU1MGI2NDhiZjcwYjM4MGU5YjE4Mzg=
12
12
  data.tar.gz: !binary |-
13
- ZTA3ZDFiZWNhMGMwMmM1MmZkYTcyNDVkMjQ4ODZlOTI3NDk5YTJkZjQ0MDQy
14
- MDQ4NTc3NDQ5ZDQzZmNhMzdmNGFjMWQ2ZDlkYTA1ZmQ2NjExOWIxOTRjNzVl
15
- NDMzYzZmODQ4ZGUzNjJkZDlkOWZjY2YwYjNkZjk4OWQ2MTZlYzk=
13
+ MTEwOGNiNzY1MjYxYmNkY2Y2NWMxOTE2OTVmOTk3ZjI5YzEyZmE1YjIzODZk
14
+ MjY5M2UwZWM1NjEzMmQ1ZGZlYjIzMjQwMWUzZDk5NTIxMmU5MGZlNTdkNzkw
15
+ OGI2NDg3MjQ1ODM4MzQyMTU3MWJlMGQxMTBiODQyYjZhZjBjZTM=
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
data/lib/map.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  class Map < Hash
3
- Version = '6.5.2' unless defined?(Version)
3
+ Version = '6.5.3' unless defined?(Version)
4
4
  Load = Kernel.method(:load) unless defined?(Load)
5
5
 
6
6
  class << Map
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "map"
6
- spec.version = "6.5.2"
6
+ spec.version = "6.5.3"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "map"
9
9
  spec.description = "the awesome ruby container you've always wanted: a string/symbol indifferent ordered hash that works in all rubies"
@@ -13,7 +13,6 @@ Gem::Specification::new do |spec|
13
13
  ["LICENSE",
14
14
  "README",
15
15
  "Rakefile",
16
- "a",
17
16
  "a.rb",
18
17
  "lib",
19
18
  "lib/map",
@@ -36,8 +35,7 @@ Gem::Specification::new do |spec|
36
35
 
37
36
  spec.test_files = nil
38
37
 
39
- ### spec.add_dependency 'lib', '>= version'
40
- #### spec.add_dependency 'map'
38
+
41
39
 
42
40
  spec.extensions.push(*[])
43
41
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: map
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.5.2
4
+ version: 6.5.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-13 00:00:00.000000000 Z
11
+ date: 2014-02-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: ! 'the awesome ruby container you''ve always wanted: a string/symbol
14
14
  indifferent ordered hash that works in all rubies'
@@ -20,7 +20,6 @@ files:
20
20
  - LICENSE
21
21
  - README
22
22
  - Rakefile
23
- - a
24
23
  - a.rb
25
24
  - lib/map.rb
26
25
  - lib/map/integrations/active_record.rb
data/a DELETED
File without changes