| CODENOTIFIER | HelpYou are not signed inSign in |
Project: reststop
Revision: 57
Author: gunark
Date: 19 Jun 2008 14:10:07
Changes:preparing for 0.3.0 release
Files:| ... | ...@@ -1,10 +1,10 @@ | |
| 1 | === 0.3.0 :: In Progress... | |
| 1 | === 0.3.0 :: 2008-06-19 | |
| 2 | 2 | |
| 3 | 3 | * Restr has been moved out to its own gem, and should now work properly with |
| 4 | 4 | Rails 2.x (fixes bug #17421). |
| 5 | * `R` helper method should now work properly when a Restful object is fed as | |
| 6 | input along with a custom action. The final argument can be a Hash and | |
| 7 | will be translated into URL parameters. For example: | |
| 5 | * `R` helper method should now work properly when a Restful controlelr class | |
| 6 | is fed as input along with a custom action. The final argument can be a Hash | |
| 7 | and will be translated into URL parameters. For example: | |
| 8 | 8 | R(Kittens, 'list', 'colour' => 'black') |
| 9 | 9 | |
| 10 | 10 | === 0.2.0 :: 2007-12-10 |
| ... | ...@@ -1,7 +1,7 @@ | |
| 1 | 1 | module Reststop |
| 2 | 2 | module VERSION #:nodoc: |
| 3 | 3 | MAJOR = 0 |
| 4 | MINOR = 2 | |
| 4 | MINOR = 3 | |
| 5 | 5 | TINY = 0 |
| 6 | 6 | |
| 7 | 7 | STRING = [MAJOR, MINOR, TINY].join('.') |
| ... | ...@@ -21,8 +21,8 @@ | |
| 21 | 21 | ENV['NODOT'] = '1' |
| 22 | 22 | |
| 23 | 23 | NAME = "reststop" |
| 24 | #REV = nil | |
| 25 | REV = `svn info`[/Revision: (\d+)/, 1] rescue nil | |
| 24 | REV = nil | |
| 25 | #REV = `svn info`[/Revision: (\d+)/, 1] rescue nil | |
| 26 | 26 | VERS = ENV['VERSION'] || (Reststop::VERSION::STRING + (REV ? ".#{REV}" : "")) |
| 27 | 27 | CLEAN.include ['**/.*.sw?', '*.gem', '.config'] |
| 28 | 28 | RDOC_OPTS = ['--quiet', '--title', "#{NAME} #{VERS} documentation", |
| ... | ...@@ -77,14 +77,19 @@ | |
| 77 | 77 | <tt>XML</tt> view module. |
| 78 | 78 | |
| 79 | 79 | |
| 80 | <b>BONUS: A simple REST client</b> | |
| 80 | <b>Looking for Restr, the very simple REST client?</b> | |
| 81 | 81 | |
| 82 | Reststop also comes with a very simple REST client called Restr. | |
| 82 | Due to its popularity, <b>Restr</b>, the "very simple rest client", | |
| 83 | has been moved out to its own gem. Restr now lives under | |
| 84 | http://rubyforge.org/projects/restr/ and can be installed using: | |
| 85 | ||
| 86 | gem install restr | |
| 87 | ||
| 83 | 88 | Restr is basically a wrapper around Ruby's Net::HTTP, offering |
| 84 | 89 | a more RESTfully meaningful interface. |
| 85 | 90 | |
| 86 | See the Restr documentation for more info, but here's a simple | |
| 87 | example of RESTful interaction with Restr: | |
| 91 | See the "Restr documentation"[http://restr.rubyforge.org/] for more info, | |
| 92 | but here's a simple example of RESTful interaction with Restr: | |
| 88 | 93 | |
| 89 | 94 | require 'restr' |
| 90 | 95 | kitten = Restr.get('http://example.com/kittens/1.xml') |