crumbs 2.1.2 → 4.0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +31 -41
  4. data/Rakefile +1 -14
  5. data/lib/crumbs/definitions.rb +26 -0
  6. data/lib/crumbs/dsl/controller.rb +7 -11
  7. data/lib/crumbs/dsl/namespace.rb +8 -4
  8. data/lib/crumbs/extensions/action_controller/base.rb +43 -0
  9. data/lib/crumbs/proxy.rb +10 -7
  10. data/lib/crumbs/railtie.rb +4 -2
  11. data/lib/crumbs/version.rb +1 -1
  12. data/lib/crumbs.rb +7 -38
  13. data/lib/generators/crumbs/install/install_generator.rb +15 -0
  14. data/test/dummy/Rakefile +1 -2
  15. data/test/dummy/app/assets/javascripts/application.js +2 -2
  16. data/test/dummy/app/assets/stylesheets/application.css +6 -4
  17. data/test/dummy/app/controllers/admin/reports/deliveries_controller.rb +6 -0
  18. data/test/dummy/app/controllers/admin/users_controller.rb +9 -0
  19. data/test/dummy/app/controllers/pages_controller.rb +0 -21
  20. data/test/dummy/app/views/application/_crumbs.html.erb +3 -0
  21. data/test/dummy/app/views/application/index.html.erb +1 -0
  22. data/test/dummy/app/views/application/show.html.erb +1 -0
  23. data/test/dummy/app/views/layouts/application.html.erb +9 -11
  24. data/test/dummy/bin/bundle +1 -0
  25. data/test/dummy/bin/rails +2 -1
  26. data/test/dummy/bin/rake +1 -0
  27. data/test/dummy/bin/setup +30 -0
  28. data/test/dummy/config/application.rb +6 -1
  29. data/test/dummy/config/boot.rb +1 -1
  30. data/test/dummy/config/crumbs.rb +15 -12
  31. data/test/dummy/config/environment.rb +1 -1
  32. data/test/dummy/config/environments/development.rb +14 -5
  33. data/test/dummy/config/environments/production.rb +18 -26
  34. data/test/dummy/config/environments/test.rb +10 -12
  35. data/test/dummy/config/initializers/assets.rb +11 -0
  36. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  37. data/test/dummy/config/initializers/mime_types.rb +1 -2
  38. data/test/dummy/config/initializers/session_store.rb +1 -1
  39. data/test/dummy/config/locales/en.yml +1 -23
  40. data/test/dummy/config/routes.rb +9 -70
  41. data/test/dummy/config/secrets.yml +22 -0
  42. data/test/dummy/config.ru +1 -1
  43. data/test/dummy/log/development.log +0 -0
  44. data/test/dummy/log/test.log +1050 -0
  45. data/test/dummy/public/404.html +58 -55
  46. data/test/dummy/public/422.html +58 -55
  47. data/test/dummy/public/500.html +57 -54
  48. data/test/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +2 -0
  49. data/test/dummy/tmp/cache/assets/sprockets/v3.0/8e/8eFn-IE_QAK9wkb3vBoqeyKxaN7o1hbJQnrz-uVvvQA.cache +0 -0
  50. data/test/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +2 -0
  51. data/test/dummy/tmp/cache/assets/sprockets/v3.0/RP/RPShcX3Jre4zxu1UEaxs1Tw4slXRjICXTyfQvtEWC7M.cache +0 -0
  52. data/test/dummy/tmp/cache/assets/sprockets/v3.0/SG/SGNGr7AZfBE1q7ev2-YM1G-o0XAZ0pKqbsS3NvHtRcA.cache +1 -0
  53. data/test/dummy/tmp/cache/assets/sprockets/v3.0/fG/fG_uaNK13wisQiji91xNsGecGxX9QhMCF2eSX_aR0G0.cache +1 -0
  54. data/test/dummy/tmp/cache/assets/sprockets/v3.0/gb/gbunrAFVOHPwl2npUgKv_C3f_qiJnZDd9zG5-h3jrpo.cache +1 -0
  55. data/test/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache +2 -0
  56. data/test/dummy/tmp/cache/assets/sprockets/v3.0/mv/mvqN6PphkrOOC8zbUEhpC_9E_4ybdO25MRy_gG6dq3Y.cache +1 -0
  57. data/test/dummy/tmp/cache/assets/sprockets/v3.0/nm/nmcUZlKAIwyJ_35Nm9P8pukLeRX5aApP6NFj5MpNPgc.cache +1 -0
  58. data/test/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache +2 -0
  59. data/test/dummy/tmp/cache/assets/sprockets/v3.0/sB/sB6xWxBmgzVC0Co9__ANYrE58lr4WPwiwFa9mswooWM.cache +0 -0
  60. data/test/dummy/tmp/cache/assets/sprockets/v3.0/va/vaNrIny9hchHD9eIJxAicyYLC7qeV4PTh4Nh40_Y6Vg.cache +1 -0
  61. data/test/dummy/tmp/cache/assets/sprockets/v3.0/xd/xdBKQyhEAlDIstGvXw945PWJoEWi23rKuY7elOcWqHc.cache +1 -0
  62. data/test/dummy/tmp/cache/assets/sprockets/v3.0/yv/yv8GQNKBriraHQF7esI3Zifw_OgHI0-bFlUD2nbZ3fw.cache +0 -0
  63. data/test/dummy/tmp/cache/assets/sprockets/v3.0/zn/znrkcru9CbH2razkpdTQATvom11yKHllvnOQyyPSJAo.cache +0 -0
  64. data/test/generator_test.rb +5 -6
  65. data/test/test_helper.rb +4 -13
  66. data/test/view_test.rb +40 -0
  67. metadata +71 -31
  68. data/lib/crumbs/action_controller/base.rb +0 -47
  69. data/lib/generators/crumbs/install_generator.rb +0 -14
  70. data/lib/generators/crumbs/templates/configure.rb +0 -2
  71. data/test/dummy/README.rdoc +0 -28
  72. data/test/dummy/app/controllers/namespace/pages_controller.rb +0 -8
  73. data/test/dummy/app/views/pages/crumbs.html.erb +0 -3
  74. data/test/dummy/config/database.yml +0 -25
  75. data/test/dummy/config/initializers/secret_token.rb +0 -13
  76. data/test/dummy/db/schema.rb +0 -16
  77. data/test/with_last_test.rb +0 -553
  78. data/test/without_last_test.rb +0 -495
  79. /data/lib/generators/crumbs/{templates/define.rb → install/templates/configuration.rb} +0 -0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crumbs
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 4.0.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - mmontossi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-15 00:00:00.000000000 Z
11
+ date: 2016-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 4.0.0
19
+ version: 4.2.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 4.3.0
@@ -26,27 +26,27 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 4.0.0
29
+ version: 4.2.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 4.3.0
33
33
  - !ruby/object:Gem::Dependency
