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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7730f253ff80156a46022c02747692b4d9ee4da9
4
- data.tar.gz: 4dd70f57d75a0ca81d475540ffda50c3fdf34a76
3
+ metadata.gz: 6e9a69e8c11b8621680462819d99cff7b59ef500
4
+ data.tar.gz: 9a90ce0f24d6f6f187378ded0ae1ab3002154b74
5
5
  SHA512:
6
- metadata.gz: 4f7013bc24313e8178058f582fb3ffc9a6fd6a3bd0ec65a953c1da1719c100914ed04bece1202da70fb8e7da234ac24d229729415e1e35b4ed40496fee74b589
7
- data.tar.gz: 1108123f6de9392189ab1dd9efe9624f414e4c58ebb9a88dcd5a03b4f318d00fbb2d921fd60ef6b65386b80866c393c797bd8706a4104b22a8064c8342699915
6
+ metadata.gz: 00e10d7686fe9b10b50c07e54ecaf63954d6908682feb84c379508557e3fb94119b80577ebdb66712eb0ab17dae36cbaee06ce6c216b6e3d3aa0ecfc23839797
7
+ data.tar.gz: 4c03922f0bb827c041ec03123ba73e2db804924a7658873fea67042002694b76720fb8886180e456852cd93561418f412fac29d3bdeb43ae4080b641a9acdd0c
@@ -3,5 +3,8 @@ 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
6
9
  end
7
10
  end
@@ -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
@@ -2,7 +2,7 @@ Description:
2
2
  Adds eslint-rails to your gemfile
3
3
 
4
4
  Example:
5
- rails generate eslint-rails
5
+ rails generate eslint
6
6
 
7
7
  This will add to your gemfile:
8
8
  gem "eslint-rails", group: [:development, :test]
@@ -3,5 +3,8 @@ 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
6
9
  end
7
10
  end
@@ -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
 
@@ -3,6 +3,9 @@ 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
6
9
  end
7
10
 
8
11
  def add_to_rails_helper
@@ -1,3 +1,3 @@
1
1
  module MickeyGoldmill
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
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.0
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-21 00:00:00.000000000 Z
11
+ date: 2017-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails