initjs 0.1.3 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. data/.gitignore +9 -10
  2. data/.rvmrc +1 -0
  3. data/.travis.yml +15 -0
  4. data/LICENSE.txt +2 -2
  5. data/README.md +176 -47
  6. data/initjs.gemspec +11 -4
  7. data/lib/assets/javascript/init.js.coffee +8 -1
  8. data/lib/generators/initjs/add/add_generator.rb +57 -0
  9. data/lib/generators/initjs/add/templates/namespaced_action.coffee +5 -0
  10. data/lib/generators/initjs/add/templates/simple_action.coffee +3 -0
  11. data/lib/generators/initjs/install/install_generator.rb +25 -0
  12. data/lib/generators/initjs/install/templates/app.coffee +15 -0
  13. data/lib/generators/initjs/resource_helpers.rb +23 -0
  14. data/lib/initjs/helper.rb +5 -4
  15. data/lib/initjs/version.rb +1 -1
  16. data/spec/dummy/.rspec +1 -0
  17. data/spec/dummy/Gemfile +10 -0
  18. data/spec/dummy/Rakefile +7 -0
  19. data/spec/dummy/app/assets/javascripts/application-turbolinks.js +12 -0
  20. data/spec/dummy/app/assets/javascripts/application.js +10 -0
  21. data/spec/dummy/app/assets/javascripts/application.sample.js +15 -0
  22. data/spec/dummy/app/assets/javascripts/dummy/blog/.gitkip +0 -0
  23. data/spec/dummy/app/assets/javascripts/dummy/blog/posts/.gitkip +0 -0
  24. data/spec/dummy/app/assets/javascripts/dummy/blog/posts/index.js.coffee +6 -0
  25. data/spec/dummy/app/assets/javascripts/dummy/blog/posts/new.js.coffee +6 -0
  26. data/spec/dummy/app/assets/javascripts/dummy/blog/posts/show.js.coffee +6 -0
  27. data/{lib/generators/initjs/templates/app.js.coffee → spec/dummy/app/assets/javascripts/dummy/dummy.js.coffee} +4 -1
  28. data/spec/dummy/app/assets/javascripts/dummy/home/.gitkip +0 -0
  29. data/spec/dummy/app/assets/javascripts/dummy/home/index.js.coffee +4 -0
  30. data/spec/dummy/app/assets/javascripts/dummy/posts/.gitkip +0 -0
  31. data/spec/dummy/app/assets/javascripts/dummy/posts/index.js.coffee +4 -0
  32. data/spec/dummy/app/assets/javascripts/dummy/posts/new.js.coffee +4 -0
  33. data/spec/dummy/app/assets/javascripts/dummy/posts/show.js.coffee +4 -0
  34. data/spec/dummy/app/assets/stylesheets/application.css +7 -0
  35. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  36. data/spec/dummy/app/controllers/blog/posts_controller.rb +10 -0
  37. data/spec/dummy/app/controllers/home_controller.rb +4 -0
  38. data/spec/dummy/app/controllers/posts_controller.rb +10 -0
  39. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  40. data/spec/dummy/app/mailers/.gitkeep +0 -0
  41. data/spec/dummy/app/models/.gitkeep +0 -0
  42. data/spec/dummy/app/views/blog/posts/index.html.erb +2 -0
  43. data/spec/dummy/app/views/blog/posts/new.html.erb +2 -0
  44. data/spec/dummy/app/views/blog/posts/show.html.erb +2 -0
  45. data/spec/dummy/app/views/home/index.html.erb +10 -0
  46. data/spec/dummy/app/views/layouts/application.html.erb +24 -0
  47. data/spec/dummy/app/views/posts/index.html.erb +2 -0
  48. data/spec/dummy/app/views/posts/new.html.erb +2 -0
  49. data/spec/dummy/app/views/posts/show.html.erb +2 -0
  50. data/spec/dummy/config.ru +4 -0
  51. data/spec/dummy/config/application.rb +54 -0
  52. data/spec/dummy/config/boot.rb +6 -0
  53. data/spec/dummy/config/database.yml +25 -0
  54. data/spec/dummy/config/environment.rb +5 -0
  55. data/spec/dummy/config/environments/development.rb +30 -0
  56. data/spec/dummy/config/environments/production.rb +60 -0
  57. data/spec/dummy/config/environments/test.rb +39 -0
  58. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  59. data/spec/dummy/config/initializers/inflections.rb +10 -0
  60. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  61. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  62. data/spec/dummy/config/initializers/session_store.rb +8 -0
  63. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  64. data/spec/dummy/config/locales/en.yml +5 -0
  65. data/spec/dummy/config/routes.rb +8 -0
  66. data/spec/dummy/db/seeds.rb +7 -0
  67. data/spec/dummy/lib/assets/.gitkeep +0 -0
  68. data/spec/dummy/lib/tasks/.gitkeep +0 -0
  69. data/spec/dummy/log/.gitkeep +0 -0
  70. data/spec/dummy/public/404.html +26 -0
  71. data/spec/dummy/public/422.html +26 -0
  72. data/spec/dummy/public/500.html +26 -0
  73. data/spec/dummy/public/favicon.ico +0 -0
  74. data/spec/dummy/public/robots.txt +5 -0
  75. data/spec/dummy/script/rails +6 -0
  76. data/spec/dummy/spec/features/blog_posts_spec.rb +47 -0
  77. data/spec/dummy/spec/features/home_spec.rb +11 -0
  78. data/spec/dummy/spec/features/posts_spec.rb +47 -0
  79. data/spec/dummy/spec/lib/generators/initjs/add_generator_spec.rb +80 -0
  80. data/spec/dummy/spec/lib/generators/initjs/install_generator_spec.rb +36 -0
  81. data/spec/dummy/spec/spec_helper.rb +33 -0
  82. data/spec/tmp/app/assets/javascripts/.gitkip +0 -0
  83. metadata +278 -10
  84. data/lib/generators/initjs/initjs_generator.rb +0 -11
