generapp 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +2 -2
- data/CHANGELOG.md +9 -0
- data/lib/generapp/actions/develop.rb +5 -0
- data/lib/generapp/app_builder.rb +6 -0
- data/lib/generapp/generators/app_generator.rb +6 -0
- data/lib/generapp/version.rb +1 -1
- data/templates/Gemfile.erb +1 -0
- data/templates/config/postgresql_database.yml.erb +1 -1
- data/templates/rubocop.yml +14 -0
- data/templates/tasks/rubocop.rake +5 -0
- data/templates/views/_head.html.erb.erb +1 -1
- data/templates/views/generapp_layout.html.erb.erb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 44bf2ca700ef0262a92a223d864a388386e1a396
|
|
4
|
+
data.tar.gz: 9c1c05a14abb5f1ee74b546c24229df15070f162
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 73e7a430a15b259814bf0989c847c42c10a436875116ca90073c7ec24fa514dfb5be06de68ff721df82b12d33bc1feb54d60ae45d684e1faa39bd3528b65ba38
|
|
7
|
+
data.tar.gz: cf0b169b57babd78b32b19701a301d680192a84f3cbac7f1250727f511aba7be1963b12cdf87d3d24eb13b5aee2ef79555e082c3c0c09193ae33e36f58704692
|
data/.rubocop_todo.yml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
2
|
# `rubocop --auto-gen-config`
|
|
3
|
-
# on 2016-05-
|
|
3
|
+
# on 2016-05-11 16:12:08 -0500 using RuboCop version 0.40.0.
|
|
4
4
|
# The point is for the user to remove these configuration records
|
|
5
5
|
# one by one as the offenses are removed from the code base.
|
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
# Offense count: 1
|
|
10
10
|
# Configuration parameters: CountComments.
|
|
11
11
|
Metrics/ClassLength:
|
|
12
|
-
Max:
|
|
12
|
+
Max: 114
|
|
13
13
|
|
|
14
14
|
# Offense count: 6
|
|
15
15
|
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
|
data/CHANGELOG.md
CHANGED
data/lib/generapp/app_builder.rb
CHANGED
|
@@ -45,6 +45,12 @@ module Generapp
|
|
|
45
45
|
append_file 'Rakefile', "\ntask default: 'bundler:audit'\n"
|
|
46
46
|
end
|
|
47
47
|
|
|
48
|
+
def setup_rubocop
|
|
49
|
+
copy_file 'tasks/rubocop.rake',
|
|
50
|
+
'lib/tasks/rubocop.rake'
|
|
51
|
+
append_file 'Rakefile', "\ntask default: 'rubocop'\n"
|
|
52
|
+
end
|
|
53
|
+
|
|
48
54
|
def setup_spring
|
|
49
55
|
bundle_command 'exec spring binstub --all'
|
|
50
56
|
end
|
|
@@ -45,6 +45,7 @@ module Generapp
|
|
|
45
45
|
invoke :setup_database
|
|
46
46
|
invoke :setup_git
|
|
47
47
|
invoke :setup_bundler_audit
|
|
48
|
+
invoke :setup_rubocop
|
|
48
49
|
invoke :setup_spring
|
|
49
50
|
invoke :outro
|
|
50
51
|
end
|
|
@@ -113,6 +114,11 @@ module Generapp
|
|
|
113
114
|
build :setup_bundler_audit
|
|
114
115
|
end
|
|
115
116
|
|
|
117
|
+
def setup_rubocop
|
|
118
|
+
say 'Setting up rubocop'
|
|
119
|
+
build :setup_rubocop
|
|
120
|
+
end
|
|
121
|
+
|
|
116
122
|
def setup_spring
|
|
117
123
|
say 'Springifying executables'
|
|
118
124
|
build :setup_spring
|
data/lib/generapp/version.rb
CHANGED
data/templates/Gemfile.erb
CHANGED
|
@@ -12,7 +12,7 @@ test:
|
|
|
12
12
|
min_messages: warning #magic sauce
|
|
13
13
|
database: <%= app_name %>_test
|
|
14
14
|
|
|
15
|
-
production: &
|
|
15
|
+
production: &defaults
|
|
16
16
|
url: <%%= ENV['DATABASE_URL'] %>
|
|
17
17
|
pool: <%%= ENV['DB_POOL'] || ENV['MAX_THREADS'] || 3 %>
|
|
18
18
|
reaping_frequency: <%%= ENV['REAPING_FREQUENCY'] || nil %>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<title><%%= content_for?(:page_title) ? yield(:page_title) : <%= app_name.humanize %> %></title>
|
|
1
|
+
<title><%%= content_for?(:page_title) ? yield(:page_title) : '<%= app_name.humanize %>' %></title>
|
|
2
2
|
|
|
3
3
|
<%%= favicon_link_tag 'apple-icon-57x57.png', rel: 'apple-touch-icon', sizes: '57x57' %>
|
|
4
4
|
<%%= favicon_link_tag 'apple-icon-60x60.png', rel: 'apple-touch-icon', sizes: '60x60' %>
|
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.3.
|
|
4
|
+
version: 0.3.2
|
|
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-05-
|
|
11
|
+
date: 2016-05-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -171,6 +171,7 @@ files:
|
|
|
171
171
|
- templates/generapp_gitignore
|
|
172
172
|
- templates/public/humans.txt
|
|
173
173
|
- templates/public/manifest.json.erb
|
|
174
|
+
- templates/rubocop.yml
|
|
174
175
|
- templates/simplecov
|
|
175
176
|
- templates/spec/database_cleaner.rb
|
|
176
177
|
- templates/spec/devise.rb
|
|
@@ -178,6 +179,7 @@ files:
|
|
|
178
179
|
- templates/spec/shoulda_matchers_config.rb
|
|
179
180
|
- templates/tasks/auto_annotate_models.rake
|
|
180
181
|
- templates/tasks/bundler_audit.rake
|
|
182
|
+
- templates/tasks/rubocop.rake
|
|
181
183
|
- templates/views/_flashes.html.erb
|
|
182
184
|
- templates/views/_head.html.erb.erb
|
|
183
185
|
- templates/views/_javascript.html.erb
|