navigator_rails 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +34 -0
  5. data/lib/generators/navigator_rails/USAGE +8 -0
  6. data/lib/generators/navigator_rails/install_generator.rb +8 -0
  7. data/lib/generators/navigator_rails/templates/initializer.rb +6 -0
  8. data/lib/navigator_rails/builder.rb +16 -0
  9. data/lib/navigator_rails/config.rb +60 -0
  10. data/lib/navigator_rails/constraint.rb +12 -0
  11. data/lib/navigator_rails/contextable.rb +13 -0
  12. data/lib/navigator_rails/decorator.rb +23 -0
  13. data/lib/navigator_rails/decorators/brand.rb +12 -0
  14. data/lib/navigator_rails/decorators/generic.rb +63 -0
  15. data/lib/navigator_rails/decorators/link.rb +12 -0
  16. data/lib/navigator_rails/decorators/navbar.rb +15 -0
  17. data/lib/navigator_rails/decorators/navigator.rb +31 -0
  18. data/lib/navigator_rails/decorators/submenu.rb +18 -0
  19. data/lib/navigator_rails/decorators.rb +6 -0
  20. data/lib/navigator_rails/engine.rb +24 -0
  21. data/lib/navigator_rails/helpers/application_helper.rb +15 -0
  22. data/lib/navigator_rails/helpers.rb +1 -0
  23. data/lib/navigator_rails/item.rb +36 -0
  24. data/lib/navigator_rails/navigatable.rb +14 -0
  25. data/lib/navigator_rails/navigator.rb +18 -0
  26. data/lib/navigator_rails/store.rb +117 -0
  27. data/lib/navigator_rails/version.rb +3 -0
  28. data/lib/navigator_rails.rb +4 -0
  29. data/test/dummy/README.rdoc +28 -0
  30. data/test/dummy/Rakefile +6 -0
  31. data/test/dummy/app/assets/javascripts/application.js +13 -0
  32. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  33. data/test/dummy/app/controllers/application_controller.rb +5 -0
  34. data/test/dummy/app/helpers/application_helper.rb +2 -0
  35. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  36. data/test/dummy/bin/bundle +3 -0
  37. data/test/dummy/bin/rails +4 -0
  38. data/test/dummy/bin/rake +4 -0
  39. data/test/dummy/config/application.rb +23 -0
  40. data/test/dummy/config/boot.rb +5 -0
  41. data/test/dummy/config/database.yml +25 -0
  42. data/test/dummy/config/environment.rb +5 -0
  43. data/test/dummy/config/environments/development.rb +37 -0
  44. data/test/dummy/config/environments/production.rb +78 -0
  45. data/test/dummy/config/environments/test.rb +39 -0
  46. data/test/dummy/config/initializers/assets.rb +8 -0
  47. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  48. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  49. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  50. data/test/dummy/config/initializers/inflections.rb +16 -0
  51. data/test/dummy/config/initializers/mime_types.rb +4 -0
  52. data/test/dummy/config/initializers/session_store.rb +3 -0
  53. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  54. data/test/dummy/config/locales/en.yml +23 -0
  55. data/test/dummy/config/routes.rb +4 -0
  56. data/test/dummy/config/secrets.yml +22 -0
  57. data/test/dummy/config.ru +4 -0
  58. data/test/dummy/public/404.html +67 -0
  59. data/test/dummy/public/422.html +67 -0
  60. data/test/dummy/public/500.html +66 -0
  61. data/test/dummy/public/favicon.ico +0 -0
  62. data/test/integration/navigation_test.rb +10 -0
  63. data/test/navigator_rails_test.rb +7 -0
  64. data/test/test_helper.rb +15 -0
  65. metadata +186 -0
