footrest 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/footrest.gemspec +2 -2
- data/lib/footrest/connection.rb +2 -2
- data/lib/footrest/version.rb +1 -1
- metadata +11 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d90cd2fe4ddde8e1985ec60f1f1447ca0a702884
|
4
|
+
data.tar.gz: 913f2e63743580ebdc0f4222b09bde60969acb13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9c31d958fb219775ee972ced3515faa054e6563617a89da529a29ec04b061bcbae9d04e1fc3290971559a165f8de74d87a215d901ee584300246501360fa329
|
7
|
+
data.tar.gz: 3b73c2b03292cd5cae4af34a1e75982a459eaf5126f3063b109386d196729e8d348c47aedaf29e563d31c41fb45d63bb8c4966a12d7c2dbc32d8cd45932c2d80
|
data/footrest.gemspec
CHANGED
@@ -20,13 +20,13 @@ Gem::Specification.new do |gem|
|
|
20
20
|
gem.version = Footrest::VERSION
|
21
21
|
|
22
22
|
gem.add_development_dependency "rake"
|
23
|
-
gem.add_development_dependency "bundler"
|
23
|
+
gem.add_development_dependency "bundler"
|
24
24
|
gem.add_development_dependency "rspec", "~> 3.3"
|
25
25
|
gem.add_development_dependency "webmock"
|
26
26
|
gem.add_development_dependency "pry"
|
27
27
|
gem.add_development_dependency "byebug"
|
28
28
|
|
29
|
-
gem.add_dependency "faraday", "
|
29
|
+
gem.add_dependency "faraday", ">= 0.9.0", "< 1"
|
30
30
|
gem.add_dependency "activesupport", ">= 3.0.0"
|
31
31
|
|
32
32
|
# Parses Link headers formatted according to RFC 5988 draft spec
|
data/lib/footrest/connection.rb
CHANGED
@@ -19,7 +19,6 @@ module Footrest
|
|
19
19
|
elsif config[:logger]
|
20
20
|
faraday.use Faraday::Response::Logger, config[:logger]
|
21
21
|
end
|
22
|
-
faraday.adapter Faraday.default_adapter
|
23
22
|
faraday.use Footrest::FollowRedirects
|
24
23
|
faraday.use Footrest::ParseJson, :content_type => /\bjson$/
|
25
24
|
faraday.use Footrest::RaiseFootrestErrors
|
@@ -27,8 +26,9 @@ module Footrest
|
|
27
26
|
faraday.headers[:accept] = "application/json"
|
28
27
|
faraday.headers[:authorization] = "Bearer #{config[:token]}" if config[:token]
|
29
28
|
faraday.headers[:user_agent] = "Footrest"
|
29
|
+
faraday.adapter Faraday.default_adapter
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
33
|
end
|
34
|
-
end
|
34
|
+
end
|
data/lib/footrest/version.rb
CHANGED
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.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Duane Johnson
|
@@ -31,14 +31,14 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
34
|
+
version: '0'
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version:
|
41
|
+
version: '0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rspec
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -99,16 +99,22 @@ dependencies:
|
|
99
99
|
name: faraday
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- - "
|
102
|
+
- - ">="
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: 0.9.0
|
105
|
+
- - "<"
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '1'
|
105
108
|
type: :runtime
|
106
109
|
prerelease: false
|
107
110
|
version_requirements: !ruby/object:Gem::Requirement
|
108
111
|
requirements:
|
109
|
-
- - "
|
112
|
+
- - ">="
|
110
113
|
- !ruby/object:Gem::Version
|
111
114
|
version: 0.9.0
|
115
|
+
- - "<"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '1'
|
112
118
|
- !ruby/object:Gem::Dependency
|
113
119
|
name: activesupport
|
114
120
|
requirement: !ruby/object:Gem::Requirement
|