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 +4 -4
- data/Gemfile.lock +1 -1
- data/gunter_reporter.gemspec +1 -1
- data/lib/gunter_reporter.rb +3 -1
- data/lib/gunter_reporter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b0f40b1ef9d776d09e3411c0fcb63c60e27a15c903664f00af4838852543c75
|
4
|
+
data.tar.gz: b0347efcd682acd61a5623c32f74ed901babc5a8dc49a3879c9a4df129f5c545
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ad7dc22d2b9f416ef0dbeaca6c80c70307bfd75f49ccbfdd56b6dc6d822ec2a563181e2c532cdf1885356afb035690ed3d1e0ed227e090579f57fc982b6b854
|
7
|
+
data.tar.gz: b1d379d256df2134b94d57725c7248502be7734c4237650968db514898c5363e10b61aa6954b35b92ac13d217f0d598e45302edd6134a688700c213e20ddc864
|
data/Gemfile.lock
CHANGED
data/gunter_reporter.gemspec
CHANGED
@@ -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."
|
data/lib/gunter_reporter.rb
CHANGED
@@ -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
|
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
|
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.
|
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:
|