<commit_before># Tumblife

[![Build Status](https://travis-ci.org/mitukiii/tumblife-for-ruby.png?branch=master)][travis]
[![Dependency Status](https://gemnasium.com/mitukiii/tumblife-for-ruby.png?travis)][gemnasium]

[travis]: https://travis-ci.org/mitukiii/tumblife-for-ruby
[gemnasium]: https://gemnasium.com/mitukiii/tumblife-for-ruby

A Ruby wrapper for the Tumblr API v2.

## Installation
    gem install tumblife

## Usage
```ruby
require 'tumblife'

Tumblife.configure do |config|
  config.consumer_key = YOUR_CONSUMER_KEY
  config.consumer_secret = YOUR_CONSUMER_SECRET
  config.oauth_token = YOUR_OAUTH_TOKEN
  config.oauth_token_secret = YOUR_OAUTH_TOKEN_SECRET
end
    
client = Tumblife.client
    
avatar = client.avatar('mitukiii.tumblr.com')
avatar.avatar_url # => http://24.media.tumblr.com/avatar_87fdfd3ea0e3_64.png
    
info = client.blog_info('mitukiii.tumblr.com')
info.blog.name # => mitukiii
info.blog.url # => http://mitukiii.tumblr.com/
    <commit_msg>Add Code Climate badge.<commit_after># Tumblife

[![Build Status](https://travis-ci.org/mitukiii/tumblife-for-ruby.png?branch=master)][travis]
[![Code Climate](https://codeclimate.com/github/mitukiii/tumblife-for-ruby.png)][codeclimate]
[![Dependency Status](https://gemnasium.com/mitukiii/tumblife-for-ruby.png?travis)][gemnasium]

[travis]: https://travis-ci.org/mitukiii/tumblife-for-ruby
[codeclimate]: https://codeclimate.com/github/mitukiii/tumblife-for-ruby
[gemnasium]: https://gemnasium.com/mitukiii/tumblife-for-ruby

A Ruby wrapper for the Tumblr API v2.

## Installation
    gem install tumblife

## Usage
```ruby
require 'tumblife'

Tumblife.configure do |config|
  config.consumer_key = YOUR_CONSUMER_KEY
  config.consumer_secret = YOUR_CONSUMER_SECRET
  config.oauth_token = YOUR_OAUTH_TOKEN
  config.oauth_token_secret = YOUR_OAUTH_TOKEN_SECRET
end
    
client = Tumblife.client
    
avatar = client.avatar('mitukiii.tumblr.com')
avatar.avatar_url # => http://24.media.tumblr.com/avatar_87fdfd3ea0e3_64.png
    
info = client.blog_info('mitukiii.tumblr.com')
info.blog.name # => mitukiii
info.blog.url # => http://mitukiii.tumblr.com/
    
{'fraction_non_alphanumeric': 0.14064697609001406, 'fraction_numerical': 0.009376465072667605, 'mean_word_length': 5.028248587570621, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '5225811', 'n_tokens_mistral': 889, 'n_tokens_neox': 841, 'n_words': 107}