34
- name: sqlite3
34
+ name: pg
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '1.3'
39
+ version: '0.18'
40
40
  type: :development
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '1.3'
47
- description: Adds a handy crumbs variable available in your views in rails.
46
+ version: '0.18'
47
+ description: Handy crumbs variable for rails views.
48
48
  email:
49
- - mmontossi@buyin.io
49
+ - mmontossi@gmail.com
50
50
  executables: []
51
51
  extensions: []
52
52
  extra_rdoc_files: []
@@ -55,55 +55,75 @@ files:
55
55
  - README.md
56
56
  - Rakefile
57
57
  - lib/crumbs.rb
58
- - lib/crumbs/action_controller/base.rb
58
+ - lib/crumbs/definitions.rb
59
59
  - lib/crumbs/dsl/controller.rb
60
60
  - lib/crumbs/dsl/namespace.rb
61
+ - lib/crumbs/extensions/action_controller/base.rb
61
62
  - lib/crumbs/proxy.rb
62
63
  - lib/crumbs/railtie.rb
63
64
  - lib/crumbs/version.rb
64
- - lib/generators/crumbs/install_generator.rb
65
- - lib/generators/crumbs/templates/configure.rb
66
- - lib/generators/crumbs/templates/define.rb
67
- - test/dummy/README.rdoc
65
+ - lib/generators/crumbs/install/install_generator.rb
66
+ - lib/generators/crumbs/install/templates/configuration.rb
68
67
  - test/dummy/Rakefile
