flowmor_router 0.0.1

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 (100) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +175 -0
  4. data/Rakefile +34 -0
  5. data/app/controllers/application_controller.rb +2 -0
  6. data/app/controllers/static_controller.rb +2 -0
  7. data/app/models/routable_record.rb +121 -0
  8. data/bin/rails +12 -0
  9. data/config/routes.rb +21 -0
  10. data/lib/flowmor_router/engine.rb +4 -0
  11. data/lib/flowmor_router/exceptions.rb +3 -0
  12. data/lib/flowmor_router/version.rb +3 -0
  13. data/lib/flowmor_router.rb +24 -0
  14. data/lib/tasks/flowmor_router_tasks.rake +4 -0
  15. data/test/dummy/README.rdoc +28 -0
  16. data/test/dummy/Rakefile +6 -0
  17. data/test/dummy/app/assets/javascripts/application.js +13 -0
  18. data/test/dummy/app/assets/javascripts/blog.js +2 -0
  19. data/test/dummy/app/assets/javascripts/static.js +2 -0
  20. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  21. data/test/dummy/app/assets/stylesheets/blog.css +4 -0
  22. data/test/dummy/app/assets/stylesheets/static.css +4 -0
  23. data/test/dummy/app/controllers/application_controller.rb +5 -0
  24. data/test/dummy/app/controllers/blog_controller.rb +9 -0
  25. data/test/dummy/app/controllers/static_controller.rb +2 -0
  26. data/test/dummy/app/helpers/application_helper.rb +2 -0
  27. data/test/dummy/app/helpers/blog_helper.rb +2 -0
  28. data/test/dummy/app/helpers/static_helper.rb +2 -0
  29. data/test/dummy/app/models/article.rb +3 -0
  30. data/test/dummy/app/models/news_article.rb +4 -0
  31. data/test/dummy/app/models/post.rb +18 -0
  32. data/test/dummy/app/models/post_category.rb +9 -0
  33. data/test/dummy/app/views/blog/show.html.erb +1 -0
  34. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  35. data/test/dummy/app/views/static/index.html.erb +3 -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 +82 -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 +56 -0
  56. data/test/dummy/config/secrets.yml +22 -0
  57. data/test/dummy/config.ru +4 -0
  58. data/test/dummy/db/development.sqlite3 +0 -0
  59. data/test/dummy/db/migrate/20140811154447_create_posts.rb +11 -0
  60. data/test/dummy/db/migrate/20140811155356_create_post_categories.rb +10 -0
  61. data/test/dummy/db/migrate/20140811182855_create_articles.rb +10 -0
  62. data/test/dummy/db/migrate/20140811184010_create_news_articles.rb +10 -0
  63. data/test/dummy/db/schema.rb +45 -0
  64. data/test/dummy/db/test.sqlite3 +0 -0
  65. data/test/dummy/log/development.log +6 -0
  66. data/test/dummy/log/test.log +12740 -0
  67. data/test/dummy/public/404.html +67 -0
  68. data/test/dummy/public/422.html +67 -0
  69. data/test/dummy/public/500.html +66 -0
  70. data/test/dummy/public/favicon.ico +0 -0
  71. data/test/dummy/test/controllers/static_controller_test.rb +10 -0
  72. data/test/dummy/test/fixtures/articles.yml +9 -0
  73. data/test/dummy/test/fixtures/news_articles.yml +9 -0
  74. data/test/dummy/test/fixtures/post_categories.yml +9 -0
  75. data/test/dummy/test/fixtures/posts.yml +11 -0
  76. data/test/dummy/test/helpers/blog_helper_test.rb +4 -0
  77. data/test/dummy/test/helpers/static_helper_test.rb +4 -0
  78. data/test/dummy/test/integration/routable_records_test.rb +12 -0
  79. data/test/dummy/test/models/article_test.rb +29 -0
  80. data/test/dummy/test/models/news_article_test.rb +50 -0
  81. data/test/dummy/test/models/post_category_test.rb +46 -0
  82. data/test/dummy/test/models/post_test.rb +50 -0
  83. data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  84. data/test/dummy/tmp/cache/assets/test/sprockets/2cdcb1089fe8a96b07fa1beb4356a3f2 +0 -0
  85. data/test/dummy/tmp/cache/assets/test/sprockets/2ef169e1ab9b9980404c3f7bd7b16cd1 +0 -0
  86. data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  87. data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  88. data/test/dummy/tmp/cache/assets/test/sprockets/66a7ff918272131011428741d7073461 +0 -0
  89. data/test/dummy/tmp/cache/assets/test/sprockets/66e7b4d1264df0176332685032844ce5 +0 -0
  90. data/test/dummy/tmp/cache/assets/test/sprockets/9bd4a825d7cf65dfa37efb43fe6b5aa7 +0 -0
  91. data/test/dummy/tmp/cache/assets/test/sprockets/a3ecd3c2fe5e4b3c4dd1365b4c108d06 +0 -0
  92. data/test/dummy/tmp/cache/assets/test/sprockets/c1a3b329f54c41592a0854a40f8425e0 +0 -0
  93. data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  94. data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  95. data/test/dummy/tmp/cache/assets/test/sprockets/efbfd84424b5a4f22bd23b73db9591a2 +0 -0
  96. data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  97. data/test/flowmor_router_test.rb +7 -0
  98. data/test/integration/navigation_test.rb +10 -0
  99. data/test/test_helper.rb +15 -0
  100. metadata +257 -0
