faraday_middleware-multi_json 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 6426b8c4a2e89d404845bf3396c2847e0f0a13ac
4
+ data.tar.gz: 0ab04dcaa02ff602a27397cca62caa3700eed039
5
+ SHA512:
6
+ metadata.gz: 99bfb649948d9e00ebb70739552ff99dbfcf6ad72191c4a9a831fc8fef3f090382793a0d66b8a8cfccfa0af8ea4234cfc062e07490746c13e656d86b2d1bc234
7
+ data.tar.gz: 9c6de02a0b21af3bbacd30501b09c4f16d1517ee75101521605481877c91237c962f823adcaefd0fbee3ddcc53fad4646b15f2ecf90ce6242aabfbefa2dbca23
data/README.md CHANGED
@@ -42,6 +42,22 @@ end
42
42
  conn.response :multi_json, symbolize_keys: true
43
43
  ```
44
44
 
45
+ ### Upgrading to 0.0.5+
46
+
47
+ The class name for the middleware changed, so if you had this before:
48
+
49
+ ```ruby
50
+ connection = Faraday.new do |conn|
51
+ conn.use FaradayMiddleware::MultiJson
52
+ end
53
+ ```
54
+ Change to:
55
+ ```ruby
56
+ connection = Faraday.new do |conn|
57
+ conn.response :multi_json
58
+ end
59
+ ```
60
+
45
61
  ## Contributing
46
62
 
47
63
  1. Fork it
@@ -12,7 +12,7 @@ Gem::Specification.new do |gem|
12
12
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
13
13
  gem.name = 'faraday_middleware-multi_json'
14
14
  gem.require_paths = ['lib']
15
- gem.version = '0.0.5'
15
+ gem.version = '0.0.6'
16
16
 
17
17
  gem.add_dependency 'faraday_middleware'
18
18
  gem.add_dependency 'multi_json'
@@ -25,5 +25,5 @@ module FaradayMiddleware
25
25
  end
26
26
  end
27
27
 
28
- Faraday.register_middleware :response, :multi_json => FaradayMiddleware::MultiJson::ParseJson
29
- Faraday.register_middleware :request, :multi_json => FaradayMiddleware::MultiJson::EncodeJson
28
+ Faraday::Response.register_middleware :multi_json => FaradayMiddleware::MultiJson::ParseJson
29
+ Faraday::Request.register_middleware :multi_json => FaradayMiddleware::MultiJson::EncodeJson
metadata CHANGED
@@ -1,62 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faraday_middleware-multi_json
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
5
- prerelease:
4
+ version: 0.0.6
6
5
  platform: ruby
7
6
  authors:
8
7
  - Dennis Rogenius
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-12-23 00:00:00.000000000 Z
11
+ date: 2014-05-13 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'
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'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: multi_json
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'
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'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rspec
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'
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'
62
55
  description: Faraday response parser using MultiJson
@@ -80,27 +73,26 @@ files:
80
73
  - spec/spec_helper.rb
81
74
  homepage: https://www.github.com/denro/faraday_middleware-multi_json
82
75
  licenses: []
76
+ metadata: {}
83
77
  post_install_message:
84
78
  rdoc_options: []
85
79
  require_paths:
86
80
  - lib
87
81
  required_ruby_version: !ruby/object:Gem::Requirement
88
- none: false
89
82
  requirements:
90
- - - ! '>='
83
+ - - '>='
91
84
  - !ruby/object:Gem::Version
92
85
  version: '0'
93
86
  required_rubygems_version: !ruby/object:Gem::Requirement
94
- none: false
95
87
  requirements:
96
- - - ! '>='
88
+ - - '>='
97
89
  - !ruby/object:Gem::Version
98
90
  version: '0'
99
91
  requirements: []
100
92
  rubyforge_project:
101
- rubygems_version: 1.8.24
93
+ rubygems_version: 2.0.14
102
94
  signing_key:
103
- specification_version: 3
95
+ specification_version: 4
104
96
  summary: Response JSON parser using MultiJson and FaradayMiddleware
105
97
  test_files:
106
98
  - spec/faraday_middleware/multi_json_spec.rb