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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b9a3cf98758bb112dbae4f1e223154c9cdb3c43
4
- data.tar.gz: a83d94d1c25c7e65fb3e954a4a5908be9856140f
3
+ metadata.gz: a47c78760623b6ac3b5a2d94856ab3805a10ca60
4
+ data.tar.gz: cb6374e79fabe5c1a54ef29b7157ff10e1999980
5
5
  SHA512:
6
- metadata.gz: 2aa7841f42db0ef4270c7b4e7ec1a03e3bd0019089c34e8feb4a74f96181a405eb79467ee74772e97524a8b061fd680dbf91d754a80b859bcd967c896277821c
7
- data.tar.gz: 2d84a7b41dfeab0e23e8629bc1679db4b217ba2701f154e86d20404a4c33b250e74a15efcfa621fcbf66c2eea1d8f92c2c9df697a29965e1c915dd5934b9cc8f
6
+ metadata.gz: 12c57ef346ba305cc1c0f638d539db6a5bbecd56ffd3bd02cb40714dcd55baa9b2e8279e4d86c0c8119466a90bcc695fc9078ab84c68343bd65b4898dd3c23db
7
+ data.tar.gz: c64f50f97ef3f06401f639fb85cc7631f54ecf015dbbb92a8e34f5b358e1f9a17974908a17c603860a23647abce66c6b0f373df9ad3992f62ddd0956e48a3eb4
@@ -11,29 +11,23 @@ module PMP
11
11
  :url,
12
12
  :params,
13
13
  :request,
14
- :adapter,
15
14
  :ssl,
16
- :oauth_token,
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(opts, faraday)
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 opts[:debug]
28
+ faraday.response :logger if options[:debug]
35
29
 
36
- faraday.adapter opts[:adapter]
30
+ faraday.adapter options[:adapter]
37
31
  end
38
32
  end
39
33
 
@@ -46,7 +46,8 @@ module PMP
46
46
  }.merge(opts)
47
47
  options[:headers] = options[:headers].merge(headers)
48
48
 
49
- options
49
+ # clean out any that don't belong
50
+ options.select{|k,v| PMP::Connection::ALLOWED_CONNECTION_OPTIONS.include?(k.to_sym)}
50
51
  end
51
52
 
52
53
  end
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  module PMP
4
- VERSION = "0.3.1"
4
+ VERSION = "0.3.2"
5
5
  end
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.1
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-03-18 00:00:00.000000000 Z
11
+ date: 2014-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler