auth-centric-firewall 0.2.6 → 0.2.7

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: fb8230fdd49a57f083aa3559b2fa45be4e86c8892582b629f33f336be1d5b916
4
- data.tar.gz: 4c7241c2131193a93b941a23060c2bfec96840bf5176b7d6c2402ea4c652b2dc
3
+ metadata.gz: e62ec44b3d6d5c784074a17fbf0908fe7d6592348ca367f2fb70ad04967d0505
4
+ data.tar.gz: b3b8543dbbe85baf2e30c831318807694d5e8d7804e18d7c9b47e301044df482
5
5
  SHA512:
6
- metadata.gz: d34e88880858b2f60754d6c54e85dbdd683ce60bc87b772a449c453d09d183599c62e0ec063ed1323de635d12092581e875b87f2b7336762cbbb05999a87b0b2
7
- data.tar.gz: a43ae597272bc13758333261ef6172a9e0825a7942ff657a7343c75f75cca2f79d7271f914ea64b2fc191c52828500c4834ebb4552f511f111186d7d47426bd3
6
+ metadata.gz: b80f4b0e5572a5b04b5239e03f263c1ac98fd4a31751a2f99bf17acd1370db654a9da5b9c1068f0c349e90c722b065b296816748a98cbfbdbf946360df7612df
7
+ data.tar.gz: 6881a2a2098a8dc88c0f74e2dc4187f5357fc6a8d6886ae8f46fb4cce16e151142b211dc47ca55007628c2106b2c55e0f940fb7e566478ef18cfdabd9743e646
@@ -23,9 +23,9 @@ module Auth
23
23
  when 200..202
24
24
  JSON.parse(http.body)['data']['attributes'].except('session_id', 'ip')
25
25
  when 422
26
- raise Error, http.body.to_s
26
+ raise http.body.to_s
27
27
  else
28
- raise Error, "#{http.status}: #{http.body}"
28
+ raise "HTTP Status #{http.status}. HTTP Body: #{http.body.to_s.gsub(/<[^>]*>/, '')}"
29
29
  end
30
30
  rescue HTTP::TimeoutError
31
31
  true
@@ -3,7 +3,7 @@
3
3
  module Auth
4
4
  module Centric
5
5
  module Firewall
6
- VERSION = '0.2.6'
6
+ VERSION = '0.2.7'
7
7
  end
8
8
  end
9
9
  end
@@ -61,7 +61,7 @@ module Auth
61
61
  when 403
62
62
  false
63
63
  else
64
- raise Error, "#{http.status}: #{http.body}"
64
+ raise "#{http.status}: #{http.body}"
65
65
  end
66
66
  rescue HTTP::TimeoutError
67
67
  true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auth-centric-firewall
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saimon Lovell
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  - !ruby/object:Gem::Version
93
93
  version: '0'
94
94
  requirements: []
95
- rubygems_version: 4.0.5
95
+ rubygems_version: 4.0.19
96
96
  specification_version: 4
97
97
  summary: Use artificial intelligence to find hackers.
98
98
  test_files: []