69
68
  - test/dummy/app/assets/javascripts/application.js
70
69
  - test/dummy/app/assets/stylesheets/application.css
70
+ - test/dummy/app/controllers/admin/reports/deliveries_controller.rb
71
+ - test/dummy/app/controllers/admin/users_controller.rb
71
72
  - test/dummy/app/controllers/application_controller.rb
72
- - test/dummy/app/controllers/namespace/pages_controller.rb
73
73
  - test/dummy/app/controllers/pages_controller.rb
74
74
  - test/dummy/app/helpers/application_helper.rb
75
+ - test/dummy/app/views/application/_crumbs.html.erb
76
+ - test/dummy/app/views/application/index.html.erb
77
+ - test/dummy/app/views/application/show.html.erb
75
78
  - test/dummy/app/views/layouts/application.html.erb
76
- - test/dummy/app/views/pages/crumbs.html.erb
77
79
  - test/dummy/bin/bundle
78
80
  - test/dummy/bin/rails
79
81
  - test/dummy/bin/rake
82
+ - test/dummy/bin/setup
80
83
  - test/dummy/config.ru
81
84
  - test/dummy/config/application.rb
82
85
  - test/dummy/config/boot.rb
83
86
  - test/dummy/config/crumbs.rb
84
- - test/dummy/config/database.yml
85
87
  - test/dummy/config/environment.rb
86
88
  - test/dummy/config/environments/development.rb
87
89
  - test/dummy/config/environments/production.rb
88
90
  - test/dummy/config/environments/test.rb
91
+ - test/dummy/config/initializers/assets.rb
89
92
  - test/dummy/config/initializers/backtrace_silencers.rb
93
+ - test/dummy/config/initializers/cookies_serializer.rb
90
94
  - test/dummy/config/initializers/filter_parameter_logging.rb
91
95
  - test/dummy/config/initializers/inflections.rb
92
96
  - test/dummy/config/initializers/mime_types.rb
93
- - test/dummy/config/initializers/secret_token.rb
94
97
  - test/dummy/config/initializers/session_store.rb
95
98
  - test/dummy/config/initializers/wrap_parameters.rb
96
99
  - test/dummy/config/locales/en.yml
97
100
  - test/dummy/config/routes.rb
98
- - test/dummy/db/schema.rb
101
+ - test/dummy/config/secrets.yml
102
+ - test/dummy/log/development.log
103
+ - test/dummy/log/test.log
99
104
  - test/dummy/public/404.html
100
105
  - test/dummy/public/422.html
101
106
  - test/dummy/public/500.html
102
107
  - test/dummy/public/favicon.ico
108
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
109
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/8e/8eFn-IE_QAK9wkb3vBoqeyKxaN7o1hbJQnrz-uVvvQA.cache
110
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
111
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/RP/RPShcX3Jre4zxu1UEaxs1Tw4slXRjICXTyfQvtEWC7M.cache
112
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/SG/SGNGr7AZfBE1q7ev2-YM1G-o0XAZ0pKqbsS3NvHtRcA.cache
113
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/fG/fG_uaNK13wisQiji91xNsGecGxX9QhMCF2eSX_aR0G0.cache
114
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/gb/gbunrAFVOHPwl2npUgKv_C3f_qiJnZDd9zG5-h3jrpo.cache
115
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache
116
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/mv/mvqN6PphkrOOC8zbUEhpC_9E_4ybdO25MRy_gG6dq3Y.cache
117
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/nm/nmcUZlKAIwyJ_35Nm9P8pukLeRX5aApP6NFj5MpNPgc.cache
118
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
119
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/sB/sB6xWxBmgzVC0Co9__ANYrE58lr4WPwiwFa9mswooWM.cache
120
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/va/vaNrIny9hchHD9eIJxAicyYLC7qeV4PTh4Nh40_Y6Vg.cache
121
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/xd/xdBKQyhEAlDIstGvXw945PWJoEWi23rKuY7elOcWqHc.cache
122
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/yv/yv8GQNKBriraHQF7esI3Zifw_OgHI0-bFlUD2nbZ3fw.cache
123
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/zn/znrkcru9CbH2razkpdTQATvom11yKHllvnOQyyPSJAo.cache
103
124
  - test/generator_test.rb