@@ -0,0 +1,36 @@
1
+ require "spec_helper"
2
+
3
+ describe Initjs::Generators::InstallGenerator do
4
+ include GeneratorSpec::TestCase
5
+ destination TMP_PATH
6
+
7
+ before(:all) do
8
+ copy_file "#{DUMMY_PATH}/app/assets/javascripts/application.sample.js", "#{TMP_PATH}/app/assets/javascripts/application.js"
9
+ run_generator
10
+ end
11
+
12
+ it "should inject requires for app file and initjs" do
13
+ destination_root.should have_structure {
14
+ directory 'app/assets/javascripts' do
15
+ file 'application.js' do
16
+ contains '//= require dummy/dummy.js'
17
+ contains '//= require init.js'
18
+ end
19
+ end
20
+ }
21
+ end
22
+
23
+ it "should create app file" do
24
+ destination_root.should have_structure {
25
+ directory 'app/assets/javascripts' do
26
+ directory 'dummy' do
27
+ file 'dummy.js.coffee' do
28
+ contains '#= require_self'
29
+ contains '#= require_tree .'
30
+ contains 'window.Dummy ='
31
+ end
32
+ end
33
+ end
34
+ }
35
+ end
36
+ end
@@ -0,0 +1,33 @@
1
+ # This file is copied to spec/ when you run 'rails generate rspec:install'
2
+ ENV["RAILS_ENV"] ||= 'test'
3
+ require File.expand_path("../../config/environment", __FILE__)
4
+ require 'rspec/rails'
5
+ require 'rspec/autorun'
6
+
7
+ require 'generator_spec/test_case'
8
+ require 'capybara/rails'
9
+ require 'capybara/rspec'
10
+
11
+ # Requires supporting ruby files with custom matchers and macros, etc,
12
+ # in spec/support/ and its subdirectories.
13
+ Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
14
+
15
+ RSpec.configure do |config|
16
+ config.include Capybara::DSL
17
+
18
+ # If true, the base class of anonymous controllers will be inferred
19
+ # automatically. This will be the default behavior in future versions of
20
+ # rspec-rails.
21
+ config.infer_base_class_for_anonymous_controllers = false
22
+
23
+ # Run specs in random order to surface order dependencies. If you find an
24
+ # order dependency and want to debug it, you can fix the order by providing
25
+ # the seed, which is printed after each run.
26
+ # --seed 1234
27
+ config.order = "random"
28
+ end
29
+
30
+ TMP_PATH = File.expand_path("../../../tmp", __FILE__)
31
+ DUMMY_PATH = File.expand_path("../../../dummy", __FILE__)
32
+
33
+ Dir[File.expand_path("../../lib/generators/initjs/**/**_generator.rb")].each {|f| require f}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: initjs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 1.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-27 00:00:00.000000000 Z
12
+ date: 2013-03-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -27,8 +27,136 @@ dependencies:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: '3.1'
30
- description: Init.js is a Ruby Gem that helps run your javascript only in a page that
31
- its necessary
30
+ - !ruby/object:Gem::Dependency
31
+ name: jquery-rails
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: rspec-rails
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: 2.13.0
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 2.13.0
62
+ - !ruby/object:Gem::Dependency
63
+ name: generator_spec
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: 0.8.7
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: 0.8.7
78
+ - !ruby/object:Gem::Dependency
79
+ name: capybara
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ~>
84
+ - !ruby/object:Gem::Version
85
+ version: 2.0.2
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: 2.0.2
94
+ - !ruby/object:Gem::Dependency
95
+ name: sqlite3
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: jquery-rails
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
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
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: coffee-rails
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ type: :development
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ - !ruby/object:Gem::Dependency
143
+ name: turbolinks
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ! '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ type: :development
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
158
+ description: Initjs helps your organize your javascript files using Rails' asset pipeline.
159
+ Providing a simple and automatic way to execute your javascript for a specific page.
32
160
  email:
