mickey_goldmill 0.1.1 → 0.1.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: 6e9a69e8c11b8621680462819d99cff7b59ef500
4
- data.tar.gz: 9a90ce0f24d6f6f187378ded0ae1ab3002154b74
3
+ metadata.gz: 8ccc368e1e4059cbf67e1abe582a38960cb4f411
4
+ data.tar.gz: 96927850f6d0388c5d9beac9d67a7506c20578d6
5
5
  SHA512:
6
- metadata.gz: 00e10d7686fe9b10b50c07e54ecaf63954d6908682feb84c379508557e3fb94119b80577ebdb66712eb0ab17dae36cbaee06ce6c216b6e3d3aa0ecfc23839797
7
- data.tar.gz: 4c03922f0bb827c041ec03123ba73e2db804924a7658873fea67042002694b76720fb8886180e456852cd93561418f412fac29d3bdeb43ae4080b641a9acdd0c
6
+ metadata.gz: bf5969b47fdec9a5a2d5e00633ae7f0bff6bc0f1d8b29da53a5c3c8d3ed51f63dec3d5dcc97f38614fa3a31c876c7cc5e8fca45a48c558676aba8eb9d786db03
7
+ data.tar.gz: 3dc28dcd2f44c5bd277d871f30c563aa4e993f0a1643c7796bc15104b01362f9752af13ab23a60ee8377ddc08e76d983eeac9fbc57af15ec7cef7b7d809c5aa2
@@ -3,8 +3,5 @@ class BrakemanGenerator < Rails::Generators::Base
3
3
 
4
4
  def add_to_gemfile
5
5
  gem "brakeman", group: [:development, :test]
6
- inside Rails.root do
7
- run "bundle install"
8
- end
9
6
  end
10
7
  end
@@ -19,6 +19,7 @@ services:
19
19
  GERRIT_BRANCH: "${GERRIT_BRANCH}"
20
20
  DB_USERNAME: postgres
21
21
  DB_PASSWORD: #{file_name.underscore}_postgres_password
22
+ DB_ADDRESS: postgres
22
23
  links:
23
24
  - postgres
24
25
  volumes:
@@ -59,11 +60,10 @@ FILE
59
60
  end
60
61
 
61
62
  def add_test_config_to_database
62
-
63
- inject_into_file 'name_of_file.rb', after: 'config/database.yml', after: "test:\n" do <<-'RUBY'
64
- host: <%= ENV.fetch('DB_ADDRESS', 'postgres') %>
65
- username: <%= ENV.fetch('DB_USERNAME', '') %>
66
- password: <%= ENV.fetch('DB_PASSWORD', '') %>
63
+ inject_into_file 'config/database.yml', after: "test:\n" do <<-'RUBY'
64
+ host: <%= ENV.fetch('DB_ADDRESS', 'localhost') %>
65
+ username: <%= ENV.fetch('DB_USERNAME', '') %>
66
+ password: <%= ENV.fetch('DB_PASSWORD', '') %>
67
67
  RUBY
68
68
  end
69
69
  end
@@ -3,8 +3,5 @@ class EslintGenerator < Rails::Generators::Base
3
3
 
4
4
  def add_to_gemfile
5
5
  gem "eslint-rails", group: [:development, :test]
6
- inside Rails.root do
7
- run "bundle install"
8
- end
9
6
  end
10
7
  end
@@ -15,5 +15,8 @@ class MickeyGenerator < Rails::Generators::Base
15
15
  generate "eslint" if install.include?('eslint')
16
16
  generate "jenkins", "features #{install.join(' ')}"
17
17
  generate "build"
18
+ inside Rails.root do
19
+ run "bundle install"
20
+ end
18
21
  end
19
22
  end
@@ -3,9 +3,6 @@ class RubocopGenerator < Rails::Generators::Base
3
3
 
4
4
  def add_to_gemfile
5
5
  gem "rubocop", group: [:development, :test]
6
- inside Rails.root do
7
- run "bundle install"
8
- end
9
6
  end
10
7
 
11
8
  def create_yaml_file
@@ -3,9 +3,6 @@ class SimplecovGenerator < Rails::Generators::Base
3
3
 
4
4
  def add_to_gemfile
5
5
  gem "simplecov", group: [:development, :test]
6
- inside Rails.root do
7
- run "bundle install"
8
- end
9
6
  end
10
7
 
11
8
  def add_to_rails_helper
@@ -16,6 +13,7 @@ SimpleCov.minimum_coverage 90
16
13
  SimpleCov.minimum_coverage_by_file 80
17
14
  SimpleCov.start do
18
15
  add_filter 'config/routes.rb'
16
+ add_filter "config/initializers/"
19
17
  end
20
18
  RUBY
21
19
  end
@@ -1,3 +1,3 @@
1
1
  module MickeyGoldmill
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mickey_goldmill
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Tanner