generapp 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.hound.yml +2 -0
- data/.rubocop.yml +8 -0
- data/.rubocop_defaults.yml +1631 -0
- data/.rubocop_todo.yml +47 -0
- data/CHANGELOG.md +7 -0
- data/README.md +5 -0
- data/bin/generapp +3 -1
- data/generapp.gemspec +1 -0
- data/lib/generapp/actions/configuration.rb +19 -12
- data/lib/generapp/actions/database.rb +2 -1
- data/lib/generapp/actions/develop.rb +39 -33
- data/lib/generapp/actions/production.rb +3 -1
- data/lib/generapp/actions/test.rb +9 -3
- data/lib/generapp/actions/views.rb +3 -1
- data/lib/generapp/app_builder.rb +3 -8
- data/lib/generapp/generators/app_generator.rb +34 -31
- data/lib/generapp/version.rb +9 -1
- data/lib/generapp.rb +11 -0
- data/templates/Gemfile.erb +12 -12
- data/templates/config/postgresql_database.yml.erb +0 -2
- data/templates/config/puma.rb +2 -2
- data/templates/generapp_gitignore +6 -2
- data/templates/spec/rails_helper.rb +11 -2
- data/templates/tasks/auto_annotate_models.rake +34 -26
- data/templates/tasks/bundler_audit.rake +2 -2
- metadata +26 -3
- data/lib/generapp/actions/files.rb +0 -14
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: generapp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gustavo Bazan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -58,6 +58,26 @@ dependencies:
|
|
58
58
|
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: 3.4.0
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: rubocop
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0.35'
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0.35'
|
71
|
+
type: :development
|
72
|
+
prerelease: false
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - "~>"
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0.35'
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0.35'
|
61
81
|
- !ruby/object:Gem::Dependency
|
62
82
|
name: coveralls
|
63
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -110,7 +130,11 @@ extra_rdoc_files: []
|
|
110
130
|
files:
|
111
131
|
- ".coveralls.yml"
|
112
132
|
- ".gitignore"
|
133
|
+
- ".hound.yml"
|
113
134
|
- ".rspec"
|
135
|
+
- ".rubocop.yml"
|
136
|
+
- ".rubocop_defaults.yml"
|
137
|
+
- ".rubocop_todo.yml"
|
114
138
|
- ".ruby-version"
|
115
139
|
- ".travis.yml"
|
116
140
|
- ".yardopts"
|
@@ -127,7 +151,6 @@ files:
|
|
127
151
|
- lib/generapp/actions/configuration.rb
|
128
152
|
- lib/generapp/actions/database.rb
|
129
153
|
- lib/generapp/actions/develop.rb
|
130
|
-
- lib/generapp/actions/files.rb
|
131
154
|
- lib/generapp/actions/production.rb
|
132
155
|
- lib/generapp/actions/test.rb
|
133
156
|
- lib/generapp/actions/views.rb
|
@@ -1,14 +0,0 @@
|
|
1
|
-
module Generapp
|
2
|
-
module Actions
|
3
|
-
module Files
|
4
|
-
def replace_in_file(relative_path, find, replace)
|
5
|
-
path = File.join(destination_root, relative_path)
|
6
|
-
contents = IO.read(path)
|
7
|
-
unless contents.gsub!(find, replace)
|
8
|
-
raise "#{find.inspect} not found in #{relative_path}"
|
9
|
-
end
|
10
|
-
File.open(path, 'w') { |file| file.write(contents) }
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|