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 +4 -4
- data/lib/dice_bag/templates/database.yml.dice +8 -5
- data/lib/dice_bag/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22c7b492a6a98905102513cd406e215811819a7a
|
4
|
+
data.tar.gz: 517d2b3fd51783c8cfd6fca1b73a910ce4ec9918
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 021df9eee911fafcd88b7e2ce9735ba4fc40b9fd72cc7f08330016ed3ac4c8f6369b903f8f199f66c8f938ddec20340cc181a1086812622a72a6bbf063f87397
|
7
|
+
data.tar.gz: 14ac7dd6c469000a8b4f6a111b547118a295ce505d839bce992a2f06cc5d1dab15b165be8e37b733f92adf1444c3cc646c58ef7210bc16039f11c836b51e9841
|
@@ -1,12 +1,15 @@
|
|
1
1
|
<%= warning.as_yaml_comment %>
|
2
2
|
|
3
|
-
<% [:development, :test
|
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' %>
|
data/lib/dice_bag/version.rb
CHANGED
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.
|
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-
|
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.
|
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
|