look_out 0.1.14 → 0.1.15

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: 40dfd4e29b6a41deafb14bf3bb545ba0532608933993045276b522693a1295ac
4
- data.tar.gz: b84de83a1d30efffc24834d44751dea5c47388f857381d058321849bc4f42118
3
+ metadata.gz: 30e46675f663eb97e35176d9c32eb5682178831d0f99d2f5ac475e2d4d6cc3bf
4
+ data.tar.gz: b893a83bdbfe49f1a00e63df5f7d1502370d9471fb5b996d87bd309cb9473836
5
5
  SHA512:
6
- metadata.gz: 5af9e4ee0241a5c923ab1414e5d3afb02da7175270109e408d99184d3965090d184d6e05385396c72eaf3213bf2b76ca75fca7bb2a011793baef9e549b5ba16a
7
- data.tar.gz: 67bd5e1c901762d2d451dfb8ea1e6b06115176765eea7960f5919726f1c6fdfe46b107cbcb64e322308be13e4e4866df02b0898d73c9badfacf409b635db4f8b
6
+ metadata.gz: a23f2fcc04f74516727e10c059e59d82d0d8a997fc5275b8d4fb3bda46aa864ef52e2d43e3c35c7766e8434423881e375837282b2285d444ac495fa4d1ee7eb3
7
+ data.tar.gz: a15d66e4393c53d57903baecec2583ed0b500066d030e99fe7354eeb9e94e9ebde79c726e439ebf24cab9368c3983e3bd66c883d273a7843f6aadf9c88b88fd8
data/History.md CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ 0.1.15 / 2019-05-11
3
+ ==================
4
+
5
+ * Allow overriding host
6
+
2
7
  0.1.14 / 2019-05-09
3
8
  ==================
4
9
 
@@ -16,7 +16,7 @@ module LookOut
16
16
 
17
17
  if LookOut.config.first_mate_api_key
18
18
  first_mate_request = Typhoeus::Request.new(
19
- 'https://first-mate.sea-aye.com/v1/casts',
19
+ "#{first_mate_host}/v1/casts",
20
20
  method: :post,
21
21
  headers: { 'Content-Type' => 'application/json' },
22
22
  body: {
@@ -40,7 +40,7 @@ module LookOut
40
40
  transform_keys { |key| key.sub(/^#{SimpleCov.root}/, '') }
41
41
  }
42
42
  red_request = Typhoeus::Request.new(
43
- 'https://red-cove.sea-aye.com/v1/sails',
43
+ "#{red_cove_host}/v1/sails",
44
44
  method: :post,
45
45
  body: {
46
46
  api_key: LookOut.config.red_cove_api_key,
@@ -86,6 +86,14 @@ module LookOut
86
86
  `git log -1 --format=%H`.chomp
87
87
  end
88
88
 
89
+ def red_cove_host
90
+ ENV['RED_COVE_HOST'] || 'https://red-cove.sea-aye.com'
91
+ end
92
+
93
+ def first_mate_host
94
+ ENV['FIRST_MATE_HOST'] || 'https://first-mate.sea-aye.com'
95
+ end
96
+
89
97
  def env
90
98
  if ENV['JENKINS'] || ENV['CI']
91
99
  :integration
@@ -1,3 +1,3 @@
1
1
  module LookOut
2
- VERSION = '0.1.14'.freeze
2
+ VERSION = '0.1.15'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: look_out
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Hood
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-09 00:00:00.000000000 Z
11
+ date: 2019-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus