cover_my_meds 3.0.0 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cover_my_meds.gemspec +1 -0
- data/lib/cover_my_meds/api_request.rb +5 -3
- data/lib/cover_my_meds/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5d8e5c0a2184da1f3d5203e10fa79e8643bc5de
|
4
|
+
data.tar.gz: f5668e9d609297e8afc159943120da8b2ffb2fa0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d947a0e445a76c2e63556efe3c15c5e7b6cb0d9060535bbb1d9ce44ca47328548708992f8d3dea789d9c96c325446dc6b486a862950de31dcdbb6918433ecfd7
|
7
|
+
data.tar.gz: 67718d811bb382488f448efb1de4da6ce67dbcfdac6e8b3908f5bbb96f2a682494c63eefeee76f99f2135ce01298ea5765bebb9231e60dce87eb39f1969cc0d1
|
data/cover_my_meds.gemspec
CHANGED
@@ -29,6 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.add_development_dependency "railties"
|
30
30
|
|
31
31
|
spec.add_runtime_dependency "faraday", "~> 0.9"
|
32
|
+
spec.add_runtime_dependency "faraday_middleware"
|
32
33
|
spec.add_runtime_dependency "typhoeus"
|
33
34
|
spec.add_runtime_dependency "mime-types"
|
34
35
|
spec.add_runtime_dependency "hashie", ">= 3.4.0"
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'faraday'
|
2
|
+
require 'faraday_middleware'
|
2
3
|
require 'typhoeus'
|
3
4
|
require 'typhoeus/adapters/faraday'
|
4
5
|
require 'json'
|
@@ -18,9 +19,10 @@ module CoverMyMeds
|
|
18
19
|
headers = params.delete(:headers) || {}
|
19
20
|
|
20
21
|
conn = Faraday.new host do |faraday|
|
21
|
-
faraday.request
|
22
|
-
faraday.request
|
23
|
-
faraday.
|
22
|
+
faraday.request :multipart
|
23
|
+
faraday.request :url_encoded
|
24
|
+
faraday.response :follow_redirects
|
25
|
+
faraday.adapter :typhoeus
|
24
26
|
end
|
25
27
|
case auth_type
|
26
28
|
when :basic
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cover_my_meds
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Rolston
|
@@ -23,7 +23,7 @@ authors:
|
|
23
23
|
autorequire:
|
24
24
|
bindir: exe
|
25
25
|
cert_chain: []
|
26
|
-
date: 2016-10-
|
26
|
+
date: 2016-10-26 00:00:00.000000000 Z
|
27
27
|
dependencies:
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: bundler
|
@@ -165,6 +165,20 @@ dependencies:
|
|
165
165
|
- - "~>"
|
166
166
|
- !ruby/object:Gem::Version
|
167
167
|
version: '0.9'
|
168
|
+
- !ruby/object:Gem::Dependency
|
169
|
+
name: faraday_middleware
|
170
|
+
requirement: !ruby/object:Gem::Requirement
|
171
|
+
requirements:
|
172
|
+
- - ">="
|
173
|
+
- !ruby/object:Gem::Version
|
174
|
+
version: '0'
|
175
|
+
type: :runtime
|
176
|
+
prerelease: false
|
177
|
+
version_requirements: !ruby/object:Gem::Requirement
|
178
|
+
requirements:
|
179
|
+
- - ">="
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
168
182
|
- !ruby/object:Gem::Dependency
|
169
183
|
name: typhoeus
|
170
184
|
requirement: !ruby/object:Gem::Requirement
|