navi 0.0.17 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. data/.gitignore +50 -0
  2. data/.rvmrc +1 -1
  3. data/Gemfile +1 -46
  4. data/Gemfile.lock +136 -116
  5. data/{README.textile → README.md} +32 -28
  6. data/Rakefile +1 -44
  7. data/features/step_definitions/category_steps.rb +1 -1
  8. data/features/step_definitions/page_steps.rb +1 -1
  9. data/lib/navi.rb +4 -11
  10. data/lib/navi/navigable/base.rb +1 -0
  11. data/lib/navi/navigable/instance_methods.rb +27 -1
  12. data/lib/navi/version.rb +3 -0
  13. data/navi.gemspec +44 -272
  14. data/spec/dummy/Rakefile +1 -1
  15. data/spec/dummy/app/assets/javascripts/application.js +7 -0
  16. data/spec/dummy/{public → app/assets}/javascripts/jquery-ui.js +0 -0
  17. data/spec/dummy/{public → app/assets}/javascripts/jquery-ui.min.js +0 -0
  18. data/spec/dummy/{public → app/assets}/javascripts/jquery.js +0 -0
  19. data/spec/dummy/{public → app/assets}/javascripts/jquery.min.js +0 -0
  20. data/spec/dummy/{public → app/assets}/javascripts/jquery_ujs.js +0 -0
  21. data/spec/dummy/{public → app/assets}/javascripts/menu_items/index.js +0 -0
  22. data/spec/dummy/app/assets/stylesheets/application.css +7 -0
  23. data/spec/dummy/app/controllers/categories_controller.rb +1 -0
  24. data/spec/dummy/{lib/tasks → app/mailers}/.gitkeep +0 -0
  25. data/spec/dummy/{public/stylesheets → app/models}/.gitkeep +0 -0
  26. data/spec/dummy/app/views/layouts/application.html.erb +1 -1
  27. data/spec/dummy/app/views/menu_items/index.html.haml +0 -3
  28. data/spec/dummy/config/application.rb +14 -9
  29. data/spec/dummy/config/boot.rb +1 -1
  30. data/spec/dummy/config/database.yml +13 -7
  31. data/spec/dummy/config/environments/development.rb +7 -3
  32. data/spec/dummy/config/environments/production.rb +23 -12
  33. data/spec/dummy/config/environments/test.rb +5 -1
  34. data/spec/dummy/config/initializers/{navigable.rb → navi.rb} +0 -0
  35. data/spec/dummy/config/initializers/secret_token.rb +1 -1
  36. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  37. data/spec/dummy/config/locales/en.yml +1 -1
  38. data/spec/dummy/config/routes.rb +1 -57
  39. data/spec/dummy/db/seeds.rb +4 -4
  40. data/spec/dummy/{vendor/plugins → lib/assets}/.gitkeep +0 -0
  41. data/spec/factories.rb +15 -0
  42. data/spec/navi/navi_spec.rb +1 -1
  43. data/spec/navi/navigable_spec.rb +23 -0
  44. data/spec/navi/navigator_spec.rb +24 -12
  45. data/spec/spec_helper.rb +18 -3
  46. metadata +284 -504
  47. data/VERSION +0 -1
  48. data/spec/blueprints.rb +0 -23
  49. data/spec/dummy/.gitignore +0 -6
  50. data/spec/dummy/config/cucumber.yml +0 -8
  51. data/spec/dummy/config/navigation.rb +0 -7
  52. data/spec/dummy/lib/tasks/cucumber.rake +0 -57
  53. data/spec/dummy/public/images/rails.png +0 -0
  54. data/spec/dummy/public/index.html +0 -239
  55. data/spec/dummy/public/javascripts/application.js +0 -2
  56. data/spec/dummy/public/javascripts/rails.js +0 -315
  57. data/spec/dummy/public/robots.txt +0 -5
  58. data/spec/dummy/script/cucumber +0 -10
@@ -1,10 +1,12 @@
1
1
  # Configure Rails Envinronment
2
2
  ENV["RAILS_ENV"] = "test"
3
3
 
4
+ require 'factory_girl'
4
5
  require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
- require File.expand_path("../blueprints.rb", __FILE__)
6
+ require File.expand_path("../factories.rb", __FILE__)
6
7
  require "rails/test_help"
7
8
  require "rspec/rails"
9
+ require 'database_cleaner'
8
10
 
9
11
  ActionMailer::Base.delivery_method = :test
10
12
  ActionMailer::Base.perform_deliveries = true
@@ -24,7 +26,8 @@ def migrate(direction)
24
26
  migration_files = Dir["#{migration_directory}/[0-9]*_*.rb"]
25
27
  migration_files.each {|migration_file| require migration_file} # require them so we can execute them
