simple-navigation 3.14.0 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/.rspec +1 -0
- data/.travis.yml +10 -2
- data/CHANGELOG.md +400 -0
- data/Guardfile +4 -2
- data/README.md +1 -1
- data/gemfiles/.bundle/config +2 -0
- data/gemfiles/rails-3-2-stable.gemfile +10 -0
- data/gemfiles/rails-4-1-stable.gemfile +6 -0
- data/gemfiles/rails-4-2-stable.gemfile +7 -0
- data/generators/navigation_config/navigation_config_generator.rb +0 -1
- data/generators/navigation_config/templates/config/navigation.rb +18 -15
- data/lib/simple_navigation.rb +25 -42
- data/lib/simple_navigation/adapters/rails.rb +1 -24
- data/lib/simple_navigation/adapters/sinatra.rb +2 -11
- data/lib/simple_navigation/config_file.rb +36 -0
- data/lib/simple_navigation/config_file_finder.rb +42 -0
- data/lib/simple_navigation/{core/configuration.rb → configuration.rb} +7 -1
- data/lib/simple_navigation/{rendering/helpers.rb → helpers.rb} +0 -4
- data/lib/simple_navigation/{core/item.rb → item.rb} +76 -85
- data/lib/simple_navigation/{core/item_adapter.rb → item_adapter.rb} +3 -17
- data/lib/simple_navigation/{core/item_container.rb → item_container.rb} +23 -14
- data/lib/simple_navigation/{core/items_provider.rb → items_provider.rb} +0 -0
- data/lib/simple_navigation/railtie.rb +7 -0
- data/lib/simple_navigation/renderer.rb +12 -0
- data/lib/simple_navigation/{rendering/renderer → renderer}/base.rb +1 -1
- data/lib/simple_navigation/{rendering/renderer → renderer}/breadcrumbs.rb +0 -0
- data/lib/simple_navigation/{rendering/renderer → renderer}/json.rb +2 -0
- data/lib/simple_navigation/{rendering/renderer → renderer}/links.rb +0 -0
- data/lib/simple_navigation/{rendering/renderer → renderer}/list.rb +0 -0
- data/lib/simple_navigation/{rendering/renderer → renderer}/text.rb +0 -0
- data/lib/simple_navigation/version.rb +1 -1
- data/simple-navigation.gemspec +5 -4
- data/spec/fake_app/config/navigation.rb +6 -0
- data/spec/fake_app/rails_app.rb +35 -0
- data/spec/initializers/coveralls.rb +3 -0
- data/spec/initializers/have_css_matcher.rb +8 -3
- data/spec/initializers/memfs.rb +7 -0
- data/spec/initializers/rails.rb +4 -0
- data/spec/initializers/rspec.rb +7 -0
- data/spec/integration/rendering_navigation_spec.rb +12 -0
- data/spec/{lib/simple_navigation → simple_navigation}/adapters/padrino_spec.rb +0 -2
- data/spec/{lib/simple_navigation → simple_navigation}/adapters/rails_spec.rb +36 -93
- data/spec/{lib/simple_navigation → simple_navigation}/adapters/sinatra_spec.rb +4 -6
- data/spec/simple_navigation/config_file_finder_spec.rb +50 -0
- data/spec/simple_navigation/config_file_spec.rb +25 -0
- data/spec/{lib/simple_navigation/core → simple_navigation}/configuration_spec.rb +29 -19
- data/spec/{lib/simple_navigation/rendering → simple_navigation}/helpers_spec.rb +10 -13
- data/spec/{lib/simple_navigation/core → simple_navigation}/item_adapter_spec.rb +14 -11
- data/spec/{lib/simple_navigation/core → simple_navigation}/item_container_spec.rb +130 -42
- data/spec/simple_navigation/item_spec.rb +467 -0
- data/spec/{lib/simple_navigation/core → simple_navigation}/items_provider_spec.rb +1 -3
- data/spec/{lib/simple_navigation/rendering → simple_navigation}/renderer/base_spec.rb +34 -36
- data/spec/{lib/simple_navigation/rendering → simple_navigation}/renderer/breadcrumbs_spec.rb +4 -7
- data/spec/{lib/simple_navigation/rendering → simple_navigation}/renderer/json_spec.rb +5 -11
- data/spec/{lib/simple_navigation/rendering → simple_navigation}/renderer/links_spec.rb +5 -8
- data/spec/{lib/simple_navigation/rendering → simple_navigation}/renderer/list_spec.rb +4 -7
- data/spec/{lib/simple_navigation/rendering → simple_navigation}/renderer/text_spec.rb +4 -7
- data/spec/simple_navigation_spec.rb +190 -0
- data/spec/spec_helper.rb +29 -35
- metadata +103 -68
- data/CHANGELOG +0 -292
- data/lib/simple_navigation/core.rb +0 -5
- data/lib/simple_navigation/rails_controller_methods.rb +0 -164
- data/lib/simple_navigation/rendering.rb +0 -12
- data/rails/init.rb +0 -1
- data/spec/lib/simple_navigation/core/item_spec.rb +0 -703
- data/spec/lib/simple_navigation/rails_controller_methods_spec.rb +0 -270
- data/spec/lib/simple_navigation_spec.rb +0 -300
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ad8da13d14c0e7c763bca6b40039e19c1843dad
|
4
|
+
data.tar.gz: 83088e82943523c0b06867369f346ce65bb95ccf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8249f04666707e37b2f9f136690f030817fe1f5a3fd9d624c51b18fab8b42cbaebd5f9223b9577eaccb510ae22eaa6b8e52e2705957b7d8e5b4fcd8beaeb2bf
|
7
|
+
data.tar.gz: 19fbf008fa4145979586582d37126cdb9669baabbafcfc8762016f69ad606b4680997a1c9cdcf28d77c71237b6e95b93fa43f6ccbcb94b55d3e17a0f1bf7b269
|
data/.gitignore
CHANGED
data/.rspec
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,400 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## 4.0.0
|
4
|
+
|
5
|
+
* added two new configuration options ignore_query_params_on_auto_highlight and ignore_anchors_on_auto_highlight
|
6
|
+
* Remove dependency on classic-style Sinatra applications and enable use with modular-style apps. Credits to Stefan Kolb.
|
7
|
+
* Item can now receive a block as `name`
|
8
|
+
* It's now possible to set a global `highlight_on_subpath` option instead of adding it to every item
|
9
|
+
* Creating an Item doesn't remove options anymore
|
10
|
+
* Creating an Item no longer changed its container, only adding it to a container
|
11
|
+
does
|
12
|
+
* `Item#autogenerate_item_ids?` has been removed
|
13
|
+
* `SN.config_file_name`, `SN.config_file` and `SN.config_file?` have been
|
14
|
+
removed
|
15
|
+
* `ConfigFileFinder` and `ConfigFile` handle the configuration logic
|
16
|
+
* File organization was been changed to reflect the Ruby namespacing
|
17
|
+
|
18
|
+
## 3.13.0
|
19
|
+
|
20
|
+
* consider_item_names_as_safe is now false by default. Removed deprecation warning
|
21
|
+
|
22
|
+
## 3.12.2
|
23
|
+
|
24
|
+
* Fixing issue #154. Thanks to Simon Curtois.
|
25
|
+
|
26
|
+
## 3.12.1
|
27
|
+
|
28
|
+
* bugfix (error in generator)
|
29
|
+
|
30
|
+
## 3.12.0
|
31
|
+
|
32
|
+
* Relax hash constraint on item_adapter. Thanks to Ramon Tayag.
|
33
|
+
* Fixed hidden special character in navigation template. Credits to Stef
|
34
|
+
Lewandowski
|
35
|
+
* Added full MIT license text. Thanks to Ben Armstrong.
|
36
|
+
* Added license to gemspec. Thanks to Troy Thompson.
|
37
|
+
* Allow defining other html attributes than :id and :class on menu container.
|
38
|
+
Credits to Jacek Tomaszewski.
|
39
|
+
* Added new config option "consider_item_names_as_safe". Thanks to Alexey
|
40
|
+
Naumov.
|
41
|
+
* Big cleanup of specs, removed jeweler in favor of the "bundler" way. Huge
|
42
|
+
thank you to Simon Courtois.
|
43
|
+
* Added more powerful name generator which yields the item itself in addition to
|
44
|
+
the item's name. Credits to Simon Curtois.
|
45
|
+
|
46
|
+
## 3.11.0
|
47
|
+
|
48
|
+
* Added Json renderer. Thanks to Alberto Avila.
|
49
|
+
|
50
|
+
## 3.10.1
|
51
|
+
|
52
|
+
* Padrino adapter now returns "html_safe"d content_tag
|
53
|
+
|
54
|
+
## 3.10.0
|
55
|
+
|
56
|
+
* Added ability to set selected_class on container level. Credits to Joost
|
57
|
+
Hietbrink.
|
58
|
+
* do not highlight items that are only partial matches. Thanks to Troy Thompson.
|
59
|
+
* adding support for rails 4. Credits to Samer Masry.
|
60
|
+
|
61
|
+
## 3.9.0
|
62
|
+
|
63
|
+
* Added ability to pass a block to render_navigation for configuring dynamic
|
64
|
+
navigation items (instead of passing :items). Credits to Ronald Chan.
|
65
|
+
|
66
|
+
## 3.8.0
|
67
|
+
|
68
|
+
* Changed the way the context is fetched. Fixes incompatibility with Gretel.
|
69
|
+
Thanks to Ivan Kasatenko.
|
70
|
+
* Added :join_with option to links renderer. Thanks to Stefan Melmuk.
|
71
|
+
* Added :prefix option to breadcrumb renderer. Credits to Rodrigo Manhães.
|
72
|
+
* Added :ordered option for allowing list renderer to render an `<ol>` rather
|
73
|
+
than a `<ul>`.
|
74
|
+
* Sinatra adapter no longer renders attributes with nil values as attributes
|
75
|
+
with empty strings in the output, instead electing not to render the attribute
|
76
|
+
at all. Thanks to revdan for pointing this out.
|
77
|
+
|
78
|
+
## 3.7.0
|
79
|
+
|
80
|
+
* Added new adapater for working with the Nanoc static site generation
|
81
|
+
framework.
|
82
|
+
* Fix issue #22 - last link in a breadcrumb trail may now be rendered as static
|
83
|
+
text insted by supplying :static_leaf => true as an option
|
84
|
+
* Allow breadcrumbs to be provided with link id and classes by supplying
|
85
|
+
`:allow_classes_and_ids => true` as an option
|
86
|
+
|
87
|
+
## 3.6.0
|
88
|
+
|
89
|
+
* Added linkless items functionality - the `url` parameter is now optional,
|
90
|
+
items which aren't links will be rendered within a 'span' element rather than
|
91
|
+
an 'a' element. `options` remain optional (defaults to an empty Hash).
|
92
|
+
`options` may be provided without providing a `url` (detected by checking if
|
93
|
+
the `url` parameter is a Hash or otherwise).
|
94
|
+
|
95
|
+
## 3.5.1
|
96
|
+
|
97
|
+
* Fixed specs related to testing name_generator functionality - stub the
|
98
|
+
name_generator method rather than calling it to ensure subsequent tests aren't
|
99
|
+
affected.
|
100
|
+
|
101
|
+
## 3.5.0
|
102
|
+
|
103
|
+
* Added (configurable) "simple-navigation-active-leaf" class to last selected
|
104
|
+
element and elements that have :highlights_on return true. Thanks to Frank
|
105
|
+
Schumacher (thenoseman).
|
106
|
+
|
107
|
+
## 3.4.2
|
108
|
+
|
109
|
+
* Improve Gemfile dependencies with :development and :rails groups.
|
110
|
+
|
111
|
+
## 3.4.1
|
112
|
+
|
113
|
+
* Rerelease using ruby-1.8.7 rather than ruby-1.9.2 in order that the
|
114
|
+
rubygems.org gemspec is generated in a compatible fashion.
|
115
|
+
|
116
|
+
## 3.4.0
|
117
|
+
|
118
|
+
* Added Gemfile for easier development with Bundler. Thanks to Josep Jaume.
|
119
|
+
* modified :highlights_on option to accept a :subpath option (as well as Proc
|
120
|
+
and Regexp forms). This can be used to automatically highlight an item even
|
121
|
+
for items within a subpath. Thanks to Josep Jaume.
|
122
|
+
|
123
|
+
## 3.3.4
|
124
|
+
|
125
|
+
* modified :highlights_on option to accept a Proc (as well as the existing
|
126
|
+
Regexp form). This can be used to provide specific highlighting conditions
|
127
|
+
inline. Thanks to superlou for sparking the idea for the concept.
|
128
|
+
|
129
|
+
## 3.3.3
|
130
|
+
|
131
|
+
* Bugfix in Adapters::Sinatra#current_url? (compares unencoded URIs). Thanks to
|
132
|
+
Matthew Gast.
|
133
|
+
|
134
|
+
## 3.3.2
|
135
|
+
|
136
|
+
* The patch listed in 3.3.1 somehow did not make it into the gem... sorry.
|
137
|
+
Re-releasing...
|
138
|
+
|
139
|
+
## 3.3.1
|
140
|
+
|
141
|
+
* bugfix in sinatra adapter. Use Rack::Request#scheme instead of
|
142
|
+
`Rack::Request#protocol`. Credits to Matthew Gast.
|
143
|
+
|
144
|
+
## 3.3.0
|
145
|
+
|
146
|
+
* add a new method `active_navigation_item_key` which returns the symbol for the
|
147
|
+
currently selected navigation item in a similar way to
|
148
|
+
`active_navigation_item_name` does for the name (useful for CSS class styling
|
149
|
+
for eg.)
|
150
|
+
* open up the helper API to provide `active_navigation_item` and
|
151
|
+
`active_navigation_item_container` methods to make it easy to access the
|
152
|
+
items/containers should it be necessary (came for free with the above
|
153
|
+
refactoring)
|
154
|
+
* isolate the apply_defaults and load_config private methods from
|
155
|
+
`ActionController` mixin leakage by refactoring to module class instance
|
156
|
+
methods
|
157
|
+
* addition of test coverage for the added helpers within helpers_spec.rb
|
158
|
+
* inclusion of new helpers within the rails adapter and minor refactoring to DRY
|
159
|
+
up the helper_method invocations
|
160
|
+
* addition of test coverage for the newly included helpers
|
161
|
+
* Credits to Mark J. Titorenko for all the changes in this release! Thanks.
|
162
|
+
|
163
|
+
## 3.2.0
|
164
|
+
|
165
|
+
* Added Renderer::Text for rendering selected navigation items without markup
|
166
|
+
(useful for dynamic page titles). Credits to Tim Cowlishaw.
|
167
|
+
* Added ability to add custom markup around item names specifying a
|
168
|
+
`name_generator` in the config file. Thanks to Jack Dempsey.
|
169
|
+
|
170
|
+
## 3.1.1
|
171
|
+
|
172
|
+
* `Item#selected_by_url?` now strips anchors from the item's url before
|
173
|
+
comparing it with the current request's url. Credits to opengovernment.
|
174
|
+
|
175
|
+
## 3.1.0
|
176
|
+
|
177
|
+
* added new helper method `active_navigation_item_name` to render the name of
|
178
|
+
the currently active item
|
179
|
+
|
180
|
+
## 3.0.2
|
181
|
+
|
182
|
+
* `dom_id` and `dom_class` can now be set as option in the item's definition
|
183
|
+
(useful for dynamic menu items).
|
184
|
+
|
185
|
+
## 3.0.1
|
186
|
+
|
187
|
+
* allow controller instance variables named @template for rails3 apps. Credits
|
188
|
+
to cmartyn.
|
189
|
+
* added possibility to specify and item's URL as a block which is evaulated
|
190
|
+
after the :if and :unless conditions have been checked. Credits to Nicholas
|
191
|
+
Firth-McCoy.
|
192
|
+
* upgraded to rspec 2.0.0
|
193
|
+
* fixed cgi error in sinatra adapter. Credits to Jack Dempsey.
|
194
|
+
|
195
|
+
## 3.0.0
|
196
|
+
|
197
|
+
* added ability to specify dynamic items using an array of hashes. Credits to
|
198
|
+
Anshul Khandelwal for input and discussion.
|
199
|
+
* added ability to specify attributes for the generated link-tag in list
|
200
|
+
renderer (up to now the attributes have been applied to the li-tag). Credits
|
201
|
+
to Anthony Navarre for input and discussion.
|
202
|
+
|
203
|
+
## 3.0.0.beta2
|
204
|
+
|
205
|
+
* moving code for initializing plugin in sinatra to separate gem
|
206
|
+
|
207
|
+
## 3.0.0.beta1
|
208
|
+
|
209
|
+
* moving deprecated rails controller methods (navigation, current_navigation) to
|
210
|
+
separate file 'rails_controller_methods'. Deprecations removed. File can be
|
211
|
+
required explicitly if controller methods should be still available.
|
212
|
+
* decoupling from Rails. Introducing the concept of adapters to work with
|
213
|
+
several frameworks.
|
214
|
+
* tested with Rails 3.0.0
|
215
|
+
* adding support for Sinatra and Padrino frameworks.
|
216
|
+
* cherry picking active_support stuff instead of requiring the whole bunch
|
217
|
+
(tested with active_support >= 2.3.2 and 3.0.0)
|
218
|
+
* created public sample project which includes demo for Rails2, Rails3, Sinatra
|
219
|
+
and Padrino (will be available on github soon)
|
220
|
+
* better src file organization (adapters/core/rendering folders)
|
221
|
+
|
222
|
+
## 2.7.3
|
223
|
+
|
224
|
+
* initializing SimpleNavigation.config_file_path with empty array (was `nil`
|
225
|
+
before). Allows for adding paths before gem has been initialized.
|
226
|
+
|
227
|
+
## 2.7.2
|
228
|
+
|
229
|
+
* added ability to have more than one config_file_path (useful if
|
230
|
+
simple-navigation is used as a part of another gem/plugin). Credits to Luke
|
231
|
+
Imhoff.
|
232
|
+
|
233
|
+
## 2.7.1
|
234
|
+
|
235
|
+
* added SimpleNavigation.request and SimpleNavigation.request_uri as abstraction
|
236
|
+
for getting request_uri (rails2/rails3)
|
237
|
+
* use request.fullpath instead of request.request_uri for Rails3. Credits to Ben
|
238
|
+
Langfeld.
|
239
|
+
|
240
|
+
## 2.7.0
|
241
|
+
|
242
|
+
* added new option :highlights_on to item definition in config-file. Specify a
|
243
|
+
regexp which is matched against the current_uri to determine if an item is
|
244
|
+
active or not. Replaces explicit highlighting in controllers.
|
245
|
+
* deprecated explicit highlighting in the controllers.
|
246
|
+
|
247
|
+
## 2.6.0
|
248
|
+
|
249
|
+
* added rendering option 'skip_if_empty' to Renderer::List to avoid rendering of
|
250
|
+
empty ul-tags
|
251
|
+
* added breadcrumbs renderer incl. specs. A big thanks to Markus Schirp.
|
252
|
+
* added ability to register a renderer / specify your renderer as symbol in
|
253
|
+
render_navigation
|
254
|
+
* renderer can be specified in render_navigation. Credits to Andi Bade from
|
255
|
+
Galaxy Cats.
|
256
|
+
|
257
|
+
## 2.5.4
|
258
|
+
|
259
|
+
* bugfix: SimpleNavigation.config_file? without params does not check for
|
260
|
+
`_navigation.rb` file anymore. Credits to Markus Schirp.
|
261
|
+
|
262
|
+
## 2.5.3
|
263
|
+
|
264
|
+
* removed deprecated railtie_name from simple_navigation/railtie. Credits to
|
265
|
+
Markus Schirp.
|
266
|
+
|
267
|
+
## 2.5.2
|
268
|
+
|
269
|
+
* added Rails3 generator for navigation_config.rb. Thanks to Josep Jaume Rey.
|
270
|
+
|
271
|
+
## 2.5.1
|
272
|
+
|
273
|
+
* set template correctly for Rails3 (brings auto highlighting to life again).
|
274
|
+
Credits to Josep Jaume Rey.
|
275
|
+
|
276
|
+
## 2.5.0
|
277
|
+
|
278
|
+
* added new renderer Renderer::Links to simply render the navigation as links
|
279
|
+
inside a div.
|
280
|
+
* also make item.name html_safe (in order you have html_code in the item's
|
281
|
+
name). Thanks again, Johan Svensson.
|
282
|
+
|
283
|
+
## 2.4.2
|
284
|
+
|
285
|
+
* Rails 3.0.0.beta2 compatibility
|
286
|
+
* Renderer::List --> make content of ul-tag html_safe for rails 3.0.0.beta2 (due
|
287
|
+
to rails3 XSS protection). Credits to Johan Svensson and Disha Albaqui.
|
288
|
+
* updated copyright
|
289
|
+
* reduced visibility of 'sn_set_navigation' to protected
|
290
|
+
|
291
|
+
## 2.4.1
|
292
|
+
|
293
|
+
* removing depencency to rails. It installs the newest rails, even if a matching
|
294
|
+
version is present. why is that?
|
295
|
+
|
296
|
+
## 2.4.0
|
297
|
+
|
298
|
+
* added Rails3 compatibility
|
299
|
+
* added Jeweler::Gemcutter Tasks to Rakefile
|
300
|
+
|
301
|
+
## 2.2.3
|
302
|
+
|
303
|
+
* changed error handling in config-file. Do not ignore errors in config-file
|
304
|
+
anymore.
|
305
|
+
* only load config-file if it is present. Needed when directly providing items
|
306
|
+
in render_navigation.
|
307
|
+
|
308
|
+
## 2.2.2
|
309
|
+
|
310
|
+
* added lib/simple-navigation.rb to allow 'require simple-navigation' or
|
311
|
+
'config.gem "simple-navigation"'
|
312
|
+
|
313
|
+
## 2.2.1
|
314
|
+
|
315
|
+
* Corrected URL to API-Doc on rubyforge in README
|
316
|
+
|
317
|
+
## 2.2.0
|
318
|
+
|
319
|
+
* Allow Ranges for :level option. Credits to Ying Tsen Hong.
|
320
|
+
* Changing the API of `Helpers#render_navigation`. Now supports Ranges for
|
321
|
+
`:level` option and :expand_all to render all levels as expanded. Old Api is
|
322
|
+
still supported, but deprecated.
|
323
|
+
* Deprecated `render_all_levels` in config-file.
|
324
|
+
|
325
|
+
## 2.1.0
|
326
|
+
|
327
|
+
* included Ben Marini's commit which allows individual id-generators.
|
328
|
+
Thanks Ben!
|
329
|
+
* added ability to specify navigation items through items_provider. This is
|
330
|
+
useful for generating the navigation dynamically (e.g. from database)
|
331
|
+
* items can now even be passed directly into render_navigation method.
|
332
|
+
|
333
|
+
## 2.0.1
|
334
|
+
|
335
|
+
* fixed handling of a non-existent explicit navigation item for a navigation
|
336
|
+
context
|
337
|
+
|
338
|
+
## 2.0.0
|
339
|
+
|
340
|
+
* added auto_highlight feature. Active navigation is determined by comparing
|
341
|
+
urls, no need to explicitly set it in the controllers anymore. Thanks to Jack
|
342
|
+
Dempsey and Florian Hanke for the support on this.
|
343
|
+
* added ability to create multi-level navigations (not just limited to primary
|
344
|
+
and secondary navigation). Thanks again to Jack Dempsey for the motivation ;-)
|
345
|
+
* simplified the process to explicitly set the navigation in the controller
|
346
|
+
(where needed) - only deepest level has to be specified
|
347
|
+
* made auto_highlight feature configurable both on global and item_container's
|
348
|
+
level
|
349
|
+
* config file is now evaluated in template if ever possible (not in controller
|
350
|
+
anymore)
|
351
|
+
|
352
|
+
## 1.4.2
|
353
|
+
|
354
|
+
* explicitly loading all source files when requiring 'simple_navigation'.
|
355
|
+
|
356
|
+
## 1.4.0
|
357
|
+
|
358
|
+
* added the capability to have several navigation-contexts
|
359
|
+
* doc-fix
|
360
|
+
|
361
|
+
## 1.3.1
|
362
|
+
|
363
|
+
* now compliant with ruby 1.9.1 (thanks to Gernot Kogler for the feedback)
|
364
|
+
|
365
|
+
## 1.3.0
|
366
|
+
|
367
|
+
* `render_all_levels` option allows to render all subnavigation independent from
|
368
|
+
the active primary navigation ('full open tree'). Userful for javascript
|
369
|
+
menus. Thanks to Richard Hulse.
|
370
|
+
* ability to turn off automatic generation of dom_ids for the list items
|
371
|
+
(autogenerate_item_ids). Credits again to Richard Hulse.
|
372
|
+
* ability to specify dom_class for primary and secondary lists. Thanks Richard!
|
373
|
+
|
374
|
+
## 1.2.2
|
375
|
+
|
376
|
+
* renderers now have access to request_forgery_protection stuff (this allows
|
377
|
+
delete-links as navigation-items)
|
378
|
+
|
379
|
+
## 1.2.1
|
380
|
+
|
381
|
+
* changed way to include render_*-helper_methods into view (including them into
|
382
|
+
Controller and declaring them as helper_methods instead of adding whole module
|
383
|
+
as Helper). this seems to be more reliable under certain conditions. Credits
|
384
|
+
to Gernot Kogler.
|
385
|
+
|
386
|
+
## 1.2.0
|
387
|
+
|
388
|
+
* added capability to add conditions to navigation-items
|
389
|
+
(`primary.item key, name, url, :if => Proc.new {current_user.admin?}`)
|
390
|
+
|
391
|
+
## 1.1.2
|
392
|
+
|
393
|
+
* Bugfix: config now gets evaluated on every render_navigation call. Credits to
|
394
|
+
Joël Azémar.
|
395
|
+
* Config file gets reloaded on every render_navigation call in development mode.
|
396
|
+
Only load config file on server start in production mode.
|
397
|
+
|
398
|
+
## 1.1.1
|
399
|
+
|
400
|
+
* Change plugin into a GemPlugin
|
data/Guardfile
CHANGED
@@ -1,5 +1,7 @@
|
|
1
|
-
guard :rspec do
|
1
|
+
guard :rspec, all_after_pass: true, failed_mode: :none do
|
2
2
|
watch(%r{^spec/.+_spec\.rb$})
|
3
|
-
watch(%r{^lib/(.+)\.rb$}) { |m| "spec
|
3
|
+
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
4
|
+
watch(%r{^spec/fake_app/.+\.rb$}) { 'spec/integration' }
|
5
|
+
|
4
6
|
watch('spec/spec_helper.rb') { 'spec' }
|
5
7
|
end
|