104
125
  - test/test_helper.rb
105
- - test/with_last_test.rb
106
- - test/without_last_test.rb
126
+ - test/view_test.rb
107
127
  homepage: https://github.com/mmontossi/crumbs
108
128
  licenses:
109
129
  - MIT
@@ -116,7 +136,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
116
136
  requirements:
117
137
  - - ">="
118
138
  - !ruby/object:Gem::Version
119
- version: 1.9.3
139
+ version: 2.1.0
120
140
  required_rubygems_version: !ruby/object:Gem::Requirement
121
141
  requirements:
122
142
  - - ">="
@@ -124,48 +144,68 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
144
  version: '0'
125
145
  requirements: []
126
146
  rubyforge_project:
127
- rubygems_version: 2.4.5
147
+ rubygems_version: 2.5.1
128
148
  signing_key:
129
149
  specification_version: 4
130
150
  summary: Crumbs for rails.
131
151
  test_files:
132
152
  - test/dummy/app/assets/javascripts/application.js
133
153
  - test/dummy/app/assets/stylesheets/application.css
154
+ - test/dummy/app/controllers/admin/reports/deliveries_controller.rb
155
+ - test/dummy/app/controllers/admin/users_controller.rb
134
156
  - test/dummy/app/controllers/application_controller.rb
135
- - test/dummy/app/controllers/namespace/pages_controller.rb
136
157
  - test/dummy/app/controllers/pages_controller.rb
137
158
  - test/dummy/app/helpers/application_helper.rb
159
+ - test/dummy/app/views/application/_crumbs.html.erb
160
+ - test/dummy/app/views/application/index.html.erb
161
+ - test/dummy/app/views/application/show.html.erb
138
162
  - test/dummy/app/views/layouts/application.html.erb
139
- - test/dummy/app/views/pages/crumbs.html.erb
140
163
  - test/dummy/bin/bundle
141
164
  - test/dummy/bin/rails
142
165
  - test/dummy/bin/rake
166
+ - test/dummy/bin/setup
143
167
  - test/dummy/config/application.rb
144
168
  - test/dummy/config/boot.rb
145
169
  - test/dummy/config/crumbs.rb
146
- - test/dummy/config/database.yml
147
170
  - test/dummy/config/environment.rb
148
171
  - test/dummy/config/environments/development.rb
149
172
  - test/dummy/config/environments/production.rb
150
173
  - test/dummy/config/environments/test.rb
174
+ - test/dummy/config/initializers/assets.rb
151
175
  - test/dummy/config/initializers/backtrace_silencers.rb
176
+ - test/dummy/config/initializers/cookies_serializer.rb
152
177
  - test/dummy/config/initializers/filter_parameter_logging.rb
153
178
  - test/dummy/config/initializers/inflections.rb
154
179
  - test/dummy/config/initializers/mime_types.rb
155
- - test/dummy/config/initializers/secret_token.rb
156
180
  - test/dummy/config/initializers/session_store.rb
157
181
  - test/dummy/config/initializers/wrap_parameters.rb
158
182
  - test/dummy/config/locales/en.yml
159
183
  - test/dummy/config/routes.rb
