gunter_reporter 0.1.5 → 0.1.6

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: 7e0373fe8b992184c9ca380522cbe490376558d4301c8fb4d3ff92ea00156cee
4
- data.tar.gz: 165816caa3e9019f3face0ea9747d69d4e2d2e30c259af30bc209a23e301ead1
3
+ metadata.gz: 7b0f40b1ef9d776d09e3411c0fcb63c60e27a15c903664f00af4838852543c75
4
+ data.tar.gz: b0347efcd682acd61a5623c32f74ed901babc5a8dc49a3879c9a4df129f5c545
5
5
  SHA512:
6
- metadata.gz: 2506c727ad960480214f8eab6fb72fa2790f8281da31da739a72bd1862fd16653e809f908fa5f91307f401bb5cc93a78aa7e8bd23b525aaa7bfd82a856f34a74
7
- data.tar.gz: 0d4a508f281997f090b417f4aae7b3f218411bd471b334204642774b756e0f8b204bd44effa11a14771ca90b22b003ed71e098499ff5b21d26d7714ba16b7024
6
+ metadata.gz: 0ad7dc22d2b9f416ef0dbeaca6c80c70307bfd75f49ccbfdd56b6dc6d822ec2a563181e2c532cdf1885356afb035690ed3d1e0ed227e090579f57fc982b6b854
7
+ data.tar.gz: b1d379d256df2134b94d57725c7248502be7734c4237650968db514898c5363e10b61aa6954b35b92ac13d217f0d598e45302edd6134a688700c213e20ddc864
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gunter_reporter (0.1.5)
4
+ gunter_reporter (0.1.6)
5
5
  xml-simple (~> 1.1, >= 1.1.5)
6
6
 
7
7
  GEM
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
15
15
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
16
16
  # to allow pushing to a single host or delete this section to allow pushing to any host.
17
17
  if spec.respond_to?(:metadata)
18
- spec.metadata["allowed_push_host"] = "https://rubygems.org/"
18
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
19
19
  else
20
20
  raise "RubyGems 2.0 or newer is required to protect against " \
21
21
  "public gem pushes."
@@ -69,9 +69,11 @@ class GunterReporter
69
69
  def print_result(response)
70
70
  if response.code == '201'
71
71
  puts "✅ Gunter results: #{JSON.parse(response.body)['url']}"
72
+ elsif JSON.parse(response.body).key?('message')
73
+ puts "⚠️ Gunter results reporting failed. Status code: #{response.code}. Error message: #{JSON.parse(response.body)['message']}"
72
74
  else
73
75
  open('tmp/gunter/error.html', 'w') { |f| f << response.body }
74
- puts '⚠️ Gunter results reporting failed. Please report this to Calaway. Thank you.'
76
+ puts '⚠️ Gunter results reporting failed. Please report this to someone you think might care about such things. Thank you.'
75
77
  end
76
78
  end
77
79
  end
@@ -1,3 +1,3 @@
1
1
  class GunterReporter
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gunter_reporter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Calaway
@@ -95,7 +95,7 @@ files:
95
95
  homepage: https://github.com/octanner/gunter_reporter
96
96
  licenses: []
97
97
  metadata:
98
- allowed_push_host: https://rubygems.org/
98
+ allowed_push_host: https://rubygems.org
99
99
  post_install_message:
100
100
  rdoc_options: []
101
101
  require_paths: