tumbl_rb 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +14 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/Gemfile +3 -0
- data/Guardfile +8 -0
- data/LICENSE +20 -0
- data/README.md +62 -0
- data/Rakefile +19 -0
- data/lib/faraday/response/raise_tumbl_rb_error.rb +28 -0
- data/lib/tumbl_rb.rb +25 -0
- data/lib/tumbl_rb/blog.rb +36 -0
- data/lib/tumbl_rb/client.rb +40 -0
- data/lib/tumbl_rb/client/blogs.rb +48 -0
- data/lib/tumbl_rb/configuration.rb +39 -0
- data/lib/tumbl_rb/connection.rb +34 -0
- data/lib/tumbl_rb/error.rb +12 -0
- data/lib/tumbl_rb/request.rb +29 -0
- data/lib/tumbl_rb/version.rb +3 -0
- data/spec/faraday/response_spec.rb +27 -0
- data/spec/fixtures/avatar.json +1 -0
- data/spec/fixtures/info.json +18 -0
- data/spec/fixtures/posts.json +484 -0
- data/spec/spec_helper.rb +15 -0
- data/spec/tumbl_rb/blog_spec.rb +75 -0
- data/spec/tumbl_rb/client/blogs_spec.rb +34 -0
- data/spec/tumbl_rb/client_spec.rb +38 -0
- data/spec/tumbl_rb_spec.rb +27 -0
- data/tumbl_rb.gemspec +37 -0
- metadata +308 -0
    
        data/spec/spec_helper.rb
    ADDED
    
    | @@ -0,0 +1,15 @@ | |
| 1 | 
            +
            unless ENV['CI']
         | 
| 2 | 
            +
              require 'simplecov'
         | 
| 3 | 
            +
             | 
| 4 | 
            +
              SimpleCov.start do
         | 
| 5 | 
            +
                add_filter "/spec"
         | 
| 6 | 
            +
              end
         | 
| 7 | 
            +
            end
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            require 'tumbl_rb'
         | 
| 10 | 
            +
            require 'rspec'
         | 
| 11 | 
            +
            require 'webmock/rspec'
         | 
| 12 | 
            +
             | 
| 13 | 
            +
            def fixture(file)
         | 
| 14 | 
            +
              File.new(File.expand_path("../fixtures", __FILE__) + "/" + file)
         | 
| 15 | 
            +
            end
         | 
| @@ -0,0 +1,75 @@ | |
| 1 | 
            +
            require 'spec_helper'
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            describe TumblRb::Blog do
         | 
| 4 | 
            +
             | 
| 5 | 
            +
              context "when passed a standard tumblr domain" do
         | 
| 6 | 
            +
             | 
| 7 | 
            +
                before do
         | 
| 8 | 
            +
                  @blog = TumblRb::Blog.new("andrewpthorp.tumblr.com")
         | 
| 9 | 
            +
                end
         | 
| 10 | 
            +
             | 
| 11 | 
            +
                it "should set the hostname" do
         | 
| 12 | 
            +
                  @blog.hostname.should == "andrewpthorp.tumblr.com"
         | 
| 13 | 
            +
                end
         | 
| 14 | 
            +
             | 
| 15 | 
            +
                it "should set the username" do
         | 
| 16 | 
            +
                  @blog.username.should == "andrewpthorp"
         | 
| 17 | 
            +
                end
         | 
| 18 | 
            +
             | 
| 19 | 
            +
                it "should render the hostname as string" do
         | 
| 20 | 
            +
                  @blog.to_s.should == "andrewpthorp.tumblr.com"
         | 
| 21 | 
            +
                end
         | 
| 22 | 
            +
             | 
| 23 | 
            +
                it "should render the url" do
         | 
| 24 | 
            +
                  @blog.url.should == "http://andrewpthorp.tumblr.com"
         | 
| 25 | 
            +
                end
         | 
| 26 | 
            +
             | 
| 27 | 
            +
              end
         | 
| 28 | 
            +
             | 
| 29 | 
            +
              context "when passed a custom domain" do
         | 
| 30 | 
            +
             | 
| 31 | 
            +
                before do
         | 
| 32 | 
            +
                  @blog = TumblRb::Blog.new("thechangelog.com")
         | 
| 33 | 
            +
                end
         | 
| 34 | 
            +
             | 
| 35 | 
            +
                it "should set the hostname" do
         | 
