pmp 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pmp/connection.rb +4 -10
- data/lib/pmp/token.rb +2 -1
- data/lib/pmp/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a47c78760623b6ac3b5a2d94856ab3805a10ca60
|
4
|
+
data.tar.gz: cb6374e79fabe5c1a54ef29b7157ff10e1999980
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12c57ef346ba305cc1c0f638d539db6a5bbecd56ffd3bd02cb40714dcd55baa9b2e8279e4d86c0c8119466a90bcc695fc9078ab84c68343bd65b4898dd3c23db
|
7
|
+
data.tar.gz: c64f50f97ef3f06401f639fb85cc7631f54ecf015dbbb92a8e34f5b358e1f9a17974908a17c603860a23647abce66c6b0f373df9ad3992f62ddd0956e48a3eb4
|
data/lib/pmp/connection.rb
CHANGED
@@ -11,29 +11,23 @@ module PMP
|
|
11
11
|
:url,
|
12
12
|
:params,
|
13
13
|
:request,
|
14
|
-
:adapter,
|
15
14
|
:ssl,
|
16
|
-
:
|
17
|
-
:token_type,
|
18
|
-
:basic_auth,
|
19
|
-
:user,
|
20
|
-
:password,
|
21
|
-
:debug
|
15
|
+
:proxy
|
22
16
|
].freeze
|
23
17
|
|
24
18
|
def connection(options={})
|
25
19
|
opts = process_options(options)
|
26
20
|
Faraday::Connection.new(opts) do |faraday|
|
27
21
|
|
28
|
-
add_request_auth(
|
22
|
+
add_request_auth(options, faraday)
|
29
23
|
|
30
24
|
[:multipart, :url_encoded].each{|mw| faraday.request(mw) }
|
31
25
|
|
32
26
|
[:mashify, :json, :raise_error].each{|mw| faraday.response(mw) }
|
33
27
|
|
34
|
-
faraday.response :logger if
|
28
|
+
faraday.response :logger if options[:debug]
|
35
29
|
|
36
|
-
faraday.adapter
|
30
|
+
faraday.adapter options[:adapter]
|
37
31
|
end
|
38
32
|
end
|
39
33
|
|
data/lib/pmp/token.rb
CHANGED
data/lib/pmp/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pmp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kuklewicz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|