rock_rms 7.0.3 → 7.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +22 -0
- data/README.md +2 -2
- data/lib/rock_rms/error.rb +3 -0
- data/lib/rock_rms/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17ab634cb0cde62461d00147a5db6782e60f6c76891937fee02cb87e2440f545
|
4
|
+
data.tar.gz: 8ee90dd944bc529fb368a33d4c7f72a9bca98ded2efd35408ef2c07842f93308
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7d04c986b0a027238618f14aa5764c1504a7923f92568cc10a48e77d6c0c14e325d2220bba99f253a38f0b07bfc484812540caf450f907bd6eceb51b0d78a60
|
7
|
+
data.tar.gz: e3274919e94773fc0aa21b4acf407ffe5a1ebce6d7ec069ec6cdd7ab2e0bb36e0bd6c65b0c22b984c962fef190817e411242ad07ab60d95135813ebeda20b7dc
|
@@ -0,0 +1,22 @@
|
|
1
|
+
name: Run specs
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ master ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ master ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
test:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
|
13
|
+
steps:
|
14
|
+
- uses: actions/checkout@v2
|
15
|
+
- name: Set up Ruby
|
16
|
+
uses: ruby/setup-ruby@v1
|
17
|
+
with:
|
18
|
+
bundler-cache: true
|
19
|
+
- name: Install dependencies
|
20
|
+
run: bundle install
|
21
|
+
- name: Run tests
|
22
|
+
run: bundle exec rspec
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
![](https://www.rockrms.com/Themes/RockExternal/Assets/Images/rock-logo.svg)
|
2
2
|
|
3
|
-
# Rock RMS Ruby Client
|
3
|
+
# Rock RMS Ruby Client ![example workflow](https://github.com/taylorbrooks/rock_rms/actions/workflows/test.yml/badge.svg)
|
4
4
|
|
5
5
|
A Ruby wrapper for the Rock RMS API
|
6
6
|
|
@@ -14,7 +14,7 @@ I'm a big fan of Rock so if you have problems using the gem or would like to see
|
|
14
14
|
Add this line to your application's Gemfile:
|
15
15
|
````ruby
|
16
16
|
# in your Gemfile
|
17
|
-
gem 'rock_rms', '~>
|
17
|
+
gem 'rock_rms', '~> 7.0.3'
|
18
18
|
|
19
19
|
# then...
|
20
20
|
bundle install
|
data/lib/rock_rms/error.rb
CHANGED
@@ -2,6 +2,7 @@ module RockRMS
|
|
2
2
|
class Error < StandardError; end
|
3
3
|
class BadGateway < Error; end
|
4
4
|
class BadRequest < Error; end
|
5
|
+
class CloudflareError < Error; end
|
5
6
|
class Forbidden < Error; end
|
6
7
|
class GatewayTimeout < Error; end
|
7
8
|
class InternalServerError < Error; end
|
@@ -33,6 +34,8 @@ module FaradayMiddleware
|
|
33
34
|
raise RockRMS::ServiceUnavailable, error_message(env)
|
34
35
|
when 504
|
35
36
|
raise RockRMS::GatewayTimeout, error_message(env)
|
37
|
+
when 520
|
38
|
+
raise RockRMS::CloudflareError, error_message(env)
|
36
39
|
when ERROR_STATUSES
|
37
40
|
raise RockRMS::Error, error_message(env)
|
38
41
|
end
|
data/lib/rock_rms/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rock_rms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.0
|
4
|
+
version: 7.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taylor Brooks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -173,6 +173,7 @@ executables:
|
|
173
173
|
extensions: []
|
174
174
|
extra_rdoc_files: []
|
175
175
|
files:
|
176
|
+
- ".github/workflows/test.yml"
|
176
177
|
- ".gitignore"
|
177
178
|
- ".ruby-version"
|
178
179
|
- ".travis.yml"
|