| 36 | 
            +
                  @blog.hostname.should == "thechangelog.com"
         | 
| 37 | 
            +
                end
         | 
| 38 | 
            +
             | 
| 39 | 
            +
                it "should not set the username" do
         | 
| 40 | 
            +
                  @blog.username.should be_nil
         | 
| 41 | 
            +
                end
         | 
| 42 | 
            +
             | 
| 43 | 
            +
              end
         | 
| 44 | 
            +
             | 
| 45 | 
            +
              context "when passed a username" do
         | 
| 46 | 
            +
             | 
| 47 | 
            +
                before do
         | 
| 48 | 
            +
                  @blog = TumblRb::Blog.new("andrewpthorp")
         | 
| 49 | 
            +
                end
         | 
| 50 | 
            +
             | 
| 51 | 
            +
                it "should set the hostname" do
         | 
| 52 | 
            +
                  @blog.hostname.should == "andrewpthorp.tumblr.com"
         | 
| 53 | 
            +
                end
         | 
| 54 | 
            +
             | 
| 55 | 
            +
                it "should set the username" do
         | 
| 56 | 
            +
                  @blog.username.should == "andrewpthorp"
         | 
| 57 | 
            +
                end
         | 
| 58 | 
            +
             | 
| 59 | 
            +
              end
         | 
| 60 | 
            +
             | 
| 61 | 
            +
              context "when passed a hash" do
         | 
| 62 | 
            +
                before do
         | 
| 63 | 
            +
                  @blog = TumblRb::Blog.new({:username => "andrewpthorp", :hostname => "thechangelog.com"})
         | 
| 64 | 
            +
                end
         | 
| 65 | 
            +
             | 
| 66 | 
            +
                it "should set the hostname" do
         | 
| 67 | 
            +
                  @blog.hostname.should == "thechangelog.com"
         | 
| 68 | 
            +
                end
         | 
| 69 | 
            +
             | 
| 70 | 
            +
                it "should set the username" do
         | 
| 71 | 
            +
                  @blog.username.should == "andrewpthorp"
         | 
| 72 | 
            +
                end
         | 
| 73 | 
            +
              end
         | 
| 74 | 
            +
             | 
| 75 | 
            +
            end
         | 
| @@ -0,0 +1,34 @@ | |
| 1 | 
            +
            require 'spec_helper'
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            describe TumblRb::Client::Blogs do
         | 
| 4 | 
            +
             | 
| 5 | 
            +
              before do
         | 
| 6 | 
            +
                @blog = "andrewpthorp.tumblr.com"
         | 
| 7 | 
            +
                @client = TumblRb::Client.new
         | 
| 8 | 
            +
              end
         | 
| 9 | 
            +
             | 
| 10 | 
            +
              describe ".info" do
         | 
| 11 | 
            +
                it "should return blog info" do
         | 
| 12 | 
            +
                  stub_request(:get, "http://api.tumblr.com/v2/blog/#{@blog}/info").to_return(:body => fixture("info.json"))
         | 
| 13 | 
            +
                  info = @client.info(@blog)
         | 
| 14 | 
            +
                  info.should_not be_empty
         | 
| 15 | 
            +
                end
         | 
| 16 | 
            +
              end
         | 
| 17 | 
            +
             | 
| 18 | 
            +
              describe ".avatar" do
         | 
| 19 | 
            +
                it "should return blog avatar" do
         | 
| 20 | 
            +
                  stub_request(:get, "http://api.tumblr.com/v2/blog/#{@blog}/avatar").to_return(:body => fixture("avatar.json"))
         | 
| 21 | 
            +
                  avatar = @client.avatar(@blog)
         | 
| 22 | 
            +
                  avatar.should_not be_empty
         | 
| 23 | 
            +
                end
         | 
| 24 | 
            +
              end
         | 
| 25 | 
            +
             | 
| 26 | 
            +
              describe ".posts" do
         | 
| 27 | 
            +
                it "should return all posts" do
         | 
| 28 | 
            +
                  stub_request(:get, "http://api.tumblr.com/v2/blog/#{@blog}/posts").to_return(:body => fixture("posts.json"))
         | 
| 29 | 
            +
                  posts = @client.posts(@blog)
         | 
| 30 | 
            +
                  posts.should_not be_empty
         | 
| 31 | 
            +
                end
         | 
| 32 | 
            +
              end
         | 
| 33 | 
            +
             | 
| 34 | 
            +
            end
         | 
| @@ -0,0 +1,38 @@ | |
| 1 | 
            +
            require 'spec_helper'
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            describe TumblRb::Client do
         | 
| 4 | 
            +
             | 
| 5 | 
            +
              describe "#new" do
         | 
| 6 | 
            +
                it "should set valid options" do
         | 
| 7 | 
            +
                  client = TumblRb::Client.new(:proxy => :rack)
         | 
| 8 | 
            +
                  client.proxy.should == :rack
         | 
| 9 | 
            +
                end
         | 
| 10 | 
            +
             | 
| 11 | 
            +
                it "should ignore invalid options" do
         | 
| 12 | 
            +
                  lambda {
         | 
| 13 | 
            +
                    client = TumblRb::Client.new(:foo => "bar")
         | 
| 14 | 
            +
                    client.foo
         | 
| 15 | 
            +
                  }.should raise_error
         | 
| 16 | 
            +
                end
         | 
| 17 | 
            +
              end
         | 
| 18 | 
            +
             | 
| 19 | 
            +
              describe "#api_url" do
         | 
| 20 | 
            +
                it "should be set to http://api.tumblr.com" do
         | 
| 21 | 
            +
                  client = TumblRb::Client.new
         | 
| 22 | 
            +
                  client.api_url.should == "http://api.tumblr.com"
         | 
| 23 | 
            +
                end
         | 
| 24 | 
            +
              end
         | 
| 25 | 
            +
             | 
| 26 | 
            +
              describe "#oauthed?" do
         | 
| 27 | 
            +
                it "should be false with a nil consumer_oauth_key" do
         | 
| 28 | 
            +
                  client = TumblRb::Client.new
         | 
| 29 | 
            +
                  client.oauthed?.should be_false
         | 
| 30 | 
            +
                end
         | 
| 31 | 
            +
             | 
| 32 | 
            +
                it "should be true when consumer_oauth_key is not nil" do
         | 
| 33 | 
            +
                  client = TumblRb::Client.new(:consumer_oauth_key => "1234567890")
         | 
| 34 | 
            +
                  client.oauthed?.should be_true
         | 
| 35 | 
            +
                end
         | 
| 36 | 
            +
              end
         | 
| 37 | 
            +
             | 
| 38 | 
            +
            end
         | 
| @@ -0,0 +1,27 @@ | |
| 1 | 
            +
            require 'spec_helper'
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            describe TumblRb do
         | 
| 4 | 
            +
             | 
| 5 | 
            +
              describe "#new" do
         | 
| 6 | 
            +
                it "should be a TumblRb::Client" do
         | 
| 7 | 
            +
                  TumblRb.new.should be_a TumblRb::Client
         | 
| 8 | 
            +
                end
         | 
| 9 | 
            +
              end
         | 
| 10 | 
            +
             | 
| 11 | 
            +
              describe "#respond_to?" do
         | 
| 12 | 
            +
                it "should be true if method exists" do
         | 
| 13 | 
            +
                  TumblRb.respond_to?(:new, true).should be_true
         | 
| 14 | 
            +
                end
         | 
| 15 | 
            +
             | 
| 16 | 
            +
                it "should be false if the method does not exist" do
         | 
| 17 | 
            +
                  TumblRb.respond_to?(:rollins, true).should be_false
         | 
| 18 | 
            +
                end
         | 
| 19 | 
            +
              end
         | 
| 20 | 
            +
             | 
| 21 | 
            +
              describe "#delegate" do
         | 
| 22 | 
            +
                it "should delegate missing methods to TumblRb::Client" do
         | 
| 23 | 
            +
                  TumblRb.api_url.should == TumblRb::Client.new.api_url
         | 
| 24 | 
            +
                end
         | 
| 25 | 
            +
              end
         | 
| 26 | 
            +
             | 
| 27 | 
            +
            end
         | 
    
        data/tumbl_rb.gemspec
    ADDED
    
    | @@ -0,0 +1,37 @@ | |
| 1 | 
            +
            # -*- encoding: utf-8 -*-
         | 
| 2 | 
            +
            require File.expand_path('../lib/tumbl_rb/version', __FILE__)
         | 
| 3 | 
            +
             | 
| 4 | 
            +
            Gem::Specification.new do |s|
         | 
