ocean-rails 7.2.3 → 7.2.4
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 +0 -6
- data/config/initializers/_ocean_constants.rb +2 -31
- data/lib/ocean/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25bda2932322cad874e89ae83e013275c4c816177530b5825fec74eb339dfb30
|
4
|
+
data.tar.gz: 34c5a09aa1c5f6e9fa308cf78430ce0f65230752f2e5bf5d83830e9a706358bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 902294e159a0c9bc06b0a2a13347687bc91f2a91916e3feeb74bbab6145b3ab7e5e6dfd5fc72db9a77f80b108f25791c2f560268c65cbb0b1cd84b625024405c
|
7
|
+
data.tar.gz: 4480c1cfdf7eefb75ab6b9edda68a8a7fca09254247931aba349f205f35f20bd7cd9a96ff912e54e7faa9911ef6608c4a3e536aca3c1273e5716636b1a131970
|
@@ -1,11 +1,5 @@
|
|
1
1
|
f = File.join(Rails.root, "config/config.yml")
|
2
2
|
|
3
|
-
# If the tailored file doesn't exist, and we're running under TeamCity,
|
4
|
-
# use the example file as-is.
|
5
|
-
unless File.exists?(f)
|
6
|
-
f = ENV['OCEAN_API_HOST'] ? ef : false
|
7
|
-
end
|
8
|
-
|
9
3
|
# If there is a file to process, do so
|
10
4
|
if f
|
11
5
|
cfg = YAML.load(ERB.new(File.read(f)).result)
|
@@ -1,31 +1,2 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
# YOU SHOULD NEVER CHANGE THE CONTENTS OF THIS FILE.
|
4
|
-
#
|
5
|
-
# Backend developers should never need to override the value here.
|
6
|
-
# The reason for this is that when developing services locally,
|
7
|
-
# their tests run in isolation with all external calls mocked away,
|
8
|
-
# and thus it doesn't matter what URLs a service generates when
|
9
|
-
# running tests locally on a developer's machine.
|
10
|
-
#
|
11
|
-
# If you're a frontend developer, however, the point of your testing
|
12
|
-
# is to exercise multiple services and thus you need access to a
|
13
|
-
# complete and fully functional system (which might or might not
|
14
|
-
# make calls to partners' systems, such as for hotel bookings).
|
15
|
-
#
|
16
|
-
# Thus, if you are a frontend developer, you override the string
|
17
|
-
# constant here to reflect the Ocean environment (dev, staging)
|
18
|
-
# you wish to run your local tests against by defining the environment
|
19
|
-
# variable OCEAN_API_HOST.
|
20
|
-
#
|
21
|
-
|
22
|
-
BASE_DOMAIN = "example.com" unless defined?(BASE_DOMAIN) # For the Rails template generator
|
23
|
-
|
24
|
-
OCEAN_API_HOST = (ENV['OCEAN_API_HOST'] ||
|
25
|
-
(Rails.env == 'test' && "forbidden.#{BASE_DOMAIN}") ||
|
26
|
-
"dev-api.#{BASE_DOMAIN}"
|
27
|
-
).sub("<default>", "dev")
|
28
|
-
|
29
|
-
OCEAN_API_URL = "https://#{OCEAN_API_HOST}"
|
30
|
-
|
31
|
-
INTERNAL_OCEAN_API_URL = OCEAN_API_URL.sub("https://", "http://")
|
1
|
+
# For the Rails template generator
|
2
|
+
BASE_DOMAIN = "example.com" unless defined?(BASE_DOMAIN)
|
data/lib/ocean/version.rb
CHANGED