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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8cbf48fd46e3f4235f28ea58917d8811046d3059
4
- data.tar.gz: 46c5ee4c5051ce2e1d2f355ab632c77906621806
3
+ metadata.gz: fbb2caf86b2e021aa91b7b3163d34305a165ec50
4
+ data.tar.gz: 934c0e1917ee171dab2a9d5d472d5092557248d4
5
5
  SHA512:
6
- metadata.gz: f54db6bed59e709ac9a82eefe3074a8885fb0078738ef42d4bde6ee6f5aff05449089d0e626dc62f5175f60d19439b15fde1ca59f947dc3fd80cb0696de619a6
7
- data.tar.gz: eca84bccf9513402222dc2f63369b843b1b3e6f3cc6b0c4ec9119e6f89d330ea191346b164c094ff22861a984fcc437b89da1428df84e7b9de7ca2bc14cee7cb
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
- if ENV["OVERRIDE_#{k}"] && ENV["OVERRIDE_#{k}"] != ""
23
- eval "#{k} = #{ENV["OVERRIDE_#{k}"].inspect}"
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
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "1.27.2"
2
+ VERSION = "1.27.3"
3
3
  end
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.2
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-21 00:00:00.000000000 Z
11
+ date: 2013-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday