crumbs 1.2.1 → 2.0.2

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 (29) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -5
  3. data/lib/crumbs/action_controller/base.rb +2 -11
  4. data/lib/crumbs/controller.rb +21 -0
  5. data/lib/crumbs/proxy.rb +9 -0
  6. data/lib/crumbs/version.rb +1 -1
  7. data/lib/crumbs.rb +21 -1
  8. data/lib/generators/crumbs/templates/crumbs.rb +1 -1
  9. data/test/dummy/app/controllers/pages_controller.rb +0 -6
  10. data/test/dummy/config/initializers/crumbs.rb +19 -0
  11. data/test/dummy/log/test.log +2346 -0
  12. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/0CfsnjV9PTgwlR5hr0ZJ0lNFInsx4qr_zgDnI8wYXdA.cache +0 -0
  13. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/3_I2jn5YxLciv3GtK_auIHda4TWNhZGieWePNoABWag.cache +3 -0
  14. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/8pLqt1nXpM0CADV6_EF0KDbq4JiQCmjMIxj6pPZgm40.cache +0 -0
  15. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/9_0iCm3DZpig3DFydwsV8-3vCsUegD9B-YR_kxfWuxg.cache +0 -0
  16. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/DtXc_gTNuqlMogm9DYo1deRm00jNXPf0fyilnnre4mo.cache +1 -0
  17. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/KuObwG9-kiiTC9uTe_Y_WcDUv6iru-sTemI6-k4K-VI.cache +1 -0
  18. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/NB1P923S_ERHEViNCpWJ8SWQPVGhGQbnoEZDFXAsMkU.cache +2 -0
  19. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/NRB4IoGG5vlEQSlxE-fq7JjM5DiMsZgx53bfpX9Qa-Q.cache +3 -0
  20. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/PeALxNvJVmSUZlRLwsDzjXcHYkYl7swdEPX25zaZ4Sk.cache +2 -0
  21. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/SaR332UYmMwbCg2uCE2kc8IdAy0fz1Z0rzVjjdcHBfc.cache +1 -0
  22. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/UWBHdOtGfj0EG8YqQJFo4VXX78gdxQ9UKQckSjlh2Xk.cache +0 -0
  23. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/fg8Lpn3VSU1Cz0bY6ek8PqNXJKwHE4tH-_pxSZSVHoc.cache +1 -0
  24. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/j633CDb2pirQ_kRgsBIUuO9xrlJnPoE5wSh_Sk7a0B8.cache +0 -0
  25. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/oL3tj9Cx76XI84KeuRvNWkE8SRDP7uTSGgeKXBJfwi4.cache +1 -0
  26. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/p8gRJoCgrplMxf3cIeQwVnrXECPodO1XmZT3b9iaId0.cache +0 -0
  27. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/wZymCZN9x4UDexGqYG57Pp_5dfraxUy5TuEtv9bQzaE.cache +0 -0
  28. metadata +42 -7
  29. data/lib/crumbs/definitions.rb +0 -30
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash{
3
+ I"environment-version:ETTI"environment-paths;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"tfile-digest:///Users/Matt/Documents/Herramientas/Rails/Crumbs/test/dummy/app/assets/stylesheets/application.css;TTI"dfile-digest:///Users/Matt/Documents/Herramientas/Rails/Crumbs/test/dummy/app/assets/stylesheets;TT
@@ -0,0 +1 @@
1
+ I"�file:///Users/Matt/Documents/Herramientas/Rails/Crumbs/test/dummy/app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=c8d555bcbffd3ac988cbd5ba3dd74a0f4d6ea4341dbcb56b04a1385fbf87d990:ET
@@ -0,0 +1 @@
1
+ "%��Rm�v�S3.��O�L���ڹc�ƕq�=_j�
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"0processors:type=text/css&file_type=text/css;TTI"tfile-digest:///Users/Matt/Documents/Herramientas/Rails/Crumbs/test/dummy/app/assets/stylesheets/application.css;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"dfile-digest:///Users/Matt/Documents/Herramientas/Rails/Crumbs/test/dummy/app/assets/stylesheets;TT
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash{
3
+ I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"sfile-digest:///Users/Matt/Documents/Herramientas/Rails/Crumbs/test/dummy/app/assets/javascripts/application.js;TTI"dfile-digest:///Users/Matt/Documents/Herramientas/Rails/Crumbs/test/dummy/app/assets/javascripts;TT
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"sfile-digest:///Users/Matt/Documents/Herramientas/Rails/Crumbs/test/dummy/app/assets/javascripts/application.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"dfile-digest:///Users/Matt/Documents/Herramientas/Rails/Crumbs/test/dummy/app/assets/javascripts;TT
@@ -0,0 +1 @@
1
+ I"�file:///Users/Matt/Documents/Herramientas/Rails/Crumbs/test/dummy/app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=a6dab0ccaf4a1e979017d13fdbad795b10e16c41a7fbcab4b8a3f9fd8dc293c9:ET
@@ -0,0 +1 @@
1
+ I"�file:///Users/Matt/Documents/Herramientas/Rails/Crumbs/test/dummy/app/assets/stylesheets/application.css?type=text/css&id=c61c8318af84c11e09fe21f279e07aac07b4cb1c8955cad73cbf475ccb7b4ab9:ET
@@ -0,0 +1 @@
1
+ I"�file:///Users/Matt/Documents/Herramientas/Rails/Crumbs/test/dummy/app/assets/javascripts/application.js?type=application/javascript&id=0728233141a9ae441c8e77a1727970cdaef389a1306a397f10b1d6c2b97c2b67:ET
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: 1.2.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Museways
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-16 00:00:00.000000000 Z
11
+ date: 2015-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -17,9 +17,9 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 4.0.0
20
- - - "<="
20
+ - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: 4.2.0
22
+ version: 4.3.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,9 +27,9 @@ dependencies:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
29
  version: 4.0.0
30
- - - "<="
30
+ - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: 4.2.0
32
+ version: 4.3.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: sqlite3
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -56,7 +56,8 @@ files:
56
56
  - Rakefile
57
57
  - lib/crumbs.rb
58
58
  - lib/crumbs/action_controller/base.rb
59
- - lib/crumbs/definitions.rb
59
+ - lib/crumbs/controller.rb
60
+ - lib/crumbs/proxy.rb
60
61
  - lib/crumbs/railtie.rb
61
62
  - lib/crumbs/version.rb
62
63
  - lib/generators/crumbs/install_generator.rb
@@ -82,6 +83,7 @@ files:
82
83
  - test/dummy/config/environments/production.rb
83
84
  - test/dummy/config/environments/test.rb
84
85
  - test/dummy/config/initializers/backtrace_silencers.rb
86
+ - test/dummy/config/initializers/crumbs.rb
85
87
  - test/dummy/config/initializers/filter_parameter_logging.rb
86
88
  - test/dummy/config/initializers/inflections.rb
87
89
  - test/dummy/config/initializers/mime_types.rb
@@ -105,6 +107,22 @@ files:
105
107
  - test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
106
108
  - test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
107
109
  - test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
110
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/0CfsnjV9PTgwlR5hr0ZJ0lNFInsx4qr_zgDnI8wYXdA.cache
111
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/3_I2jn5YxLciv3GtK_auIHda4TWNhZGieWePNoABWag.cache
112
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/8pLqt1nXpM0CADV6_EF0KDbq4JiQCmjMIxj6pPZgm40.cache
113
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/9_0iCm3DZpig3DFydwsV8-3vCsUegD9B-YR_kxfWuxg.cache
114
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/DtXc_gTNuqlMogm9DYo1deRm00jNXPf0fyilnnre4mo.cache
115
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/KuObwG9-kiiTC9uTe_Y_WcDUv6iru-sTemI6-k4K-VI.cache
116
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/NB1P923S_ERHEViNCpWJ8SWQPVGhGQbnoEZDFXAsMkU.cache
117
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/NRB4IoGG5vlEQSlxE-fq7JjM5DiMsZgx53bfpX9Qa-Q.cache
118
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/PeALxNvJVmSUZlRLwsDzjXcHYkYl7swdEPX25zaZ4Sk.cache
119
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/SaR332UYmMwbCg2uCE2kc8IdAy0fz1Z0rzVjjdcHBfc.cache
120
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/UWBHdOtGfj0EG8YqQJFo4VXX78gdxQ9UKQckSjlh2Xk.cache
121
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/fg8Lpn3VSU1Cz0bY6ek8PqNXJKwHE4tH-_pxSZSVHoc.cache
122
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/j633CDb2pirQ_kRgsBIUuO9xrlJnPoE5wSh_Sk7a0B8.cache
123
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/oL3tj9Cx76XI84KeuRvNWkE8SRDP7uTSGgeKXBJfwi4.cache
124
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/p8gRJoCgrplMxf3cIeQwVnrXECPodO1XmZT3b9iaId0.cache
125
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/wZymCZN9x4UDexGqYG57Pp_5dfraxUy5TuEtv9bQzaE.cache
108
126
  - test/generator_test.rb
109
127
  - test/test_helper.rb
110
128
  - test/with_last_test.rb
@@ -152,6 +170,7 @@ test_files:
152
170
  - test/dummy/config/environments/production.rb
153
171
  - test/dummy/config/environments/test.rb
154
172
  - test/dummy/config/initializers/backtrace_silencers.rb
173
+ - test/dummy/config/initializers/crumbs.rb
155
174
  - test/dummy/config/initializers/filter_parameter_logging.rb
156
175
  - test/dummy/config/initializers/inflections.rb
157
176
  - test/dummy/config/initializers/mime_types.rb
@@ -178,6 +197,22 @@ test_files:
178
197
  - test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
179
198
  - test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
180
199
  - test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
200
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/0CfsnjV9PTgwlR5hr0ZJ0lNFInsx4qr_zgDnI8wYXdA.cache
201
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/3_I2jn5YxLciv3GtK_auIHda4TWNhZGieWePNoABWag.cache
202
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/8pLqt1nXpM0CADV6_EF0KDbq4JiQCmjMIxj6pPZgm40.cache
203
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/9_0iCm3DZpig3DFydwsV8-3vCsUegD9B-YR_kxfWuxg.cache
204
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/DtXc_gTNuqlMogm9DYo1deRm00jNXPf0fyilnnre4mo.cache
205
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/fg8Lpn3VSU1Cz0bY6ek8PqNXJKwHE4tH-_pxSZSVHoc.cache
206
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/j633CDb2pirQ_kRgsBIUuO9xrlJnPoE5wSh_Sk7a0B8.cache
207
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/KuObwG9-kiiTC9uTe_Y_WcDUv6iru-sTemI6-k4K-VI.cache
208
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/NB1P923S_ERHEViNCpWJ8SWQPVGhGQbnoEZDFXAsMkU.cache
209
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/NRB4IoGG5vlEQSlxE-fq7JjM5DiMsZgx53bfpX9Qa-Q.cache
210
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/oL3tj9Cx76XI84KeuRvNWkE8SRDP7uTSGgeKXBJfwi4.cache
211
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/p8gRJoCgrplMxf3cIeQwVnrXECPodO1XmZT3b9iaId0.cache
212
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/PeALxNvJVmSUZlRLwsDzjXcHYkYl7swdEPX25zaZ4Sk.cache
213
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/SaR332UYmMwbCg2uCE2kc8IdAy0fz1Z0rzVjjdcHBfc.cache
214
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/UWBHdOtGfj0EG8YqQJFo4VXX78gdxQ9UKQckSjlh2Xk.cache
215
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/wZymCZN9x4UDexGqYG57Pp_5dfraxUy5TuEtv9bQzaE.cache
181
216
  - test/generator_test.rb
182
217
  - test/test_helper.rb
183
218
  - test/with_last_test.rb
@@ -1,30 +0,0 @@
1
- module Crumbs
2
- class Definitions
3
- class << self
4
-
5
- def all
6
- @all ||= {}
7
- end
8
-
9
- def add(controller, action, name)
10
- if all.has_key? controller
11
- all[controller][action] = name
12
- else
13
- all[controller] = { action => name }
14
- end
15
- end
16
-
17
- def find(controller, action, params)
18
- if all.has_key? controller and all[controller].has_key? action
19
- name = all[controller][action]
20
- if name.is_a? Proc
21
- name.call params
22
- else
23
- name
24
- end
25
- end
26
- end
27
-
28
- end
29
- end
30
- end