rails_nav 2.5.0 → 2.5.1

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 +15 -0
  2. data/Rakefile +26 -40
  3. data/lib/rails_nav.rb +5 -1
  4. data/rails_nav.gemspec +5 -9
  5. metadata +9 -58
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MTQ4YjQ4YWUyZjBlNzEzNDhmNGIyNmRmNGMwN2MwM2VhMTIzNTQ1OA==
5
+ data.tar.gz: !binary |-
6
+ NDllZTNjYWNkOWVkMmJiYjFmNmNhNjBjMmY4ZmVjYjRhYmE1NWJkZQ==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ YTYzMTZkZTFjZTk1OTg1NzJiOTUyNWIwNjMxNTIzOTc4ODQ4MmQ0NjAzYzE5
10
+ ZGI1ZTA2NDJkZmQwNzk3NmUzMjk0ZWJkZmQ4NjQ5MGYzNThmNjU0YTJjOWE2
11
+ ZThhNDMwOGVhYzM0NjhiMTNhOTg5Mjc4MzUyZTZhOTJjYjljM2Y=
12
+ data.tar.gz: !binary |-
13
+ MDhjNTFjMTU2MWI1NDA3ZmMzMDBhNjhjNGFmMzQyNDM1OWJkNjM1ZGRkNzBm
14
+ YTQ1NzBhOGVmZjA2YmJjNTRlOGUzMzdiNDk3MjMxMzQyNzk0MzVlNGMyM2Ri
15
+ ZTVhZjE4OTg1ZTc3ZmMwOGY1NmNkNTBjNTliOGU3OTdhZGM0YmQ=
data/Rakefile CHANGED
@@ -3,6 +3,9 @@ This.author = "Ara T. Howard"
3
3
  This.email = "ara.t.howard@gmail.com"
4
4
  This.homepage = "https://github.com/ahoward/#{ This.lib }"
5
5
 
6
+ task :license do
7
+ open('LICENSE', 'w'){|fd| fd.puts "same as ruby's"}
8
+ end
6
9
 
7
10
  task :default do
8
11
  puts((Rake::Task.tasks.map{|task| task.name.gsub(/::/,':')} - ['default']).sort)
@@ -29,7 +32,7 @@ def run_tests!(which = nil)
29
32
 
30
33
  test_rbs.each_with_index do |test_rb, index|
31
34
  testno = index + 1
32
- command = "#{ File.basename(This.ruby) } -I ./lib -I ./test/lib #{ test_rb }"
35
+ command = "#{ This.ruby } -w -I ./lib -I ./test/lib #{ test_rb }"
33
36
 
34
37
  puts
35
38
  say(div, :color => :cyan, :bold => true)
@@ -60,7 +63,7 @@ end
60
63
  task :gemspec do
61
64
  ignore_extensions = ['git', 'svn', 'tmp', /sw./, 'bak', 'gem']
62
65
  ignore_directories = ['pkg']
63
- ignore_files = ['test/log', 'a.rb'] + Dir['db/*'] + %w'db'
66
+ ignore_files = ['test/log']
64
67
 
65
68
  shiteless =
66
69
  lambda do |list|
@@ -87,9 +90,10 @@ task :gemspec do
87
90
  files = shiteless[Dir::glob("**/**")]
88
91
  executables = shiteless[Dir::glob("bin/*")].map{|exe| File.basename(exe)}
89
92
  #has_rdoc = true #File.exist?('doc')
90
- test_files = test(?e, "test/#{ lib }.rb") ? "test/#{ lib }.rb" : nil
93
+ test_files = "test/#{ lib }.rb" if File.file?("test/#{ lib }.rb")
91
94
  summary = object.respond_to?(:summary) ? object.summary : "summary: #{ lib } kicks the ass"
92
95
  description = object.respond_to?(:description) ? object.description : "description: #{ lib } kicks the ass"
96
+ license = object.respond_to?(:license) ? object.license : "same as ruby's"
93
97
 
94
98
  if This.extensions.nil?
95
99
  This.extensions = []
@@ -100,51 +104,39 @@ task :gemspec do
100
104
  end
101
105
  extensions = [extensions].flatten.compact
102
106
 
103
- # TODO
104
- if This.dependencies.nil?
105
- dependencies = []
106
- else
107
- case This.dependencies
108
- when Hash
109
- dependencies = This.dependencies.values
110
- when Array
111
- dependencies = This.dependencies
112
- end
113
- end
114
-
115
107
  template =
116
108
  if test(?e, 'gemspec.erb')
117
109
  Template{ IO.read('gemspec.erb') }
118
110
  else
