wrest 1.4.3 → 1.4.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +3 -0
- data/README.rdoc +9 -1
- data/lib/wrest/version.rb +1 -1
- metadata +4 -4
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.4
|
6
|
+
* GH#105 Reduce Rubgems version requirements to 1.3.x or greater from > 1.5
|
7
|
+
|
5
8
|
== 1.4.3
|
6
9
|
* GH#104 Allow default headers to be added to the uri that are then used for all requests
|
7
10
|
* GH#31 Add explicit API for cookies
|
data/README.rdoc
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
= Wrest 1.4.
|
1
|
+
= Wrest 1.4.4
|
2
2
|
|
3
3
|
(c) Copyright 2009-2011 {Sidu Ponnappa}[http://blog.sidu.in]. All Rights Reserved.
|
4
4
|
|
@@ -188,6 +188,8 @@ Note: The current implementation of asynchronous requests is currently in alpha
|
|
188
188
|
|
189
189
|
=== Other useful stuff
|
190
190
|
|
191
|
+
==== Hash container with ActiveResource-like semantics
|
192
|
+
|
191
193
|
Allows any class to hold an attributes hash, somewhat like ActiveResource. It also supports several extensions to this base fuctionality such as support for typecasting attribute values. See examples/twitter.rb and examples/wow_realm_status.rb for more samples.
|
192
194
|
|
193
195
|
Example:
|
@@ -209,6 +211,12 @@ Example:
|
|
209
211
|
kai_wren.energy # => #<Chi:0x113af8c @count="1024">
|
210
212
|
kai_wren.teacher # => 'Viss'
|
211
213
|
|
214
|
+
==== Opt-out of core extensions
|
215
|
+
|
216
|
+
Uncomfortable with extending <tt>String</tt> to add <tt>to_uri</tt>? Simply do
|
217
|
+
gem "wrest", :require => "wrest_no_ext"
|
218
|
+
in your Gemfile. You can now do <tt>Uri.new('http://localhost')</tt> to build Uris.
|
219
|
+
|
212
220
|
=== Logging
|
213
221
|
|
214
222
|
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 :
|
data/lib/wrest/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: wrest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.4.
|
5
|
+
version: 1.4.4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Sidu Ponnappa
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2011-05-
|
14
|
+
date: 2011-05-06 00:00:00 +05:30
|
15
15
|
default_executable:
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
@@ -210,9 +210,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
210
210
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
211
211
|
none: false
|
212
212
|
requirements:
|
213
|
-
- - "
|
213
|
+
- - ">="
|
214
214
|
- !ruby/object:Gem::Version
|
215
|
-
version:
|
215
|
+
version: 1.3.0
|
216
216
|
requirements:
|
217
217
|
- To use Memcached as caching back-end, install the 'dalli' gem.
|
218
218
|
- To use multipart post, install the 'multipart-post' gem.
|