rest-in-peace 6.0.4 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.github/workflows/gem-push.yml +29 -0
- data/.github/workflows/rspec.yml +34 -0
- data/README.md +2 -4
- data/VERSION +1 -1
- data/gemfiles/{Gemfile.activemodel-5.0.x → Gemfile.activemodel-5.2.x} +1 -1
- data/lib/rest_in_peace/faraday/raise_errors_middleware.rb +3 -3
- metadata +12 -16
- data/.ruby-version +0 -1
- data/.travis.yml +0 -36
- data/gemfiles/Gemfile.activemodel-3.2.x +0 -6
- data/gemfiles/Gemfile.activemodel-4.0.x +0 -6
- data/gemfiles/Gemfile.activemodel-4.1.x +0 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: d122d9f9815d59a8e0f9c5cc3b5c558f920044ffee5e4ccfb926d9fac816dbfb
|
|
4
|
+
data.tar.gz: 5502ea4ad63d752fbabf4453523f9d3f8f8ebbdd04229a2793eaa1524e0e6d08
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b2263f956630c22d8f13c44b974d609cbcc85a08285faab83d083c6d7f137f754a2a626e57d41d97b8bd90965c1bb8af45edc7fb132f97f73c1e7ff0f7b26ce7
|
|
7
|
+
data.tar.gz: 0b20c10350d7afb8ef9c31ad9679f27cc9be5fdef62990339e62d18cd3c8917bfb4a657809e1976864671a2de55058834d990942bd1a61374c82b475626d8418
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: Ruby Gem
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "*"
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build:
|
|
10
|
+
name: Build + Publish
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v2
|
|
15
|
+
- name: Set up Ruby 2.6
|
|
16
|
+
uses: actions/setup-ruby@v1
|
|
17
|
+
with:
|
|
18
|
+
ruby-version: 2.6.x
|
|
19
|
+
|
|
20
|
+
- name: Publish to RubyGems
|
|
21
|
+
run: |
|
|
22
|
+
mkdir -p $HOME/.gem
|
|
23
|
+
touch $HOME/.gem/credentials
|
|
24
|
+
chmod 0600 $HOME/.gem/credentials
|
|
25
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
|
26
|
+
gem build *.gemspec
|
|
27
|
+
gem push *.gem
|
|
28
|
+
env:
|
|
29
|
+
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# This workflow uses actions that are not certified by GitHub.
|
|
2
|
+
# They are provided by a third-party and are governed by
|
|
3
|
+
# separate terms of service, privacy policy, and support
|
|
4
|
+
# documentation.
|
|
5
|
+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
|
6
|
+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
|
7
|
+
|
|
8
|
+
name: Ruby CI
|
|
9
|
+
|
|
10
|
+
on: [push, pull_request]
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
test:
|
|
14
|
+
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
|
|
17
|
+
strategy:
|
|
18
|
+
matrix:
|
|
19
|
+
ruby-version: [2.4.10, 2.5.8, 2.6.6, 2.7.2]
|
|
20
|
+
activemodel: [4.2.x, 5.1.x, 5.2.x]
|
|
21
|
+
exclude:
|
|
22
|
+
- ruby-version: 2.7.2
|
|
23
|
+
activemodel: 4.2.x
|
|
24
|
+
|
|
25
|
+
steps:
|
|
26
|
+
- uses: actions/checkout@v2
|
|
27
|
+
- name: Set up Ruby
|
|
28
|
+
uses: ruby/setup-ruby@v1
|
|
29
|
+
with:
|
|
30
|
+
ruby-version: ${{ matrix.ruby-version }}
|
|
31
|
+
- name: Install dependencies
|
|
32
|
+
run: bundle install --gemfile gemfiles/Gemfile.activemodel-${{ matrix.activemodel }}
|
|
33
|
+
- name: Run tests
|
|
34
|
+
run: bundle exec rake spec
|
data/README.md
CHANGED
|
@@ -339,8 +339,6 @@ end
|
|
|
339
339
|
|
|
340
340
|
## About
|
|
341
341
|
|
|
342
|
-
This gem is currently maintained and funded by [nine
|
|
342
|
+
This gem is currently maintained and funded by [nine](https://nine.ch).
|
|
343
343
|
|
|
344
|
-
[](https://www.nine.ch)
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.0
|
|
1
|
+
6.1.0
|
|
@@ -8,15 +8,15 @@ module RESTinPeace
|
|
|
8
8
|
def on_complete(env)
|
|
9
9
|
case env[:status]
|
|
10
10
|
when 404
|
|
11
|
-
raise ::Faraday::
|
|
11
|
+
raise ::Faraday::ResourceNotFound, response_values(env)
|
|
12
12
|
when 407
|
|
13
13
|
# mimic the behavior that we get with proxy requests with HTTPS
|
|
14
|
-
raise ::Faraday::
|
|
14
|
+
raise ::Faraday::ConnectionFailed, %{407 "Proxy Authentication Required "}
|
|
15
15
|
when 422
|
|
16
16
|
# do not raise an error as 422 from a rails app means validation errors
|
|
17
17
|
# and response body contains the validation errors
|
|
18
18
|
when CLIENT_ERROR_STATUSES
|
|
19
|
-
raise ::Faraday::
|
|
19
|
+
raise ::Faraday::ClientError, response_values(env)
|
|
20
20
|
end
|
|
21
21
|
end
|
|
22
22
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rest-in-peace
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 6.0
|
|
4
|
+
version: 6.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Raffael Schmid
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-01-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activemodel
|
|
@@ -96,22 +96,22 @@ dependencies:
|
|
|
96
96
|
name: guard-rspec
|
|
97
97
|
requirement: !ruby/object:Gem::Requirement
|
|
98
98
|
requirements:
|
|
99
|
-
- - "~>"
|
|
100
|
-
- !ruby/object:Gem::Version
|
|
101
|
-
version: '4.2'
|
|
102
99
|
- - ">="
|
|
103
100
|
- !ruby/object:Gem::Version
|
|
104
101
|
version: 4.2.0
|
|
102
|
+
- - "~>"
|
|
103
|
+
- !ruby/object:Gem::Version
|
|
104
|
+
version: '4.2'
|
|
105
105
|
type: :development
|
|
106
106
|
prerelease: false
|
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
|
108
108
|
requirements:
|
|
109
|
-
- - "~>"
|
|
110
|
-
- !ruby/object:Gem::Version
|
|
111
|
-
version: '4.2'
|
|
112
109
|
- - ">="
|
|
113
110
|
- !ruby/object:Gem::Version
|
|
114
111
|
version: 4.2.0
|
|
112
|
+
- - "~>"
|
|
113
|
+
- !ruby/object:Gem::Version
|
|
114
|
+
version: '4.2'
|
|
115
115
|
- !ruby/object:Gem::Dependency
|
|
116
116
|
name: simplecov
|
|
117
117
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -139,11 +139,11 @@ executables: []
|
|
|
139
139
|
extensions: []
|
|
140
140
|
extra_rdoc_files: []
|
|
141
141
|
files:
|
|
142
|
+
- ".github/workflows/gem-push.yml"
|
|
143
|
+
- ".github/workflows/rspec.yml"
|
|
142
144
|
- ".gitignore"
|
|
143
145
|
- ".rspec"
|
|
144
146
|
- ".ruby-gemset"
|
|
145
|
-
- ".ruby-version"
|
|
146
|
-
- ".travis.yml"
|
|
147
147
|
- Gemfile
|
|
148
148
|
- Guardfile
|
|
149
149
|
- LICENSE.txt
|
|
@@ -151,12 +151,9 @@ files:
|
|
|
151
151
|
- Rakefile
|
|
152
152
|
- VERSION
|
|
153
153
|
- examples/pagination_with_headers.rb
|
|
154
|
-
- gemfiles/Gemfile.activemodel-3.2.x
|
|
155
|
-
- gemfiles/Gemfile.activemodel-4.0.x
|
|
156
|
-
- gemfiles/Gemfile.activemodel-4.1.x
|
|
157
154
|
- gemfiles/Gemfile.activemodel-4.2.x
|
|
158
|
-
- gemfiles/Gemfile.activemodel-5.0.x
|
|
159
155
|
- gemfiles/Gemfile.activemodel-5.1.x
|
|
156
|
+
- gemfiles/Gemfile.activemodel-5.2.x
|
|
160
157
|
- images/rest_in_peace.gif
|
|
161
158
|
- lib/rest-in-peace.rb
|
|
162
159
|
- lib/rest_in_peace.rb
|
|
@@ -201,8 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
201
198
|
- !ruby/object:Gem::Version
|
|
202
199
|
version: '0'
|
|
203
200
|
requirements: []
|
|
204
|
-
|
|
205
|
-
rubygems_version: 2.5.2
|
|
201
|
+
rubygems_version: 3.0.3
|
|
206
202
|
signing_key:
|
|
207
203
|
specification_version: 4
|
|
208
204
|
summary: REST in peace
|
data/.ruby-version
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.3.4
|
data/.travis.yml
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
language: ruby
|
|
2
|
-
cache: bundler
|
|
3
|
-
rvm:
|
|
4
|
-
- 2.0.0
|
|
5
|
-
- 2.1.2
|
|
6
|
-
- 2.2.5
|
|
7
|
-
- 2.3.1
|
|
8
|
-
- 2.3.4
|
|
9
|
-
- 2.4.1
|
|
10
|
-
gemfile:
|
|
11
|
-
- gemfiles/Gemfile.activemodel-3.2.x
|
|
12
|
-
- gemfiles/Gemfile.activemodel-4.0.x
|
|
13
|
-
- gemfiles/Gemfile.activemodel-4.1.x
|
|
14
|
-
- gemfiles/Gemfile.activemodel-4.2.x
|
|
15
|
-
- gemfiles/Gemfile.activemodel-5.0.x
|
|
16
|
-
- gemfiles/Gemfile.activemodel-5.1.x
|
|
17
|
-
script:
|
|
18
|
-
- bundle exec rake spec
|
|
19
|
-
before_install: gem install bundler
|
|
20
|
-
matrix:
|
|
21
|
-
exclude:
|
|
22
|
-
- rvm: 2.0.0
|
|
23
|
-
gemfile: gemfiles/Gemfile.activemodel-5.0.x
|
|
24
|
-
- rvm: 2.1.2
|
|
25
|
-
gemfile: gemfiles/Gemfile.activemodel-5.0.x
|
|
26
|
-
- rvm: 2.0.0
|
|
27
|
-
gemfile: gemfiles/Gemfile.activemodel-5.1.x
|
|
28
|
-
- rvm: 2.1.2
|
|
29
|
-
gemfile: gemfiles/Gemfile.activemodel-5.1.x
|
|
30
|
-
notifications:
|
|
31
|
-
email: false
|
|
32
|
-
slack:
|
|
33
|
-
on_success: always
|
|
34
|
-
on_failure: always
|
|
35
|
-
rooms:
|
|
36
|
-
secure: VKDJrfgm1c9OUaQPyMutsVzMCwZzBQh7qxVGJnsdNOHOLtVrc6dQrC6+w7Zc1Py5H5pUU+roKi2n5rVnhNjHf4xukGEdDpI0JBBgYSZjl9b/RbxBsHYG9Z8tUQ0EZ7Bd9H3eH2LHQvjoEcvvUJ6I2BCbXlPCrMovfEB3ILQ8Ryo=
|