footrest 0.5.6 → 0.5.7

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: 40372fba249c8a24b3e6198a6926d935030fd191686884f9d357ad33af35306b
4
- data.tar.gz: 60914c80b6bb3e30c853207dec563551463b8c9cf707a9ad36a752f547e3f7c6
3
+ metadata.gz: 968495656167e6aaa1f4eff684bc443ce0ecbb496ca08d284b45e150a4e936cb
4
+ data.tar.gz: a8b50fb742eb80e4b6457ed45cb12e4d78e0eaf9a6d16ac20fcd3f7a4de172d6
5
5
  SHA512:
6
- metadata.gz: '0578c75a4542254954a50420c637b93148c9c2a8c42c9c2cecbd2ca7640b390205cddf4783a9e6caecb9be0784ab7e9d002f2617fcf18b41a1a11f1aa61a920b'
7
- data.tar.gz: ff0192a555472cba9afba3181581b1db8c81e355a72a8d359336e8fd2bbbe3fab3ad6b3c1ccdc803b844af68026ddc90b8e31d526406ae203849b37181c73698
6
+ metadata.gz: 9780495420710ac46734287437553e257ea2fb4c7df9247703efd0c60b73d090351f6e5f1bb41150b98aa4b856594d562d0d50aa663ed3f7a07aaff7de97869b
7
+ data.tar.gz: 5d053606a8b9a18fc6d0104966cd2f9c60a695e241295dc564c54629dcde63a38582f12d816137fdc2041ecb460895bdc8667ae608d8a487d9a5a1f0020333ce
data/footrest.gemspec CHANGED
@@ -25,8 +25,9 @@ Gem::Specification.new do |gem|
25
25
  gem.add_development_dependency "webmock"
26
26
  gem.add_development_dependency "pry"
27
27
  gem.add_development_dependency "byebug"
28
+ gem.add_development_dependency "faraday", ">1.0.0", "< 2"
28
29
 
29
- gem.add_dependency "faraday", ">= 0.9.0", "< 1"
30
+ gem.add_dependency "faraday", ">= 0.9.0", "< 2"
30
31
  gem.add_dependency "activesupport", ">= 3.0.0"
31
32
 
32
33
  # Parses Link headers formatted according to RFC 5988 draft spec
@@ -3,7 +3,7 @@ require 'set'
3
3
 
4
4
  module Footrest
5
5
  # Public: Exception thrown when the maximum amount of requests is exceeded.
6
- class RedirectLimitReached < Faraday::Error::ClientError
6
+ class RedirectLimitReached < Faraday::ClientError
7
7
  attr_reader :response
8
8
 
9
9
  def initialize(response)
@@ -47,7 +47,7 @@ module Footrest
47
47
  self.class.parser.call(body)
48
48
  rescue StandardError, SyntaxError => err
49
49
  raise err if err.is_a? SyntaxError and err.class.name != 'Psych::SyntaxError'
50
- raise Faraday::Error::ParsingError, err
50
+ raise Faraday::ParsingError, err
51
51
  end
52
52
  else
53
53
  body
@@ -1,3 +1,3 @@
1
1
  module Footrest
2
- VERSION = '0.5.6' unless defined?(Footrest::VERSION)
2
+ VERSION = '0.5.7' unless defined?(Footrest::VERSION)
3
3
  end
@@ -9,7 +9,7 @@ module Footrest
9
9
  describe HttpError::ErrorBase, :focus do
10
10
  let(:response) { Faraday::Env.new(
11
11
  :get,
12
- {errors: [{message: "I don't even"}]}.to_json,
12
+ { }.to_json,
13
13
  URI.parse('http://domain.com/api/v1/not_found'),
14
14
  Faraday::RequestOptions.new,
15
15
  {
@@ -22,7 +22,8 @@ module Footrest
22
22
  nil,
23
23
  nil,
24
24
  {"Foo-Bar" => 'baz'},
25
- 400
25
+ 400,
26
+ "Bad Response", { errors: [{message: "I don't even"}] }.to_json
26
27
  ) }
27
28
  let(:error) { HttpError::ErrorBase.new(response) }
28
29
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: footrest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Duane Johnson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-04-09 00:00:00.000000000 Z
12
+ date: 2024-04-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -95,6 +95,26 @@ dependencies:
95
95
  - - ">="
96
96
  - !ruby/object:Gem::Version
97
97
  version: '0'
98
+ - !ruby/object:Gem::Dependency
99
+ name: faraday
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">"
103
+ - !ruby/object:Gem::Version
104
+ version: 1.0.0
105
+ - - "<"
106
+ - !ruby/object:Gem::Version
107
+ version: '2'
108
+ type: :development
109
+ prerelease: false
110
+ version_requirements: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - ">"
113
+ - !ruby/object:Gem::Version
114
+ version: 1.0.0
115
+ - - "<"
116
+ - !ruby/object:Gem::Version
117
+ version: '2'
98
118
  - !ruby/object:Gem::Dependency
99
119
  name: faraday
100
120
  requirement: !ruby/object:Gem::Requirement
@@ -104,7 +124,7 @@ dependencies:
104
124
  version: 0.9.0
105
125
  - - "<"
106
126
  - !ruby/object:Gem::Version
107
- version: '1'
127
+ version: '2'
108
128
  type: :runtime
109
129
  prerelease: false
110
130
  version_requirements: !ruby/object:Gem::Requirement
@@ -114,7 +134,7 @@ dependencies:
114
134
  version: 0.9.0
115
135
  - - "<"
116
136
  - !ruby/object:Gem::Version
117
- version: '1'
137
+ version: '2'
118
138
  - !ruby/object:Gem::Dependency
119
139
  name: activesupport
120
140
  requirement: !ruby/object:Gem::Requirement