| 5 | 
            +
              s.name        = 'tumbl_rb'
         | 
| 6 | 
            +
              s.version     = TumblRb::VERSION
         | 
| 7 | 
            +
              s.platform    = Gem::Platform::RUBY
         | 
| 8 | 
            +
             | 
| 9 | 
            +
              s.authors     = ['Andrew Thorp']
         | 
| 10 | 
            +
              s.email       = ['andrewpthorp@gmail.com']
         | 
| 11 | 
            +
              s.homepage    = 'http://github.com/andrewpthorp/tumbl_rb'
         | 
| 12 | 
            +
              s.summary     = %q{Simple wrapper for the tumblr v2 API.}
         | 
| 13 | 
            +
              s.description = <<-EOF
         | 
| 14 | 
            +
                Tumblr is a "feature rich and free blog hosting platform."
         | 
| 15 | 
            +
                Tumbl_rb is a ruby wrapper around v2 of the tumblr API.
         | 
| 16 | 
            +
              EOF
         | 
| 17 | 
            +
             | 
| 18 | 
            +
              s.add_runtime_dependency 'addressable', '~> 2.2'
         | 
| 19 | 
            +
              s.add_runtime_dependency 'faraday', '~> 0.8'
         | 
| 20 | 
            +
              s.add_runtime_dependency 'faraday_middleware', '~> 0.8'
         | 
| 21 | 
            +
              s.add_runtime_dependency 'hashie', '~> 1.2'
         | 
| 22 | 
            +
              s.add_runtime_dependency 'multi_json', '~> 1.3'
         | 
| 23 | 
            +
             | 
| 24 | 
            +
              s.add_development_dependency 'json'
         | 
| 25 | 
            +
              s.add_development_dependency 'rake'
         | 
| 26 | 
            +
              s.add_development_dependency 'rspec'
         | 
| 27 | 
            +
              s.add_development_dependency 'guard-rspec'
         | 
| 28 | 
            +
              s.add_development_dependency 'growl'
         | 
| 29 | 
            +
              s.add_development_dependency 'simplecov'
         | 
| 30 | 
            +
              s.add_development_dependency 'webmock'
         | 
| 31 | 
            +
              s.add_development_dependency 'yard'
         | 
| 32 | 
            +
              s.add_development_dependency 'markdown'
         | 
| 33 | 
            +
             | 
| 34 | 
            +
              s.files         = `git ls-files`.split("\n")
         | 
| 35 | 
            +
              s.test_files    = `git ls-files -- {test,spec,features}/*`.split("\n")
         | 
| 36 | 
            +
              s.require_paths = ["lib"]
         | 
| 37 | 
            +
            end
         | 
    
        metadata
    ADDED
    
    | @@ -0,0 +1,308 @@ | |
| 1 | 
            +
            --- !ruby/object:Gem::Specification
         | 
| 2 | 
            +
            name: tumbl_rb
         | 
| 3 | 
            +
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            +
              version: 0.1.0
         | 
| 5 | 
            +
              prerelease: 
         | 
| 6 | 
            +
            platform: ruby
         | 
| 7 | 
            +
            authors:
         | 
| 8 | 
            +
            - Andrew Thorp
         | 
| 9 | 
            +
            autorequire: 
         | 
| 10 | 
            +
            bindir: bin
         | 
| 11 | 
            +
            cert_chain: []
         | 
| 12 | 
            +
            date: 2012-06-25 00:00:00.000000000 Z
         | 
| 13 | 
            +
            dependencies:
         | 
| 14 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 15 | 
            +
              name: addressable
         | 
| 16 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 17 | 
            +
                none: false
         | 
| 18 | 
            +
                requirements:
         | 
| 19 | 
            +
                - - ~>
         | 
| 20 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 21 | 
            +
                    version: '2.2'
         | 
| 22 | 
            +
              type: :runtime
         | 
| 23 | 
            +
              prerelease: false
         | 
| 24 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 25 | 
            +
                none: false
         | 
| 26 | 
            +
                requirements:
         | 
| 27 | 
            +
                - - ~>
         | 
| 28 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 29 | 
            +
                    version: '2.2'
         | 
| 30 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 31 | 
            +
              name: faraday
         | 
| 32 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 33 | 
            +
                none: false
         | 
| 34 | 
            +
                requirements:
         | 