184
+ - test/dummy/config/secrets.yml
160
185
  - test/dummy/config.ru
161
- - test/dummy/db/schema.rb
186
+ - test/dummy/log/development.log
187
+ - test/dummy/log/test.log
162
188
  - test/dummy/public/404.html
163
189
  - test/dummy/public/422.html
164
190
  - test/dummy/public/500.html
165
191
  - test/dummy/public/favicon.ico
166
192
  - test/dummy/Rakefile
167
- - test/dummy/README.rdoc
193
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
194
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/8e/8eFn-IE_QAK9wkb3vBoqeyKxaN7o1hbJQnrz-uVvvQA.cache
195
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/fG/fG_uaNK13wisQiji91xNsGecGxX9QhMCF2eSX_aR0G0.cache
196
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/gb/gbunrAFVOHPwl2npUgKv_C3f_qiJnZDd9zG5-h3jrpo.cache
197
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache
198
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/mv/mvqN6PphkrOOC8zbUEhpC_9E_4ybdO25MRy_gG6dq3Y.cache
199
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/nm/nmcUZlKAIwyJ_35Nm9P8pukLeRX5aApP6NFj5MpNPgc.cache
200
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
201
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
202
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/RP/RPShcX3Jre4zxu1UEaxs1Tw4slXRjICXTyfQvtEWC7M.cache
203
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/sB/sB6xWxBmgzVC0Co9__ANYrE58lr4WPwiwFa9mswooWM.cache
204
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/SG/SGNGr7AZfBE1q7ev2-YM1G-o0XAZ0pKqbsS3NvHtRcA.cache
205
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/va/vaNrIny9hchHD9eIJxAicyYLC7qeV4PTh4Nh40_Y6Vg.cache
206
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/xd/xdBKQyhEAlDIstGvXw945PWJoEWi23rKuY7elOcWqHc.cache
207
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/yv/yv8GQNKBriraHQF7esI3Zifw_OgHI0-bFlUD2nbZ3fw.cache
208
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/zn/znrkcru9CbH2razkpdTQATvom11yKHllvnOQyyPSJAo.cache
168
209
  - test/generator_test.rb
169
210
  - test/test_helper.rb