33
161
  - josemarluedke@gmail.com
34
162
  executables: []
@@ -36,18 +164,91 @@ extensions: []
36
164
  extra_rdoc_files: []
37
165
  files:
38
166
  - .gitignore
167
+ - .rvmrc
168
+ - .travis.yml
39
169
  - Gemfile
40
170
  - LICENSE.txt
41
171
  - README.md
42
172
  - Rakefile
43
173
  - initjs.gemspec
44
174
  - lib/assets/javascript/init.js.coffee
45
- - lib/generators/initjs/initjs_generator.rb
46
- - lib/generators/initjs/templates/app.js.coffee
175
+ - lib/generators/initjs/add/add_generator.rb
176
+ - lib/generators/initjs/add/templates/namespaced_action.coffee
177
+ - lib/generators/initjs/add/templates/simple_action.coffee
178
+ - lib/generators/initjs/install/install_generator.rb
179
+ - lib/generators/initjs/install/templates/app.coffee
180
+ - lib/generators/initjs/resource_helpers.rb
47
181
  - lib/initjs.rb
48
182
  - lib/initjs/helper.rb
49
183
  - lib/initjs/version.rb
50
- homepage: ''
184
+ - spec/dummy/.rspec
185
+ - spec/dummy/Gemfile
186
+ - spec/dummy/Rakefile
187
+ - spec/dummy/app/assets/javascripts/application-turbolinks.js
188
+ - spec/dummy/app/assets/javascripts/application.js
189
+ - spec/dummy/app/assets/javascripts/application.sample.js
190
+ - spec/dummy/app/assets/javascripts/dummy/blog/.gitkip
191
+ - spec/dummy/app/assets/javascripts/dummy/blog/posts/.gitkip
192
+ - spec/dummy/app/assets/javascripts/dummy/blog/posts/index.js.coffee
193
+ - spec/dummy/app/assets/javascripts/dummy/blog/posts/new.js.coffee
194
+ - spec/dummy/app/assets/javascripts/dummy/blog/posts/show.js.coffee
195
+ - spec/dummy/app/assets/javascripts/dummy/dummy.js.coffee
196
+ - spec/dummy/app/assets/javascripts/dummy/home/.gitkip
197
+ - spec/dummy/app/assets/javascripts/dummy/home/index.js.coffee
198
+ - spec/dummy/app/assets/javascripts/dummy/posts/.gitkip
199
+ - spec/dummy/app/assets/javascripts/dummy/posts/index.js.coffee
200
+ - spec/dummy/app/assets/javascripts/dummy/posts/new.js.coffee
201
+ - spec/dummy/app/assets/javascripts/dummy/posts/show.js.coffee
202
+ - spec/dummy/app/assets/stylesheets/application.css
203
+ - spec/dummy/app/controllers/application_controller.rb
204
+ - spec/dummy/app/controllers/blog/posts_controller.rb
205
+ - spec/dummy/app/controllers/home_controller.rb
206
+ - spec/dummy/app/controllers/posts_controller.rb
207
+ - spec/dummy/app/helpers/application_helper.rb
208
+ - spec/dummy/app/mailers/.gitkeep
209
+ - spec/dummy/app/models/.gitkeep
210
+ - spec/dummy/app/views/blog/posts/index.html.erb
211
+ - spec/dummy/app/views/blog/posts/new.html.erb
212
+ - spec/dummy/app/views/blog/posts/show.html.erb
213
+ - spec/dummy/app/views/home/index.html.erb
214
+ - spec/dummy/app/views/layouts/application.html.erb
215
+ - spec/dummy/app/views/posts/index.html.erb
216
+ - spec/dummy/app/views/posts/new.html.erb
217
+ - spec/dummy/app/views/posts/show.html.erb
218
+ - spec/dummy/config.ru
219
+ - spec/dummy/config/application.rb
220
+ - spec/dummy/config/boot.rb
221
+ - spec/dummy/config/database.yml
222
+ - spec/dummy/config/environment.rb
223
+ - spec/dummy/config/environments/development.rb
224
+ - spec/dummy/config/environments/production.rb
225
+ - spec/dummy/config/environments/test.rb
226
+ - spec/dummy/config/initializers/backtrace_silencers.rb
227
+ - spec/dummy/config/initializers/inflections.rb
228
+ - spec/dummy/config/initializers/mime_types.rb
229
+ - spec/dummy/config/initializers/secret_token.rb
230
+ - spec/dummy/config/initializers/session_store.rb
231
+ - spec/dummy/config/initializers/wrap_parameters.rb
232
+ - spec/dummy/config/locales/en.yml
233
+ - spec/dummy/config/routes.rb
234
+ - spec/dummy/db/seeds.rb
235
+ - spec/dummy/lib/assets/.gitkeep
236
+ - spec/dummy/lib/tasks/.gitkeep
237
+ - spec/dummy/log/.gitkeep
238
+ - spec/dummy/public/404.html
239
+ - spec/dummy/public/422.html
240
+ - spec/dummy/public/500.html
241
+ - spec/dummy/public/favicon.ico
242
+ - spec/dummy/public/robots.txt
243
+ - spec/dummy/script/rails
244
+ - spec/dummy/spec/features/blog_posts_spec.rb
245
+ - spec/dummy/spec/features/home_spec.rb
246
+ - spec/dummy/spec/features/posts_spec.rb
247
+ - spec/dummy/spec/lib/generators/initjs/add_generator_spec.rb
248
+ - spec/dummy/spec/lib/generators/initjs/install_generator_spec.rb
249
+ - spec/dummy/spec/spec_helper.rb
250
+ - spec/tmp/app/assets/javascripts/.gitkip
251
+ homepage: http://github.com/josemarluedke/initjs
51
252
  licenses: []