| 35 | 
            +
                - - ~>
         | 
| 36 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 37 | 
            +
                    version: '0.8'
         | 
| 38 | 
            +
              type: :runtime
         | 
| 39 | 
            +
              prerelease: false
         | 
| 40 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 41 | 
            +
                none: false
         | 
| 42 | 
            +
                requirements:
         | 
| 43 | 
            +
                - - ~>
         | 
| 44 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 45 | 
            +
                    version: '0.8'
         | 
| 46 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 47 | 
            +
              name: faraday_middleware
         | 
| 48 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 49 | 
            +
                none: false
         | 
| 50 | 
            +
                requirements:
         | 
| 51 | 
            +
                - - ~>
         | 
| 52 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 53 | 
            +
                    version: '0.8'
         | 
| 54 | 
            +
              type: :runtime
         | 
| 55 | 
            +
              prerelease: false
         | 
| 56 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 57 | 
            +
                none: false
         | 
| 58 | 
            +
                requirements:
         | 
| 59 | 
            +
                - - ~>
         | 
| 60 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 61 | 
            +
                    version: '0.8'
         | 
| 62 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 63 | 
            +
              name: hashie
         | 
| 64 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 65 | 
            +
                none: false
         | 
| 66 | 
            +
                requirements:
         | 
| 67 | 
            +
                - - ~>
         | 
| 68 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 69 | 
            +
                    version: '1.2'
         | 
| 70 | 
            +
              type: :runtime
         | 
| 71 | 
            +
              prerelease: false
         | 
| 72 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 73 | 
            +
                none: false
         | 
| 74 | 
            +
                requirements:
         | 
| 75 | 
            +
                - - ~>
         | 
| 76 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 77 | 
            +
                    version: '1.2'
         | 
| 78 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 79 | 
            +
              name: multi_json
         | 
| 80 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 81 | 
            +
                none: false
         | 
| 82 | 
            +
                requirements:
         | 
| 83 | 
            +
                - - ~>
         | 
| 84 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 85 | 
            +
                    version: '1.3'
         | 
| 86 | 
            +
              type: :runtime
         | 
| 87 | 
            +
              prerelease: false
         | 
| 88 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 89 | 
            +
                none: false
         | 
| 90 | 
            +
                requirements:
         | 
| 91 | 
            +
                - - ~>
         | 
| 92 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 93 | 
            +
                    version: '1.3'
         | 
| 94 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 95 | 
            +
              name: json
         | 
| 96 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 97 | 
            +
                none: false
         | 
| 98 | 
            +
                requirements:
         | 
| 99 | 
            +
                - - ! '>='
         | 
| 100 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 101 | 
            +
                    version: '0'
         | 
| 102 | 
            +
              type: :development
         | 
| 103 | 
            +
              prerelease: false
         | 
| 104 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 105 | 
            +
                none: false
         | 
| 106 | 
            +
                requirements:
         | 
| 107 | 
            +
                - - ! '>='
         | 
| 108 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 109 | 
            +
                    version: '0'
         | 
| 110 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 111 | 
            +
              name: rake
         | 
| 112 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 113 | 
            +
                none: false
         | 
| 114 | 
            +
                requirements:
         | 
| 115 | 
            +
                - - ! '>='
         | 
| 116 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 117 | 
            +
                    version: '0'
         | 
| 118 | 
            +
              type: :development
         | 
| 119 | 
            +
              prerelease: false
         | 
| 120 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 121 | 
            +
                none: false
         | 
| 122 | 
            +
                requirements:
         | 
| 123 | 
            +
                - - ! '>='
         | 
| 124 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 125 | 
            +
                    version: '0'
         | 
| 126 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 127 | 
            +
              name: rspec
         | 
| 128 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 129 | 
            +
                none: false
         | 
| 130 | 
            +
                requirements:
         | 
| 131 | 
            +
                - - ! '>='
         | 
| 132 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 133 | 
            +
                    version: '0'
         | 
| 134 | 
            +
              type: :development
         | 
| 135 | 
            +
              prerelease: false
         | 
| 136 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 137 | 
            +
                none: false
         | 
| 138 | 
            +
                requirements:
         | 
| 139 | 
            +
                - - ! '>='
         | 
| 140 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 141 | 
            +
                    version: '0'
         | 
| 142 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 143 | 
            +
              name: guard-rspec
         | 
