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 +4 -4
- data/lib/generators/brakeman/brakeman_generator.rb +0 -3
- data/lib/generators/docker/docker_generator.rb +5 -5
- data/lib/generators/eslint/eslint_generator.rb +0 -3
- data/lib/generators/mickey/mickey_generator.rb +3 -0
- data/lib/generators/rubocop/rubocop_generator.rb +0 -3
- data/lib/generators/simplecov/simplecov_generator.rb +1 -3
- data/lib/mickey_goldmill/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ccc368e1e4059cbf67e1abe582a38960cb4f411
|
4
|
+
data.tar.gz: 96927850f6d0388c5d9beac9d67a7506c20578d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf5969b47fdec9a5a2d5e00633ae7f0bff6bc0f1d8b29da53a5c3c8d3ed51f63dec3d5dcc97f38614fa3a31c876c7cc5e8fca45a48c558676aba8eb9d786db03
|
7
|
+
data.tar.gz: 3dc28dcd2f44c5bd277d871f30c563aa4e993f0a1643c7796bc15104b01362f9752af13ab23a60ee8377ddc08e76d983eeac9fbc57af15ec7cef7b7d809c5aa2
|
@@ -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
|
-
|
64
|
-
|
65
|
-
|
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,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
|