wrest 1.5.0 → 1.5.1

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: fb64013e477c67348f9d540e039f2b473bdcd74b
4
+ data.tar.gz: fc87882ddf3f179b67b8cb1a29857c766f946f44
5
+ SHA512:
6
+ metadata.gz: bb7689e3c04a4bd87a743d8f8e613bf4256af9137c6dc27b757930958ff838c54603292c393fcf16d6034b48c254af74076ce08c8fc9ab11e8c6fcc3b6f57b02
7
+ data.tar.gz: 8b967f2f73f24ad24453a6cfec637c413c4df064ee5952e39ac84d4baa6a3df175e63d77d7faf3462bfb42577405625209aa54ea2473d05307fc300e9e194624
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.5.1
6
+ * Supports Ruby 2.x.x, JRuby 1.7.6 (and higher), JRuby 9.0.0.0.pre2
7
+
5
8
  == 1.5.0
6
9
  * Introducing content type text/plain - pull request by buchin
7
10
 
@@ -16,7 +19,7 @@ Features under a numbered section are complete and available in the Wrest gem.
16
19
 
17
20
  == 1.4.4
18
21
  * GH#105 Reduce Rubgems version requirements to 1.3.x or greater from > 1.5
19
-
22
+
20
23
  == 1.4.3
21
24
  * GH#104 Allow default headers to be added to the uri that are then used for all requests
22
25
  * GH#31 Add explicit API for cookies
@@ -27,22 +30,22 @@ Features under a numbered section are complete and available in the Wrest gem.
27
30
  == 1.4.1
28
31
  * GH#66 HTTPS requests using the Net::HTTP backend failing on Ruby 1.8.x
29
32
 
30
- == 1.4.0
33
+ == 1.4.0
31
34
  * GH#96 Naive implementation of asynchronous requests using Eventmachine
32
35
  * GH#93 Since Wrest::Response is immutable, the results of Response#deserialise are cached
33
36
 
34
37
  == 1.3.0
35
38
  * GH#95 Asynchronous requests on Wrest::Uri.
36
39
 
37
- == 1.2.1
40
+ == 1.2.1
38
41
  * GH#91 Remove dependency on tzinfo
39
42
 
40
- == 1.2.0
43
+ == 1.2.0
41
44
  * GH#80 Add a convenience API to make it easy to use the existing URI callback API
42
45
 
43
46
  == 1.1.0