26
28
  case direction
27
- when :up : migration_files.each { |file_name| $1.camelize.constantize.up if file_name =~ /[\w\/\.]*\/\d*_(.*)\.rb$/ }
29
+ when :up
30
+ migration_files.each { |file_name| $1.camelize.constantize.up if file_name =~ /[\w\/\.]*\/\d*_(.*)\.rb$/ }
28
31
  when :down
29
32
  # Originally: migration_files.sort.reverse.each { |file_name| $1.camelize.constantize.down if file_name =~ /[\w\/\.]*\/\d*_(.*)\.rb$/ }
30
33
  # But better to just drop all tables
@@ -47,6 +50,18 @@ RSpec.configure do |config|
47
50
 
48
51
  # == Mock Framework
49
52
  config.mock_with :rspec
53
+
54
+ config.before(:suite) do
55
+ DatabaseCleaner.clean_with :truncation
56
+ end
57
+
58
+ config.before(:each) do
59
+ DatabaseCleaner.start
60
+ end
61
+
62
+ config.after(:each) do
63
+ DatabaseCleaner.clean
64
+ end
50
65
  end
51
66
 
52
67
  # Adds the *args to the klass and yields the new_klass
@@ -122,5 +137,5 @@ end
122
137
  #Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
123
138
 
124
139
  #RSpec.configure do |config|
125
-
140
+
126
141
  #end
metadata CHANGED
@@ -1,511 +1,342 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: navi
3
- version: !ruby/object:Gem::Version
4
- hash: 61
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.3
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 17
10
- version: 0.0.17
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Ramon Tayag
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-06-22 00:00:00 +08:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- type: :runtime
23
- requirement: &id001 !ruby/object:Gem::Requirement
12
+ date: 2012-02-08 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: activesupport
16
+ requirement: &69526220 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 7
29
- segments:
30
- - 3
31
- - 0
32
- - 0
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
33
21
  version: 3.0.0
34
- name: activesupport
35
- version_requirements: *id001
36
- prerelease: false
37
- - !ruby/object:Gem::Dependency
38
22
  type: :runtime
39
- requirement: &id002 !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ version_requirements: *69526220
25
+ - !ruby/object:Gem::Dependency
26
+ name: activerecord
27
+ requirement: &69283630 !ruby/object:Gem::Requirement
40
28
  none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- hash: 7
45
- segments:
46
- - 3
47
- - 0
48
- - 0
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
49
32
  version: 3.0.0
50
- name: activerecord
51
- version_requirements: *id002
52
- prerelease: false
53
- - !ruby/object:Gem::Dependency
54
33
  type: :runtime
55
- requirement: &id003 !ruby/object:Gem::Requirement
34
+ prerelease: false
35
+ version_requirements: *69283630
36
+ - !ruby/object:Gem::Dependency
37
+ name: ordered_tree
38
+ requirement: &69283240 !ruby/object:Gem::Requirement
56
39
  none: false
57
- requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- hash: 23
61
- segments:
62
- - 0
63
- - 1
64
- - 6
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
65
43
  version: 0.1.6
66
- name: ordered_tree
67
- version_requirements: *id003
44
+ type: :runtime
68
45
  prerelease: false
69
- - !ruby/object:Gem::Dependency
70
- type: :development
71
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *69283240
47
+ - !ruby/object:Gem::Dependency
48
+ name: rspec
49
+ requirement: &69282850 !ruby/object:Gem::Requirement
72
50
  none: false
73
- requirements:
51
+ requirements:
74
52
  - - ~>
75
- - !ruby/object:Gem::Version
76
- hash: 23
77
- segments:
78
- - 2
79
- - 6
80
- - 0
53
+ - !ruby/object:Gem::Version
81
54
  version: 2.6.0
82
- name: rspec
83
- version_requirements: *id004
84
- prerelease: false
85
- - !ruby/object:Gem::Dependency
86
55
  type: :development
87
- requirement: &id005 !ruby/object:Gem::Requirement
56
+ prerelease: false
57
+ version_requirements: *69282850
58
+ - !ruby/object:Gem::Dependency
59
+ name: bundler
60
+ requirement: &69282480 !ruby/object:Gem::Requirement
88
61
  none: false
89
- requirements:
62
+ requirements:
90
63
  - - ~>
91
- - !ruby/object:Gem::Version
92
- hash: 23
93
- segments:
94
- - 1
95
- - 0
96
- - 0
64
+ - !ruby/object:Gem::Version
97
65
  version: 1.0.0
98
- name: bundler
99
- version_requirements: *id005
66
+ type: :development
100
67
  prerelease: false
