<commit_before>The Pinboard Ruby Gem
=====================
A Ruby wrapper for the [Pinboard API](http://pinboard.in/api/).

Installation
------------
    gem install pinboard

Examples
--------

I'm currently exploring two API interfaces:

```ruby
    pinboard = Pinboard::Client.new(:token => 'your_api_token')
    posts = pinboard.posts
```

Your [API token](https://blog.pinboard.in/2012/07/api_authentication_tokens/) can be found on your
[settings/password](https://pinboard.in/settings/password) page.

or:

```ruby
    posts = Pinboard::Post.all(:username => 'foo', :password => '<PASSWORD>')
```
Both examples work.

Passing arguments: (works only for the Client API Interface)

```ruby
	pinboard.posts(:tag => 'ruby') #all posts tagged 'ruby'
	pinboard.posts(:tag => 'ruby,pinboard') #all posts tagged 'ruby' and 'pinboard'
    pinboard.posts(:start => 20) #starting on the 20th post
    pinboard.posts(:results => 20) #return only first 20 matching posts
    pinboard.posts(:fromdt => 4.days.ago) #all posts in past 4 days
    pinboard.posts(:todt => 4.days.ago) #all posts up to 4 days ago
```

Adding new posts:

```ruby
  pinboard.add(:url => "http://example.com/", :description => 'Example post')
```


Future Examples (I don't need them, so I haven't written them)
--------------------------------------------------------------

    pinboard.posts(:meta => true) #include meta data in post models

Ruby Support & Continuous Integration
-------------------------------------
I am using [travis-ci.org](http://travis-ci.org) for continuous
integration and support of the following rubies in rvm:

 * 1.9.3
 * 2.0.0
 * jruby
 * ruby-head

[![Build Status](https://secure.travis-ci.org/ryw/pinboard.png)](http://travis-ci.org/ryw/pinboard)

[![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/ryw/pinboard)

Links
-----
  * [Pinboard API Documentation](http://pinboard.in/api/)

How to Contribute<commit_msg>Add newer rubies to readme as well<commit_after>The Pinboard Ruby Gem
=====================
A Ruby wrapper for the [Pinboard API](http://pinboard.in/api/).

Installation
------------
    gem install pinboard

Examples
--------

I'm currently exploring two API interfaces:

```ruby
    pinboard = Pinboard::Client.new(:token => 'your_api_token')
    posts = pinboard.posts
```

Your [API token](https://blog.pinboard.in/2012/07/api_authentication_tokens/) can be found on your
[settings/password](https://pinboard.in/settings/password) page.

or:

```ruby
    posts = Pinboard::Post.all(:username => 'foo', :password => '<PASSWORD>')
```
Both examples work.

Passing arguments: (works only for the Client API Interface)

```ruby
	pinboard.posts(:tag => 'ruby') #all posts tagged 'ruby'
	pinboard.posts(:tag => 'ruby,pinboard') #all posts tagged 'ruby' and 'pinboard'
    pinboard.posts(:start => 20) #starting on the 20th post
    pinboard.posts(:results => 20) #return only first 20 matching posts
    pinboard.posts(:fromdt => 4.days.ago) #all posts in past 4 days
    pinboard.posts(:todt => 4.days.ago) #all posts up to 4 days ago
```

Adding new posts:

```ruby
  pinboard.add(:url => "http://example.com/", :description => 'Example post')
```


Future Examples (I don't need them, so I haven't written them)
--------------------------------------------------------------

    pinboard.posts(:meta => true) #include meta data in post models

Ruby Support & Continuous Integration
-------------------------------------
I am using [travis-ci.org](http://travis-ci.org) for continuous
integration and support of the following rubies in rvm:

 * 1.9.3
 * 2.0.0
 * 2.1
 * 2.2
 * jruby
 * ruby-head

[![Build Status](https://secure.travis-ci.org/ryw/pinboard.png)](http://travis-ci.org/ryw/pinboard)

[![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/ryw/pinboard)

Links
-----
  * [Pinboard API Documentation](http://pinboard.in/api/)

How to Contribute
{'fraction_non_alphanumeric': 0.21234442468884937, 'fraction_numerical': 0.013208026416052832, 'mean_word_length': 3.1409043112513144, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 29, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3764251', 'n_tokens_mistral': 1317, 'n_tokens_neox': 1202, 'n_words': 339}