forked from codeplant/simple-navigation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CHANGELOG
182 lines (108 loc) · 7.46 KB
/
CHANGELOG
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
*3.2.0
* Added Renderer::Text for rendering selected navigation items without markup (useful for dynamic page titles). Credits to Tim Cowlishaw.
* Added ability to add custom markup around item names specifying a name_generator in the config file. Thanks to Jack Dempsey.
*3.1.1
* Item#selected_by_url? now strips anchors from the item's url before comparing it with the current request's url. Credits to opengovernment.
*3.1.0
* added new helper method 'active_navigation_item_name' to render the name of the currently active item
*3.0.2
* dom_id and dom_class can now be set as option in the item's definition (useful for dynamic menu items).
*3.0.1
* allow controller instance variables named @template for rails3 apps. Credits to cmartyn.
* added possibility to specify and item's URL as a block which is evaulated after the :if and :unless conditions have been checked. Credits to Nicholas Firth-McCoy.
* upgraded to rspec 2.0.0
* fixed cgi error in sinatra adapter. Credits to Jack Dempsey.
*3.0.0
* added ability to specify dynamic items using an array of hashes. Credits to Anshul Khandelwal for input and discussion.
* added ability to specify attributes for the generated link-tag in list renderer (up to now the attributes have been applied to the li-tag). Credits to Anthony Navarre for input and discussion.
*3.0.0.beta2
* moving code for initializing plugin in sinatra to separate gem
*3.0.0.beta1
* moving deprecated rails controller methods (navigation, current_navigation) to separate file 'rails_controller_methods'. Deprecations removed. File can be required explicitly if controller methods should be still available.
* decoupling from Rails. Introducing the concept of adapters to work with several frameworks.
* tested with Rails 3.0.0
* adding support for Sinatra and Padrino frameworks.
* cherry picking active_support stuff instead of requiring the whole bunch (tested with active_support >= 2.3.2 and 3.0.0)
* created public sample project which includes demo for Rails2, Rails3, Sinatra and Padrino (will be available on github soon)
* better src file organization (adapters/core/rendering folders)
*2.7.3
* initializing SimpleNavigation.config_file_path with empty array (was nil before). Allows for adding paths before gem has been initialized.
*2.7.2
* added ability to have more than one config_file_path (useful if simple-navigation is used as a part of another gem/plugin). Credits to Luke Imhoff.
*2.7.1
* added SimpleNavigation.request and SimpleNavigation.request_uri as abstraction for getting request_uri (rails2/rails3)
* use request.fullpath instead of request.request_uri for Rails3. Credits to Ben Langfeld.
*2.7.0
* added new option :highlights_on to item definition in config-file. Specify a regexp which is matched against the current_uri to determine if an item is active or not. Replaces explicit highlighting in controllers.
* deprecated explicit highlighting in the controllers.
*2.6.0
* added rendering option 'skip_if_empty' to Renderer::List to avoid rendering of empty ul-tags
* added breadcrumbs renderer incl. specs. A big thanks to Markus Schirp.
* added ability to register a renderer / specify your renderer as symbol in render_navigation
* renderer can be specified in render_navigation. Credits to Andi Bade from Galaxy Cats.
*2.5.4
* bugfix: SimpleNavigation.config_file? without params does not check for _navigation.rb file anymore. Credits to Markus Schirp.
*2.5.3
* removed deprecated railtie_name from simple_navigation/railtie. Credits to Markus Schirp.
*2.5.2
* added Rails3 generator for navigation_config.rb. Thanks to Josep Jaume Rey.
*2.5.1
* set template correctly for Rails3 (brings auto highlighting to life again). Credits to Josep Jaume Rey.
*2.5.0
* added new renderer Renderer::Links to simply render the navigation as links inside a div.
* also make item.name html_safe (in order you have html_code in the item's name). Thanks again, Johan Svensson.
*2.4.2
* Rails 3.0.0.beta2 compatibility
* Renderer::List --> make content of ul-tag html_safe for rails 3.0.0.beta2 (due to rails3 XSS protection). Credits to Johan Svensson and Disha Albaqui.
* updated copyright
* reduced visibility of 'sn_set_navigation' to protected
*2.4.1
* removing depencency to rails. It installs the newest rails, even if a matching version is present. why is that?
*2.4.0
* added Rails3 compatibility
* added Jeweler::Gemcutter Tasks to Rakefile
*2.2.3
* changed error handling in config-file. Do not ignore errors in config-file anymore.
* only load config-file if it is present. Needed when directly providing items in render_navigation.
*2.2.2
* added lib/simple-navigation.rb to allow 'require simple-navigation' or 'config.gem "simple-navigation"'
*2.2.1
* Corrected URL to API-Doc on rubyforge in README
*2.2.0
* Allow Ranges for :level option. Credits to Ying Tsen Hong.
* Changing the API of Helpers#render_navigation. Now supports Ranges for :level option and :expand_all to render all levels as expanded. Old Api is still supported, but deprecated.
* Deprecated render_all_levels in config-file.
*2.1.0
* included Ben Marini's commit which allows individual id-generators. Thanks Ben!
* added ability to specify navigation items through items_provider. This is useful for generating the navigation dynamically (e.g. from database)
* items can now even be passed directly into render_navigation method.
*2.0.1
* fixed handling of a non-existent explicit navigation item for a navigation context
*2.0.0
* added auto_highlight feature. Active navigation is determined by comparing urls, no need to explicitly set it in the controllers anymore. Thanks to Jack Dempsey and Florian Hanke for the support on this.
* added ability to create multi-level navigations (not just limited to primary and secondary navigation). Thanks again to Jack Dempsey for the motivation ;-)
* simplified the process to explicitly set the navigation in the controller (where needed) - only deepest level has to be specified
* made auto_highlight feature configurable both on global and item_container's level
* config file is now evaluated in template if ever possible (not in controller anymore)
*1.4.2
* explicitly loading all source files when requiring 'simple_navigation'.
*1.4.0
* added the capability to have several navigation-contexts
* doc-fix
*1.3.1
* now compliant with ruby 1.9.1 (thanks to Gernot Kogler for the feedback)
*1.3.0
* render_all_levels-option allows to render all subnavigation independent from the active primary navigation ('full open tree'). Userful for javascript menus. Thanks to Richard Hulse.
* ability to turn off automatic generation of dom_ids for the list items (autogenerate_item_ids). Credits again to Richard Hulse.
* ability to specify dom_class for primary and secondary lists. Thanks Richard!
*1.2.2
* renderers now have access to request_forgery_protection stuff (this allows delete-links as navigation-items)
*1.2.1
* changed way to include render_*-helper_methods into view (including them into Controller and declaring them as helper_methods instead of adding whole module as Helper). this seems to be more reliable under certain conditions. Credits to Gernot Kogler.
*1.2.0
* added capability to add conditions to navigation-items (primary.item key, name, url, :if => Proc.new {current_user.admin?})
*1.1.2
* Bugfix: config now gets evaluated on every render_navigation call. Credits to Joël Azémar.
* Config file gets reloaded on every render_navigation call in development mode. Only load config file on server start in production mode.
*1.1.1
* Change plugin into a GemPlugin