101
- - !ruby/object:Gem::Dependency
68
+ version_requirements: *69282480
69
+ - !ruby/object:Gem::Dependency
70
+ name: simple-navigation
71
+ requirement: &69282130 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - =
75
+ - !ruby/object:Gem::Version
76
+ version: 3.2.0
102
77
  type: :development
103
- requirement: &id006 !ruby/object:Gem::Requirement
78
+ prerelease: false
79
+ version_requirements: *69282130
80
+ - !ruby/object:Gem::Dependency
81
+ name: inherited_resources
82
+ requirement: &69281810 !ruby/object:Gem::Requirement
104
83
  none: false
105
- requirements:
84
+ requirements:
106
85
  - - ~>
107
- - !ruby/object:Gem::Version
108
- hash: 7
109
- segments:
110
- - 1
111
- - 5
112
- - 2
113
- version: 1.5.2
114
- name: jeweler
115
- version_requirements: *id006
116
- prerelease: false
117
- - !ruby/object:Gem::Dependency
86
+ - !ruby/object:Gem::Version
87
+ version: 1.3.0
118
88
  type: :development
119
- requirement: &id007 !ruby/object:Gem::Requirement
120
- none: false
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- hash: 3
125
- segments:
126
- - 0
127
- version: "0"
128
- name: rcov
129
- version_requirements: *id007
130
89
  prerelease: false
131
- - !ruby/object:Gem::Dependency
132
- type: :development
133
- requirement: &id008 !ruby/object:Gem::Requirement
90
+ version_requirements: *69281810
91
+ - !ruby/object:Gem::Dependency
92
+ name: guard-rspec
93
+ requirement: &69281550 !ruby/object:Gem::Requirement
134
94
  none: false
135
- requirements:
136
- - - "="
137
- - !ruby/object:Gem::Version
138
- hash: 15
139
- segments:
140
- - 3
141
- - 2
142
- - 0
143
- version: 3.2.0
144
- name: simple-navigation
145
- version_requirements: *id008
146
- prerelease: false
147
- - !ruby/object:Gem::Dependency
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
148
99
  type: :development
149
- requirement: &id009 !ruby/object:Gem::Requirement
150
- none: false
151
- requirements:
152
- - - ">="
153
- - !ruby/object:Gem::Version
154
- hash: 3
155
- segments:
156
- - 0
157
- version: "0"
158
- name: inherited_resources
159
- version_requirements: *id009
160
100
  prerelease: false
161
- - !ruby/object:Gem::Dependency
162
- type: :development
163
- requirement: &id010 !ruby/object:Gem::Requirement
101
+ version_requirements: *69281550
102
+ - !ruby/object:Gem::Dependency
103
+ name: libnotify
104
+ requirement: &69281130 !ruby/object:Gem::Requirement
164
105
  none: false
165
- requirements:
166
- - - ">="
167
- - !ruby/object:Gem::Version
168
- hash: 3
169
- segments:
170
- - 0
171
- version: "0"
172
- name: guard-rspec
173
- version_requirements: *id010
174
- prerelease: false
175
- - !ruby/object:Gem::Dependency
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
176
110
  type: :development
177
- requirement: &id011 !ruby/object:Gem::Requirement
178
- none: false
179
- requirements:
180
- - - ">="
181
- - !ruby/object:Gem::Version
182
- hash: 3
183
- segments:
184
- - 0
185
- version: "0"
186
- name: libnotify
187
- version_requirements: *id011
188
111
  prerelease: false
189
- - !ruby/object:Gem::Dependency
190
- type: :development
191
- requirement: &id012 !ruby/object:Gem::Requirement
192
- none: false
193
- requirements:
194
- - - ">="
195
- - !ruby/object:Gem::Version
196
- hash: 3
197
- segments:
198
- - 0
199
- version: "0"
112
+ version_requirements: *69281130
113
+ - !ruby/object:Gem::Dependency
200
114
  name: rb-inotify
201
- version_requirements: *id012
202
- prerelease: false
203
- - !ruby/object:Gem::Dependency
204
- type: :development
205
- requirement: &id013 !ruby/object:Gem::Requirement
115
+ requirement: &69280550 !ruby/object:Gem::Requirement
206
116
  none: false
207
- requirements:
208
- - - ">="
209
- - !ruby/object:Gem::Version
210
- hash: 3
211
- segments:
212
- - 0
213
- version: "0"
214
- name: sqlite3
215
- version_requirements: *id013
216
- prerelease: false
217
- - !ruby/object:Gem::Dependency
117
+ requirements:
118
+ - - ! '>='
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
218
121
  type: :development