170
- - test/with_last_test.rb
171
- - test/without_last_test.rb
211
+ - test/view_test.rb
@@ -1,47 +0,0 @@
1
- module Crumbs
2
- module ActionController
3
- module Base
4
- extend ActiveSupport::Concern
5
-
6
- included do
7
- append_before_action :set_crumbs
8
- end
9
-
10
- protected
11
-
12
- def set_crumbs
13
- paths = [request.path]
14
- paths.unshift File.dirname(paths.first) until paths.first == '/'
15
- referer = { base_url: request.base_url, path: request.path, fullpath: request.fullpath }
16
- if session[:referers].nil? or session[:referers].last[:base_url] != request.base_url
17
- session[:referers] = [referer]
18
- elsif request.path.starts_with? "#{session[:referers].last[:path]}/".squeeze('/')
19
- session[:referers] << referer
20
- elsif index = find_referer_index(paths)
21
- session[:referers] = session[:referers][0...index] + [referer]
22
- elsif
23
- session[:referers] = [referer]
24
- end
25
- paths.pop unless Crumbs.config.show_last
26
- @crumbs = []
27
- paths.each do |path|
28
- params = Rails.application.routes.recognize_path("#{request.base_url}#{path}") rescue next
29
- if name = Crumbs.find(params[:controller], params[:action], params)
30
- if index = find_referer_index(path)
31
- path = session[:referers][index][:fullpath]
32
- end
33
- @crumbs << { name: name, path: path }
34
- end
35
- end
36
- end
37
-
38
- def find_referer_index(paths)
39
- paths = [paths] unless paths.is_a? Array
40
- session[:referers].rindex do |referer|
41
- paths.include? referer[:path]
42
- end
43
- end
44
- end
45
-
46
- end
47
- end
@@ -1,14 +0,0 @@
1
- require 'rails/generators'
2
-
3
- module Crumbs
4
- class InstallGenerator < Rails::Generators::Base
5
-
6
- source_root File.expand_path('../templates', __FILE__)
7
-
8
- def create_initializer
9
- copy_file 'configure.rb', 'config/initializers/crumbs.rb'
10
- copy_file 'define.rb', 'config/crumbs.rb'
11
- end
12
-
13
- end
14
- end
@@ -1,2 +0,0 @@
1
- Crumbs.configure do
2
- end
@@ -1,28 +0,0 @@
1
- == README
2
-
3
- This README would normally document whatever steps are necessary to get the
4
- application up and running.
5
-
6
- Things you may want to cover:
7
-
8
- * Ruby version
9
-
10
- * System dependencies
11
-
12
- * Configuration
13
-
14
- * Database creation
15
-
16
- * Database initialization
17
-
18
- * How to run the test suite
19
-
20
- * Services (job queues, cache servers, search engines, etc.)
21
-
22
- * Deployment instructions
23
-
24
- * ...
25
-
26
-
27
- Please feel free to use a different markup language if you do not plan to run
28
- <tt>rake doc:app</tt>.
@@ -1,8 +0,0 @@
1
- class Namespace::PagesController < ApplicationController
2
-
3
- def index
4
- render template: 'pages/crumbs'
5
- end
6
-
7
- end
8
-
@@ -1,3 +0,0 @@
1
- <% @crumbs.each do |crumb| %>
2
- <%= link_to crumb[:name], crumb[:path] %>
3
- <% end %>
@@ -1,25 +0,0 @@
1
- # SQLite version 3.x
2
- # gem install sqlite3
3
- #
4
- # Ensure the SQLite 3 gem is defined in your Gemfile
5
- # gem 'sqlite3'
6
- development:
7
- adapter: sqlite3
8
- database: db/development.sqlite3
9
- pool: 5
10
- timeout: 5000
11
-
12
- # Warning: The database defined as "test" will be erased and
13
- # re-generated from your development database when you run "rake".
14
- # Do not set this db to the same as development or production.
15
- test:
16
- adapter: sqlite3
17
- database: ":memory:"
18
- pool: 5
19
- timeout: 5000
20
-
21
- production:
22
- adapter: sqlite3
23
- database: db/production.sqlite3
24
- pool: 5
25
- timeout: 5000
@@ -1,13 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key is used for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
-
6
- # Make sure the secret is at least 30 characters and all random,
7
- # no regular words or you'll be exposed to dictionary attacks.
8
- # You can use `rake secret` to generate a secure secret key.
9
-
10
- # Make sure your secret_key_base is kept private
11
- # if you're sharing your code publicly.
12
- Dummy::Application.config.secret_token = '28edcd2365d0715246f2caa9a823fc54ec456ece62b47803b7653c856abf94b9bf2b02439a447d7621e9afcc76e26d6616df31cb19f59a50a18f1591c0ce665a'
13
- Dummy::Application.config.secret_key_base = '28edcd2365d0715246f2caa9a823fc54ec456ece62b47803b7653c856abf94b9bf2b02439a447d7621e9afcc76e26d6616df31cb19f59a50a18f1591c0ce665a'
@@ -1,16 +0,0 @@
1
- # encoding: UTF-8
2
- # This file is auto-generated from the current state of the database. Instead
3
- # of editing this file, please use the migrations feature of Active Record to
4
- # incrementally modify your database, and then regenerate this schema definition.
5
- #
6
- # Note that this schema.rb definition is the authoritative source for your
7
- # database schema. If you need to create the application database on another
8
- # system, you should be using db:schema:load, not running all the migrations
9
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
- # you'll amass, the slower it'll run and the greater likelihood for issues).
11
- #
12
- # It's strongly recommended that you check this file into your version control system.
13
-
14
- ActiveRecord::Schema.define(version: 0) do
15
-
16
- end