dice_bag 1.1.0 → 1.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: 61fb169aff4d9ffb2b9dc6b64d4f322ccd9af026
4
- data.tar.gz: 3f403d6f137a8159d87433ccda774f8115755808
3
+ metadata.gz: 22c7b492a6a98905102513cd406e215811819a7a
4
+ data.tar.gz: 517d2b3fd51783c8cfd6fca1b73a910ce4ec9918
5
5
  SHA512:
6
- metadata.gz: 582ec0840dcb36f7d1867555929d14c9397d2e5a27dc58b188023017a2a8130d49bd5019289326309a786c63f65a84c75aa5e711f53cbc520731b5b53d6fb4ab
7
- data.tar.gz: 8a988b897ad6f7c553eec84b645c98ccc1d861f57f59a3221de019f21bcbd53f744172b7d9f75b54a843f7bbf5ef85c8290d68ab8595bee87cb920981db54871
6
+ metadata.gz: 021df9eee911fafcd88b7e2ce9735ba4fc40b9fd72cc7f08330016ed3ac4c8f6369b903f8f199f66c8f938ddec20340cc181a1086812622a72a6bbf063f87397
7
+ data.tar.gz: 14ac7dd6c469000a8b4f6a111b547118a295ce505d839bce992a2f06cc5d1dab15b165be8e37b733f92adf1444c3cc646c58ef7210bc16039f11c836b51e9841
@@ -1,12 +1,15 @@
1
1
  <%= warning.as_yaml_comment %>
2
2
 
3
- <% [:development, :test, :production].each do |env| %>
3
+ <% environments = Rails.env.production? ? [:production] : [:development, :test] %>
4
+
5
+ <% environments.each do |env| %>
4
6
  <%= env %>:
5
7
  adapter: <%= configured[env].database_driver || 'mysql2' %>
6
- database: <%= configured[env].database_name || "PROJECT_NAME_#{env}" %><%= ('<'+'%=ENV["TEST_ENV_NUMBER"] %'+'>') if (env == :test) %>
7
- username: <%= configured[env].database_username || 'root' %>
8
- password: <%= configured[env].database_password %>
9
- host: <%= configured[env].database_host || 'localhost' %>
8
+ database: <%= configured[env].database_name! || "PROJECT_NAME_#{env}" %><%= ('<'+'%=ENV["TEST_ENV_NUMBER"] %'+'>') if (env == :test) %>
9
+ username: <%= configured[env].database_username! || 'root' %>
10
+ password: <%= configured[env].database_password! %>
11
+ host: <%= configured[env].database_host! || 'localhost' %>
12
+ port: <%= configured[env].database_port || 3306 %>
10
13
  pool: <%= configured[env].database_pool || 5 %>
11
14
  timeout: <%= configured[env].database_timeout || 5000 %>
12
15
  encoding: <%= configured[env].database_encoding || 'utf8' %>
@@ -1,3 +1,3 @@
1
1
  module DiceBag
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dice_bag
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Smith
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-02-29 00:00:00.000000000 Z
12
+ date: 2016-06-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  version: '0'
147
147
  requirements: []
148
148
  rubyforge_project:
149
- rubygems_version: 2.4.8
149
+ rubygems_version: 2.5.1
150
150
  signing_key:
151
151
  specification_version: 4
152
152
  summary: Dice Bag is a library of rake tasks for configuring web apps in the style