219
- requirement: &id014 !ruby/object:Gem::Requirement
220
- none: false
221
- requirements:
222
- - - "="
223
- - !ruby/object:Gem::Version
224
- hash: 49
225
- segments:
226
- - 0
227
- - 8
228
- - 7
229
- version: 0.8.7
230
- name: rake
231
- version_requirements: *id014
232
122
  prerelease: false
233
- - !ruby/object:Gem::Dependency
234
- type: :development
235
- requirement: &id015 !ruby/object:Gem::Requirement
123
+ version_requirements: *69280550
124
+ - !ruby/object:Gem::Dependency
125
+ name: sqlite3
126
+ requirement: &69280310 !ruby/object:Gem::Requirement
236
127
  none: false
237
- requirements:
238
- - - "="
239
- - !ruby/object:Gem::Version
240
- hash: 17
241
- segments:
242
- - 1
243
- - 1
244
- - 1
245
- version: 1.1.1
246
- name: apotomo
247
- version_requirements: *id015
248
- prerelease: false
249
- - !ruby/object:Gem::Dependency
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
250
132
  type: :development
251
- requirement: &id016 !ruby/object:Gem::Requirement
252
- none: false
253
- requirements:
254
- - - "="
255
- - !ruby/object:Gem::Version
256
- hash: 9
257
- segments:
258
- - 3
259
- - 0
260
- - 7
261
- version: 3.0.7
262
- name: rails
263
- version_requirements: *id016
264
133
  prerelease: false
265
- - !ruby/object:Gem::Dependency
266
- type: :development
267
- requirement: &id017 !ruby/object:Gem::Requirement
134
+ version_requirements: *69280310
135
+ - !ruby/object:Gem::Dependency
136
+ name: apotomo
137
+ requirement: &69280000 !ruby/object:Gem::Requirement
268
138
  none: false
269
- requirements:
270
- - - ">="
271
- - !ruby/object:Gem::Version
272
- hash: 3
273
- segments:
274
- - 0
275
- version: "0"
276
- name: haml
277
- version_requirements: *id017
278
- prerelease: false
279
- - !ruby/object:Gem::Dependency
139
+ requirements:
140
+ - - ~>
141
+ - !ruby/object:Gem::Version
142
+ version: 1.2.2
280
143
  type: :development
281
- requirement: &id018 !ruby/object:Gem::Requirement
144
+ prerelease: false
145
+ version_requirements: *69280000
146
+ - !ruby/object:Gem::Dependency
147
+ name: rails
148
+ requirement: &69279550 !ruby/object:Gem::Requirement
282
149
  none: false
283
- requirements:
284
- - - "="
285
- - !ruby/object:Gem::Version
286
- hash: 15
287
- segments:
288
- - 3
289
- - 2
290
- - 0
150
+ requirements:
151
+ - - ~>
152
+ - !ruby/object:Gem::Version
291
153
  version: 3.2.0
292
- name: simple-navigation
293
- version_requirements: *id018
154
+ type: :development
294
155
  prerelease: false
295
- - !ruby/object:Gem::Dependency
156
+ version_requirements: *69279550
157
+ - !ruby/object:Gem::Dependency
158
+ name: haml
159
+ requirement: &69279170 !ruby/object:Gem::Requirement
160
+ none: false
161
+ requirements:
162
+ - - ! '>='
163
+ - !ruby/object:Gem::Version
164
+ version: '0'
296
165
  type: :development
297
- requirement: &id019 !ruby/object:Gem::Requirement
166
+ prerelease: false
167
+ version_requirements: *69279170
168
+ - !ruby/object:Gem::Dependency
169
+ name: simple-navigation
170
+ requirement: &69278650 !ruby/object:Gem::Requirement
298
171
  none: false
299
- requirements:
300
- - - ">="
301
- - !ruby/object:Gem::Version
302
- hash: 17
303
- segments:
304
- - 1
305
- - 0
306
- - 3
307
- version: 1.0.3
308
- name: jquery-rails
309
- version_requirements: *id019
172
+ requirements:
173
+ - - =
174
+ - !ruby/object:Gem::Version
175
+ version: 3.2.0
176
+ type: :development
310
177
  prerelease: false
311
- - !ruby/object:Gem::Dependency
178
+ version_requirements: *69278650
179
+ - !ruby/object:Gem::Dependency
180
+ name: jquery-rails
181
+ requirement: &69278140 !ruby/object:Gem::Requirement
182
+ none: false
183
+ requirements:
184
+ - - ~>
185
+ - !ruby/object:Gem::Version
186
+ version: 2.0.0
312
187
  type: :development
313
- requirement: &id020 !ruby/object:Gem::Requirement
188
+ prerelease: false
189
+ version_requirements: *69278140
190
+ - !ruby/object:Gem::Dependency
191
+ name: rspec-rails
192
+ requirement: &69277830 !ruby/object:Gem::Requirement
314
193
  none: false