52
253
  post_install_message:
53
254
  rdoc_options: []
@@ -67,8 +268,75 @@ required_rubygems_version: !ruby/object:Gem::Requirement
67
268
  version: '0'
68
269
  requirements: []
69
270
  rubyforge_project:
70
- rubygems_version: 1.8.23
271
+ rubygems_version: 1.8.25
71
272
  signing_key:
72
273
  specification_version: 3
73
- summary: Init.js for your Rails application
74
- test_files: []
274
+ summary: Initjs for your Rails application
275
+ test_files:
276
+ - spec/dummy/.rspec
277
+ - spec/dummy/Gemfile
278
+ - spec/dummy/Rakefile
279
+ - spec/dummy/app/assets/javascripts/application-turbolinks.js
280
+ - spec/dummy/app/assets/javascripts/application.js
281
+ - spec/dummy/app/assets/javascripts/application.sample.js
282
+ - spec/dummy/app/assets/javascripts/dummy/blog/.gitkip
283
+ - spec/dummy/app/assets/javascripts/dummy/blog/posts/.gitkip
284
+ - spec/dummy/app/assets/javascripts/dummy/blog/posts/index.js.coffee
285
+ - spec/dummy/app/assets/javascripts/dummy/blog/posts/new.js.coffee
286
+ - spec/dummy/app/assets/javascripts/dummy/blog/posts/show.js.coffee
287
+ - spec/dummy/app/assets/javascripts/dummy/dummy.js.coffee
288
+ - spec/dummy/app/assets/javascripts/dummy/home/.gitkip
289
+ - spec/dummy/app/assets/javascripts/dummy/home/index.js.coffee
290
+ - spec/dummy/app/assets/javascripts/dummy/posts/.gitkip
291
+ - spec/dummy/app/assets/javascripts/dummy/posts/index.js.coffee
292
+ - spec/dummy/app/assets/javascripts/dummy/posts/new.js.coffee
293
+ - spec/dummy/app/assets/javascripts/dummy/posts/show.js.coffee
294
+ - spec/dummy/app/assets/stylesheets/application.css
295
+ - spec/dummy/app/controllers/application_controller.rb
296
+ - spec/dummy/app/controllers/blog/posts_controller.rb
297
+ - spec/dummy/app/controllers/home_controller.rb
298
+ - spec/dummy/app/controllers/posts_controller.rb
299
+ - spec/dummy/app/helpers/application_helper.rb
300
+ - spec/dummy/app/mailers/.gitkeep
301
+ - spec/dummy/app/models/.gitkeep
302
+ - spec/dummy/app/views/blog/posts/index.html.erb
303
+ - spec/dummy/app/views/blog/posts/new.html.erb
304
+ - spec/dummy/app/views/blog/posts/show.html.erb
305
+ - spec/dummy/app/views/home/index.html.erb
306
+ - spec/dummy/app/views/layouts/application.html.erb
307
+ - spec/dummy/app/views/posts/index.html.erb
308
+ - spec/dummy/app/views/posts/new.html.erb
309
+ - spec/dummy/app/views/posts/show.html.erb
310
+ - spec/dummy/config.ru
311
+ - spec/dummy/config/application.rb
312
+ - spec/dummy/config/boot.rb
313
+ - spec/dummy/config/database.yml
314
+ - spec/dummy/config/environment.rb
315
+ - spec/dummy/config/environments/development.rb
316
+ - spec/dummy/config/environments/production.rb
317
+ - spec/dummy/config/environments/test.rb
318
+ - spec/dummy/config/initializers/backtrace_silencers.rb
319
+ - spec/dummy/config/initializers/inflections.rb
320
+ - spec/dummy/config/initializers/mime_types.rb
321
+ - spec/dummy/config/initializers/secret_token.rb
322
+ - spec/dummy/config/initializers/session_store.rb
323
+ - spec/dummy/config/initializers/wrap_parameters.rb
324
+ - spec/dummy/config/locales/en.yml
325
+ - spec/dummy/config/routes.rb
326
+ - spec/dummy/db/seeds.rb
327
+ - spec/dummy/lib/assets/.gitkeep
328
+ - spec/dummy/lib/tasks/.gitkeep
329
+ - spec/dummy/log/.gitkeep
330
+ - spec/dummy/public/404.html
331
+ - spec/dummy/public/422.html
332
+ - spec/dummy/public/500.html
333
+ - spec/dummy/public/favicon.ico
334
+ - spec/dummy/public/robots.txt
335
+ - spec/dummy/script/rails
336
+ - spec/dummy/spec/features/blog_posts_spec.rb
337
+ - spec/dummy/spec/features/home_spec.rb
338
+ - spec/dummy/spec/features/posts_spec.rb
339
+ - spec/dummy/spec/lib/generators/initjs/add_generator_spec.rb
340
+ - spec/dummy/spec/lib/generators/initjs/install_generator_spec.rb
341
+ - spec/dummy/spec/spec_helper.rb
342
+ - spec/tmp/app/assets/javascripts/.gitkip
@@ -1,11 +0,0 @@
1
- module Initjs
2
- module Generators
3
- class InitjsGenerator < ::Rails::Generators::Base
4
- source_root File.expand_path('../templates', __FILE__)
5
-
6
- def copy_files
7
- copy_file "app.js.coffee", "app/assets/javascripts/app.js.coffee"
8
- end
9
- end
10
- end
11
- end