44
47
  * Caching support introduced. Includes Memcached support for the cache store. (GH# 69, 83, 87)
45
-
48
+
46
49
  == 1.0.2
47
50
  * GH#12 Post Multipart support when using the Patron adapter
48
51
  * GH#72 Response code checkers: ok?, redirect?, created? etc.
@@ -66,36 +69,36 @@ Features under a numbered section are complete and available in the Wrest gem.
66
69
  * GH#52 Wrest console (bin/wrest) fails on 1.9.2
67
70
  * GH#55 Fix connection.verify_mode for Net::HTTP https connection to VERIFY_PEER
68
71
  * GH#57 Feature #24 doesn't autoload correctly
69
-
72
+
70
73
  == 1.0.0.beta7
71
74
  * GH#46 Response.deserialise for Json responses
72
75
 
73
76
  == 1.0.0.beta6
74
77
  * GH#35 Wrest::UriTemplate extensions swallow existing path
75
78
  * GH#41 Make Hash core_ext opt out
76
-
79
+
77
80
  == 1.0.0.beta5
78
81
  * GH#30 Replace rails app in spec/sample_rails_app with a lighter sinatra app
79
82
  * GH#37 Allow opting out of Adding to_uri to string
80
83
 
81
84
  == 1.0.0.beta4
82
85
  * GH#34 Wrest::Uri extensions swallow existing path
83
-
86
+
84
87
  == 1.0.0.beta3
85
- * GH#13 Works for get and delete with parameters appended to the uri string and
88
+ * GH#13 Works for get and delete with parameters appended to the uri string and
86
89
  with ? and no parameters appended to the uri string
87
90
  * GH#26 'http://localhost'.to_uri['foo/bar'] fails
88
91
  * GH#11 Handle gem dependencies using bundler
89
92
  * GH#22 Converts Uri to UriTemplate
90
93
  * GH#23 Supports extension of UriTemplate via #[]
91
-
94
+
92
95
  == 1.0.0.beta2
93
96
  * GH#2 Make Components::Containers hash store a HashWithIndifferentAccess
94
97
  * GH#6 Net::HTTP based calls to Twitter public APIs fail
95
98
  * GH#5 Patron (curl) support failing for responses where headers have multiple values
96
99
  * GH#7 Build fails on Ruby 1.9
97
100
  * GH#16 Remove jeweler and use .gemspec direcly
98
-
101
+
99
102
  == 1.0.0.beta1
100
103
  * If libxml-ruby isn't found but nokogiri, don't warn about libxml-ruby
101
104
 
@@ -116,15 +119,14 @@ Features under a numbered section are complete and available in the Wrest gem.
116
119
  * Create two convenience Post methods on Uri - one for application/x-www-form-urlencoded and the other normal
117
120
  * Optional libcurl implementations of the Request/Response classes (for those on MRI who need better performance). See examples/delicious.rb, examples/facebook.rb. Note that while there is a great deal of API compatibility, everything may not behave exactly the same under libcurl. Please do report inconsistencies.
118
121
  * Added live functional tests to codebase (rake spec:functional, needs spec/functional/sample_rails_app running on port 3000)
119
-
122
+
120
123
  == 0.0.9
121
124
  * Added redirect follow support for GET requests (see examples/redirection.rb)
122
125
  * Auto redirection limit
123
126
  * Request timeout limit config
124
- * Added an alias_accessor macro to allow alternative names for attribute accessors (see examples/wow_realm_status.rb)
127
+ * Added an alias_accessor macro to allow alternative names for attribute accessors (see examples/wow_realm_status.rb)
125
128
  * Removed the need to explicitly include AttributesContainer::Typecaster or to use the enable_typecasting_support macro. The call to typecast now does this for us. See AttributesContainer#typecast and AttributesContainer::Typecaster#typecast
126
-
129
+
127
130
  == 0.0.8
128
131
  * Added URI extension using the [] method (see examples/delicious.rb)
129
132
  * Refactored out Request as the first step to adding Response caching
130
-
data/README.rdoc CHANGED
@@ -1,18 +1,18 @@
1
- = Wrest 1.5.0
1
+ = Wrest 1.5.1
2
2
 
3
- (c) Copyright 2009-2011 {Sidu Ponnappa}[http://blog.sidu.in]. All Rights Reserved.
3
+ (c) Copyright 2009-2011 {Sidu Ponnappa}[http://blog.sidu.in]. All Rights Reserved.
4
4
 
5
5
  {CI Status:}[http://ci.c42.in/projects/wrest] http://ci.c42.in/projects/wrest.png
6
6
 
7
7
  Wrest is a ruby REST/HTTP client library which
8
8
 
9
9
  * Allows you to use Net::HTTP or libCurl
10
- * Allows you to pick your Ruby: use 1.8.7, 1.9.2, JRuby and Rubinius ({Continuous Integration server}[http://ci.c42.in])
10
+ * Allows you to pick your Ruby: use 2.x.x, JRuby 1.7.6 (and higher), JRuby 9.0.0.0.pre2 ({Continuous Integration server}[http://ci.c42.in])
11
11
  * Supports RFC 2616 based {caching}[https://github.com/kaiwren/wrest/blob/caching/Caching.markdown]
12
12
  * [Alpha] Allows you to go async: use Threads or EventMachine
13
- * Allows you to quickly build object oriented wrappers around any web service
13
+ * Allows you to quickly build object oriented wrappers around any web service
14
14
  * Is designed to be used as a library, not just a command line REST client (fewer class/static methods, more object oriented)
15
- * Is spec driven, strongly favours immutable objects and avoids class methods and setters making it better suited for use as a library, especially in multi-threaded environments
15
+ * Is spec driven, strongly favours immutable objects and avoids class methods and setters making it better suited for use as a library, especially in multi-threaded environments
16
16
  * Provides convenient HTTP wrappers, redirect handling, serialisation, deserialisation and xpath based lookup
17
17
 
18
18
  To receive notifications whenever new features are added to Wrest, please subscribe to my {twitter feed}[http://twitter.com/ponnappa].
@@ -26,35 +26,35 @@ For Facebook, Twitter, Delicious, GitHub and other API examples, see http://gith
26
26
  ==== GET
27
27
 
28
28
  * Basic API calls
29
-
29
+
30
30
  'http://twitter.com/statuses/public_timeline.json'.to_uri.get.deserialise # works with json and xml out of the box
31
31
 
32
32
  'http://twitter.com/statuses/public_timeline.xml'.to_uri.get.deserialise # see lib/wrest/components/translators to add other formats
33
-
33
+
34
34
  * Timeout support
35
-
35
+
36
36
  'http://twitter.com/statuses/public_timeline.json'.to_uri.get(:timeout => 5).body
37
-
37
+
38
38
  * Redirect support
39
-
39
+
40
40
  'http://google.com'.to_uri(:follow_redirects => false).get
41
-
41
+
42
42
  'http://google.com'.to_uri(:follow_redirects_limit => 1).get
43
43
 
44
44
  :follow_redirects_limit defaults to 5 if not specified.
45
-
45
+
46
46
  * Deserialise with XPath filtering
47
-
47
+
48
48
  ActiveSupport::XmlMini.backend = 'REXML'
49
-
49
+
50
50
  'http://twitter.com/statuses/public_timeline.xml'.to_uri.get.deserialise(
51
51
  :xpath => '//user/name/text()'
52
52
  )
53
53
 
54
54
  * More complex request with parameters and a custom deserialiser
55
-
55
+
56
56
  'http://search.yahooapis.com/NewsSearchService/V1/newsSearch'.to_uri.get(
57
- :appid => 'YahooDemo',
57
+ :appid => 'YahooDemo',
58
58
  :output => 'xml',
59
59
  :query => 'India',
60
60
  :results=> '3',
@@ -63,17 +63,17 @@ For Facebook, Twitter, Delicious, GitHub and other API examples, see http://gith
63
63
  Wrest::Components::Translators::Xml
64
64
  )
65
65
  * Basic HTTP auth and URI extensions using Wrest::Uri#[]
66
-
66
+
67
67
  base_uri = 'https://api.del.icio.us/v1'.to_uri(:username => 'kaiwren', :password => 'fupupp1es')
68
68
  bookmarks = base_uri['/posts/get'].get.deserialise
69
69
 
70
70
  ==== POST
71
71
 
72
72
  * Regular, vanilla Post with a body and headers
73
-
74
- 'http://my.api.com'.to_uri.post('YAML encoded body', 'Content-Type' => 'text/x-yaml')
73
+
74
+ 'http://my.api.com'.to_uri.post('YAML encoded body', 'Content-Type' => 'text/x-yaml')
75
75
  * Form encoded post
76
-
76
+
77
77
  'https://api.del.icio.us/v1/posts/add'.to_uri(
78
78
  :username => 'kaiwren', :password => 'fupupp1es'
79
79
  ).post_form(
@@ -83,12 +83,12 @@ For Facebook, Twitter, Delicious, GitHub and other API examples, see http://gith
83
83
  :tags => 'ruby hacking'
84
84
  )
85
85
  * Multipart posts
86
-
86
+
87
87
  'http://imgur.com/api/upload.xml'.to_uri.post_multipart(
88
- :image => UploadIO.new(File.open(file_path), "image/png", file_path),
88
+ :image => UploadIO.new(File.open(file_path), "image/png", file_path),
89
89
  :key => imgur_key
90
90
  ).deserialise
91
-
91
+
92
92
  Note: To enable Multipart support, you'll have to explicitly require 'wrest/multipart', which depends on the multipart-post gem.
93
93
 
94
94
  ==== DELETE
@@ -101,7 +101,7 @@ To delete a resource:
101
101
  ).delete(
102
102
  :url => 'http://c2.com'
103
103
  )
104
-
104
+
105
105
  === Caching
106
106
 
107
107
  Wrest supports caching with pluggable back-ends.
@@ -113,7 +113,7 @@ A Memcached based caching back-end is available in Wrest. You can get instructio
113
113
  The Dalli gem is used by Wrest to interface with Memcached. Install dalli using 'gem install dalli'.
114
114
 
115
115
  Use the following method to enable caching for all requests, and set Memcached as the default back-end.
116
-
116
+
117
117
  Wrest::Caching.default_to_memcached!
118
118
 
119
119
  For fine-grained control over the cache store (or to use multiple cache stores in the same codebase), you can use this API:
@@ -163,8 +163,8 @@ Please note that Wrest is a synchronous library. All requests are blocking, and
163
163
 
164
164
  === Asynchronous requests
165
165
 
166
- Asynchronous requests are non-blocking. They do not return a response and the request is executed on a separate thread. The only way to access the response
167
- while using asynchronous request is through callbacks.
166
+ Asynchronous requests are non-blocking. They do not return a response and the request is executed on a separate thread. The only way to access the response
167
+ while using asynchronous request is through callbacks.
168
168
 
169
169
  Asynchronous requests support pluggable backends. The default backend used for asynchronous requests is ruby threads.
170
170
 
@@ -205,7 +205,7 @@ Example:
205
205
  typecast :age => as_integer,
206
206
  :chi => lambda{|chi| Chi.new(chi)}
207
207
 
208
- alias_accessors :chi => :energy
208
+ alias_accessors :chi => :energy
209
209
  end
210
210
 
211
211
  kai_wren = Demon.new('id' => '1', 'age' => '1500', 'chi' => '1024', 'teacher' => 'Viss')
@@ -230,7 +230,7 @@ The Wrest logger can be set and accessed through Wrest.logger and is configured
230
230
 
231
231
  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:
232
232
  MultiJson.engine = :json_gem
233
-
233
+
234
234
  For more information, look up the {multi_json}[http://github.com/intridea/multi_json] documentation.
235
235
 
236
236
  === Build
@@ -276,7 +276,7 @@ Run the tests in a different terminal:
276
276
  rake rspec:functional
277
277
 
278
278
  == Contributors
279
-
279
+
280
280
  * Sidu Ponnappa : {kaiwren}[http://github.com/kaiwren]
281
281
  * Niranjan Paranjape : {achamian}[http://github.com/achamian]
282
282
  * Aakash Dharmadhkari : {aakashd}[http://github.com/aakashd]
@@ -286,4 +286,3 @@ Run the tests in a different terminal:
286
286
  * Jacques Crocker : {railsjedi}[http://github.com/railsjedi]
287
287
  * Jasim A Basheer: {jasim}[http://github.com/jasim]
288
288
  * Arvind Laxminarayan: {ardsrk}[http://github.com/ardsrk]
289
-
@@ -8,7 +8,7 @@
8
8
  # See the License for the specific language governing permissions and limitations under the License.
9
9
 
10
10
  begin
11
- gem 'eventmachine', '~> 0.12.10'
11
+ gem 'eventmachine'
12
12
  rescue Gem::LoadError => e
13
13
  Wrest.logger.debug "Eventmachine ~> 0.12.10 not found. Wrest uses Eventmachine to perform evented asynchronous requests"
14
14
  raise e
@@ -18,7 +18,7 @@ require 'eventmachine'
18
18
 
19
19
  module Wrest
20
20
  module AsyncRequest
21
- class EventMachineBackend
21
+ class EventMachineBackend
22
22
  def execute(request)
23
23
  EventMachine.run do
24
24
  request.invoke
@@ -17,6 +17,8 @@ module Wrest
17
17
  elsif callable.is_a?(Proc)
18
18
  @callback_hash = {}
19
19
  callable.call(self)
20
+ elsif callable.is_a?(Callback)
21
+ @callback_hash = callable.callback_hash.dup
20
22
  end
21
23
  end
22
24
 
@@ -24,7 +26,7 @@ module Wrest
24
26
  merged_callback_hash = callback_hash.clone
25
27
  other_callback_hash = callback.callback_hash
26
28
  other_callback_hash.each do |code, callback_blocks|
27
- merged_callback_hash[code] ||= []
29
+ merged_callback_hash[code] ||= []
28
30
  merged_callback_hash[code] += callback_blocks
29
31
  end
30
32
  Callback.new(merged_callback_hash)
data/lib/wrest/version.rb CHANGED
@@ -1,12 +1,12 @@
1
1
  # Copyright 2009-2011 Sidu Ponnappa
2
2
 
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
- # Unless required by applicable law or agreed to in writing, software distributed under the License
7
- # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
8
- # See the License for the specific language governing permissions and limitations under the License.
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ # Unless required by applicable law or agreed to in writing, software distributed under the License
7
+ # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
8
+ # See the License for the specific language governing permissions and limitations under the License.
9
9
 
10
10
  module Wrest
11
- VERSION = "1.5.0"
11
+ VERSION = "1.5.1"
12
12
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wrest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
5
- prerelease:
4
+ version: 1.5.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Sidu Ponnappa
@@ -10,88 +9,109 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2011-12-09 00:00:00.000000000Z
12
+ date: 2015-06-23 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: rubyforge
17
- requirement: &70190054366140 !ruby/object:Gem::Requirement
18
- none: false
16
+ requirement: !ruby/object:Gem::Requirement
19
17
  requirements:
20
- - - ! '>='
18
+ - - ">="
21
19
  - !ruby/object:Gem::Version
22
20
  version: '0'
23
21
  type: :development
24
22
  prerelease: false
25
- version_requirements: *70190054366140
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: '0'
26
28
  - !ruby/object:Gem::Dependency
27
29
  name: rspec
28
- requirement: &70190054364680 !ruby/object:Gem::Requirement
29
- none: false
30
+ requirement: !ruby/object:Gem::Requirement
30
31
  requirements:
31
- - - ~>
32
+ - - "~>"
32
33
  - !ruby/object:Gem::Version
33
- version: '2.6'
34
+ version: '3.3'
34
35
  type: :development
35
36
  prerelease: false
36
- version_requirements: *70190054364680
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '3.3'
37
42
  - !ruby/object:Gem::Dependency
38
43
  name: sinatra
39
- requirement: &70190054363560 !ruby/object:Gem::Requirement
40
- none: false
44
+ requirement: !ruby/object:Gem::Requirement
41
45
  requirements:
42
- - - ~>
46
+ - - "~>"
43
47
  - !ruby/object:Gem::Version
44
48
  version: 1.0.0
45
49
  type: :development
46
50
  prerelease: false
47
- version_requirements: *70190054363560
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: 1.0.0
48
56
  - !ruby/object:Gem::Dependency
49
57
  name: metric_fu
50
- requirement: &70190054362680 !ruby/object:Gem::Requirement
51
- none: false
58
+ requirement: !ruby/object:Gem::Requirement
52
59
  requirements:
53
- - - ! '>='
60
+ - - ">="
54
61
  - !ruby/object:Gem::Version
55
62
  version: '0'
56
63
  type: :development
57
64
  prerelease: false
58
- version_requirements: *70190054362680
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
59
70
  - !ruby/object:Gem::Dependency
60
71
  name: activesupport
61
- requirement: &70190054361180 !ruby/object:Gem::Requirement
62
- none: false
72
+ requirement: !ruby/object:Gem::Requirement
63
73
  requirements:
64
- - - ~>
74
+ - - "~>"
65
75
  - !ruby/object:Gem::Version
66
76
  version: '3'
67
77
  type: :runtime
68
78
  prerelease: false
69
- version_requirements: *70190054361180
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: '3'
70
84
  - !ruby/object:Gem::Dependency
71
85
  name: builder
72
- requirement: &70190054359580 !ruby/object:Gem::Requirement
73
- none: false
86
+ requirement: !ruby/object:Gem::Requirement
74
87
  requirements:
75
- - - ! '>'
88
+ - - ">"
76
89
  - !ruby/object:Gem::Version
77
90
  version: '2.0'
78
91
  type: :runtime
79
92
  prerelease: false
80
- version_requirements: *70190054359580
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">"
96
+ - !ruby/object:Gem::Version
97
+ version: '2.0'
81
98
  - !ruby/object:Gem::Dependency
82
99
  name: multi_json
83
- requirement: &70190054358640 !ruby/object:Gem::Requirement
84
- none: false
100
+ requirement: !ruby/object:Gem::Requirement
85
101
  requirements:
86
- - - ~>
102
+ - - "~>"
87
103
  - !ruby/object:Gem::Version
88
104
  version: '1.0'
89
105
  type: :runtime
90
106
  prerelease: false
91
- version_requirements: *70190054358640
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - "~>"
110
+ - !ruby/object:Gem::Version
111
+ version: '1.0'
92
112
  description: Wrest is a fluent, easy-to-use, object oriented Ruby HTTP/REST client
93
113
  library with support for RFC2616 HTTP caching, multiple HTTP backends and async
94
- calls using EventMachine. It runs on CRuby, JRuby and Rubinius.
114
+ calls using EventMachine. It runs on CRuby and JRuby.
95
115
  email:
96
116
  - sidu@c42.in
97
117
  executables:
@@ -100,34 +120,38 @@ extensions: []
100
120
  extra_rdoc_files:
101
121
  - README.rdoc
102
122
  files:
103
- - bin/rdoc
123
+ - CHANGELOG
124
+ - LICENCE
125
+ - README.rdoc
104
126
  - bin/wrest
105
127
  - bin/wrest_shell.rb
128
+ - lib/wrest.rb
129
+ - lib/wrest/async_request.rb
106
130
  - lib/wrest/async_request/event_machine_backend.rb
107
131
  - lib/wrest/async_request/thread_backend.rb
108
- - lib/wrest/async_request.rb
109
132
  - lib/wrest/cache_proxy.rb
110
- - lib/wrest/caching/memcached.rb
111
133
  - lib/wrest/caching.rb
134
+ - lib/wrest/caching/memcached.rb
112
135
  - lib/wrest/callback.rb
136
+ - lib/wrest/components.rb
137
+ - lib/wrest/components/container.rb
113
138
  - lib/wrest/components/container/alias_accessors.rb
114
139
  - lib/wrest/components/container/typecaster.rb
115
- - lib/wrest/components/container.rb
140
+ - lib/wrest/components/mutators.rb
116
141
  - lib/wrest/components/mutators/base.rb
117
142
  - lib/wrest/components/mutators/camel_to_snake_case.rb
118
143
  - lib/wrest/components/mutators/xml_mini_type_caster.rb
119
144
  - lib/wrest/components/mutators/xml_simple_type_caster.rb
120
- - lib/wrest/components/mutators.rb
145
+ - lib/wrest/components/translators.rb
121
146
  - lib/wrest/components/translators/content_types.rb
122
147
  - lib/wrest/components/translators/json.rb
123
148
  - lib/wrest/components/translators/txt.rb
124
149
  - lib/wrest/components/translators/xml.rb
125
- - lib/wrest/components/translators.rb
126
- - lib/wrest/components.rb
127
- - lib/wrest/core_ext/hash/conversions.rb
128
150
  - lib/wrest/core_ext/hash.rb
129
- - lib/wrest/core_ext/string/conversions.rb
151
+ - lib/wrest/core_ext/hash/conversions.rb
130
152
  - lib/wrest/core_ext/string.rb
153
+ - lib/wrest/core_ext/string/conversions.rb
154
+ - lib/wrest/curl.rb
131
155
  - lib/wrest/curl/delete.rb
132
156
  - lib/wrest/curl/get.rb
133
157
  - lib/wrest/curl/options.rb
@@ -138,15 +162,15 @@ files:
138
162
  - lib/wrest/curl/request.rb
139
163
  - lib/wrest/curl/response.rb
140
164
  - lib/wrest/curl/session.rb
141
- - lib/wrest/curl.rb
142
165
  - lib/wrest/exceptions.rb
143
166
  - lib/wrest/hash_with_case_insensitive_access.rb
144
167
  - lib/wrest/http_codes.rb
168
+ - lib/wrest/http_shared.rb
145
169
  - lib/wrest/http_shared/headers.rb
146
170
  - lib/wrest/http_shared/standard_headers.rb
147
171
  - lib/wrest/http_shared/standard_tokens.rb
148
- - lib/wrest/http_shared.rb
149
172
  - lib/wrest/multipart.rb
173
+ - lib/wrest/native.rb
150
174
  - lib/wrest/native/connection_factory.rb
151
175
  - lib/wrest/native/delete.rb
152
176
  - lib/wrest/native/get.rb
@@ -159,47 +183,38 @@ files:
159
183
  - lib/wrest/native/request.rb
160
184
  - lib/wrest/native/response.rb
161
185
  - lib/wrest/native/session.rb
162
- - lib/wrest/native.rb
163
- - lib/wrest/test/request_patches.rb
164
186
  - lib/wrest/test.rb
165
- - lib/wrest/uri/builders.rb
187
+ - lib/wrest/test/request_patches.rb
166
188
  - lib/wrest/uri.rb
189
+ - lib/wrest/uri/builders.rb
167
190
  - lib/wrest/uri_template.rb
168
191
  - lib/wrest/version.rb
169
- - lib/wrest/xml_mini/jdom/xpath_filter.rb
192
+ - lib/wrest/xml_mini.rb
170
193
  - lib/wrest/xml_mini/jdom.rb
171
- - lib/wrest/xml_mini/libxml/xpath_filter.rb
194
+ - lib/wrest/xml_mini/jdom/xpath_filter.rb
172
195
  - lib/wrest/xml_mini/libxml.rb
173
- - lib/wrest/xml_mini/nokogiri/xpath_filter.rb
196
+ - lib/wrest/xml_mini/libxml/xpath_filter.rb
174
197
  - lib/wrest/xml_mini/nokogiri.rb
175
- - lib/wrest/xml_mini/rexml/xpath_filter.rb
198
+ - lib/wrest/xml_mini/nokogiri/xpath_filter.rb
176
199
  - lib/wrest/xml_mini/rexml.rb
177
- - lib/wrest/xml_mini.rb
178
- - lib/wrest.rb
200
+ - lib/wrest/xml_mini/rexml/xpath_filter.rb
179
201
  - lib/wrest_no_ext.rb
180
- - README.rdoc
181
- - CHANGELOG
182
- - LICENCE
183
202
  homepage: http://c42.in/open_source
184
203
  licenses: []
204
+ metadata: {}
185
205
  post_install_message:
186
206
  rdoc_options:
187
- - --charset=UTF-8
207
+ - "--charset=UTF-8"
188
208
  require_paths:
189
209
  - lib
190
210
  required_ruby_version: !ruby/object:Gem::Requirement
191
- none: false
192
211
  requirements:
193
- - - ! '>='
212
+ - - ">="
194
213
  - !ruby/object:Gem::Version
195
214
  version: '0'
196
- segments:
197
- - 0
198
- hash: -4060002547285215621
199
215
  required_rubygems_version: !ruby/object:Gem::Requirement
200
- none: false
201
216
  requirements:
202
- - - ! '>='
217
+ - - ">="
203
218
  - !ruby/object:Gem::Version
204
219
  version: 1.3.0
205
220
  requirements:
@@ -209,9 +224,9 @@ requirements:
209
224
  (and should be unneccessary) on jruby.
210
225
  - To use eventmachine as a parallel backend, install the 'eventmachine' gem.
211
226
  rubyforge_project: wrest
212
- rubygems_version: 1.8.10
227
+ rubygems_version: 2.4.5
213
228
  signing_key:
214
- specification_version: 3
215
- summary: Wrest is a fluent, object oriented HTTP client library for 1.8, 1.9, JRuby
216
- and Rubinius.
229
+ specification_version: 4
230
+ summary: Wrest is a fluent, object oriented HTTP client library for 2.x.x, JRuby 1.7.6
231
+ (and higher), JRuby 9.0.0.0.pre2.
217
232
  test_files: []
data/bin/rdoc DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env jruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'rdoc' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('rdoc', 'rdoc')