wrest 1.4.6 → 1.4.7

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -2,6 +2,9 @@ Features under the section marked 'Current' are completed but pending release as
2
2
 
3
3
  Features under a numbered section are complete and available in the Wrest gem.
4
4
 
5
+ == 1.4.7
6
+ * Switch to using multi_json to manage Json backend to play nice with Rails 3.1.
7
+
5
8
  == 1.4.6
6
9
  * Bump Builder dependency to allow both Builder 2.x and 3.x to be used
7
10
 
data/README.rdoc CHANGED
@@ -1,4 +1,4 @@
1
- = Wrest 1.4.6
1
+ = Wrest 1.4.7
2
2
 
3
3
  (c) Copyright 2009-2011 {Sidu Ponnappa}[http://blog.sidu.in]. All Rights Reserved.
4
4
 
@@ -224,6 +224,13 @@ in your Gemfile. You can now do <tt>Uri.new('http://localhost')</tt> to build Ur
224
224
  The Wrest logger can be set and accessed through Wrest.logger and is configured by default to log to STDOUT. If you're using Wrest in a Rails application, you can configure logging by adding a config/initializers/wrest.rb file with the following contents :
225
225
  Wrest.logger = Rails.logger
226
226
 
227
+ === Json Backend
228
+
229
+ Wrest uses the multi_json gem to manage Json backends, allowing it to play nice with Rails 3.1. To change the backend used, you can do the following:
230
+ MultiJson.engine = :json_gem
231
+
232
+ For more information, look up the {multi_json}[http://github.com/intridea/multi_json] documentation.
233
+
227
234
  === Build
228
235
 
229
236
  Standard options are available and can be listed using <tt>rake -T</tt>. Use rake:rcov for coverage and rake:rdoc to generate documentation. The link to the continuous integration build is over at the C42 Engineering {open source}[http://c42.in/open_source] page.
data/lib/wrest.rb CHANGED
@@ -7,7 +7,6 @@
7
7
  # See the License for the specific language governing permissions and limitations under the License.
8
8
 
9
9
  require 'rubygems'
10
- gem 'activesupport', '~> 3.0'
11
10
 
12
11
  require 'net/http'
13
12
  require 'net/https'
@@ -17,6 +16,7 @@ require 'cgi'
17
16
  require 'base64'
18
17
  require 'logger'
19
18
  require 'benchmark'
19
+ require 'multi_json'
20
20
  require 'active_support'
21
21
  require 'active_support/core_ext/string'
22
22
  require 'active_support/core_ext/hash'
@@ -55,9 +55,6 @@ end
55
55
  Wrest.logger = ActiveSupport::BufferedLogger.new(STDOUT)
56
56
  Wrest.logger.level = Logger::DEBUG
57
57
 
58
- gem('json', '~> 1.5')
59
- ActiveSupport::JSON.backend = "JSONGem"
60
-
61
58
  require "#{Wrest::Root}/wrest/core_ext/string"
62
59
  require "#{Wrest::Root}/wrest/hash_with_case_insensitive_access"
63
60
 
data/lib/wrest/version.rb CHANGED
@@ -8,5 +8,5 @@
8
8
  # See the License for the specific language governing permissions and limitations under the License.
9
9
 
10
10
  module Wrest
11
- VERSION = "1.4.6"
11
+ VERSION = "1.4.7"
12
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wrest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.6
4
+ version: 1.4.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -15,7 +15,7 @@ default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rubyforge
18
- requirement: &2165959240 !ruby/object:Gem::Requirement
18
+ requirement: &2168950960 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,21 +23,21 @@ dependencies:
23
23
  version: '0'
24
24
  type: :development
25
25
  prerelease: false
26
- version_requirements: *2165959240
26
+ version_requirements: *2168950960
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
- requirement: &2168591920 !ruby/object:Gem::Requirement
29
+ requirement: &2168950380 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ~>
33
33
  - !ruby/object:Gem::Version
34
- version: 2.5.0
34
+ version: '2.6'
35
35
  type: :development
36
36
  prerelease: false
37
- version_requirements: *2168591920
37
+ version_requirements: *2168950380
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: sinatra
40
- requirement: &2168590500 !ruby/object:Gem::Requirement
40
+ requirement: &2168949860 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ~>
@@ -45,10 +45,10 @@ dependencies:
45
45
  version: 1.0.0
46
46
  type: :development
47
47
  prerelease: false
48
- version_requirements: *2168590500
48
+ version_requirements: *2168949860
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: metric_fu
51
- requirement: &2168589400 !ruby/object:Gem::Requirement
51
+ requirement: &2168949420 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - ! '>='
@@ -56,21 +56,21 @@ dependencies:
56
56
  version: '0'
57
57
  type: :development
58
58
  prerelease: false
59
- version_requirements: *2168589400
59
+ version_requirements: *2168949420
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: activesupport
62
- requirement: &2168588340 !ruby/object:Gem::Requirement
62
+ requirement: &2168948820 !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements:
65
65
  - - ~>
66
66
  - !ruby/object:Gem::Version
67
- version: '3.0'
67
+ version: '3'
68
68
  type: :runtime
69
69
  prerelease: false
70
- version_requirements: *2168588340
70
+ version_requirements: *2168948820
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: builder
73
- requirement: &2168587440 !ruby/object:Gem::Requirement
73
+ requirement: &2168948260 !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements:
76
76
  - - ! '>'
@@ -78,29 +78,18 @@ dependencies:
78
78
  version: '2.0'
79
79
  type: :runtime
80
80
  prerelease: false
81
- version_requirements: *2168587440
81
+ version_requirements: *2168948260
82
82
  - !ruby/object:Gem::Dependency
83
- name: i18n
84
- requirement: &2168586540 !ruby/object:Gem::Requirement
83
+ name: multi_json
84
+ requirement: &2168947660 !ruby/object:Gem::Requirement
85
85
  none: false
86
86
  requirements:
87
87
  - - ~>
88
88
  - !ruby/object:Gem::Version
89
- version: '0.4'
89
+ version: '1.0'
90
90
  type: :runtime
91
91
  prerelease: false
92
- version_requirements: *2168586540
93
- - !ruby/object:Gem::Dependency
94
- name: json
95
- requirement: &2168585280 !ruby/object:Gem::Requirement
96
- none: false
97
- requirements:
98
- - - ~>
99
- - !ruby/object:Gem::Version
100
- version: '1.5'
101
- type: :runtime
102
- prerelease: false
103
- version_requirements: *2168585280
92
+ version_requirements: *2168947660
104
93
  description: Wrest is a fluent, easy-to-use, object oriented Ruby HTTP/REST client
105
94
  library with support for RFC2616 HTTP caching, multiple HTTP backends and async
106
95
  calls using EventMachine. It runs on CRuby, JRuby and Rubinius.