rails_current 1.8.1 → 1.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZmIxZDYzN2Q4NGU5ODg0ZDZkYThjYzBkNWFlNTJmOTI3YWZiNzVhNw==
4
+ NDFiMGFhZTZmYTMzYWJlMzI3MDgwNGU0NTAyZGI3ZDU4N2U3YWE5NA==
5
5
  data.tar.gz: !binary |-
6
- OTcxMWVhZGNhYTkwZWQ2OTY2N2RmOWEwZDdmNDAxZGZjNzYxZmE5Zg==
6
+ NDUyNDJiYWExM2QwMjE5M2JjN2RhNzNlZWQ1N2FlZGFiYjA0Y2Q1OA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- Y2Y1YmI3ZmMyYjg1NWRjZDQwMDM3NmZjOTdlOTU3NzE2YWI3MjVlMDYyNmI5
10
- ZjY5OTQ5YWViMTA2Njg2YTY3NjlmMWIyZDhiNDYwZjgwZmMwZDkxMTI4NjU5
11
- NjE4MTFiMTZjYjk5ZGZiMzY4MDQ3NGUyZjgyYWNkN2IyNzJkYzA=
9
+ YzlhZTY2OTg3YWYzNjQzYTA3ZmFkZGUwODE1YjcxOWQwMTQ4ZjgzNjliM2Ey
10
+ ZTc3YzhlZTNiNWNkN2VkMmJmNWExYWMyYjU1ZDZmOWM2NWE0MzE5YWYyYmI2
11
+ ZTE3YmU2MzNlMDI3ZDkyMzhlMWU0ZTA5MGIxNTJlZGMzYTdkNDI=
12
12
  data.tar.gz: !binary |-
13
- NmU0MGM1YWU3NDkyZDA1ZjBlYzliMmUxOTBlZmI2NDM3NDhjMTAyNmE0MmQz
14
- M2I5MDI0N2EwZDAxMGIzNDI2YjBjMGQ4ZmY0NDgwYWY2ZTg5NDVlMmU3ZTMz
15
- ZjFkNDQ5YjZkNzkzZjAwOGM3NDE3YTY5NDU3NDZhNzhmOTQ4MzQ=
13
+ YzljNDQ4NDhkZmM2ZjE1Y2E2Mjg1OTJhMmFhNzIzMTI0YjFkNjk3ZGI3YmY0
14
+ ZGM0OWM1OTg0ZWIxNzNhMGQ5MzhhYWFlNzVhYWY2ZDc2YmYyODlkYTk0MGY4
15
+ Yzg0MTYyNmQwZjMxOTQ1Zjk2MGM0YWM3OTkyYjY2YjJmNjU5MzA=
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Current
4
4
  def Current.version
5
- '1.8.1'
5
+ '1.8.2'
6
6
  end
7
7
 
8
8
  def Current.dependencies
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "rails_current"
6
- spec.version = "1.8.1"
6
+ spec.version = "1.8.2"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "rails_current"
9
9
  spec.description = "track 'current_user' et all in a tidy, global, and thread-safe fashion for your rails apps"
@@ -25,8 +25,9 @@ Gem::Specification::new do |spec|
25
25
 
26
26
  spec.test_files = nil
27
27
 
28
- ### spec.add_dependency 'lib', '>= version'
29
- #### spec.add_dependency 'map'
28
+
29
+ spec.add_dependency(*["map", " >= 6.0.1"])
30
+
30
31
 
31
32
  spec.extensions.push(*[])
32
33
 
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_current
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.1
4
+ version: 1.8.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
12
- dependencies: []
11
+ date: 2014-02-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: map
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ! '>='
18
+ - !ruby/object:Gem::Version
19
+ version: 6.0.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ! '>='
25
+ - !ruby/object:Gem::Version
26
+ version: 6.0.1
13
27
  description: track 'current_user' et all in a tidy, global, and thread-safe fashion
14
28
  for your rails apps
15
29
  email: ara.t.howard@gmail.com