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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d50622be87ae69275c27c620dcc9e21d5e473c700554219f7ac4eb29b854ba6e
4
- data.tar.gz: 01d46085478582b1add636fa558932a7df8f0f99546c66f29f0494de38353c6d
3
+ metadata.gz: 17ab634cb0cde62461d00147a5db6782e60f6c76891937fee02cb87e2440f545
4
+ data.tar.gz: 8ee90dd944bc529fb368a33d4c7f72a9bca98ded2efd35408ef2c07842f93308
5
5
  SHA512:
6
- metadata.gz: '09895f32647c2cf61724fdc79d11965da9294a253eaa95544a53d29bcfd877c41f9976150dd91b311f41b45ac32795586ae83b93a448ff073b8a502eadecc4a7'
7
- data.tar.gz: 520aa2aaf064a0a5efecfd6b418b48fbb1559a30b94584f77a59a6675b7156d905fb6ae9b25534c11601c8ecd11fe7bed8f95d74caf747c58a7cf4ad1c10e39b
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 [![Build Status](https://travis-ci.org/taylorbrooks/rock_rms.svg?branch=master)](https://travis-ci.org/taylorbrooks/rock_rms)
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', '~> 4.2'
17
+ gem 'rock_rms', '~> 7.0.3'
18
18
 
19
19
  # then...
20
20
  bundle install
@@ -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
@@ -1,3 +1,3 @@
1
1
  module RockRMS
2
- VERSION = '7.0.3'.freeze
2
+ VERSION = '7.1.0'.freeze
3
3
  end
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.3
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-16 00:00:00.000000000 Z
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"