ocean-rails 1.27.2 → 1.27.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/initializers/api_constants.rb +9 -2
- data/lib/ocean/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: fbb2caf86b2e021aa91b7b3163d34305a165ec50
|
4
|
+
data.tar.gz: 934c0e1917ee171dab2a9d5d472d5092557248d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c9c4cc75ebb65e206386bf14bc45fe24d8bf46782d4aa7b9ab6847897bfb4d502ca1897686965c4bcf2a005ba516aa3f5e343437267f56bd5275f55f8c10cd2
|
7
|
+
data.tar.gz: b859d48b4241d17b38ea4a5e5c60b49f81f9928bf0fa8fea729e6f82a3b2292405cfe613cac9d05f76fbb1ec5e8ae7e980ac9e087ac59822ad00dd483f247867
|
@@ -19,8 +19,15 @@ if File.exists?(ef)
|
|
19
19
|
cfg.merge! cfg.fetch(Rails.env, {}) if cfg.fetch(Rails.env, {})
|
20
20
|
cfg.each do |k, v|
|
21
21
|
next if k =~ /[a-z]/
|
22
|
-
|
23
|
-
|
22
|
+
override = ENV["OVERRIDE_#{k}"]
|
23
|
+
if override && override != ""
|
24
|
+
master, staging = override.split(',')
|
25
|
+
if staging.present? && k == "API_PASSWORD"
|
26
|
+
pw = (ENV['GIT_BRANCH'] == 'staging' ? staging : master)
|
27
|
+
eval "#{k} = #{pw.inspect}"
|
28
|
+
else
|
29
|
+
eval "#{k} = #{override.inspect}"
|
30
|
+
end
|
24
31
|
else
|
25
32
|
eval "#{k} = #{v.inspect}"
|
26
33
|
end
|
data/lib/ocean/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ocean-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.27.
|
4
|
+
version: 1.27.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Bengtson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|