315
- requirements:
316
- - - "="
317
- - !ruby/object:Gem::Version
318
- hash: 21
319
- segments:
320
- - 2
321
- - 6
322
- - 1
194
+ requirements:
195
+ - - ~>
196
+ - !ruby/object:Gem::Version
323
197
  version: 2.6.1
324
- name: rspec-rails
325
- version_requirements: *id020
326
- prerelease: false
327
- - !ruby/object:Gem::Dependency
328
198
  type: :development
329
- requirement: &id021 !ruby/object:Gem::Requirement
199
+ prerelease: false
200
+ version_requirements: *69277830
201
+ - !ruby/object:Gem::Dependency
202
+ name: cucumber-rails
203
+ requirement: &69277250 !ruby/object:Gem::Requirement
330
204
  none: false
331
- requirements:
332
- - - "="
333
- - !ruby/object:Gem::Version
334
- hash: 15
335
- segments:
336
- - 0
337
- - 5
338
- - 2
205
+ requirements:
206
+ - - =
207
+ - !ruby/object:Gem::Version
339
208
  version: 0.5.2
340
- name: cucumber-rails
341
- version_requirements: *id021
342
- prerelease: false
343
- - !ruby/object:Gem::Dependency
344
209
  type: :development
345
- requirement: &id022 !ruby/object:Gem::Requirement
346
- none: false
347
- requirements:
348
- - - ">="
349
- - !ruby/object:Gem::Version
350
- hash: 3
351
- segments:
352
- - 0
353
- version: "0"
354
- name: cucumber
355
- version_requirements: *id022
356
210
  prerelease: false
357
- - !ruby/object:Gem::Dependency
211
+ version_requirements: *69277250
212
+ - !ruby/object:Gem::Dependency
213
+ name: cucumber
214
+ requirement: &69277020 !ruby/object:Gem::Requirement
215
+ none: false
216
+ requirements:
217
+ - - ! '>='
218
+ - !ruby/object:Gem::Version
219
+ version: '0'
358
220
  type: :development
359
- requirement: &id023 !ruby/object:Gem::Requirement
221
+ prerelease: false
222
+ version_requirements: *69277020
223
+ - !ruby/object:Gem::Dependency
224
+ name: capybara
225
+ requirement: &69276710 !ruby/object:Gem::Requirement
360
226
  none: false
361
- requirements:
362
- - - ">="
363
- - !ruby/object:Gem::Version
364
- hash: 15424055
365
- segments:
366
- - 1
367
- - 0
368
- - 0
369
- - rc
370
- - 1
227
+ requirements:
228
+ - - ! '>='
229
+ - !ruby/object:Gem::Version
371
230
  version: 1.0.0.rc1
372
- name: capybara
373
- version_requirements: *id023
374
- prerelease: false
375
- - !ruby/object:Gem::Dependency
376
231
  type: :development
377
- requirement: &id024 !ruby/object:Gem::Requirement
378
- none: false
379
- requirements:
380
- - - ">="
381
- - !ruby/object:Gem::Version
382
- hash: 3
383
- segments:
384
- - 0
385
- version: "0"
386
- name: database_cleaner
387
- version_requirements: *id024
388
232
  prerelease: false
389
- - !ruby/object:Gem::Dependency
390
- type: :development
391
- requirement: &id025 !ruby/object:Gem::Requirement
233
+ version_requirements: *69276710
234
+ - !ruby/object:Gem::Dependency
235
+ name: database_cleaner
236
+ requirement: &69276490 !ruby/object:Gem::Requirement
392
237
  none: false
393
- requirements:
394
- - - ">="
395
- - !ruby/object:Gem::Version
396
- hash: 3
397
- segments:
398
- - 0
399
- version: "0"
400
- name: launchy
401
- version_requirements: *id025
402
- prerelease: false
403
- - !ruby/object:Gem::Dependency
238
+ requirements:
239
+ - - ! '>='
240
+ - !ruby/object:Gem::Version
241
+ version: '0'
404
242
  type: :development
405
- requirement: &id026 !ruby/object:Gem::Requirement
406
- none: false
407
- requirements:
408
- - - ">="
409
- - !ruby/object:Gem::Version
410
- hash: 3
411
- segments:
412
- - 0
413
- version: "0"
414
- name: machinist
415
- version_requirements: *id026
416
243
  prerelease: false
417
- - !ruby/object:Gem::Dependency
418
- type: :development
419
- requirement: &id027 !ruby/object:Gem::Requirement
244
+ version_requirements: *69276490
245
+ - !ruby/object:Gem::Dependency
246
+ name: launchy
247
+ requirement: &69276180 !ruby/object:Gem::Requirement
420
248
  none: false
