rails_nav 2.5.2 → 2.5.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/rails_nav.rb +1 -1
  4. data/rails_nav.gemspec +8 -3
  5. metadata +45 -3
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MjEzYjJjN2NmNDcwNjFlNjQ4ZjI2Mjk2NTdkOWVlZDA3ZTJkOWViMw==
4
+ NjRlOTE0OTRjYTEzNjA1NjRhZDBkNmYwNTQ3NGMwZTQzNzNiMWMzYQ==
5
5
  data.tar.gz: !binary |-
6
- YzAzYTEwNTlkYzEzMjAyMDdhODgxNGZlNDhjODUyNTBjNjllNGRhMw==
6
+ YTQyNmU3MjY1ZWIxZmFlZjhmY2E4OWYyYWZjZGUyZDU4OGQyMjc3OA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NTRlYjYyMzQ0ODQxNDNkZjI4OWI4NGNlZDJlNjExMjRjMzVmNTU3Y2Q2MTBh
10
- MDY3NTlkYzFlNDNiYmYwMjhlNTQzZDgzMTljZDg0NDE4MTc3YTAyMDgxMzk0
11
- N2QxYzY4MjM1NDRmMjE5ZGRiMzZkOTYxZDU1OGFjYzRlMTEzNTI=
9
+ MmQ5ODFiYzk0NTA1ZDE3YjEwYWRjZTQ2NzY3NzRiZTY2M2VhMGMzYzM2MGVl
10
+ MzBiZTJmMWNhNjM1YWIyOTFlOWFmNzA2ODI3ZGNlYTc0NjMyYzFhNWRkMTEw
11
+ NGFhODYzZjgxYjFmZWNjZGFjMzc4MzFmOWFkNmYxYWIyNTU2MGQ=
12
12
  data.tar.gz: !binary |-
13
- ZjJjOTc5ZjFhMDFlMDkwZjA1MGQ4ZmUzNTM2OTUwYTdhMzdiNmU5MThmZDQx
14
- OTg0NzMyNjM2MmM1ZTEzMTFkMzk5NDU4NTNkZDAwYjhlYmE0MWJiNTY5ZTky
15
- ZTBmM2IzNzFkYmNjMzQ1NzY0ZmUzMTg3ZWU4YjBhNDBiMTRhMmQ=
13
+ MzViOGU2ZjkxOTQzNWFlYmQ4MjYzZmZhMTE1YWYxMDNkNWY4N2JjMzlmZjlm
14
+ MDY1MmIzMmY1MWNlNDlhMmIwMWI5MjdmNjU4YTNhZDc1YmY2NjkyZGQxYWY1
15
+ NTJhNjczMmM3Mzc1MjI4Y2Q0ZjY4ZWMxYWFiMjZmYWZlNWRhNTM=
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/rails_nav.rb CHANGED
@@ -7,7 +7,7 @@
7
7
  ##
8
8
  #
9
9
  def Nav.version()
10
- '2.5.2'
10
+ '2.5.3'
11
11
  end
12
12
 
13
13
  def Nav.dependencies
data/rails_nav.gemspec CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "rails_nav"
6
- spec.version = "2.5.2"
6
+ spec.version = "2.5.3"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "rails_nav"
9
9
  spec.description = "declarative navigation for rails applications"
@@ -18,8 +18,13 @@ Gem::Specification::new do |spec|
18
18
 
19
19
  spec.test_files = nil
20
20
 
21
- ### spec.add_dependency 'lib', '>= version'
22
- #### spec.add_dependency 'map'
21
+
22
+ spec.add_dependency(*["rails_current", " >= 1.6"])
23
+
24
+ spec.add_dependency(*["rails_helper", " >= 1.2"])
25
+
26
+ spec.add_dependency(*["map", " >= 6.5"])
27
+
23
28
 
24
29
  spec.extensions.push(*[])
25
30
 
metadata CHANGED
@@ -1,15 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_nav
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.2
4
+ version: 2.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-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: rails_current
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ! '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '1.6'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ! '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '1.6'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rails_helper
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '1.2'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '1.2'
41
+ - !ruby/object:Gem::Dependency
42
+ name: map
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '6.5'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '6.5'
13
55
  description: declarative navigation for rails applications
14
56
  email: ara.t.howard@gmail.com
15
57
  executables: []