diff --git a/History.txt b/History.txt index 55e3d2a..5ffdef2 100644 --- a/History.txt +++ b/History.txt @@ -1,7 +1,8 @@ == 0.1.8 2008-11-30 -* 1 major enhancement +* 2 major enhancements * Moved base_uri normalization into request class and out of httparty module, fixing the problem where base_uri was not always being normalized. + * Stupid simple support for HTTParty.get/post/put/delete. (jqr) == 0.1.7 2008-11-30 * 1 major enhancement diff --git a/examples/basic.rb b/examples/basic.rb new file mode 100644 index 0000000..672f772 --- /dev/null +++ b/examples/basic.rb @@ -0,0 +1,6 @@ +dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')) +require File.join(dir, 'httparty') +require 'pp' + +# You can also use post, put, delete in the same fashion +pp HTTParty.get('http://twitter.com/statuses/public_timeline.json') \ No newline at end of file diff --git a/examples/delicious.rb b/examples/delicious.rb index 245631a..3f47b4f 100644 --- a/examples/delicious.rb +++ b/examples/delicious.rb @@ -33,5 +33,4 @@ end delicious = Delicious.new(config['username'], config['password']) pp delicious.posts(:query => {:tag => 'ruby'}) -pp delicious.recent