mickey_goldmill 0.1.0 → 0.1.1
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 +3 -0
- data/lib/generators/docker/docker_generator.rb +10 -2
- data/lib/generators/eslint/USAGE +1 -1
- data/lib/generators/eslint/eslint_generator.rb +3 -0
- data/lib/generators/rubocop/rubocop_generator.rb +5 -0
- data/lib/generators/simplecov/simplecov_generator.rb +3 -0
- data/lib/mickey_goldmill/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e9a69e8c11b8621680462819d99cff7b59ef500
|
4
|
+
data.tar.gz: 9a90ce0f24d6f6f187378ded0ae1ab3002154b74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00e10d7686fe9b10b50c07e54ecaf63954d6908682feb84c379508557e3fb94119b80577ebdb66712eb0ab17dae36cbaee06ce6c216b6e3d3aa0ecfc23839797
|
7
|
+
data.tar.gz: 4c03922f0bb827c041ec03123ba73e2db804924a7658873fea67042002694b76720fb8886180e456852cd93561418f412fac29d3bdeb43ae4080b641a9acdd0c
|
@@ -42,8 +42,7 @@ FILE
|
|
42
42
|
FROM ruby:2.4.3
|
43
43
|
|
44
44
|
RUN apt-get update
|
45
|
-
RUN curl -sL https://deb.nodesource.com/setup_7.x | bash - &&
|
46
|
-
apt-get install -y nodejs
|
45
|
+
RUN curl -sL https://deb.nodesource.com/setup_7.x | bash - && apt-get install -y nodejs
|
47
46
|
|
48
47
|
RUN mkdir -p /usr/src/app
|
49
48
|
ADD Gemfile /usr/src/app/
|
@@ -57,6 +56,15 @@ RUN npm install
|
|
57
56
|
|
58
57
|
ADD . /usr/src/app/
|
59
58
|
FILE
|
59
|
+
end
|
60
|
+
|
61
|
+
def add_test_config_to_database
|
60
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', '') %>
|
67
|
+
RUBY
|
68
|
+
end
|
61
69
|
end
|
62
70
|
end
|
data/lib/generators/eslint/USAGE
CHANGED
@@ -3,6 +3,9 @@ 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
|
6
9
|
end
|
7
10
|
|
8
11
|
def create_yaml_file
|
@@ -22,6 +25,8 @@ Metrics/BlockLength:
|
|
22
25
|
- 'spec/**/*'
|
23
26
|
Style/FrozenStringLiteralComment:
|
24
27
|
Enabled: false
|
28
|
+
Style/SymbolArray:
|
29
|
+
Enabled: false
|
25
30
|
FILE
|
26
31
|
end
|
27
32
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mickey_goldmill
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Tanner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|