barsoom_utils 0.1.1.27 → 0.1.1.30

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: 37307d5bcbef03b5d8906f629cb49014a05378fedf3df4573a22c6af9e7f6c80
4
- data.tar.gz: 763c544f7580e325fa49acfbaa8d543f4a5556b46a3e730065fbafb8f0cd7a01
3
+ metadata.gz: bd40a6ec1db042e58110836f7ed5a6f44109c09d7a934a064ed329f46cb07ad5
4
+ data.tar.gz: 6a6a67d6d16009adbc7c6566166c3b1d5e9811bc83cfc7fa69d1d50e5da82094
5
5
  SHA512:
6
- metadata.gz: fac47773c75267940e463f123b77ac3975e1b9abae362a771fc644bf8e3447a3a5253173252f2045c7023a1c3d09cd67404fd2da5af6dda05a004240cfb9b5c4
7
- data.tar.gz: 5293869f294397c929c87f5cb07716cf83ea12ae489f3a2f13e209eae401358bc70114dd9bee1077e2ab78105f8e0571b812ea58c7776c0fcffee34860c4d11a
6
+ metadata.gz: 83de412a4b1538a87a0cfcf3d3a15b329ac1c770e2f61bec9f93028d49b6aaa4a442a5445bdeba6ad6c164f92e21d282e5aedb5aeb502fe0a087a9ac41f82c52
7
+ data.tar.gz: a1ab689833ab2a0666fc1dafe98acabe5097e4d7f3419fa6beb3d17c99f66efdff3a4639f62bd242748347a98da68e75ab752e4ddd23cabe22a1e9fe299b1c12
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1.27
1
+ 0.1.1.30
@@ -27,7 +27,7 @@ module BarsoomUtils
27
27
  private
28
28
 
29
29
  def ping_healthcheck
30
- HTTParty.get("https://hchk.io/#{id}")
30
+ HTTParty.get("https://hc-ping.com/#{id}")
31
31
  end
32
32
  end
33
33
  end
data/shared_rubocop.yml CHANGED
@@ -30,6 +30,20 @@ Security:
30
30
  Layout/DotPosition:
31
31
  EnforcedStyle: leading
32
32
 
33
+ # Allow: def foo(...) = bar(...)
34
+ # Disallow: def foo(*args, &block) = bar(*args, &block)
35
+ Style/ArgumentsForwarding:
36
+ Enabled: true
37
+
38
+ # Allow e.g. `map` and disallow e.g. `collect`.
39
+ Style/CollectionMethods:
40
+ PreferredMethods:
41
+ collect: map
42
+ detect: find
43
+ filter: select
44
+ find_all: select
45
+ reduce: inject
46
+
33
47
  # Allow: "foo"
34
48
  # Disallow: 'foo'
35
49
  Style/StringLiterals:
@@ -9,27 +9,27 @@ RSpec.describe BarsoomUtils::PingHealthCheck, ".call" do
9
9
  end
10
10
 
11
11
  it "does nothing on a 200 OK response" do
12
- expect(HTTParty).to receive(:get).with("https://hchk.io/foo").and_return(double(:response, code: 200, headers: {}))
12
+ expect(HTTParty).to receive(:get).with("https://hc-ping.com/foo").and_return(double(:response, code: 200, headers: {}))
13
13
 
14
14
  BarsoomUtils::PingHealthCheck.call("foo")
15
15
  end
16
16
 
17
17
  it "includes CloudFlare request ID header information in failure message" do
18
- expect(HTTParty).to receive(:get).with("https://hchk.io/foo").and_return(double(:response, code: 503, headers: { "cf-request-id" => "023aa754ae0000517ab8829200000001" }))
18
+ expect(HTTParty).to receive(:get).with("https://hc-ping.com/foo").and_return(double(:response, code: 503, headers: { "cf-request-id" => "023aa754ae0000517ab8829200000001" }))
19
19
  expect(BarsoomUtils::ExceptionNotifier).to receive(:message).with(anything, /cf-request-id header: 023aa754ae0000517ab8829200000001/)
20
20
 
21
21
  BarsoomUtils::PingHealthCheck.call("foo")
22
22
  end
23
23
 
24
24
  it "silently reports an error to devs if it fails with a bad response code" do
25
- expect(HTTParty).to receive(:get).with("https://hchk.io/foo").and_return(double(:response, code: 404, headers: {}))
25
+ expect(HTTParty).to receive(:get).with("https://hc-ping.com/foo").and_return(double(:response, code: 404, headers: {}))
26
26
  expect(BarsoomUtils::ExceptionNotifier).to receive(:message).with(anything, /foo/)
27
27
 
28
28
  BarsoomUtils::PingHealthCheck.call("foo")
29
29
  end
30
30
 
31
31
  it "silently reports an error to devs if it fails with an exception" do
32
- expect(HTTParty).to receive(:get).with("https://hchk.io/foo").and_raise("fail")
32
+ expect(HTTParty).to receive(:get).with("https://hc-ping.com/foo").and_raise("fail")
33
33
  expect(BarsoomUtils::ExceptionNotifier).to receive(:message).with(anything, /foo/)
34
34
 
35
35
  BarsoomUtils::PingHealthCheck.call("foo")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: barsoom_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.27
4
+ version: 0.1.1.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Skogberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-09 00:00:00.000000000 Z
11
+ date: 2022-08-24 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: