pig-ci-rails 0.2.0 → 0.2.1

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: 45e75a450ac91998d1c684580aadb2f2beab4dc4b12aefc2b1cc39ff18d6aced
4
- data.tar.gz: 35ceebb576bae40eaeb17566ae3cfa764e165c68e4c2680f4257b1046849d79d
3
+ metadata.gz: 9bbf5808a5abe187a4c0fd639a35e3d03d463d462b050ce35ccd081787b2b2d6
4
+ data.tar.gz: 5d92cc342e3db20219dfef9df13305f3a6b9d5d66ac208b457e234b2abe0a5a2
5
5
  SHA512:
6
- metadata.gz: d59558555c2138ea84554770b9e296c5e49d7f3c9b50f2913bf7d5a3b64be795e947440cf297665e9e726bae9ad5ab1934fec67f8194ed95692c8555d99b0b4b
7
- data.tar.gz: 74e3514d08d9021ab082f4e75c3edc8bf7e7c369b10a83583f96ec701e1f312325e1bf338286a168793eb06eb24de0aa54dac6540932fadc83ba26d8ba05d11c
6
+ metadata.gz: '0987dc32d18a379bbb116627603fa40e28e1b053317ce317923b3be01bba3cbc8d0efd36d7d85fedc385281973ce8fb0bb9880e177e9fe1321970b528afa2014'
7
+ data.tar.gz: 2c7fcef602b2f5acecf79449498bcdd42e63505726b3730504ebd14b4303f2cba41638cf6f1bc7a5fab9d468646d2943e832942d809e46eca3d15085521acc36
@@ -3,6 +3,7 @@ name: Build & Publish Ruby Gem
3
3
  on:
4
4
  create:
5
5
  tags:
6
+ - v*
6
7
 
7
8
  jobs:
8
9
  build:
@@ -14,7 +15,7 @@ jobs:
14
15
  - name: Set up Ruby 2.6
15
16
  uses: actions/setup-ruby@v1
16
17
  with:
17
- version: 2.6.x
18
+ ruby-version: 2.6.x
18
19
 
19
20
  - name: Publish to GPR
20
21
  run: |
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@
4
4
 
5
5
  * TODO: Deprecate pigci.com integration.
6
6
 
7
+ ## 0.2.1
8
+
9
+ * [Handling JSON response for API key being incorrect with correct error](https://github.com/PigCI/pig-ci-rails/pull/23)
10
+
7
11
  ## 0.2.0
8
12
 
9
13
  * [Updating TravisCI to test latest ruby versions](https://github.com/PigCI/pig-ci-rails/pull/15)
data/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  # PigCI
9
9
 
10
- ![Sample Output of PigCI in TravisCI](https://user-images.githubusercontent.com/325384/64909005-7b4a1280-d6fe-11e9-8a1f-c40d21eeb4a7.png)
10
+ ![Sample Output of PigCI in TravisCI](https://user-images.githubusercontent.com/325384/76989551-76307f00-693e-11ea-8afc-c568a9b1e5fe.png)
11
11
 
12
12
  Monitor your Ruby Applications metrics (Memory, SQL Requests & Request Time) as part of your test suite.
13
13
 
@@ -10,7 +10,11 @@ class PigCI::Api::Reports < PigCI::Api
10
10
  return
11
11
  end
12
12
 
13
- puts I18n.t('pig_ci.api.reports.error', error: JSON.parse(response.parsed_response || '{}')['error'])
13
+ if response.parsed_response.is_a?(Hash)
14
+ puts I18n.t('pig_ci.api.reports.error', error: response.parsed_response.dig('error'))
15
+ else
16
+ puts I18n.t('pig_ci.api.reports.error')
17
+ end
14
18
  rescue JSON::ParserError => _e
15
19
  puts I18n.t('pig_ci.api.reports.api_error')
16
20
  rescue SocketError => e
@@ -1,3 +1,3 @@
1
1
  module PigCI
2
- VERSION = '0.2.0'.freeze
2
+ VERSION = '0.2.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pig-ci-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Rogers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-18 00:00:00.000000000 Z
11
+ date: 2020-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport