revelry_generate 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bd699664d6b70a221289915581113375d5c8741c
4
- data.tar.gz: 9e64fa55eb9d21bbb73f203c20a916665d29c865
3
+ metadata.gz: 63b6bbe7b912bdedb6a6946054c3c900ff504fbf
4
+ data.tar.gz: b1e0299c71efeb310e4e785f83610e090447a671
5
5
  SHA512:
6
- metadata.gz: e346dd7faee1294ab76584277a45e0aaab68813fc854e6dc1d8b532ef3327be87eccf91eb89376dbaa5ce50767e55050f03bd2509b4344e7cadb5d6e3c2e134a
7
- data.tar.gz: 6a6836f6a7a00f26f3358958cea0d602c4200e908c840b8c490a823efa28691b56fff57d8ab48e405af2620e7036bef1e9a16d57db5e8f89a8f8132d12951f0c
6
+ metadata.gz: e89fac444d5f66c384a3512ae0f07e7c195d8deedd16bf9fe401f8a4d4237df1236f7aa12ae087aaac163a972f4643b38f85abbcbb68e7b7e91bc61e4d6584ac
7
+ data.tar.gz: 0c9da7e9563df1bce7d040cc851359db96467a9754bb80cbf0020db5c925ebe8d2aa5e21053abc5b8b9c4e98ceb572fb0ac3a35f4f7b76bbdb54f6d7be5a90e5
@@ -191,6 +191,26 @@ inject_into_file 'render-server/package.json', after: '"scripts": {' do
191
191
  JSON
192
192
  end
193
193
 
194
+ initializer 'scaffold.rb', <<-'ruby'
195
+ require 'rails/generators'
196
+ require 'rails/generators/erb/scaffold/scaffold_generator'
197
+
198
+ module Rails
199
+ module Generators
200
+ class ReactScaffoldGenerator < Erb::Generators::ScaffoldGenerator
201
+ def copy_view_files
202
+ Dir.chdir('render-server') do
203
+ system "slush revelry:module #{controller_class_name.pluralize.underscore}"
204
+ end
205
+ end
206
+
207
+ hook_for :form_builder, :as => :scaffold
208
+ hook_for :jbuilder_props, default: true
209
+ end
210
+ end
211
+ end
212
+ ruby
213
+
194
214
  generate 'rspec:install'
195
215
  git :init
196
216
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: revelry_generate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Prehn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-07 00:00:00.000000000 Z
11
+ date: 2017-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -100,7 +100,6 @@ files:
100
100
  - skeletons/slush/Procfile
101
101
  - skeletons/slush/__generators__/post_skeleton.rb
102
102
  - skeletons/slush/app.json
103
- - skeletons/slush/config/initializers/scaffold.rb
104
103
  - skeletons/slush/package.json
105
104
  - template.rb
106
105
  homepage: https://github.com/revelrylabs/generate.git
@@ -1,17 +0,0 @@
1
- require 'rails/generators'
2
- require 'rails/generators/erb/scaffold/scaffold_generator'
3
-
4
- module Rails
5
- module Generators
6
- class ReactScaffoldGenerator < Erb::Generators::ScaffoldGenerator
7
- def copy_view_files
8
- Dir.chdir('render-server') do
9
- system "slush revelry:module #{controller_class_name.pluralize.underscore}"
10
- end
11
- end
12
-
13
- hook_for :form_builder, :as => :scaffold
14
- hook_for :jbuilder_props, default: true
15
- end
16
- end
17
- end