ocean-rails 7.2.3 → 7.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5b60d92cbf6714865555d363a2f998bc41dcadf121749c522020c9def0b06cc9
4
- data.tar.gz: 06c7bf20258981bc6b0614fbe795dad279a75be510478c00318ad1790eab198a
3
+ metadata.gz: 25bda2932322cad874e89ae83e013275c4c816177530b5825fec74eb339dfb30
4
+ data.tar.gz: 34c5a09aa1c5f6e9fa308cf78430ce0f65230752f2e5bf5d83830e9a706358bf
5
5
  SHA512:
6
- metadata.gz: 3ffb4b655ddcfac4444d1fe93515b616ad6865180d6a7605c570b4831321f361071670c362255b49afc952023483d2f2c664c3e170d34676a4b2e84cf0808921
7
- data.tar.gz: 36f770a9f7fa754662e669e5cdda7aba1e42e0f60e31b5e49867f02dda5d22d563d0d78274a6fad6440f78498bfb5e54b4f95677edfe010e66631571c1856801
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
- # This file will be replaced by an auto-generated one in deployment.
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
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "7.2.3"
2
+ VERSION = "7.2.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocean-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.2.3
4
+ version: 7.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Bengtson