barsoom_utils 0.1.1.26 → 0.1.1.29

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
  SHA256:
3
- metadata.gz: 10930d55fc2f41382fd84181928eadfd8810a7bc15eeb2e780d238d258c6fff2
4
- data.tar.gz: f7ed3af86e081334055e176ee8f9224110c016dd7ea282c56fb34671f6b831b7
3
+ metadata.gz: 493546fda72610e5e52176a76f807dd9943c4ca560f4375cbc140c499de1590c
4
+ data.tar.gz: 01f5630049742c8610a5ca2fbfca3e0537ce0863dc969691f8d3b1c00232303f
5
5
  SHA512:
6
- metadata.gz: 4ea10d1960577ef29d3e639d0b0fe86a8a00426d801292e05ba58246f93c14d5b1add923fb3da0cb6f112d6a7cfa8b74265ff05cbdc225e785b52589d19bdbf8
7
- data.tar.gz: ed65c3c531f562f2bc6fb93e39e8724edd6196274a0768a334a3eeab698b2b7b623ce4f464af67de94b2e69777a0aa8e68b825cd03d1c414369e7e22c8c7473e
6
+ metadata.gz: d43c35b5e0d2fdb240e0a771e48db881bbd852d434832e3521c94e3516796508ed841638b5a01c4c9c3f0a50786f3187fd36c5a4aba88f023c31dabe18455867
7
+ data.tar.gz: c83d64a4afcaf78178577ee276114df410c0f613c41792322ceaeb999cda41bdf8fa6f78dadb6b3d5e32d7efc26b8b6ebb97243a5cec540d266dc88210279c43
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1.26
1
+ 0.1.1.29
@@ -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,11 @@ 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
+
33
38
  # Allow: "foo"
34
39
  # Disallow: 'foo'
35
40
  Style/StringLiterals:
@@ -265,3 +270,7 @@ Gemspec/OrderedDependencies:
265
270
  # https://docs.rubocop.org/rubocop/cops_gemspec.html#gemspecrequiremfa
266
271
  Gemspec/RequireMFA:
267
272
  Enabled: true
273
+
274
+ # https://docs.rubocop.org/rubocop/cops_naming.html#namingblockforwarding
275
+ Naming/BlockForwarding:
276
+ Enabled: true
@@ -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.26
4
+ version: 0.1.1.29
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-05-25 00:00:00.000000000 Z
11
+ date: 2022-08-23 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: