generapp 0.3.1 → 0.3.2

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: e4f1fe0fc28a191ec82da9cd272336fc8e5c010a
4
- data.tar.gz: 3f1e6427e22485d87d3fe14d4755692539c52af5
3
+ metadata.gz: 44bf2ca700ef0262a92a223d864a388386e1a396
4
+ data.tar.gz: 9c1c05a14abb5f1ee74b546c24229df15070f162
5
5
  SHA512:
6
- metadata.gz: 32a11439297b5aae323a5b9101408fbc2928e7ecde7b53adb5dff360ea351ee2f040333c7605aace9356ac4f2de6845139b154671369bc7ee6409a48a792ca6e
7
- data.tar.gz: 43dfc60ef2bace760290f263bf582a6316eb5f9e1f2a0fcfe29ba105593c7b4d624ac54545d88c5141ad54d4aeec3715cc6d35b20ee990b8ab8e6cec500a003e
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-02 09:43:28 -0500 using RuboCop version 0.39.0.
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: 109
12
+ Max: 114
13
13
 
14
14
  # Offense count: 6
15
15
  # Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  ### master
2
2
 
3
+ ### 0.3.2 - 2016-05-11
4
+
5
+ * enhances
6
+ * rubocop integration
7
+
8
+ * bug fixes
9
+ * Fix javascript template error
10
+ * Fix page title name error
11
+
3
12
  ### 0.3.1 - 2016-05-02
4
13
 
5
14
  * enhances
@@ -49,6 +49,11 @@ module Generapp
49
49
  run 'chmod a+x bin/setup'
50
50
  end
51
51
 
52
+ def add_rubocop
53
+ create_file '.rubocop_todo.yml'
54
+ copy_file 'rubocop.yml', '.rubocop.yml'
55
+ end
56
+
52
57
  protected
53
58
 
54
59
  def generapp_generators
@@ -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
@@ -9,5 +9,5 @@ module Generapp
9
9
  # Default Ruby Version
10
10
  RUBY_VERSION = IO.read("#{File.dirname(__FILE__)}/../../.ruby-version").strip
11
11
  # Gem Version
12
- VERSION = '0.3.1'
12
+ VERSION = '0.3.2'
13
13
  end
@@ -21,6 +21,7 @@ group :development do
21
21
  gem 'lol_dba' # Missing index reporter
22
22
  gem 'quiet_assets'
23
23
  gem 'rails-erd' # ER Diagrams
24
+ gem 'rubocop', require: false
24
25
  gem 'spring'
25
26
  end
26
27
 
@@ -12,7 +12,7 @@ test:
12
12
  min_messages: warning #magic sauce
13
13
  database: <%= app_name %>_test
14
14
 
15
- production: &deploy
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 %>
@@ -0,0 +1,14 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+ Rails:
4
+ Enabled: true
5
+ AllCops:
6
+ TargetRubyVersion: 2.3
7
+ Include:
8
+ - '**/Rakefile'
9
+ - '**/config.ru'
10
+ Exclude:
11
+ - 'bin/**/*'
12
+ - 'db/**/*'
13
+ - 'config/**/*'
14
+ - 'spec/**/*'
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+ if Rails.env.development? || Rails.env.test?
3
+ require 'rubocop/rake_task'
4
+ RuboCop::RakeTask.new
5
+ end
@@ -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' %>
@@ -9,6 +9,6 @@
9
9
  <%%= yield %>
10
10
  </main>
11
11
 
12
- <%%= render partial: 'shared/javascripts'%>
12
+ <%%= render partial: 'shared/javascript'%>
13
13
  </body>
14
14
  </html>
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.1
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-02 00:00:00.000000000 Z
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