batman-rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. data/.gitignore +5 -0
  2. data/Gemfile +4 -0
  3. data/README.md +73 -0
  4. data/Rakefile +18 -0
  5. data/batman-rails.gemspec +27 -0
  6. data/lib/batman-rails.rb +1 -0
  7. data/lib/batman/rails.rb +6 -0
  8. data/lib/batman/rails/engine.rb +6 -0
  9. data/lib/batman/rails/version.rb +6 -0
  10. data/lib/generators/batman/common.rb +45 -0
  11. data/lib/generators/batman/controller_generator.rb +33 -0
  12. data/lib/generators/batman/helper_generator.rb +14 -0
  13. data/lib/generators/batman/install_generator.rb +58 -0
  14. data/lib/generators/batman/model_generator.rb +29 -0
  15. data/lib/generators/batman/scaffold_generator.rb +19 -0
  16. data/lib/generators/batman/templates/batman_app.coffee +25 -0
  17. data/lib/generators/batman/templates/controller.coffee +5 -0
  18. data/lib/generators/batman/templates/helper.coffee +5 -0
  19. data/lib/generators/batman/templates/model.coffee +7 -0
  20. data/test/controller_generator_test.rb +40 -0
  21. data/test/fixtures/application.js +9 -0
  22. data/test/install_generator_test.rb +82 -0
  23. data/test/model_generator_test.rb +44 -0
  24. data/test/sample/.gitignore +5 -0
  25. data/test/sample/Gemfile +30 -0
  26. data/test/sample/README +261 -0
  27. data/test/sample/Rakefile +7 -0
  28. data/test/sample/app/assets/images/rails.png +0 -0
  29. data/test/sample/app/assets/javascripts/application.js +9 -0
  30. data/test/sample/app/assets/stylesheets/application.css +7 -0
  31. data/test/sample/app/controllers/application_controller.rb +3 -0
  32. data/test/sample/app/helpers/application_helper.rb +2 -0
  33. data/test/sample/app/mailers/.gitkeep +0 -0
  34. data/test/sample/app/models/.gitkeep +0 -0
  35. data/test/sample/app/views/layouts/application.html.erb +14 -0
  36. data/test/sample/config.ru +4 -0
  37. data/test/sample/config/application.rb +48 -0
  38. data/test/sample/config/boot.rb +6 -0
  39. data/test/sample/config/database.yml +25 -0
  40. data/test/sample/config/environment.rb +5 -0
  41. data/test/sample/config/environments/development.rb +30 -0
  42. data/test/sample/config/environments/production.rb +60 -0
  43. data/test/sample/config/environments/test.rb +42 -0
  44. data/test/sample/config/initializers/backtrace_silencers.rb +7 -0
  45. data/test/sample/config/initializers/inflections.rb +10 -0
  46. data/test/sample/config/initializers/mime_types.rb +5 -0
  47. data/test/sample/config/initializers/secret_token.rb +7 -0
  48. data/test/sample/config/initializers/session_store.rb +8 -0
  49. data/test/sample/config/initializers/wrap_parameters.rb +14 -0
  50. data/test/sample/config/locales/en.yml +5 -0
  51. data/test/sample/config/routes.rb +58 -0
  52. data/test/sample/db/seeds.rb +7 -0
  53. data/test/sample/doc/README_FOR_APP +2 -0
  54. data/test/sample/lib/assets/.gitkeep +0 -0
  55. data/test/sample/lib/tasks/.gitkeep +0 -0
  56. data/test/sample/log/.gitkeep +0 -0
  57. data/test/sample/public/404.html +26 -0
  58. data/test/sample/public/422.html +26 -0
  59. data/test/sample/public/500.html +26 -0
  60. data/test/sample/public/favicon.ico +0 -0
  61. data/test/sample/public/index.html +241 -0
  62. data/test/sample/public/robots.txt +5 -0
  63. data/test/sample/script/rails +6 -0
  64. data/test/sample/test/fixtures/.gitkeep +0 -0
  65. data/test/sample/test/functional/.gitkeep +0 -0
  66. data/test/sample/test/integration/.gitkeep +0 -0
  67. data/test/sample/test/performance/browsing_test.rb +12 -0
  68. data/test/sample/test/test_helper.rb +13 -0
  69. data/test/sample/test/unit/.gitkeep +0 -0
  70. data/test/sample/vendor/assets/stylesheets/.gitkeep +0 -0
  71. data/test/sample/vendor/plugins/.gitkeep +0 -0
  72. data/test/test_helper.rb +24 -0
  73. data/vendor/assets/javascripts/batman/batman.jquery.js +72 -0
  74. data/vendor/assets/javascripts/batman/batman.js +5193 -0
  75. data/vendor/assets/javascripts/batman/batman.rails.js +58 -0
  76. data/vendor/assets/javascripts/batman/batman.solo.js +414 -0
  77. metadata +285 -0
metadata ADDED
@@ -0,0 +1,285 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: batman-rails
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: ruby
12
+ authors:
13
+ - John Duff
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-10-17 00:00:00 -04:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ version_requirements: &id001 !ruby/object:Gem::Requirement
23
+ none: false
24
+ requirements:
25
+ - - ~>
26
+ - !ruby/object:Gem::Version
27
+ hash: 3
28
+ segments:
29
+ - 3
30
+ - 1
31
+ - 0
32
+ version: 3.1.0
33
+ name: railties
34
+ type: :runtime
35
+ prerelease: false
36
+ requirement: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ version_requirements: &id002 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ hash: 23
44
+ segments:
45
+ - 0
46
+ - 14
47
+ version: "0.14"
48
+ name: thor
49
+ type: :runtime
50
+ prerelease: false
51
+ requirement: *id002
52
+ - !ruby/object:Gem::Dependency
53
+ version_requirements: &id003 !ruby/object:Gem::Requirement
54
+ none: false
55
+ requirements:
56
+ - - ~>
57
+ - !ruby/object:Gem::Version
58
+ hash: 23
59
+ segments:
60
+ - 1
61
+ - 0
62
+ - 0
63
+ version: 1.0.0
64
+ name: bundler
65
+ type: :development
66
+ prerelease: false
67
+ requirement: *id003
68
+ - !ruby/object:Gem::Dependency
69
+ version_requirements: &id004 !ruby/object:Gem::Requirement
70
+ none: false
71
+ requirements:
72
+ - - ~>
73
+ - !ruby/object:Gem::Version
74
+ hash: 3
75
+ segments:
76
+ - 3
77
+ - 1
78
+ - 0
79
+ version: 3.1.0
80
+ name: rails
81
+ type: :development
82
+ prerelease: false
83
+ requirement: *id004
84
+ - !ruby/object:Gem::Dependency
85
+ version_requirements: &id005 !ruby/object:Gem::Requirement
86
+ none: false
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ hash: 3
91
+ segments:
92
+ - 0
93
+ version: "0"
94
+ name: mocha
95
+ type: :development
96
+ prerelease: false
97
+ requirement: *id005
98
+ - !ruby/object:Gem::Dependency
99
+ version_requirements: &id006 !ruby/object:Gem::Requirement
100
+ none: false
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ hash: 3
105
+ segments:
106
+ - 0
107
+ version: "0"
108
+ name: sqlite3
109
+ type: :development
110
+ prerelease: false
111
+ requirement: *id006
112
+ description: Quickly get started with Batman.js in a Rails 3.1 app. Provides generators to get started and bundles in the latest version of Batman.js.
113
+ email:
114
+ - john.duff@jadedpixel.com
115
+ executables: []
116
+
117
+ extensions: []
118
+
119
+ extra_rdoc_files: []
120
+
121
+ files:
122
+ - .gitignore
123
+ - Gemfile
124
+ - README.md
125
+ - Rakefile
126
+ - batman-rails.gemspec
127
+ - lib/batman-rails.rb
128
+ - lib/batman/rails.rb
129
+ - lib/batman/rails/engine.rb
130
+ - lib/batman/rails/version.rb
131
+ - lib/generators/batman/common.rb
132
+ - lib/generators/batman/controller_generator.rb
133
+ - lib/generators/batman/helper_generator.rb
134
+ - lib/generators/batman/install_generator.rb
135
+ - lib/generators/batman/model_generator.rb
136
+ - lib/generators/batman/scaffold_generator.rb
137
+ - lib/generators/batman/templates/batman_app.coffee
138
+ - lib/generators/batman/templates/controller.coffee
139
+ - lib/generators/batman/templates/helper.coffee
140
+ - lib/generators/batman/templates/model.coffee
141
+ - test/controller_generator_test.rb
142
+ - test/fixtures/application.js
143
+ - test/install_generator_test.rb
144
+ - test/model_generator_test.rb
145
+ - test/sample/.gitignore
146
+ - test/sample/Gemfile
147
+ - test/sample/README
148
+ - test/sample/Rakefile
149
+ - test/sample/app/assets/images/rails.png
150
+ - test/sample/app/assets/javascripts/application.js
151
+ - test/sample/app/assets/stylesheets/application.css
152
+ - test/sample/app/controllers/application_controller.rb
153
+ - test/sample/app/helpers/application_helper.rb
154
+ - test/sample/app/mailers/.gitkeep
155
+ - test/sample/app/models/.gitkeep
156
+ - test/sample/app/views/layouts/application.html.erb
157
+ - test/sample/config.ru
158
+ - test/sample/config/application.rb
159
+ - test/sample/config/boot.rb
160
+ - test/sample/config/database.yml
161
+ - test/sample/config/environment.rb
162
+ - test/sample/config/environments/development.rb
163
+ - test/sample/config/environments/production.rb
164
+ - test/sample/config/environments/test.rb
165
+ - test/sample/config/initializers/backtrace_silencers.rb
166
+ - test/sample/config/initializers/inflections.rb
167
+ - test/sample/config/initializers/mime_types.rb
168
+ - test/sample/config/initializers/secret_token.rb
169
+ - test/sample/config/initializers/session_store.rb
170
+ - test/sample/config/initializers/wrap_parameters.rb
171
+ - test/sample/config/locales/en.yml
172
+ - test/sample/config/routes.rb
173
+ - test/sample/db/seeds.rb
174
+ - test/sample/doc/README_FOR_APP
175
+ - test/sample/lib/assets/.gitkeep
176
+ - test/sample/lib/tasks/.gitkeep
177
+ - test/sample/log/.gitkeep
178
+ - test/sample/public/404.html
179
+ - test/sample/public/422.html
180
+ - test/sample/public/500.html
181
+ - test/sample/public/favicon.ico
182
+ - test/sample/public/index.html
183
+ - test/sample/public/robots.txt
184
+ - test/sample/script/rails
185
+ - test/sample/test/fixtures/.gitkeep
186
+ - test/sample/test/functional/.gitkeep
187
+ - test/sample/test/integration/.gitkeep
188
+ - test/sample/test/performance/browsing_test.rb
189
+ - test/sample/test/test_helper.rb
190
+ - test/sample/test/unit/.gitkeep
191
+ - test/sample/vendor/assets/stylesheets/.gitkeep
192
+ - test/sample/vendor/plugins/.gitkeep
193
+ - test/test_helper.rb
194
+ - vendor/assets/javascripts/batman/batman.jquery.js
195
+ - vendor/assets/javascripts/batman/batman.js
196
+ - vendor/assets/javascripts/batman/batman.rails.js
197
+ - vendor/assets/javascripts/batman/batman.solo.js
198
+ has_rdoc: true
199
+ homepage: https://github.com/Shopify/batman-rails
200
+ licenses: []
201
+
202
+ post_install_message:
203
+ rdoc_options: []
204
+
205
+ require_paths:
206
+ - lib
207
+ required_ruby_version: !ruby/object:Gem::Requirement
208
+ none: false
209
+ requirements:
210
+ - - ">="
211
+ - !ruby/object:Gem::Version
212
+ hash: 3
213
+ segments:
214
+ - 0
215
+ version: "0"
216
+ required_rubygems_version: !ruby/object:Gem::Requirement
217
+ none: false
218
+ requirements:
219
+ - - ">="
220
+ - !ruby/object:Gem::Version
221
+ hash: 3
222
+ segments:
223
+ - 0
224
+ version: "0"
225
+ requirements: []
226
+
227
+ rubyforge_project: batman-rails
228
+ rubygems_version: 1.6.2
229
+ signing_key:
230
+ specification_version: 3
231
+ summary: Use Batman.js with Rails 3.1
232
+ test_files:
233
+ - test/controller_generator_test.rb
234
+ - test/fixtures/application.js
235
+ - test/install_generator_test.rb
236
+ - test/model_generator_test.rb
237
+ - test/sample/.gitignore
238
+ - test/sample/Gemfile
239
+ - test/sample/README
240
+ - test/sample/Rakefile
241
+ - test/sample/app/assets/images/rails.png
242
+ - test/sample/app/assets/javascripts/application.js
243
+ - test/sample/app/assets/stylesheets/application.css
244
+ - test/sample/app/controllers/application_controller.rb
245
+ - test/sample/app/helpers/application_helper.rb
246
+ - test/sample/app/mailers/.gitkeep
247
+ - test/sample/app/models/.gitkeep
248
+ - test/sample/app/views/layouts/application.html.erb
249
+ - test/sample/config.ru
250
+ - test/sample/config/application.rb
251
+ - test/sample/config/boot.rb
252
+ - test/sample/config/database.yml
253
+ - test/sample/config/environment.rb
254
+ - test/sample/config/environments/development.rb
255
+ - test/sample/config/environments/production.rb
256
+ - test/sample/config/environments/test.rb
257
+ - test/sample/config/initializers/backtrace_silencers.rb
258
+ - test/sample/config/initializers/inflections.rb
259
+ - test/sample/config/initializers/mime_types.rb
260
+ - test/sample/config/initializers/secret_token.rb
261
+ - test/sample/config/initializers/session_store.rb
262
+ - test/sample/config/initializers/wrap_parameters.rb
263
+ - test/sample/config/locales/en.yml
264
+ - test/sample/config/routes.rb
265
+ - test/sample/db/seeds.rb
266
+ - test/sample/doc/README_FOR_APP
267
+ - test/sample/lib/assets/.gitkeep
268
+ - test/sample/lib/tasks/.gitkeep
269
+ - test/sample/log/.gitkeep
270
+ - test/sample/public/404.html
271
+ - test/sample/public/422.html
272
+ - test/sample/public/500.html
273
+ - test/sample/public/favicon.ico
274
+ - test/sample/public/index.html
275
+ - test/sample/public/robots.txt
276
+ - test/sample/script/rails
277
+ - test/sample/test/fixtures/.gitkeep
278
+ - test/sample/test/functional/.gitkeep
279
+ - test/sample/test/integration/.gitkeep
280
+ - test/sample/test/performance/browsing_test.rb
281
+ - test/sample/test/test_helper.rb
282
+ - test/sample/test/unit/.gitkeep
283
+ - test/sample/vendor/assets/stylesheets/.gitkeep
284
+ - test/sample/vendor/plugins/.gitkeep
285
+ - test/test_helper.rb