faraday_middleware-msgpack 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 481422ab02123f61528a8083cd90f8fd50c938c1
4
+ data.tar.gz: ad0494c8c651709c0daeeb9d0b96dc10b1ae8699
5
+ SHA512:
6
+ metadata.gz: e72db401e26ac705e48aad458323ff1e7311d8682bd4dda1b7ba8db66e293a82efb8cdbdbc61e4a429770586efd9178bd03496081f9ca93b2c6ab5165cec4d07
7
+ data.tar.gz: a75fd8df779ea5d8b6a112c66b252fb7e4e66d3abbf1e8f5a04b07a95fab8ce8b20639de71f0ad68a705def4ed84fd1e9d7dd7eadd53fe543701405cf3eb95ab
@@ -9,7 +9,7 @@ Gem::Specification.new do |gem|
9
9
  gem.add_development_dependency 'rspec', '~> 2.6'
10
10
 
11
11
  gem.name = "faraday_middleware-msgpack"
12
- gem.version = "0.0.1"
12
+ gem.version = "0.0.2"
13
13
  gem.authors = ["Yuichi Tateno"]
14
14
  gem.email = ["hotchpotch@gmail.com"]
15
15
  gem.description = %q{faraday middleware msgpack}
@@ -60,7 +60,12 @@ module FaradayMiddleware
60
60
  end
61
61
  end
62
62
 
63
- Faraday.register_middleware :response, :msgpack => FaradayMiddleware::Msgpack::ParseMsgpack
64
- Faraday.register_middleware :request, :msgpack => FaradayMiddleware::Msgpack::EncodeMsgpack
65
-
66
-
63
+ if Faraday::Middleware.respond_to? :register_middleware
64
+ # faraday >= 0.9
65
+ Faraday::Response.register_middleware :msgpack => FaradayMiddleware::Msgpack::ParseMsgpack
66
+ Faraday::Request.register_middleware :msgpack => FaradayMiddleware::Msgpack::EncodeMsgpack
67
+ else
68
+ # faraday < 0.9
69
+ Faraday.register_middleware :response, :msgpack => FaradayMiddleware::Msgpack::ParseMsgpack
70
+ Faraday.register_middleware :request, :msgpack => FaradayMiddleware::Msgpack::EncodeMsgpack
71
+ end
metadata CHANGED
@@ -1,78 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faraday_middleware-msgpack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 0.0.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Yuichi Tateno
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-02-14 00:00:00.000000000 Z
11
+ date: 2014-06-04 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: faraday_middleware
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: 0.8.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: 0.8.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: msgpack
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: 0.4.7
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: 0.4.7
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rake
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ~>
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0.9'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ~>
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0.9'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rspec
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ~>
59
+ - - "~>"
68
60
  - !ruby/object:Gem::Version
69
61
  version: '2.6'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ~>
66
+ - - "~>"
76
67
  - !ruby/object:Gem::Version
77
68
  version: '2.6'
78
69
  description: faraday middleware msgpack
@@ -82,8 +73,8 @@ executables: []
82
73
  extensions: []
83
74
  extra_rdoc_files: []
84
75
  files:
85
- - .gitignore
86
- - .travis.yml
76
+ - ".gitignore"
77
+ - ".travis.yml"
87
78
  - Gemfile
88
79
  - LICENSE.txt
89
80
  - README.md
@@ -96,27 +87,26 @@ files:
96
87
  - spec/spec_helper.rb
97
88
  homepage: https://github.com/hotchpotch/faraday_middleware-msgpack
98
89
  licenses: []
90
+ metadata: {}
99
91
  post_install_message:
100
92
  rdoc_options: []
101
93
  require_paths:
102
94
  - lib
103
95
  required_ruby_version: !ruby/object:Gem::Requirement
104
- none: false
105
96
  requirements:
106
- - - ! '>='
97
+ - - ">="
107
98
  - !ruby/object:Gem::Version
108
99
  version: '0'
109
100
  required_rubygems_version: !ruby/object:Gem::Requirement
110
- none: false
111
101
  requirements:
112
- - - ! '>='
102
+ - - ">="
113
103
  - !ruby/object:Gem::Version
114
104
  version: '0'
115
105
  requirements: []
116
106
  rubyforge_project:
117
- rubygems_version: 1.8.23
107
+ rubygems_version: 2.2.0
118
108
  signing_key:
119
- specification_version: 3
109
+ specification_version: 4
120
110
  summary: faraday middleware msgpack
121
111
  test_files:
122
112
  - spec/encode_msgpack_spec.rb