421
- requirements:
422
- - - ">="
423
- - !ruby/object:Gem::Version
424
- hash: 3
425
- segments:
426
- - 0
427
- version: "0"
428
- name: faker
429
- version_requirements: *id027
430
- prerelease: false
431
- - !ruby/object:Gem::Dependency
249
+ requirements:
250
+ - - ! '>='
251
+ - !ruby/object:Gem::Version
252
+ version: '0'
432
253
  type: :development
433
- requirement: &id028 !ruby/object:Gem::Requirement
254
+ prerelease: false
255
+ version_requirements: *69276180
256
+ - !ruby/object:Gem::Dependency
257
+ name: guard-cucumber
258
+ requirement: &69275900 !ruby/object:Gem::Requirement
434
259
  none: false
435
- requirements:
436
- - - "="
437
- - !ruby/object:Gem::Version
438
- hash: 27
439
- segments:
440
- - 0
441
- - 3
442
- - 4
260
+ requirements:
261
+ - - =
262
+ - !ruby/object:Gem::Version
443
263
  version: 0.3.4
444
- name: guard-cucumber
445
- version_requirements: *id028
446
- prerelease: false
447
- - !ruby/object:Gem::Dependency
448
264
  type: :development
449
- requirement: &id029 !ruby/object:Gem::Requirement
450
- none: false
451
- requirements:
452
- - - ">="
453
- - !ruby/object:Gem::Version
454
- hash: 3
455
- segments:
456
- - 0
457
- version: "0"
265
+ prerelease: false
266
+ version_requirements: *69275900
267
+ - !ruby/object:Gem::Dependency
458
268
  name: libnotify
459
- version_requirements: *id029
269
+ requirement: &69209750 !ruby/object:Gem::Requirement
270
+ none: false
271
+ requirements:
272
+ - - ! '>='
273
+ - !ruby/object:Gem::Version
274
+ version: '0'
275
+ type: :development
460
276
  prerelease: false
461
- - !ruby/object:Gem::Dependency
277
+ version_requirements: *69209750
278
+ - !ruby/object:Gem::Dependency
279
+ name: rb-inotify
280
+ requirement: &69209490 !ruby/object:Gem::Requirement
281
+ none: false
282
+ requirements:
283
+ - - ! '>='
284
+ - !ruby/object:Gem::Version
285
+ version: '0'
462
286
  type: :development
463
- requirement: &id030 !ruby/object:Gem::Requirement
287
+ prerelease: false
288
+ version_requirements: *69209490
289
+ - !ruby/object:Gem::Dependency
290
+ name: nifty-generators
291
+ requirement: &69208730 !ruby/object:Gem::Requirement
464
292
  none: false
465
- requirements:
466
- - - ">="
467
- - !ruby/object:Gem::Version
468
- hash: 3
469
- segments:
470
- - 0
471
- version: "0"
472
- name: rb-inotify
473
- version_requirements: *id030
293
+ requirements:
294
+ - - ! '>='
295
+ - !ruby/object:Gem::Version
296
+ version: '0'
297
+ type: :development
474
298
  prerelease: false
475
- - !ruby/object:Gem::Dependency
299
+ version_requirements: *69208730
300
+ - !ruby/object:Gem::Dependency
301
+ name: factory_girl
302
+ requirement: &69208420 !ruby/object:Gem::Requirement
303
+ none: false
304
+ requirements:
305
+ - - ~>
306
+ - !ruby/object:Gem::Version
307
+ version: 2.1.0
476
308
  type: :development
477
- requirement: &id031 !ruby/object:Gem::Requirement
309
+ prerelease: false
310
+ version_requirements: *69208420
311
+ - !ruby/object:Gem::Dependency
312
+ name: ruby-debug19
313
+ requirement: &69208140 !ruby/object:Gem::Requirement
478
314
  none: false
479
- requirements:
480
- - - ">="
481
- - !ruby/object:Gem::Version
482
- hash: 3
483
- segments:
484
- - 0
485
- version: "0"
486
- name: nifty-generators
487
- version_requirements: *id031
315
+ requirements:
316
+ - - ! '>='
317
+ - !ruby/object:Gem::Version
318
+ version: '0'
319
+ type: :development
488
320
  prerelease: false
489
- description: Allows you to save menu items in the database. You can create your own renderer.
490
- email: ramon@tayag.net
321
+ version_requirements: *69208140
322
+ description: Allows you to save menu items in the database. You can create your own
323
+ renderer.
324
+ email:
325
+ - ramon@tayag.net
491
326
  executables: []
492
-
493
327
  extensions: []
494
-
495
- extra_rdoc_files:
496
- - LICENSE.txt
497
- - README.textile
498
- files:
328
+ extra_rdoc_files: []
329
+ files:
499
330
  - .document
331
+ - .gitignore
500
332
  - .rspec
501
333
  - .rvmrc
502
334
  - Gemfile
503
335
  - Gemfile.lock
504
336
  - Guardfile
505
337
  - LICENSE.txt
506
- - README.textile
338
+ - README.md
507
339
  - Rakefile
508
- - VERSION
509
340
  - features/create_menu_items.feature
510
341
  - features/step_definitions/category_steps.rb
511
342
  - features/step_definitions/menu_item_steps.rb
@@ -525,15 +356,24 @@ files:
525
356
  - lib/navi/railtie.rb
526
357
  - lib/navi/renderers/base.rb
527
358
  - lib/navi/renderers/simple_navigation.rb
359
+ - lib/navi/version.rb
528
360
  - navi.gemspec
529
- - spec/blueprints.rb
530
- - spec/dummy/.gitignore
531
361
  - spec/dummy/Rakefile
362
+ - spec/dummy/app/assets/javascripts/application.js
363
+ - spec/dummy/app/assets/javascripts/jquery-ui.js
364
+ - spec/dummy/app/assets/javascripts/jquery-ui.min.js
365
+ - spec/dummy/app/assets/javascripts/jquery.js
366
+ - spec/dummy/app/assets/javascripts/jquery.min.js
367
+ - spec/dummy/app/assets/javascripts/jquery_ujs.js
368
+ - spec/dummy/app/assets/javascripts/menu_items/index.js
369
+ - spec/dummy/app/assets/stylesheets/application.css
532
370
  - spec/dummy/app/controllers/application_controller.rb
533
371
  - spec/dummy/app/controllers/categories_controller.rb
534
372
  - spec/dummy/app/controllers/menu_items_controller.rb
535
373
  - spec/dummy/app/controllers/pages_controller.rb
536
374
  - spec/dummy/app/helpers/application_helper.rb
375
+ - spec/dummy/app/mailers/.gitkeep
376
+ - spec/dummy/app/models/.gitkeep
537
377
  - spec/dummy/app/models/category.rb
538
378
  - spec/dummy/app/models/menu_item.rb
539
379
  - spec/dummy/app/models/page.rb
@@ -563,7 +403,6 @@ files:
563
403
  - spec/dummy/config.ru
564
404
  - spec/dummy/config/application.rb
565
405
  - spec/dummy/config/boot.rb
566
- - spec/dummy/config/cucumber.yml
567
406
  - spec/dummy/config/database.yml
568
407
  - spec/dummy/config/environment.rb
569
408
  - spec/dummy/config/environments/development.rb
@@ -572,112 +411,53 @@ files:
572
411
  - spec/dummy/config/initializers/backtrace_silencers.rb
573
412
  - spec/dummy/config/initializers/inflections.rb
574
413
  - spec/dummy/config/initializers/mime_types.rb
575
- - spec/dummy/config/initializers/navigable.rb
414
+ - spec/dummy/config/initializers/navi.rb
576
415
  - spec/dummy/config/initializers/secret_token.rb
577
416
  - spec/dummy/config/initializers/session_store.rb
417
+ - spec/dummy/config/initializers/wrap_parameters.rb
578
418
  - spec/dummy/config/locales/en.yml
579
- - spec/dummy/config/navigation.rb
580
419
  - spec/dummy/config/routes.rb
581
420
  - spec/dummy/db/migrate/20110607155019_create_menu_items.rb
582
421
  - spec/dummy/db/migrate/20110607155202_create_categories.rb
583
422
  - spec/dummy/db/migrate/20110607160052_create_pages.rb
584
423
  - spec/dummy/db/schema.rb
585
424
  - spec/dummy/db/seeds.rb
586
- - spec/dummy/lib/tasks/.gitkeep
587
- - spec/dummy/lib/tasks/cucumber.rake
425
+ - spec/dummy/lib/assets/.gitkeep
426
+ - spec/dummy/log/.gitkeep
588
427
  - spec/dummy/public/404.html
589
428
  - spec/dummy/public/422.html
590
429
  - spec/dummy/public/500.html
591
430
  - spec/dummy/public/favicon.ico
592
- - spec/dummy/public/images/rails.png
593
- - spec/dummy/public/index.html
594
- - spec/dummy/public/javascripts/application.js
595
- - spec/dummy/public/javascripts/jquery-ui.js
596
- - spec/dummy/public/javascripts/jquery-ui.min.js
597
- - spec/dummy/public/javascripts/jquery.js
598
- - spec/dummy/public/javascripts/jquery.min.js
599
- - spec/dummy/public/javascripts/jquery_ujs.js
600
- - spec/dummy/public/javascripts/menu_items/index.js
601
- - spec/dummy/public/javascripts/rails.js
602
- - spec/dummy/public/robots.txt
603
- - spec/dummy/public/stylesheets/.gitkeep
604
- - spec/dummy/script/cucumber
605
431
  - spec/dummy/script/rails