@@ -0,0 +1,15 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+
7
+ Rails.backtrace_cleaner.remove_silencers!
8
+
9
+ # Load support files
10
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
+
12
+ # Load fixtures from the engine
13
+ if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
+ end
metadata ADDED
@@ -0,0 +1,186 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: navigator_rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.4
5
+ platform: ruby
6
+ authors:
7
+ - mathias Kaufmann
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-11-17 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4'
27
+ - !ruby/object:Gem::Dependency
28
+ name: sourcify
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.5'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.5'
41
+ - !ruby/object:Gem::Dependency
42
+ name: binding_of_caller
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.7'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.7'
55
+ description: Describe your navigationbar longaside actions in your controllers and
56
+ not somewhere else!
57
+ email:
58
+ - me@stei.gr
59
+ executables: []
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - MIT-LICENSE
64
+ - README.rdoc
65
+ - Rakefile
66
+ - lib/generators/navigator_rails/USAGE
67
+ - lib/generators/navigator_rails/install_generator.rb
68
+ - lib/generators/navigator_rails/templates/initializer.rb
69
+ - lib/navigator_rails.rb
70
+ - lib/navigator_rails/builder.rb
71
+ - lib/navigator_rails/config.rb
72
+ - lib/navigator_rails/constraint.rb
73
+ - lib/navigator_rails/contextable.rb
74
+ - lib/navigator_rails/decorator.rb
75
+ - lib/navigator_rails/decorators.rb
76
+ - lib/navigator_rails/decorators/brand.rb
77
+ - lib/navigator_rails/decorators/generic.rb
78
+ - lib/navigator_rails/decorators/link.rb
79
+ - lib/navigator_rails/decorators/navbar.rb
80
+ - lib/navigator_rails/decorators/navigator.rb
81
+ - lib/navigator_rails/decorators/submenu.rb
82
+ - lib/navigator_rails/engine.rb
83
+ - lib/navigator_rails/helpers.rb
84
+ - lib/navigator_rails/helpers/application_helper.rb
85
+ - lib/navigator_rails/item.rb
86
+ - lib/navigator_rails/navigatable.rb
87
+ - lib/navigator_rails/navigator.rb
88
+ - lib/navigator_rails/store.rb
89
+ - lib/navigator_rails/version.rb
90
+ - test/dummy/README.rdoc
91
+ - test/dummy/Rakefile
92
+ - test/dummy/app/assets/javascripts/application.js
93
+ - test/dummy/app/assets/stylesheets/application.css
94
+ - test/dummy/app/controllers/application_controller.rb
95
+ - test/dummy/app/helpers/application_helper.rb
96
+ - test/dummy/app/views/layouts/application.html.erb
97
+ - test/dummy/bin/bundle
98
+ - test/dummy/bin/rails
99
+ - test/dummy/bin/rake
100
+ - test/dummy/config.ru
101
+ - test/dummy/config/application.rb
102
+ - test/dummy/config/boot.rb
103
+ - test/dummy/config/database.yml
104
+ - test/dummy/config/environment.rb
105
+ - test/dummy/config/environments/development.rb
106
+ - test/dummy/config/environments/production.rb
107
+ - test/dummy/config/environments/test.rb
108
+ - test/dummy/config/initializers/assets.rb
109
+ - test/dummy/config/initializers/backtrace_silencers.rb
110
+ - test/dummy/config/initializers/cookies_serializer.rb
111
+ - test/dummy/config/initializers/filter_parameter_logging.rb
112
+ - test/dummy/config/initializers/inflections.rb
113
+ - test/dummy/config/initializers/mime_types.rb
114
+ - test/dummy/config/initializers/session_store.rb
115
+ - test/dummy/config/initializers/wrap_parameters.rb
116
+ - test/dummy/config/locales/en.yml
117
+ - test/dummy/config/routes.rb
118
+ - test/dummy/config/secrets.yml
119
+ - test/dummy/public/404.html
120
+ - test/dummy/public/422.html
121
+ - test/dummy/public/500.html
122
+ - test/dummy/public/favicon.ico
123
+ - test/integration/navigation_test.rb
124
+ - test/navigator_rails_test.rb
125
+ - test/test_helper.rb
126
+ homepage: https://github.com/steigr/navigator_rails
127
+ licenses:
128
+ - MIT
129
+ metadata: {}
130
+ post_install_message:
131
+ rdoc_options: []
132
+ require_paths:
133
+ - lib
134
+ required_ruby_version: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ required_rubygems_version: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - ">="
142
+ - !ruby/object:Gem::Version
143
+ version: '0'
144
+ requirements: []
145
+ rubyforge_project:
146
+ rubygems_version: 2.2.2
147
+ signing_key:
148
+ specification_version: 4
149
+ summary: Done right navigation builder for Ruby on Rails
150
+ test_files:
151
+ - test/dummy/README.rdoc
152
+ - test/dummy/Rakefile
153
+ - test/dummy/app/assets/javascripts/application.js
154
+ - test/dummy/app/assets/stylesheets/application.css
155
+ - test/dummy/app/controllers/application_controller.rb
156
+ - test/dummy/app/helpers/application_helper.rb
157
+ - test/dummy/app/views/layouts/application.html.erb
158
+ - test/dummy/bin/bundle
159
+ - test/dummy/bin/rails
160
+ - test/dummy/bin/rake
161
+ - test/dummy/config/application.rb
162
+ - test/dummy/config/boot.rb
163
+ - test/dummy/config/database.yml
164
+ - test/dummy/config/environment.rb
165
+ - test/dummy/config/environments/development.rb
166
+ - test/dummy/config/environments/production.rb
167
+ - test/dummy/config/environments/test.rb
168
+ - test/dummy/config/initializers/assets.rb
169
+ - test/dummy/config/initializers/backtrace_silencers.rb
170
+ - test/dummy/config/initializers/cookies_serializer.rb
171
+ - test/dummy/config/initializers/filter_parameter_logging.rb
172
+ - test/dummy/config/initializers/inflections.rb
173
+ - test/dummy/config/initializers/mime_types.rb
174
+ - test/dummy/config/initializers/session_store.rb
175
+ - test/dummy/config/initializers/wrap_parameters.rb
176
+ - test/dummy/config/locales/en.yml
177
+ - test/dummy/config/routes.rb
178
+ - test/dummy/config/secrets.yml
179
+ - test/dummy/config.ru
180
+ - test/dummy/public/404.html
181
+ - test/dummy/public/422.html
182
+ - test/dummy/public/500.html
183
+ - test/dummy/public/favicon.ico
184
+ - test/integration/navigation_test.rb
185
+ - test/navigator_rails_test.rb
186
+ - test/test_helper.rb