| 144 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 145 | 
            +
                none: false
         | 
| 146 | 
            +
                requirements:
         | 
| 147 | 
            +
                - - ! '>='
         | 
| 148 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 149 | 
            +
                    version: '0'
         | 
| 150 | 
            +
              type: :development
         | 
| 151 | 
            +
              prerelease: false
         | 
| 152 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 153 | 
            +
                none: false
         | 
| 154 | 
            +
                requirements:
         | 
| 155 | 
            +
                - - ! '>='
         | 
| 156 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 157 | 
            +
                    version: '0'
         | 
| 158 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 159 | 
            +
              name: growl
         | 
| 160 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 161 | 
            +
                none: false
         | 
| 162 | 
            +
                requirements:
         | 
| 163 | 
            +
                - - ! '>='
         | 
| 164 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 165 | 
            +
                    version: '0'
         | 
| 166 | 
            +
              type: :development
         | 
| 167 | 
            +
              prerelease: false
         | 
| 168 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 169 | 
            +
                none: false
         | 
| 170 | 
            +
                requirements:
         | 
| 171 | 
            +
                - - ! '>='
         | 
| 172 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 173 | 
            +
                    version: '0'
         | 
| 174 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 175 | 
            +
              name: simplecov
         | 
| 176 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 177 | 
            +
                none: false
         | 
| 178 | 
            +
                requirements:
         | 
| 179 | 
            +
                - - ! '>='
         | 
| 180 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 181 | 
            +
                    version: '0'
         | 
| 182 | 
            +
              type: :development
         | 
| 183 | 
            +
              prerelease: false
         | 
| 184 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 185 | 
            +
                none: false
         | 
| 186 | 
            +
                requirements:
         | 
| 187 | 
            +
                - - ! '>='
         | 
| 188 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 189 | 
            +
                    version: '0'
         | 
| 190 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 191 | 
            +
              name: webmock
         | 
| 192 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 193 | 
            +
                none: false
         | 
| 194 | 
            +
                requirements:
         | 
| 195 | 
            +
                - - ! '>='
         | 
| 196 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 197 | 
            +
                    version: '0'
         | 
| 198 | 
            +
              type: :development
         | 
| 199 | 
            +
              prerelease: false
         | 
| 200 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 201 | 
            +
                none: false
         | 
| 202 | 
            +
                requirements:
         | 
| 203 | 
            +
                - - ! '>='
         | 
| 204 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 205 | 
            +
                    version: '0'
         | 
| 206 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 207 | 
            +
              name: yard
         | 
| 208 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 209 | 
            +
                none: false
         | 
| 210 | 
            +
                requirements:
         | 
| 211 | 
            +
                - - ! '>='
         | 
| 212 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 213 | 
            +
                    version: '0'
         | 
| 214 | 
            +
              type: :development
         | 
| 215 | 
            +
              prerelease: false
         | 
| 216 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 217 | 
            +
                none: false
         | 
| 218 | 
            +
                requirements:
         | 
| 219 | 
            +
                - - ! '>='
         | 
| 220 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 221 | 
            +
                    version: '0'
         | 
| 222 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 223 | 
            +
              name: markdown
         | 
| 224 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 225 | 
            +
                none: false
         | 
| 226 | 
            +
                requirements:
         | 
| 227 | 
            +
                - - ! '>='
         | 
| 228 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 229 | 
            +
                    version: '0'
         | 
| 230 | 
            +
              type: :development
         | 
| 231 | 
            +
              prerelease: false
         | 
| 232 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 233 | 
            +
                none: false
         | 
| 234 | 
            +
                requirements:
         | 
| 235 | 
            +
                - - ! '>='
         | 
| 236 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 237 | 
            +
                    version: '0'
         | 
| 238 | 
            +
            description: ! "    Tumblr is a \"feature rich and free blog hosting platform.\"\n
         | 
| 239 | 
            +
              \   Tumbl_rb is a ruby wrapper around v2 of the tumblr API.\n"
         | 
| 240 | 
            +
            email:
         | 
| 241 | 
            +
            - andrewpthorp@gmail.com
         | 
| 242 | 
            +
            executables: []
         | 
| 243 | 
            +
            extensions: []
         | 
| 244 | 
            +
            extra_rdoc_files: []
         | 
| 245 | 
            +
            files:
         | 
| 246 | 
            +
            - .gitignore
         | 