606
- - spec/dummy/vendor/plugins/.gitkeep
432
+ - spec/factories.rb
607
433
  - spec/navi/helpers_spec.rb
608
434
  - spec/navi/navi_spec.rb
435
+ - spec/navi/navigable_spec.rb
609
436
  - spec/navi/navigator_spec.rb
610
437
  - spec/navi/renderers/simple_navigation_spec.rb
611
438
  - spec/spec_helper.rb
612
- has_rdoc: true
613
- homepage: http://github.com/ramontayag/navi
614
- licenses:
615
- - MIT
439
+ homepage: https://github.com/ramontayag/navi
440
+ licenses: []
616
441
  post_install_message:
617
442
  rdoc_options: []
618
-
619
- require_paths:
443
+ require_paths:
620
444
  - lib
621
- required_ruby_version: !ruby/object:Gem::Requirement
445
+ required_ruby_version: !ruby/object:Gem::Requirement
622
446
  none: false
623
- requirements:
624
- - - ">="
625
- - !ruby/object:Gem::Version
626
- hash: 3
627
- segments:
628
- - 0
629
- version: "0"
630
- required_rubygems_version: !ruby/object:Gem::Requirement
447
+ requirements:
448
+ - - ! '>='
449
+ - !ruby/object:Gem::Version
450
+ version: '0'
451
+ required_rubygems_version: !ruby/object:Gem::Requirement
631
452
  none: false
632
- requirements:
633
- - - ">="
634
- - !ruby/object:Gem::Version
635
- hash: 3
636
- segments:
637
- - 0
638
- version: "0"
453
+ requirements:
454
+ - - ! '>='
455
+ - !ruby/object:Gem::Version
456
+ version: '0'
639
457
  requirements: []
640
-
641
- rubyforge_project:
642
- rubygems_version: 1.6.2
458
+ rubyforge_project: navi
459
+ rubygems_version: 1.8.11
643
460
  signing_key:
644
461
  specification_version: 3
645
- summary: Allows you to save menu items in the database.
646
- test_files:
647
- - spec/blueprints.rb
648
- - spec/dummy/app/controllers/application_controller.rb
649
- - spec/dummy/app/controllers/categories_controller.rb
650
- - spec/dummy/app/controllers/menu_items_controller.rb
651
- - spec/dummy/app/controllers/pages_controller.rb
652
- - spec/dummy/app/helpers/application_helper.rb
653
- - spec/dummy/app/models/category.rb
654
- - spec/dummy/app/models/menu_item.rb
655
- - spec/dummy/app/models/page.rb
656
- - spec/dummy/app/widgets/menu_editor/category/form_widget.rb
657
- - spec/dummy/app/widgets/menu_editor/page/form_widget.rb
658
- - spec/dummy/app/widgets/menu_editor/tree_widget.rb
659
- - spec/dummy/app/widgets/menu_editor_widget.rb
660
- - spec/dummy/config/application.rb
661
- - spec/dummy/config/boot.rb
662
- - spec/dummy/config/environment.rb
663
- - spec/dummy/config/environments/development.rb
664
- - spec/dummy/config/environments/production.rb
665
- - spec/dummy/config/environments/test.rb
666
- - spec/dummy/config/initializers/backtrace_silencers.rb
667
- - spec/dummy/config/initializers/inflections.rb
668
- - spec/dummy/config/initializers/mime_types.rb
669
- - spec/dummy/config/initializers/navigable.rb
670
- - spec/dummy/config/initializers/secret_token.rb
671
- - spec/dummy/config/initializers/session_store.rb
672
- - spec/dummy/config/navigation.rb
673
- - spec/dummy/config/routes.rb
674
- - spec/dummy/db/migrate/20110607155019_create_menu_items.rb
675
- - spec/dummy/db/migrate/20110607155202_create_categories.rb
676
- - spec/dummy/db/migrate/20110607160052_create_pages.rb
677
- - spec/dummy/db/schema.rb
678
- - spec/dummy/db/seeds.rb
679
- - spec/navi/helpers_spec.rb
680
- - spec/navi/navi_spec.rb
681
- - spec/navi/navigator_spec.rb
682
- - spec/navi/renderers/simple_navigation_spec.rb
683
- - spec/spec_helper.rb
462
+ summary: Database-backed menu
463
+ test_files: []