119
111
  Template {
120
112
  <<-__
121
- ## <%= lib %>.gemspec
113
+ ## #{ lib }.gemspec
122
114
  #
123
115
 
124
116
  Gem::Specification::new do |spec|
125
- spec.name = <%= lib.inspect %>
126
- spec.version = <%= version.inspect %>
117
+ spec.name = #{ lib.inspect }
118
+ spec.version = #{ version.inspect }
127
119
  spec.platform = Gem::Platform::RUBY
128
- spec.summary = <%= lib.inspect %>
129
- spec.description = <%= description.inspect %>
120
+ spec.summary = #{ lib.inspect }
121
+ spec.description = #{ description.inspect }
122
+ spec.license = #{ license.inspect }
130
123
 
131
- spec.files =\n<%= files.sort.pretty_inspect %>
132
- spec.executables = <%= executables.inspect %>
124
+ spec.files =\n#{ files.sort.pretty_inspect }
125
+ spec.executables = #{ executables.inspect }
133
126
 
134
127
  spec.require_path = "lib"
135
128
 
136
- spec.test_files = <%= test_files.inspect %>
129
+ spec.test_files = #{ test_files.inspect }
137
130
 
138
- <% dependencies.each do |lib_version| %>
139
- spec.add_dependency(*<%= Array(lib_version).flatten.inspect %>)
140
- <% end %>
131
+ ### spec.add_dependency 'lib', '>= version'
132
+ #### spec.add_dependency 'map'
141
133
 
142
- spec.extensions.push(*<%= extensions.inspect %>)
134
+ spec.extensions.push(*#{ extensions.inspect })
143
135
 
144
- spec.rubyforge_project = <%= This.rubyforge_project.inspect %>
145
- spec.author = <%= This.author.inspect %>
146
- spec.email = <%= This.email.inspect %>
147
- spec.homepage = <%= This.homepage.inspect %>
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
140
  end
149
141
  __
150
142
  }
@@ -188,8 +180,8 @@ task :readme do
188
180
  end
189
181
 
190
182
  template =
191
- if test(?e, 'readme.erb')
192
- Template{ IO.read('readme.erb') }
183
+ if test(?e, 'README.erb')
184
+ Template{ IO.read('README.erb') }
193
185
  else
194
186
  Template {
195
187
  <<-__
@@ -280,12 +272,6 @@ BEGIN {
280
272
  end
281
273
  This.version = version
282
274
 
283
- # see if dependencies are export by the module
284
- #
285
- if This.object.respond_to?(:dependencies)
286
- This.dependencies = This.object.dependencies
287
- end
288
-
289
275
  # we need to know the name of the lib an it's version
290
276
  #
291
277
  abort('no lib') unless This.lib
@@ -293,7 +279,7 @@ BEGIN {
293
279
 
294
280
  # discover full path to this ruby executable
295
281
  #
296
- c = RbConfig::CONFIG
282
+ c = Config::CONFIG
297
283
  bindir = c["bindir"] || c['BINDIR']
298
284
  ruby_install_name = c['ruby_install_name'] || c['RUBY_INSTALL_NAME'] || 'ruby'
299
285
  ruby_ext = c['EXEEXT'] || ''
data/lib/rails_nav.rb CHANGED
@@ -7,7 +7,7 @@
7
7
  ##
8
8
  #
9
9
  def Nav.version()
10
- '2.5.0'
10
+ '2.5.1'
11
11
  end
12
12
 
13
13
  def Nav.dependencies
@@ -18,6 +18,10 @@
18
18
  }
19
19
  end
20
20
 
21
+ def Nav.description
22
+ 'declarative navigation declaration for rails applications'
23
+ end
24
+
21
25
  begin
22
26
  require 'rubygems'
23
27
  rescue LoadError
data/rails_nav.gemspec CHANGED
@@ -3,10 +3,11 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "rails_nav"
6
- spec.version = "2.5.0"
6
+ spec.version = "2.5.1"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "rails_nav"
9
- spec.description = "description: rails_nav kicks the ass"
9
+ spec.description = "declarative navigation declaration for rails applications"
10
+ spec.license = "same as ruby's"
10
11
 
11
12
  spec.files =
12
13
  ["README", "Rakefile", "lib", "lib/rails_nav.rb", "rails_nav.gemspec"]
@@ -17,13 +18,8 @@ Gem::Specification::new do |spec|
17
18
 
18
19
  spec.test_files = nil
19
20
 
20
-
21
- spec.add_dependency(*["rails_current", " >= 1.6"])
22
-
23
- spec.add_dependency(*["rails_helper", " >= 1.2"])
24
-
25
- spec.add_dependency(*["map", " >= 6.5"])
26
-
21
+ ### spec.add_dependency 'lib', '>= version'
22
+ #### spec.add_dependency 'map'
27
23
 
28
24
  spec.extensions.push(*[])
29
25
 
metadata CHANGED
@@ -1,65 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_nav
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
5
- prerelease:
4
+ version: 2.5.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ara T. Howard
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-06-07 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: rails_current
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '1.6'
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '1.6'
30
- - !ruby/object:Gem::Dependency
31
- name: rails_helper
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '1.2'
38
- type: :runtime
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '1.2'
46
- - !ruby/object:Gem::Dependency
47
- name: map
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: '6.5'
54
- type: :runtime
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '6.5'
62
- description: ! 'description: rails_nav kicks the ass'
11
+ date: 2014-02-15 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: declarative navigation declaration for rails applications
63
14
  email: ara.t.howard@gmail.com
64
15
  executables: []
65
16
  extensions: []
@@ -70,27 +21,27 @@ files:
70
21
  - lib/rails_nav.rb
71
22
  - rails_nav.gemspec
72
23
  homepage: https://github.com/ahoward/rails_nav
73
- licenses: []
24
+ licenses:
25
+ - same as ruby's
26
+ metadata: {}
74
27
  post_install_message:
75
28
  rdoc_options: []
76
29
  require_paths:
77
30
  - lib
78
31
  required_ruby_version: !ruby/object:Gem::Requirement
79
- none: false
80
32
  requirements:
81
33
  - - ! '>='
82
34
  - !ruby/object:Gem::Version
83
35
  version: '0'
84
36
  required_rubygems_version: !ruby/object:Gem::Requirement
85
- none: false
86
37
  requirements:
87
38
  - - ! '>='
88
39
  - !ruby/object:Gem::Version
89
40
  version: '0'
90
41
  requirements: []
91
42
  rubyforge_project: codeforpeople
92
- rubygems_version: 1.8.23
43
+ rubygems_version: 2.0.3
93
44
  signing_key:
94
- specification_version: 3
45
+ specification_version: 4
95
46
  summary: rails_nav
96
47
  test_files: []