cliskip2 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cliskip2 (0.0.5)
4
+ cliskip2 (0.0.11)
5
5
  faraday_middleware (~> 0.8.7)
6
6
  json (~> 1.7.3)
7
7
  oauth (~> 0.4)
@@ -11,11 +11,11 @@ GEM
11
11
  remote: http://rubygems.org/
12
12
  specs:
13
13
  diff-lcs (1.1.3)
14
- faraday (0.8.1)
14
+ faraday (0.8.4)
15
15
  multipart-post (~> 1.1)
16
- faraday_middleware (0.8.7)
16
+ faraday_middleware (0.8.8)
17
17
  faraday (>= 0.7.4, < 0.9)
18
- json (1.7.3)
18
+ json (1.7.5)
19
19
  multipart-post (1.1.5)
20
20
  oauth (0.4.6)
21
21
  rake (0.9.2.2)
@@ -29,7 +29,7 @@ GEM
29
29
  rspec-expectations (2.10.0)
30
30
  diff-lcs (~> 1.1.3)
31
31
  rspec-mocks (2.10.1)
32
- simple_oauth (0.1.8)
32
+ simple_oauth (0.1.9)
33
33
 
34
34
  PLATFORMS
35
35
  ruby
@@ -6,7 +6,7 @@ module Cliskip2
6
6
  module Request
7
7
  class Cliskip2OAuth < FaradayMiddleware::OAuth
8
8
  # Override Faraday::Utils#parse_nested_query for fixing base-query-string
9
- # body部分のパラメタ解析方法がskip2のSPで利用しているoauth(0.4.1)とfaradayのoauthモジュールとで異なってしまい認証がうまくいかないためfaraday側のbody部分解析をoauth(0.4.1)相当に合わせている
9
+ # body部分のパラメタ解析方法がskip2のSPで利用しているoauth(0.4.6)とfaradayのoauthモジュールとで異なってしまい認証がうまくいかないためfaraday側のbody部分解析をoauth(0.4.6)相当に合わせている
10
10
  # See Faraday::Utils, FaradayMiddleware::OAuth
11
11
  def parse_nested_query(qs)
12
12
  params = {}
@@ -17,13 +17,6 @@ module Cliskip2
17
17
  params
18
18
  end
19
19
  def unescape(s) CGI.unescape s.to_s end
20
-
21
- # Override Faraday::Utils#include_body_params?
22
- # oauth(0.4.1)でpostの場合のみbodyをsignature-base-stringに含めているので
23
- def include_body_params?(env)
24
- # see RFC 5489, section 3.4.1.3.1 for details
25
- env[:method] == :post && (!(type = env[:request_headers][CONTENT_TYPE]) or type == TYPE_URLENCODED)
26
- end
27
20
  end
28
21
  end
29
22
  end
@@ -1,3 +1,3 @@
1
1
  module Cliskip2
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cliskip2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-09 00:00:00.000000000 Z
12
+ date: 2012-10-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday_middleware