nyanko 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +22 -0
  3. data/Gemfile +25 -0
  4. data/MIT-LICENSE +22 -0
  5. data/README.md +105 -0
  6. data/Rakefile +1 -0
  7. data/lib/nyanko/active_if.rb +57 -0
  8. data/lib/nyanko/config.rb +13 -0
  9. data/lib/nyanko/controller.rb +23 -0
  10. data/lib/nyanko/function.rb +50 -0
  11. data/lib/nyanko/helper.rb +29 -0
  12. data/lib/nyanko/invoker/function_finder.rb +48 -0
  13. data/lib/nyanko/invoker/options.rb +69 -0
  14. data/lib/nyanko/invoker.rb +68 -0
  15. data/lib/nyanko/loader.rb +59 -0
  16. data/lib/nyanko/railtie.rb +13 -0
  17. data/lib/nyanko/unit/extender/active_record_class_methods.rb +56 -0
  18. data/lib/nyanko/unit/extender/extension.rb +51 -0
  19. data/lib/nyanko/unit/extender.rb +21 -0
  20. data/lib/nyanko/unit/scope_finder.rb +41 -0
  21. data/lib/nyanko/unit.rb +86 -0
  22. data/lib/nyanko/unit_proxy.rb +30 -0
  23. data/lib/nyanko/unit_proxy_provider.rb +21 -0
  24. data/lib/nyanko/version.rb +3 -0
  25. data/lib/nyanko.rb +16 -0
  26. data/nyanko.gemspec +29 -0
  27. data/spec/dummy/README.rdoc +261 -0
  28. data/spec/dummy/Rakefile +7 -0
  29. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  30. data/spec/dummy/app/assets/stylesheets/application.css +14 -0
  31. data/spec/dummy/app/assets/stylesheets/main.scss +21 -0
  32. data/spec/dummy/app/assets/stylesheets/reset.scss +14 -0
  33. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  34. data/spec/dummy/app/controllers/entries_controller.rb +33 -0
  35. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  36. data/spec/dummy/app/mailers/.gitkeep +0 -0
  37. data/spec/dummy/app/models/.gitkeep +0 -0
  38. data/spec/dummy/app/models/entry.rb +3 -0
  39. data/spec/dummy/app/units/entry_deletion/entry_deletion.rb +37 -0
  40. data/spec/dummy/app/units/entry_deletion/views/_delete_link.html.slim +1 -0
  41. data/spec/dummy/app/views/entries/edit.html.slim +14 -0
  42. data/spec/dummy/app/views/entries/index.html.slim +5 -0
  43. data/spec/dummy/app/views/entries/show.html.slim +8 -0
  44. data/spec/dummy/app/views/layouts/application.html.slim +16 -0
  45. data/spec/dummy/config/application.rb +68 -0
  46. data/spec/dummy/config/boot.rb +10 -0
  47. data/spec/dummy/config/database.yml +25 -0
  48. data/spec/dummy/config/environment.rb +5 -0
  49. data/spec/dummy/config/environments/development.rb +37 -0
  50. data/spec/dummy/config/environments/production.rb +67 -0
  51. data/spec/dummy/config/environments/test.rb +37 -0
  52. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  53. data/spec/dummy/config/initializers/inflections.rb +15 -0
  54. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  55. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  56. data/spec/dummy/config/initializers/session_store.rb +8 -0
  57. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  58. data/spec/dummy/config/locales/en.yml +5 -0
  59. data/spec/dummy/config/routes.rb +5 -0
  60. data/spec/dummy/config.ru +4 -0
  61. data/spec/dummy/db/migrate/20130127170331_create_entries.rb +11 -0
  62. data/spec/dummy/db/schema.rb +24 -0
  63. data/spec/dummy/lib/assets/.gitkeep +0 -0
  64. data/spec/dummy/log/.gitkeep +0 -0
  65. data/spec/dummy/public/404.html +26 -0
  66. data/spec/dummy/public/422.html +26 -0
  67. data/spec/dummy/public/500.html +25 -0
  68. data/spec/dummy/public/favicon.ico +0 -0
  69. data/spec/dummy/script/rails +6 -0
  70. data/spec/fixtures/units/example_unit/example_unit.rb +53 -0
  71. data/spec/fixtures/units/inactive_unit/inactive_unit.rb +11 -0
  72. data/spec/nyanko/controller_spec.rb +39 -0
  73. data/spec/nyanko/function_spec.rb +40 -0
  74. data/spec/nyanko/helper_spec.rb +26 -0
  75. data/spec/nyanko/invoker_spec.rb +116 -0
  76. data/spec/nyanko/loader_spec.rb +43 -0
  77. data/spec/nyanko/unit/extender_spec.rb +40 -0
  78. data/spec/nyanko/unit/scope_finder_spec.rb +37 -0
  79. data/spec/nyanko/unit_proxy_provider_spec.rb +40 -0
  80. data/spec/nyanko/unit_proxy_spec.rb +23 -0
  81. data/spec/nyanko/unit_spec.rb +169 -0
  82. data/spec/spec_helper.rb +21 -0
  83. metadata +320 -0
