http-exceptions 0.1.2 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.circleci/config.yml +89 -0
- data/.ruby-version +1 -0
- data/http-exceptions.gemspec +3 -1
- data/lib/http/exceptions/http_exception.rb +1 -1
- data/lib/http/exceptions/version.rb +1 -1
- metadata +35 -8
- data/.rvmrc +0 -1
- data/.travis.yml +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c36c4d6a2dd82b84e931d9e6ed2de3ede39a73e1b6c92a939f95e1d4c8729fe8
|
4
|
+
data.tar.gz: cbd55955c1a0e87bb1dfa2b2e1e0ee5caf3b244d519a0165dc23b5bd804ae3a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39e4f5c9d98c047ef775459ac01ed108ed30d9b88320d3ce02d7c683e33227f64a36aaeb4a2db7396d1483e8cc266b43186dd2a0bb3b8c9fd29119215e6ad64f
|
7
|
+
data.tar.gz: c243f850a854f6578b45c98dfc3f68c8d4454d1b46b16ed6ed2b037a29a6725a35c3e0c9efee0125329af566be69e07ae79755df26c90686c89a891d97a3288c
|
@@ -0,0 +1,89 @@
|
|
1
|
+
version: 2.1
|
2
|
+
|
3
|
+
jobs:
|
4
|
+
test:
|
5
|
+
parameters:
|
6
|
+
ruby:
|
7
|
+
type: string
|
8
|
+
docker:
|
9
|
+
- image: cimg/ruby:<< parameters.ruby >>
|
10
|
+
auth:
|
11
|
+
username: $DOCKERHUB_USERNAME
|
12
|
+
password: $DOCKERHUB_TOKEN
|
13
|
+
steps:
|
14
|
+
- checkout
|
15
|
+
- run:
|
16
|
+
name: Install Ruby gems
|
17
|
+
command: |
|
18
|
+
bundle config set --local path vendor/bundle
|
19
|
+
bundle check || bundle install --jobs=4 --retry=3
|
20
|
+
- run:
|
21
|
+
name: Set up test output directory
|
22
|
+
command: sudo install -o circleci -d ~/rspec
|
23
|
+
- run:
|
24
|
+
name: RSpec
|
25
|
+
command: |
|
26
|
+
bundle exec rspec \
|
27
|
+
--color \
|
28
|
+
--require spec_helper \
|
29
|
+
--format documentation \
|
30
|
+
--format RspecJunitFormatter \
|
31
|
+
--out ~/rspec/rspec.xml
|
32
|
+
push_to_rubygems:
|
33
|
+
docker:
|
34
|
+
- image: circleci/ruby:2.7.4
|
35
|
+
auth:
|
36
|
+
username: $DOCKERHUB_USERNAME
|
37
|
+
password: $DOCKERHUB_TOKEN
|
38
|
+
steps:
|
39
|
+
- checkout
|
40
|
+
- run:
|
41
|
+
name: Create .gem/credentials file
|
42
|
+
command: |
|
43
|
+
mkdir ~/.gem
|
44
|
+
echo "---
|
45
|
+
:rubygems_api_key: $RUBYGEMS_API_KEY
|
46
|
+
" > ~/.gem/credentials
|
47
|
+
chmod 600 ~/.gem/credentials
|
48
|
+
- run:
|
49
|
+
name: Release
|
50
|
+
command: |
|
51
|
+
gem build http-exceptions
|
52
|
+
gem push http-exceptions*.gem
|
53
|
+
|
54
|
+
workflows:
|
55
|
+
version: 2
|
56
|
+
test_and_deploy:
|
57
|
+
jobs:
|
58
|
+
- test:
|
59
|
+
matrix:
|
60
|
+
alias: old-ruby
|
61
|
+
parameters:
|
62
|
+
ruby: ["2.7", "3.0"]
|
63
|
+
filters:
|
64
|
+
tags:
|
65
|
+
only:
|
66
|
+
- /^v.*/
|
67
|
+
context:
|
68
|
+
- DockerHub
|
69
|
+
- test:
|
70
|
+
ruby: "3.1"
|
71
|
+
filters:
|
72
|
+
tags:
|
73
|
+
only:
|
74
|
+
- /^v.*/
|
75
|
+
context:
|
76
|
+
- DockerHub
|
77
|
+
- push_to_rubygems:
|
78
|
+
requires:
|
79
|
+
- test
|
80
|
+
filters:
|
81
|
+
branches:
|
82
|
+
ignore:
|
83
|
+
- /.*/
|
84
|
+
tags:
|
85
|
+
only:
|
86
|
+
- /^v.*/
|
87
|
+
context:
|
88
|
+
- DockerHub
|
89
|
+
- RubyGems
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby-2.7.4
|
data/http-exceptions.gemspec
CHANGED
@@ -18,6 +18,8 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_development_dependency "bundler", "~>
|
21
|
+
spec.add_development_dependency "bundler", "~> 2.2"
|
22
22
|
spec.add_development_dependency "rake"
|
23
|
+
spec.add_development_dependency "rspec"
|
24
|
+
spec.add_development_dependency 'rspec_junit_formatter'
|
23
25
|
end
|
@@ -6,7 +6,7 @@ module Http
|
|
6
6
|
def initialize(options = {})
|
7
7
|
@original_exception = options[:original_exception]
|
8
8
|
@response = options[:response]
|
9
|
-
msg =
|
9
|
+
msg = 'An error has occurred while processing response.'
|
10
10
|
msg += " Status #{response.code}\n#{response.body}" if response
|
11
11
|
msg += " Original Exception: #{original_exception}" if original_exception
|
12
12
|
super msg
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: http-exceptions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Mathieu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.2'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,6 +38,34 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec_junit_formatter
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
41
69
|
description: An easy way to rescue exceptions that might be thrown by your Http library
|
42
70
|
email:
|
43
71
|
- simon.math@gmail.com
|
@@ -45,10 +73,10 @@ executables: []
|
|
45
73
|
extensions: []
|
46
74
|
extra_rdoc_files: []
|
47
75
|
files:
|
76
|
+
- ".circleci/config.yml"
|
48
77
|
- ".gitignore"
|
49
78
|
- ".rspec"
|
50
|
-
- ".
|
51
|
-
- ".travis.yml"
|
79
|
+
- ".ruby-version"
|
52
80
|
- Gemfile
|
53
81
|
- LICENSE.txt
|
54
82
|
- README.md
|
@@ -80,8 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
108
|
- !ruby/object:Gem::Version
|
81
109
|
version: '0'
|
82
110
|
requirements: []
|
83
|
-
|
84
|
-
rubygems_version: 2.5.2
|
111
|
+
rubygems_version: 3.1.6
|
85
112
|
signing_key:
|
86
113
|
specification_version: 4
|
87
114
|
summary: An easy way to rescue exceptions that might be thrown by your Http library
|
data/.rvmrc
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
rvm use 2.2.0@http-exceptions --create
|
data/.travis.yml
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
# Send builds to container-based infrastructure
|
2
|
-
# http://docs.travis-ci.com/user/workers/container-based-infrastructure/
|
3
|
-
sudo: false
|
4
|
-
language: ruby
|
5
|
-
cache:
|
6
|
-
- bundler
|
7
|
-
rvm:
|
8
|
-
- 2.0
|
9
|
-
- 2.1.8
|
10
|
-
- 2.2.4
|
11
|
-
- 2.3.0
|
12
|
-
- ruby-head
|
13
|
-
script: bundle exec rspec spec
|
14
|
-
# ! Update bundler before running test in Travis to avoid buggy version of bundler
|
15
|
-
before_install:
|
16
|
-
- gem update bundler
|
17
|
-
matrix:
|
18
|
-
fast_finish: true
|
19
|
-
allow_failures:
|
20
|
-
- rvm: ruby-head
|