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 +4 -4
- data/.github/workflows/gempush.yml +2 -1
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/pig_ci/api/reports.rb +5 -1
- data/lib/pig_ci/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: 9bbf5808a5abe187a4c0fd639a35e3d03d463d462b050ce35ccd081787b2b2d6
|
4
|
+
data.tar.gz: 5d92cc342e3db20219dfef9df13305f3a6b9d5d66ac208b457e234b2abe0a5a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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/
|
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
|
|
data/lib/pig_ci/api/reports.rb
CHANGED
@@ -10,7 +10,11 @@ class PigCI::Api::Reports < PigCI::Api
|
|
10
10
|
return
|
11
11
|
end
|
12
12
|
|
13
|
-
|
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
|
data/lib/pig_ci/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2020-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|