metadata ADDED
@@ -0,0 +1,257 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: flowmor_router
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Michael Lang
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-08-12 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: sqlite3
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.3'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.3'
41
+ description: FlowmorRouter allows you to create 'friendly' routes easily from objects
42
+ stored in the database as well as by simply placing templates into app/views/static
43
+ folder.
44
+ email:
45
+ - mwlang@cybrains.net
46
+ executables: []
47
+ extensions: []
48
+ extra_rdoc_files: []
49
+ files:
50
+ - MIT-LICENSE
51
+ - README.md
52
+ - Rakefile
53
+ - app/controllers/application_controller.rb
54
+ - app/controllers/static_controller.rb
55
+ - app/models/routable_record.rb
56
+ - bin/rails
57
+ - config/routes.rb
58
+ - lib/flowmor_router.rb
59
+ - lib/flowmor_router/engine.rb
60
+ - lib/flowmor_router/exceptions.rb
61
+ - lib/flowmor_router/version.rb
62
+ - lib/tasks/flowmor_router_tasks.rake
63
+ - test/dummy/README.rdoc
64
+ - test/dummy/Rakefile
65
+ - test/dummy/app/assets/javascripts/application.js
66
+ - test/dummy/app/assets/javascripts/blog.js
67
+ - test/dummy/app/assets/javascripts/static.js
68
+ - test/dummy/app/assets/stylesheets/application.css
69
+ - test/dummy/app/assets/stylesheets/blog.css
70
+ - test/dummy/app/assets/stylesheets/static.css
71
+ - test/dummy/app/controllers/application_controller.rb
72
+ - test/dummy/app/controllers/blog_controller.rb
73
+ - test/dummy/app/controllers/static_controller.rb
74
+ - test/dummy/app/helpers/application_helper.rb
75
+ - test/dummy/app/helpers/blog_helper.rb
76
+ - test/dummy/app/helpers/static_helper.rb
77
+ - test/dummy/app/models/article.rb
78
+ - test/dummy/app/models/news_article.rb
79
+ - test/dummy/app/models/post.rb
80
+ - test/dummy/app/models/post_category.rb
81
+ - test/dummy/app/views/blog/show.html.erb
82
+ - test/dummy/app/views/layouts/application.html.erb
83
+ - test/dummy/app/views/static/index.html.erb
84
+ - test/dummy/bin/bundle
85
+ - test/dummy/bin/rails
86
+ - test/dummy/bin/rake
87
+ - test/dummy/config.ru
88
+ - test/dummy/config/application.rb
89
+ - test/dummy/config/boot.rb
90
+ - test/dummy/config/database.yml
91
+ - test/dummy/config/environment.rb
92
+ - test/dummy/config/environments/development.rb
93
+ - test/dummy/config/environments/production.rb
94
+ - test/dummy/config/environments/test.rb
95
+ - test/dummy/config/initializers/assets.rb
96
+ - test/dummy/config/initializers/backtrace_silencers.rb
97
+ - test/dummy/config/initializers/cookies_serializer.rb
98
+ - test/dummy/config/initializers/filter_parameter_logging.rb
99
+ - test/dummy/config/initializers/inflections.rb
100
+ - test/dummy/config/initializers/mime_types.rb
101
+ - test/dummy/config/initializers/session_store.rb
102
+ - test/dummy/config/initializers/wrap_parameters.rb
103
+ - test/dummy/config/locales/en.yml
104
+ - test/dummy/config/routes.rb
105
+ - test/dummy/config/secrets.yml
106
+ - test/dummy/db/development.sqlite3
107
+ - test/dummy/db/migrate/20140811154447_create_posts.rb
108
+ - test/dummy/db/migrate/20140811155356_create_post_categories.rb
109
+ - test/dummy/db/migrate/20140811182855_create_articles.rb
110
+ - test/dummy/db/migrate/20140811184010_create_news_articles.rb
111
+ - test/dummy/db/schema.rb
112
+ - test/dummy/db/test.sqlite3
113
+ - test/dummy/log/development.log
114
+ - test/dummy/log/test.log
115
+ - test/dummy/public/404.html
116
+ - test/dummy/public/422.html
117
+ - test/dummy/public/500.html
118
+ - test/dummy/public/favicon.ico
119
+ - test/dummy/test/controllers/static_controller_test.rb
120
+ - test/dummy/test/fixtures/articles.yml
121
+ - test/dummy/test/fixtures/news_articles.yml
122
+ - test/dummy/test/fixtures/post_categories.yml
123
+ - test/dummy/test/fixtures/posts.yml
124
+ - test/dummy/test/helpers/blog_helper_test.rb
125
+ - test/dummy/test/helpers/static_helper_test.rb
126
+ - test/dummy/test/integration/routable_records_test.rb
127
+ - test/dummy/test/models/article_test.rb
128
+ - test/dummy/test/models/news_article_test.rb
129
+ - test/dummy/test/models/post_category_test.rb
130
+ - test/dummy/test/models/post_test.rb
131
+ - test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
132
+ - test/dummy/tmp/cache/assets/test/sprockets/2cdcb1089fe8a96b07fa1beb4356a3f2
133
+ - test/dummy/tmp/cache/assets/test/sprockets/2ef169e1ab9b9980404c3f7bd7b16cd1
134
+ - test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
135
+ - test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
136
+ - test/dummy/tmp/cache/assets/test/sprockets/66a7ff918272131011428741d7073461
137
+ - test/dummy/tmp/cache/assets/test/sprockets/66e7b4d1264df0176332685032844ce5
138
+ - test/dummy/tmp/cache/assets/test/sprockets/9bd4a825d7cf65dfa37efb43fe6b5aa7
139
+ - test/dummy/tmp/cache/assets/test/sprockets/a3ecd3c2fe5e4b3c4dd1365b4c108d06
140
+ - test/dummy/tmp/cache/assets/test/sprockets/c1a3b329f54c41592a0854a40f8425e0
141
+ - test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
142
+ - test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
143
+ - test/dummy/tmp/cache/assets/test/sprockets/efbfd84424b5a4f22bd23b73db9591a2
144
+ - test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
145
+ - test/flowmor_router_test.rb
146
+ - test/integration/navigation_test.rb
147
+ - test/test_helper.rb
148
+ homepage: http://codeconnoisseur.org
149
+ licenses:
150
+ - MIT
151
+ metadata: {}
152
+ post_install_message:
153
+ rdoc_options: []
154
+ require_paths:
155
+ - lib
156
+ required_ruby_version: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ version: '0'
161
+ required_rubygems_version: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - ">="
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
166
+ requirements: []
167
+ rubyforge_project:
168
+ rubygems_version: 2.4.1
169
+ signing_key:
170
+ specification_version: 4
171
+ summary: FlowmorRouter makes it easy to build routes out of ActiveRecord objects.
172
+ test_files:
173
+ - test/dummy/app/assets/javascripts/application.js
174
+ - test/dummy/app/assets/javascripts/blog.js
175
+ - test/dummy/app/assets/javascripts/static.js
176
+ - test/dummy/app/assets/stylesheets/application.css
177
+ - test/dummy/app/assets/stylesheets/blog.css
178
+ - test/dummy/app/assets/stylesheets/static.css
179
+ - test/dummy/app/controllers/application_controller.rb
180
+ - test/dummy/app/controllers/blog_controller.rb
181
+ - test/dummy/app/controllers/static_controller.rb
182
+ - test/dummy/app/helpers/application_helper.rb
183
+ - test/dummy/app/helpers/blog_helper.rb
184
+ - test/dummy/app/helpers/static_helper.rb
185
+ - test/dummy/app/models/article.rb
186
+ - test/dummy/app/models/news_article.rb
187
+ - test/dummy/app/models/post.rb
188
+ - test/dummy/app/models/post_category.rb
189
+ - test/dummy/app/views/blog/show.html.erb
190
+ - test/dummy/app/views/layouts/application.html.erb
191
+ - test/dummy/app/views/static/index.html.erb
192
+ - test/dummy/bin/bundle
193
+ - test/dummy/bin/rails
194
+ - test/dummy/bin/rake
195
+ - test/dummy/config/application.rb
196
+ - test/dummy/config/boot.rb
197
+ - test/dummy/config/database.yml
198
+ - test/dummy/config/environment.rb
199
+ - test/dummy/config/environments/development.rb
200
+ - test/dummy/config/environments/production.rb
201
+ - test/dummy/config/environments/test.rb
202
+ - test/dummy/config/initializers/assets.rb
203
+ - test/dummy/config/initializers/backtrace_silencers.rb
204
+ - test/dummy/config/initializers/cookies_serializer.rb
205
+ - test/dummy/config/initializers/filter_parameter_logging.rb
206
+ - test/dummy/config/initializers/inflections.rb
207
+ - test/dummy/config/initializers/mime_types.rb
208
+ - test/dummy/config/initializers/session_store.rb
209
+ - test/dummy/config/initializers/wrap_parameters.rb
210
+ - test/dummy/config/locales/en.yml
211
+ - test/dummy/config/routes.rb
212
+ - test/dummy/config/secrets.yml
213
+ - test/dummy/config.ru
214
+ - test/dummy/db/development.sqlite3
215
+ - test/dummy/db/migrate/20140811154447_create_posts.rb
216
+ - test/dummy/db/migrate/20140811155356_create_post_categories.rb
217
+ - test/dummy/db/migrate/20140811182855_create_articles.rb
218
+ - test/dummy/db/migrate/20140811184010_create_news_articles.rb
219
+ - test/dummy/db/schema.rb
220
+ - test/dummy/db/test.sqlite3
221
+ - test/dummy/log/development.log
222
+ - test/dummy/log/test.log
223
+ - test/dummy/public/404.html
224
+ - test/dummy/public/422.html
225
+ - test/dummy/public/500.html
226
+ - test/dummy/public/favicon.ico
227
+ - test/dummy/Rakefile
228
+ - test/dummy/README.rdoc
229
+ - test/dummy/test/controllers/static_controller_test.rb
230
+ - test/dummy/test/fixtures/articles.yml
231
+ - test/dummy/test/fixtures/news_articles.yml
232
+ - test/dummy/test/fixtures/post_categories.yml
233
+ - test/dummy/test/fixtures/posts.yml
234
+ - test/dummy/test/helpers/blog_helper_test.rb
235
+ - test/dummy/test/helpers/static_helper_test.rb
236
+ - test/dummy/test/integration/routable_records_test.rb
237
+ - test/dummy/test/models/article_test.rb
238
+ - test/dummy/test/models/news_article_test.rb
239
+ - test/dummy/test/models/post_category_test.rb
240
+ - test/dummy/test/models/post_test.rb
241
+ - test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
242
+ - test/dummy/tmp/cache/assets/test/sprockets/2cdcb1089fe8a96b07fa1beb4356a3f2
243
+ - test/dummy/tmp/cache/assets/test/sprockets/2ef169e1ab9b9980404c3f7bd7b16cd1
244
+ - test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
245
+ - test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
246
+ - test/dummy/tmp/cache/assets/test/sprockets/66a7ff918272131011428741d7073461
247
+ - test/dummy/tmp/cache/assets/test/sprockets/66e7b4d1264df0176332685032844ce5
248
+ - test/dummy/tmp/cache/assets/test/sprockets/9bd4a825d7cf65dfa37efb43fe6b5aa7
249
+ - test/dummy/tmp/cache/assets/test/sprockets/a3ecd3c2fe5e4b3c4dd1365b4c108d06
250
+ - test/dummy/tmp/cache/assets/test/sprockets/c1a3b329f54c41592a0854a40f8425e0
251
+ - test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
252
+ - test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
253
+ - test/dummy/tmp/cache/assets/test/sprockets/efbfd84424b5a4f22bd23b73db9591a2
254
+ - test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
255
+ - test/flowmor_router_test.rb
256
+ - test/integration/navigation_test.rb
257
+ - test/test_helper.rb