rest-in-peace 6.0.4 → 6.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/gem-push.yml +29 -0
- data/.github/workflows/rspec.yml +42 -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/gemfiles/Gemfile.activemodel-6.0.x +5 -0
- data/gemfiles/Gemfile.activemodel-6.1.x +5 -0
- data/gemfiles/Gemfile.activemodel-7.0.x +5 -0
- data/lib/rest_in_peace/faraday/raise_errors_middleware.rb +3 -3
- data/rest-in-peace.gemspec +4 -3
- metadata +22 -24
- 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
- data/gemfiles/Gemfile.activemodel-4.2.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: 52a826ce02c4b9385139392f3bf554789e3ad7c3550213e2b075c2c927544865
|
4
|
+
data.tar.gz: 3d36176b1f0300352d21395afd41bed75acec11c4625b5ea5552085e486afb02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fd15356026b8d583c7bfc84d2f21b1b6ac48db17e5691a1007f0673d550726012838c434991f7366813593e596ac8a4643c53ab93dadaa7a0b5a11ffd2faa29
|
7
|
+
data.tar.gz: '0923d19b8c8a54dd74f8869ad5e5e2fe53d10bfb9498f281e673b09e6cbf21101f06b56ad735135699f389692f998a20f631b4d6f8bb1eca34119494f3b17392'
|
@@ -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,42 @@
|
|
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.9, 2.6.10, 2.7.6]
|
20
|
+
activemodel: [5.1.x, 5.2.x, 6.0.x, 6.1.x, 7.0.x]
|
21
|
+
exclude:
|
22
|
+
- ruby-version: 2.4.10
|
23
|
+
activemodel: 6.0.x
|
24
|
+
- ruby-version: 2.4.10
|
25
|
+
activemodel: 6.1.x
|
26
|
+
- ruby-version: 2.4.10
|
27
|
+
activemodel: 7.0.x
|
28
|
+
- ruby-version: 2.5.9
|
29
|
+
activemodel: 7.0.x
|
30
|
+
- ruby-version: 2.6.10
|
31
|
+
activemodel: 7.0.x
|
32
|
+
|
33
|
+
steps:
|
34
|
+
- uses: actions/checkout@v2
|
35
|
+
- name: Set up Ruby
|
36
|
+
uses: ruby/setup-ruby@v1
|
37
|
+
with:
|
38
|
+
ruby-version: ${{ matrix.ruby-version }}
|
39
|
+
- name: Install dependencies
|
40
|
+
run: bundle install --gemfile gemfiles/Gemfile.activemodel-${{ matrix.activemodel }}
|
41
|
+
- name: Run tests
|
42
|
+
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
|
-
[![nine
|
345
|
-
|
346
|
-
We run your Linux server infrastructure – without interruptions, around the clock.
|
344
|
+
[![logo of the company 'nine'](https://logo.apps.at-nine.ch/Dmqied_eSaoBMQwk3vVgn4UIgDo=/trim/500x0/logo_claim.png)](https://www.nine.ch)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
6.0
|
1
|
+
6.2.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
|
|
data/rest-in-peace.gemspec
CHANGED
@@ -5,8 +5,8 @@ $:.push File.expand_path('../lib', __FILE__)
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = 'rest-in-peace'
|
7
7
|
s.version = File.read(File.expand_path('../VERSION', __FILE__)).strip
|
8
|
-
s.authors = ['
|
9
|
-
s.email = ['
|
8
|
+
s.authors = ['NINE Internet Soultions AG']
|
9
|
+
s.email = ['support@nine.ch']
|
10
10
|
s.homepage = 'http://github.com/ninech/'
|
11
11
|
s.license = 'MIT'
|
12
12
|
s.summary = 'REST in peace'
|
@@ -17,7 +17,8 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
18
18
|
s.require_paths = ['lib']
|
19
19
|
|
20
|
-
s.
|
20
|
+
s.required_ruby_version = '>= 2.4'
|
21
|
+
s.add_runtime_dependency 'activemodel', '>= 5.0', '< 8'
|
21
22
|
s.add_runtime_dependency 'addressable', '~> 2.5'
|
22
23
|
|
23
24
|
s.add_development_dependency 'rake', '~> 10.0'
|
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.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- NINE Internet Soultions AG
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -16,20 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '5.0'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '8'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
29
|
+
version: '5.0'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '8'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: addressable
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -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
|
@@ -134,16 +134,16 @@ dependencies:
|
|
134
134
|
version: 0.8.2
|
135
135
|
description: Let your api REST in peace.
|
136
136
|
email:
|
137
|
-
-
|
137
|
+
- support@nine.ch
|
138
138
|
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,11 @@ 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
|
-
- gemfiles/Gemfile.activemodel-4.2.x
|
158
|
-
- gemfiles/Gemfile.activemodel-5.0.x
|
159
154
|
- gemfiles/Gemfile.activemodel-5.1.x
|
155
|
+
- gemfiles/Gemfile.activemodel-5.2.x
|
156
|
+
- gemfiles/Gemfile.activemodel-6.0.x
|
157
|
+
- gemfiles/Gemfile.activemodel-6.1.x
|
158
|
+
- gemfiles/Gemfile.activemodel-7.0.x
|
160
159
|
- images/rest_in_peace.gif
|
161
160
|
- lib/rest-in-peace.rb
|
162
161
|
- lib/rest_in_peace.rb
|
@@ -194,15 +193,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
194
193
|
requirements:
|
195
194
|
- - ">="
|
196
195
|
- !ruby/object:Gem::Version
|
197
|
-
version: '
|
196
|
+
version: '2.4'
|
198
197
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
199
198
|
requirements:
|
200
199
|
- - ">="
|
201
200
|
- !ruby/object:Gem::Version
|
202
201
|
version: '0'
|
203
202
|
requirements: []
|
204
|
-
|
205
|
-
rubygems_version: 2.5.2
|
203
|
+
rubygems_version: 3.0.3.1
|
206
204
|
signing_key:
|
207
205
|
specification_version: 4
|
208
206
|
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=
|