Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

RDoc to Markdown

  • Loading branch information...
commit 8a5f73b1a7525c27a01877c23e7065d9a3cf8c1b 1 parent 80bf058
@weppos authored
View
13 CHANGELOG.rdoc → CHANGELOG.md
@@ -1,11 +1,12 @@
-= Changelog
+# Changelog
-== master
+
+## master
* CHANGED: Ruby style.
-== Release 0.4.0
+## Release 0.4.0
* FIXED: A trivial bug causes the test `test_request_waits_necessary_time_between_requests` to fail in case the subsequent request is sent exactly 1 second after the prior one.
@@ -16,7 +17,7 @@
* REMOVED: Removed old setup.rb installation method.
-== Release 0.3.0
+## Release 0.3.0
* FIXED: Compatibility fixes for Ruby 1.9. WWW::Delicious is now 100% compatible with 1.9. You should remember to define the proper content encoding with magic comments when working with UTF-8/MultiByte XML or Ruby files, see http://redmine.ruby-lang.org/wiki/ruby-19/ScriptEncoding (closes #142).
@@ -25,7 +26,7 @@
* CHANGED: Don't use File.dirname(__FILE__) in require statement to prevent recursive inclusions.
-== Release 0.2.0
+## Release 0.2.0
* ADDED: :base_uri initialization option allows to create a new instance specifying a custom base_uri for all API calls. This is useful, for example, if you want to use ma.gno.lia Mirror'd APIs (http://wiki.ma.gnolia.com/Mirror%27d_API) instead the del.icio.us one (thanks to Jörg Battermann).
@@ -60,6 +61,6 @@
* CHANGED: Integrated Echoe, cleaned Rakefile (closes #23).
-== Release 0.1.0 (2008-05-11)
+## Release 0.1.0 (2008-05-11)
* Initial public release.
View
7 LICENSE.rdoc → LICENSE
@@ -1,8 +1,6 @@
-= License
+Copyright (c) 2009-2011 Simone Carletti <weppos@weppos.net>
-(The MIT License)
-
-Copyright (c) 2008-2010 Simone Carletti <weppos@weppos.net>
+MIT License
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
@@ -22,4 +20,3 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
View
150 README.md
@@ -0,0 +1,150 @@
+# WWW::Delicious
+
+*WWW::Delicious* is a Ruby client for {delicious.com}[http://delicious.com] XML API.
+
+[![Build Status](https://secure.travis-ci.org/weppos/www-delicious.png)](http://travis-ci.org/weppos/www-delicious)
+
+
+*WWW::Delicious* maps all the original delicious.com API calls and provides some additional convenient methods to perform common tasks. For a full API overview, visit the official {Delicious API documentation}[http://delicious.com/help/api].
+
+*WWW::Delicious* is compatible with all {delicious.com}[http://delicious.com] API constraints,
+including the requirement to set a valid user agent or wait at least
+one second between queries.
+
+
+## Requirements
+
+* Ruby >= 1.8.6 or Ruby 1.9.x
+
+
+## Installation
+
+The best way to install *WWW::Delicious* is via [RubyGems](https://rubygems.org/).
+
+ $ gem install www-delicious
+
+You might need administrator privileges on your system to install the gem.
+
+
+## Getting Started
+
+In order to use this library you need a valid Delicious account.
+Go to http://delicious.com and register for a new account if you don't already have one.
+
+Then create a valid instance of `WWW::Delicious` providing your account credentials.
+
+ require 'www/delicious'
+
+ # create a new instance with given username and password
+ d = WWW::Delicious.new('username', 'password')
+
+Now you can use your instance to interact with the API interface.
+
+### Last account update
+
+The following example show you how to get the last account update Time.
+
+ time = d.update # => Fri May 02 18:02:48 UTC 2008
+
+### Reading Posts
+
+You can fetch your posts in 3 different ways:
+
+ # 1. get all posts
+ posts = d.posts_all
+
+ # 2. get recent posts
+ posts = d.posts_recent
+
+ # 3. get a single post (the latest one if no criteria is given)
+ posts = d.posts_get(:tag => 'ruby')
+
+Each post call accepts some options to refine your search.
+For example, you can always search for posts matching a specific tag.
+
+ posts = d.posts_all(:tag => 'ruby')
+ posts = d.posts_recent(:tag => 'ruby')
+ posts = d.posts_get(:tag => 'ruby')
+
+### Creating a new Post
+
+ # add a post from options
+ d.posts_add(:url => 'http://www.simonecarletti.com/', :title => 'Cool site!')
+
+ # add a post from WWW::Delicious::Post
+ d.posts_add(WWW::Delicious::Post.new(:url => 'http://www.simonecarletti.com/', :title => 'Cool site!'))
+
+### Deleting a Posts
+
+ # delete given post (the URL can be either a string or an URI)
+ d.posts_delete('http://www.foobar.com/')
+
+Note. Actually you cannot delete a post from a `WWW::Delicious::Post` instance.
+It means, the following example doesn't work as some ActiveRecord user might expect.
+
+ post = WWW::Delicious::Post.new(:url => 'http://www.foobar.com/')
+ post.delete
+
+This feature is already in the TODO list. For now, use the following workaround
+to delete a given Post.
+
+ # delete a post from an existing post = WWW::Delicious::Post
+ d.posts_delete(post.url)
+
+### Tags
+
+Working with tags it's really easy. You can get all your tags or rename an existing tag.
+
+ # get all tags
+ tags = d.tags_get
+
+ # print all tag names
+ tags.each { |t| puts t.name }
+
+ # rename the tag gems to gem
+ d.tags_rename('gems', 'gem')
+
+### Bundles
+
+WWW::Delicious enables you to get all bundles from given account.
+
+ # get all bundles
+ bundles = d.bundles_all
+
+ # print all bundle names
+ bundles.each { |b| puts b.name }
+
+You can also create new bundles or delete existing ones.
+
+ # set a new bundle for tags ruby, rails and gem
+ d.bundles_set('MyBundle', %w(ruby rails gem))
+
+ # delete the old bundle
+ d.bundles_delete('OldBundle')
+
+
+## Credits
+
+* [Simone Carletti](http://www.simonecarletti.com/) <weppos@weppos.net> - The Author
+
+
+## More
+
+* [Homepage](http://www.simonecarletti.com/code/www-delicious)
+* [Repository](https://github.com/weppos/www-delicious/)
+* [API Documentation](http://rubydoc.info/gems/www-delicious)
+
+
+## Feedback and bug reports
+
+Please submit bug reports or feature requests to [Github Issues](https://github.com/weppos/www-delicious/issues).
+
+
+## Changelog
+
+See the CHANGELOG.md file for details.
+
+
+## License
+
+*WWW::Delicious* is copyright (c) 2009-2011 Simone Carletti. This is Free Software distributed under the MIT license.
View
180 README.rdoc
@@ -1,180 +0,0 @@
-= WWW::Delicious
-
-WWW::Delicious is a Ruby client for {delicious.com}[http://delicious.com] XML API.
-
-WWW::Delicious maps all the original delicious.com API calls and provides some additional convenient methods to perform common tasks. For a full API overview, visit the official {Delicious API documentation}[http://delicious.com/help/api].
-
-WWW::Delicious is compatible with all {delicious.com}[http://delicious.com] API constraints,
-including the requirement to set a valid user agent or wait at least
-one second between queries.
-
-== Requirements
-
-* Ruby >= 1.8.6 or Ruby 1.9.x
-
-
-== Download and Installation
-
-This library is intended to be installed as a Gem.
-
- $ gem install www-delicious
-
-You might need administrator privileges on your system to install it.
-
-If you need the latest development version you can download the
-{source code}[http://github.com/weppos/www-delicious/] from GitHub.
-Beware that the code might not be as stable as the official release.
-
-
-== Getting Started
-
-In order to use this library you need a valid Delicious account.
-Go to http://delicious.com and register for a new account if you don't already have one.
-
-Then create a valid instance of WWW::Delicious providing your account credentials.
-
- require 'www/delicious'
-
- # create a new instance with given username and password
- d = WWW::Delicious.new('username', 'password')
-
-Now you can use your instance to interact with the API interface.
-
-
-=== Last account update
-
-The following example show you how to get the last account update Time.
-
- require 'www/delicious'
- d = WWW::Delicious.new('username', 'password')
-
- time = d.update # => Fri May 02 18:02:48 UTC 2008
-
-
-=== Reading Posts
-
-You can fetch your posts in 3 different ways:
-
- require 'www/delicious'
- d = WWW::Delicious.new('username', 'password')
-
- # 1. get all posts
- posts = d.posts_all
-
- # 2. get recent posts
- posts = d.posts_recent
-
- # 3. get a single post (the latest one if no criteria is given)
- posts = d.posts_get(:tag => 'ruby')
-
-Each post call accepts some options to refine your search.
-For example, you can always search for posts matching a specific tag.
-
- posts = d.posts_all(:tag => 'ruby')
- posts = d.posts_recent(:tag => 'ruby')
- posts = d.posts_get(:tag => 'ruby')
-
-
-=== Creating a new Post
-
- require 'www/delicious'
- d = WWW::Delicious.new('username', 'password')
-
- # add a post from options
- d.posts_add(:url => 'http://www.simonecarletti.com/', :title => 'Cool site!')
-
- # add a post from WWW::Delicious::Post
- d.posts_add(WWW::Delicious::Post.new(:url => 'http://www.simonecarletti.com/', :title => 'Cool site!'))
-
-
-=== Deleting a Posts
-
- require 'www/delicious'
- d = WWW::Delicious.new('username', 'password')
-
- # delete given post (the URL can be either a string or an URI)
- d.posts_delete('http://www.foobar.com/')
-
-Note. Actually you cannot delete a post from a WWW::Delicious::Post instance.
-It means, the following example doesn't work as some ActiveRecord user might expect.
-
- post = WWW::Delicious::Post.new(:url => 'http://www.foobar.com/')
- post.delete
-
-This feature is already in the TODO list. For now, use the following workaround
-to delete a given Post.
-
- # delete a post from an existing post = WWW::Delicious::Post
- d.posts_delete(post.url)
-
-
-=== Tags
-
-Working with tags it's really easy. You can get all your tags or rename an existing tag.
-
- require 'www/delicious'
- d = WWW::Delicious.new('username', 'password')
-
- # get all tags
- tags = d.tags_get
-
- # print all tag names
- tags.each { |t| puts t.name }
-
- # rename the tag gems to gem
- d.tags_rename('gems', 'gem')
-
-
-=== Bundles
-
-WWW::Delicious enables you to get all bundles from given account.
-
- require 'www/delicious'
- d = WWW::Delicious.new('username', 'password')
-
- # get all bundles
- bundles = d.bundles_all
-
- # print all bundle names
- bundles.each { |b| puts b.name }
-
-You can also create new bundles or delete existing ones.
-
- require 'www/delicious'
- d = WWW::Delicious.new('username', 'password')
-
- # set a new bundle for tags ruby, rails and gem
- d.bundles_set('MyBundle', %w(ruby rails gem))
-
- # delete the old bundle
- d.bundles_delete('OldBundle')
-
-
-== Credits
-
-Author:: {Simone Carletti}[http://www.simonecarletti.com/] <weppos@weppos.net>
-
-
-== Resources
-
-* {Homepage}[http://www.simonecarletti.com/code/www-delicious]
-* {Repository}[http://github.com/weppos/www-delicious/]
-* {API Documentation}[http://www.simonecarletti.com/code/www-delicious/api/] (RDoc)
-* {RubyForge}[http://rubyforge.org/projects/www-delicious/]
-
-
-== FeedBack and Bug reports
-
-Feel free to email {Simone Carletti}[mailto:weppos@weppos.net] with any questions or feedback.
-
-Please use the {Ticket System}[http://github.com/weppos/www-delicious/issues] to submit bug reports or feature request.
-
-
-== Changelog
-
-See the CHANGELOG.rdoc file for details.
-
-
-== License
-
-Copyright (c) 2008-2010 Simone Carletti, WWW::Delicious is released under the MIT license.
Please sign in to comment.
Something went wrong with that request. Please try again.