metadata ADDED
@@ -0,0 +1,320 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nyanko
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Ryo Nakamura
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-01-27 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: 3.0.10
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 3.0.10
27
+ - !ruby/object:Gem::Dependency
28
+ name: coffee-rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 3.0.10
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 3.0.10
41
+ - !ruby/object:Gem::Dependency
42
+ name: jquery-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec-rails
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '='
74
+ - !ruby/object:Gem::Version
75
+ version: 2.12.2
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '='
81
+ - !ruby/object:Gem::Version
82
+ version: 2.12.2
83
+ - !ruby/object:Gem::Dependency
84
+ name: sass-rails
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: 3.0.10
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: 3.0.10
97
+ - !ruby/object:Gem::Dependency
98
+ name: simplecov
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: slim
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: sqlite3
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: uglifier
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ description: Nyanko is a Rails extension tool deeply inspired from Chanko
154
+ email:
155
+ - r7kamura@gmail.com
156
+ executables: []
157
+ extensions: []
158
+ extra_rdoc_files: []
159
+ files:
160
+ - ".gitignore"
161
+ - Gemfile
162
+ - MIT-LICENSE
163
+ - README.md
164
+ - Rakefile
165
+ - lib/nyanko.rb
166
+ - lib/nyanko/active_if.rb
167
+ - lib/nyanko/config.rb
168
+ - lib/nyanko/controller.rb
169
+ - lib/nyanko/function.rb
170
+ - lib/nyanko/helper.rb
171
+ - lib/nyanko/invoker.rb
172
+ - lib/nyanko/invoker/function_finder.rb
173
+ - lib/nyanko/invoker/options.rb
174
+ - lib/nyanko/loader.rb
175
+ - lib/nyanko/railtie.rb
176
+ - lib/nyanko/unit.rb
177
+ - lib/nyanko/unit/extender.rb
178
+ - lib/nyanko/unit/extender/active_record_class_methods.rb
179
+ - lib/nyanko/unit/extender/extension.rb
180
+ - lib/nyanko/unit/scope_finder.rb
181
+ - lib/nyanko/unit_proxy.rb
182
+ - lib/nyanko/unit_proxy_provider.rb
183
+ - lib/nyanko/version.rb
184
+ - nyanko.gemspec
185
+ - spec/dummy/README.rdoc
186
+ - spec/dummy/Rakefile
187
+ - spec/dummy/app/assets/javascripts/application.js
188
+ - spec/dummy/app/assets/stylesheets/application.css
189
+ - spec/dummy/app/assets/stylesheets/main.scss
190
+ - spec/dummy/app/assets/stylesheets/reset.scss
191
+ - spec/dummy/app/controllers/application_controller.rb
192
+ - spec/dummy/app/controllers/entries_controller.rb
193
+ - spec/dummy/app/helpers/application_helper.rb
194
+ - spec/dummy/app/mailers/.gitkeep
195
+ - spec/dummy/app/models/.gitkeep
196
+ - spec/dummy/app/models/entry.rb
197
+ - spec/dummy/app/units/entry_deletion/entry_deletion.rb
198
+ - spec/dummy/app/units/entry_deletion/views/_delete_link.html.slim
199
+ - spec/dummy/app/views/entries/edit.html.slim
200
+ - spec/dummy/app/views/entries/index.html.slim
201
+ - spec/dummy/app/views/entries/show.html.slim
202
+ - spec/dummy/app/views/layouts/application.html.slim
203
+ - spec/dummy/config.ru
204
+ - spec/dummy/config/application.rb
205
+ - spec/dummy/config/boot.rb
206
+ - spec/dummy/config/database.yml
207
+ - spec/dummy/config/environment.rb
208
+ - spec/dummy/config/environments/development.rb
209
+ - spec/dummy/config/environments/production.rb
210
+ - spec/dummy/config/environments/test.rb
211
+ - spec/dummy/config/initializers/backtrace_silencers.rb
212
+ - spec/dummy/config/initializers/inflections.rb
213
+ - spec/dummy/config/initializers/mime_types.rb
214
+ - spec/dummy/config/initializers/secret_token.rb
215
+ - spec/dummy/config/initializers/session_store.rb
216
+ - spec/dummy/config/initializers/wrap_parameters.rb
217
+ - spec/dummy/config/locales/en.yml
218
+ - spec/dummy/config/routes.rb
219
+ - spec/dummy/db/migrate/20130127170331_create_entries.rb
220
+ - spec/dummy/db/schema.rb
221
+ - spec/dummy/lib/assets/.gitkeep
222
+ - spec/dummy/log/.gitkeep
223
+ - spec/dummy/public/404.html
224
+ - spec/dummy/public/422.html
225
+ - spec/dummy/public/500.html
226
+ - spec/dummy/public/favicon.ico
227
+ - spec/dummy/script/rails
228
+ - spec/fixtures/units/example_unit/example_unit.rb
229
+ - spec/fixtures/units/inactive_unit/inactive_unit.rb
230
+ - spec/nyanko/controller_spec.rb
231
+ - spec/nyanko/function_spec.rb
232
+ - spec/nyanko/helper_spec.rb
233
+ - spec/nyanko/invoker_spec.rb
234
+ - spec/nyanko/loader_spec.rb
235
+ - spec/nyanko/unit/extender_spec.rb
236
+ - spec/nyanko/unit/scope_finder_spec.rb
237
+ - spec/nyanko/unit_proxy_provider_spec.rb
238
+ - spec/nyanko/unit_proxy_spec.rb
239
+ - spec/nyanko/unit_spec.rb
240
+ - spec/spec_helper.rb
241
+ homepage: https://github.com/r7kamura/nyanko
242
+ licenses: []
243
+ metadata: {}
244
+ post_install_message:
245
+ rdoc_options: []
246
+ require_paths:
247
+ - lib
248
+ required_ruby_version: !ruby/object:Gem::Requirement
249
+ requirements:
250
+ - - ">="
251
+ - !ruby/object:Gem::Version
252
+ version: '0'
253
+ required_rubygems_version: !ruby/object:Gem::Requirement
254
+ requirements:
255
+ - - ">="
256
+ - !ruby/object:Gem::Version
257
+ version: '0'
258
+ requirements: []
259
+ rubyforge_project:
260
+ rubygems_version: 2.0.0.preview3
261
+ signing_key:
262
+ specification_version: 4
263
+ summary: Rails extension tool
264
+ test_files:
265
+ - spec/dummy/README.rdoc
266
+ - spec/dummy/Rakefile
267
+ - spec/dummy/app/assets/javascripts/application.js
268
+ - spec/dummy/app/assets/stylesheets/application.css
269
+ - spec/dummy/app/assets/stylesheets/main.scss
270
+ - spec/dummy/app/assets/stylesheets/reset.scss
271
+ - spec/dummy/app/controllers/application_controller.rb
272
+ - spec/dummy/app/controllers/entries_controller.rb
273
+ - spec/dummy/app/helpers/application_helper.rb
274
+ - spec/dummy/app/mailers/.gitkeep
275
+ - spec/dummy/app/models/.gitkeep
276
+ - spec/dummy/app/models/entry.rb
277
+ - spec/dummy/app/units/entry_deletion/entry_deletion.rb
278
+ - spec/dummy/app/units/entry_deletion/views/_delete_link.html.slim
279
+ - spec/dummy/app/views/entries/edit.html.slim
280
+ - spec/dummy/app/views/entries/index.html.slim
281
+ - spec/dummy/app/views/entries/show.html.slim
282
+ - spec/dummy/app/views/layouts/application.html.slim
283
+ - spec/dummy/config.ru
284
+ - spec/dummy/config/application.rb
285
+ - spec/dummy/config/boot.rb
286
+ - spec/dummy/config/database.yml
287
+ - spec/dummy/config/environment.rb
288
+ - spec/dummy/config/environments/development.rb
289
+ - spec/dummy/config/environments/production.rb
290
+ - spec/dummy/config/environments/test.rb
291
+ - spec/dummy/config/initializers/backtrace_silencers.rb
292
+ - spec/dummy/config/initializers/inflections.rb
293
+ - spec/dummy/config/initializers/mime_types.rb
294
+ - spec/dummy/config/initializers/secret_token.rb
295
+ - spec/dummy/config/initializers/session_store.rb
296
+ - spec/dummy/config/initializers/wrap_parameters.rb
297
+ - spec/dummy/config/locales/en.yml
298
+ - spec/dummy/config/routes.rb
299
+ - spec/dummy/db/migrate/20130127170331_create_entries.rb
300
+ - spec/dummy/db/schema.rb
301
+ - spec/dummy/lib/assets/.gitkeep
302
+ - spec/dummy/log/.gitkeep
303
+ - spec/dummy/public/404.html
304
+ - spec/dummy/public/422.html
305
+ - spec/dummy/public/500.html
306
+ - spec/dummy/public/favicon.ico
307
+ - spec/dummy/script/rails
308
+ - spec/fixtures/units/example_unit/example_unit.rb
309
+ - spec/fixtures/units/inactive_unit/inactive_unit.rb
310
+ - spec/nyanko/controller_spec.rb
311
+ - spec/nyanko/function_spec.rb
312
+ - spec/nyanko/helper_spec.rb
313
+ - spec/nyanko/invoker_spec.rb
314
+ - spec/nyanko/loader_spec.rb
315
+ - spec/nyanko/unit/extender_spec.rb
316
+ - spec/nyanko/unit/scope_finder_spec.rb
317
+ - spec/nyanko/unit_proxy_provider_spec.rb
318
+ - spec/nyanko/unit_proxy_spec.rb
319
+ - spec/nyanko/unit_spec.rb
320
+ - spec/spec_helper.rb