ror_generators 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/ror_generators/new_generator.rb +15 -2
- data/lib/ror_generators/version.rb +1 -1
- data/ror_generators.gemspec +1 -2
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e45ea9cc873404cf4f4abacbb4a4ad61e1fa496
|
4
|
+
data.tar.gz: 8e157f6e3b07e97df5d7c426a8069a50e083923f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f57c030e7efe594b9339e78d61d426a0e2cfb518430105161adfa2cca24eca2eec674cd1659dcfc6f9f3928766b0b203cc3622e864b9fdbcbae8826ec9850c43
|
7
|
+
data.tar.gz: 41354c3732e26cba41d50691220d3514ad52ac98279a3293aeb8fa553adb8c4f4e00f872400ef42e0270ef993cbf557b7741d3e4ce4feb14263024b1794951c9
|
@@ -43,10 +43,23 @@ module RorGenerators
|
|
43
43
|
end
|
44
44
|
|
45
45
|
def copy_config_files
|
46
|
-
template "client/package.json.tt", "client/package.json"
|
47
|
-
template "client/webpack.config.js.erb", "client/webpack.config.js"
|
48
46
|
template "client/startup/registration.jsx.erb", "#{client_dest_prefix}/startup/registration.jsx"
|
49
47
|
end
|
48
|
+
|
49
|
+
def copy_webpack_config
|
50
|
+
if dest_file_exists?("client/webpack.config.json")
|
51
|
+
inject_into_file "client/webpack.config.js.erb", after: "'babel-polyfill',\n" do <<-'RUBY'
|
52
|
+
puts "'./app/bundles/#{module_name}/startup/registration',"
|
53
|
+
RUBY
|
54
|
+
end
|
55
|
+
else
|
56
|
+
template "client/webpack.config.js.erb", "client/webpack.config.js"
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
def copy_package_json
|
61
|
+
template "client/package.json.tt", "client/package.json" unless dest_file_exists?("client/package.json")
|
62
|
+
end
|
50
63
|
|
51
64
|
# def template_package_json
|
52
65
|
# if dest_file_exists?("package.json")
|
data/ror_generators.gemspec
CHANGED
@@ -34,8 +34,7 @@ Gem::Specification.new do |spec|
|
|
34
34
|
spec.add_development_dependency "bundler", "~> 1.15"
|
35
35
|
spec.add_development_dependency "rake", "~> 10.0"
|
36
36
|
spec.add_development_dependency "rspec", "~> 3.0"
|
37
|
-
spec.add_development_dependency "
|
38
|
-
spec.add_development_dependency "aruba"
|
37
|
+
spec.add_development_dependency "gem-release"
|
39
38
|
|
40
39
|
spec.add_development_dependency "generator_spec"
|
41
40
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ror_generators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dakota Martinez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -67,21 +67,7 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '3.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: aruba
|
70
|
+
name: gem-release
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
86
72
|
requirements:
|
87
73
|
- - ">="
|