| 247 | 
            +
            - .rspec
         | 
| 248 | 
            +
            - .travis.yml
         | 
| 249 | 
            +
            - Gemfile
         | 
| 250 | 
            +
            - Guardfile
         | 
| 251 | 
            +
            - LICENSE
         | 
| 252 | 
            +
            - README.md
         | 
| 253 | 
            +
            - Rakefile
         | 
| 254 | 
            +
            - lib/faraday/response/raise_tumbl_rb_error.rb
         | 
| 255 | 
            +
            - lib/tumbl_rb.rb
         | 
| 256 | 
            +
            - lib/tumbl_rb/blog.rb
         | 
| 257 | 
            +
            - lib/tumbl_rb/client.rb
         | 
| 258 | 
            +
            - lib/tumbl_rb/client/blogs.rb
         | 
| 259 | 
            +
            - lib/tumbl_rb/configuration.rb
         | 
| 260 | 
            +
            - lib/tumbl_rb/connection.rb
         | 
| 261 | 
            +
            - lib/tumbl_rb/error.rb
         | 
| 262 | 
            +
            - lib/tumbl_rb/request.rb
         | 
| 263 | 
            +
            - lib/tumbl_rb/version.rb
         | 
| 264 | 
            +
            - spec/faraday/response_spec.rb
         | 
| 265 | 
            +
            - spec/fixtures/avatar.json
         | 
| 266 | 
            +
            - spec/fixtures/info.json
         | 
| 267 | 
            +
            - spec/fixtures/posts.json
         | 
| 268 | 
            +
            - spec/spec_helper.rb
         | 
| 269 | 
            +
            - spec/tumbl_rb/blog_spec.rb
         | 
| 270 | 
            +
            - spec/tumbl_rb/client/blogs_spec.rb
         | 
| 271 | 
            +
            - spec/tumbl_rb/client_spec.rb
         | 
| 272 | 
            +
            - spec/tumbl_rb_spec.rb
         | 
| 273 | 
            +
            - tumbl_rb.gemspec
         | 
| 274 | 
            +
            homepage: http://github.com/andrewpthorp/tumbl_rb
         | 
| 275 | 
            +
            licenses: []
         | 
| 276 | 
            +
            post_install_message: 
         | 
| 277 | 
            +
            rdoc_options: []
         | 
| 278 | 
            +
            require_paths:
         | 
| 279 | 
            +
            - lib
         | 
| 280 | 
            +
            required_ruby_version: !ruby/object:Gem::Requirement
         | 
| 281 | 
            +
              none: false
         | 
| 282 | 
            +
              requirements:
         | 
| 283 | 
            +
              - - ! '>='
         | 
| 284 | 
            +
                - !ruby/object:Gem::Version
         | 
| 285 | 
            +
                  version: '0'
         | 
| 286 | 
            +
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 287 | 
            +
              none: false
         | 
| 288 | 
            +
              requirements:
         | 
| 289 | 
            +
              - - ! '>='
         | 
| 290 | 
            +
                - !ruby/object:Gem::Version
         | 
| 291 | 
            +
                  version: '0'
         | 
| 292 | 
            +
            requirements: []
         | 
| 293 | 
            +
            rubyforge_project: 
         | 
| 294 | 
            +
            rubygems_version: 1.8.24
         | 
| 295 | 
            +
            signing_key: 
         | 
| 296 | 
            +
            specification_version: 3
         | 
| 297 | 
            +
            summary: Simple wrapper for the tumblr v2 API.
         | 
| 298 | 
            +
            test_files:
         | 
| 299 | 
            +
            - spec/faraday/response_spec.rb
         | 
| 300 | 
            +
            - spec/fixtures/avatar.json
         | 
| 301 | 
            +
            - spec/fixtures/info.json
         | 
| 302 | 
            +
            - spec/fixtures/posts.json
         | 
| 303 | 
            +
            - spec/spec_helper.rb
         | 
| 304 | 
            +
            - spec/tumbl_rb/blog_spec.rb
         | 
| 305 | 
            +
            - spec/tumbl_rb/client/blogs_spec.rb
         | 
| 306 | 
            +
            - spec/tumbl_rb/client_spec.rb
         | 
| 307 | 
            +
            - spec/tumbl_rb_spec.rb
         | 
| 308 | 
            +
            has_rdoc: 
         |