tumblr-rb 0.0.1 → 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 +1 -0
- data/Gemfile +2 -1
- data/Gemfile.lock +58 -0
- data/README.md +87 -3
- data/Rakefile +6 -1
- data/lib/tumblr.rb +147 -2
- data/lib/tumblr/authenticator.rb +15 -0
- data/lib/tumblr/post.rb +173 -0
- data/lib/tumblr/post/audio.rb +16 -0
- data/lib/tumblr/post/conversation.rb +15 -0
- data/lib/tumblr/post/link.rb +15 -0
- data/lib/tumblr/post/photo.rb +16 -0
- data/lib/tumblr/post/quote.rb +16 -0
- data/lib/tumblr/post/regular.rb +14 -0
- data/lib/tumblr/post/video.rb +17 -0
- data/lib/tumblr/reader.rb +158 -0
- data/lib/tumblr/writer.rb +30 -0
- data/test/fixtures/vcr_cassettes/authenticate/authenticate.yml +39 -0
- data/test/fixtures/vcr_cassettes/read/authenticated.yml +40 -0
- data/test/fixtures/vcr_cassettes/read/authentication_failure.yml +33 -0
- data/test/fixtures/vcr_cassettes/read/mwunsch.yml +101 -0
- data/test/fixtures/vcr_cassettes/read/optional.yml +48 -0
- data/test/fixtures/vcr_cassettes/write/delete.yml +31 -0
- data/test/fixtures/vcr_cassettes/write/edit.yml +31 -0
- data/test/fixtures/vcr_cassettes/write/write.yml +31 -0
- data/test/helper.rb +20 -0
- data/test/test_tumblr.rb +591 -2
- data/{tumblr.gemspec → tumblr-rb.gemspec} +29 -9
- metadata +27 -6
- data/.document +0 -5
| @@ -4,12 +4,12 @@ | |
| 4 4 | 
             
            # -*- encoding: utf-8 -*-
         | 
| 5 5 |  | 
| 6 6 | 
             
            Gem::Specification.new do |s|
         | 
| 7 | 
            -
              s.name = %q{tumblr}
         | 
| 8 | 
            -
              s.version = "0.0 | 
| 7 | 
            +
              s.name = %q{tumblr-rb}
         | 
| 8 | 
            +
              s.version = "0.1.0"
         | 
| 9 9 |  | 
| 10 10 | 
             
              s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
         | 
| 11 11 | 
             
              s.authors = ["Mark Wunsch"]
         | 
| 12 | 
            -
              s.date = %q{2010-03- | 
| 12 | 
            +
              s.date = %q{2010-03-07}
         | 
| 13 13 | 
             
              s.description = %q{Ruby library and command line utility to work with the Tumblr Blogging Platform, powered by Weary.}
         | 
| 14 14 | 
             
              s.email = %q{mark@markwunsch.com}
         | 
| 15 15 | 
             
              s.extra_rdoc_files = [
         | 
| @@ -17,15 +17,35 @@ Gem::Specification.new do |s| | |
| 17 17 | 
             
                 "README.md"
         | 
| 18 18 | 
             
              ]
         | 
| 19 19 | 
             
              s.files = [
         | 
| 20 | 
            -
                ". | 
| 21 | 
            -
                 ".gitignore",
         | 
| 20 | 
            +
                ".gitignore",
         | 
| 22 21 | 
             
                 "Gemfile",
         | 
| 22 | 
            +
                 "Gemfile.lock",
         | 
| 23 23 | 
             
                 "LICENSE",
         | 
| 24 24 | 
             
                 "README.md",
         | 
| 25 25 | 
             
                 "Rakefile",
         | 
| 26 26 | 
             
                 "lib/tumblr.rb",
         | 
| 27 | 
            +
                 "lib/tumblr/authenticator.rb",
         | 
| 28 | 
            +
                 "lib/tumblr/post.rb",
         | 
| 29 | 
            +
                 "lib/tumblr/post/audio.rb",
         | 
| 30 | 
            +
                 "lib/tumblr/post/conversation.rb",
         | 
| 31 | 
            +
                 "lib/tumblr/post/link.rb",
         | 
| 32 | 
            +
                 "lib/tumblr/post/photo.rb",
         | 
| 33 | 
            +
                 "lib/tumblr/post/quote.rb",
         | 
| 34 | 
            +
                 "lib/tumblr/post/regular.rb",
         | 
| 35 | 
            +
                 "lib/tumblr/post/video.rb",
         | 
| 36 | 
            +
                 "lib/tumblr/reader.rb",
         | 
| 37 | 
            +
                 "lib/tumblr/writer.rb",
         | 
| 38 | 
            +
                 "test/fixtures/vcr_cassettes/authenticate/authenticate.yml",
         | 
| 39 | 
            +
                 "test/fixtures/vcr_cassettes/read/authenticated.yml",
         | 
| 40 | 
            +
                 "test/fixtures/vcr_cassettes/read/authentication_failure.yml",
         | 
| 41 | 
            +
                 "test/fixtures/vcr_cassettes/read/mwunsch.yml",
         | 
| 42 | 
            +
                 "test/fixtures/vcr_cassettes/read/optional.yml",
         | 
| 43 | 
            +
                 "test/fixtures/vcr_cassettes/write/delete.yml",
         | 
| 44 | 
            +
                 "test/fixtures/vcr_cassettes/write/edit.yml",
         | 
| 45 | 
            +
                 "test/fixtures/vcr_cassettes/write/write.yml",
         | 
| 27 46 | 
             
                 "test/helper.rb",
         | 
| 28 | 
            -
                 "test/test_tumblr.rb"
         | 
| 47 | 
            +
                 "test/test_tumblr.rb",
         | 
| 48 | 
            +
                 "tumblr-rb.gemspec"
         | 
| 29 49 | 
             
              ]
         | 
| 30 50 | 
             
              s.homepage = %q{http://github.com/mwunsch/tumblr}
         | 
| 31 51 | 
             
              s.rdoc_options = ["--charset=UTF-8"]
         | 
| @@ -42,14 +62,14 @@ Gem::Specification.new do |s| | |
| 42 62 | 
             
                s.specification_version = 3
         | 
| 43 63 |  | 
| 44 64 | 
             
                if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
         | 
| 45 | 
            -
                  s.add_runtime_dependency(%q<weary>, [">= 0"])
         | 
| 65 | 
            +
                  s.add_runtime_dependency(%q<weary>, [">= 0.7.1"])
         | 
| 46 66 | 
             
                  s.add_development_dependency(%q<bundler>, [">= 0.9.7"])
         | 
| 47 67 | 
             
                else
         | 
| 48 | 
            -
                  s.add_dependency(%q<weary>, [">= 0"])
         | 
| 68 | 
            +
                  s.add_dependency(%q<weary>, [">= 0.7.1"])
         | 
| 49 69 | 
             
                  s.add_dependency(%q<bundler>, [">= 0.9.7"])
         | 
| 50 70 | 
             
                end
         | 
| 51 71 | 
             
              else
         | 
| 52 | 
            -
                s.add_dependency(%q<weary>, [">= 0"])
         | 
| 72 | 
            +
                s.add_dependency(%q<weary>, [">= 0.7.1"])
         | 
| 53 73 | 
             
                s.add_dependency(%q<bundler>, [">= 0.9.7"])
         | 
| 54 74 | 
             
              end
         | 
| 55 75 | 
             
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version | |
| 4 4 | 
             
              prerelease: false
         | 
| 5 5 | 
             
              segments: 
         | 
| 6 6 | 
             
              - 0
         | 
| 7 | 
            -
              - 0
         | 
| 8 7 | 
             
              - 1
         | 
| 9 | 
            -
               | 
| 8 | 
            +
              - 0
         | 
| 9 | 
            +
              version: 0.1.0
         | 
| 10 10 | 
             
            platform: ruby
         | 
| 11 11 | 
             
            authors: 
         | 
| 12 12 | 
             
            - Mark Wunsch
         | 
| @@ -14,7 +14,7 @@ autorequire: | |
| 14 14 | 
             
            bindir: bin
         | 
| 15 15 | 
             
            cert_chain: []
         | 
| 16 16 |  | 
| 17 | 
            -
            date: 2010-03- | 
| 17 | 
            +
            date: 2010-03-07 00:00:00 -05:00
         | 
| 18 18 | 
             
            default_executable: 
         | 
| 19 19 | 
             
            dependencies: 
         | 
| 20 20 | 
             
            - !ruby/object:Gem::Dependency 
         | 
| @@ -26,7 +26,9 @@ dependencies: | |
| 26 26 | 
             
                  - !ruby/object:Gem::Version 
         | 
| 27 27 | 
             
                    segments: 
         | 
| 28 28 | 
             
                    - 0
         | 
| 29 | 
            -
                     | 
| 29 | 
            +
                    - 7
         | 
| 30 | 
            +
                    - 1
         | 
| 31 | 
            +
                    version: 0.7.1
         | 
| 30 32 | 
             
              type: :runtime
         | 
| 31 33 | 
             
              version_requirements: *id001
         | 
| 32 34 | 
             
            - !ruby/object:Gem::Dependency 
         | 
| @@ -53,16 +55,35 @@ extra_rdoc_files: | |
| 53 55 | 
             
            - LICENSE
         | 
| 54 56 | 
             
            - README.md
         | 
| 55 57 | 
             
            files: 
         | 
| 56 | 
            -
            - .document
         | 
| 57 58 | 
             
            - .gitignore
         | 
| 58 59 | 
             
            - Gemfile
         | 
| 60 | 
            +
            - Gemfile.lock
         | 
| 59 61 | 
             
            - LICENSE
         | 
| 60 62 | 
             
            - README.md
         | 
| 61 63 | 
             
            - Rakefile
         | 
| 62 64 | 
             
            - lib/tumblr.rb
         | 
| 65 | 
            +
            - lib/tumblr/authenticator.rb
         | 
| 66 | 
            +
            - lib/tumblr/post.rb
         | 
| 67 | 
            +
            - lib/tumblr/post/audio.rb
         | 
| 68 | 
            +
            - lib/tumblr/post/conversation.rb
         | 
| 69 | 
            +
            - lib/tumblr/post/link.rb
         | 
| 70 | 
            +
            - lib/tumblr/post/photo.rb
         | 
| 71 | 
            +
            - lib/tumblr/post/quote.rb
         | 
| 72 | 
            +
            - lib/tumblr/post/regular.rb
         | 
| 73 | 
            +
            - lib/tumblr/post/video.rb
         | 
| 74 | 
            +
            - lib/tumblr/reader.rb
         | 
| 75 | 
            +
            - lib/tumblr/writer.rb
         | 
| 76 | 
            +
            - test/fixtures/vcr_cassettes/authenticate/authenticate.yml
         | 
| 77 | 
            +
            - test/fixtures/vcr_cassettes/read/authenticated.yml
         | 
| 78 | 
            +
            - test/fixtures/vcr_cassettes/read/authentication_failure.yml
         | 
| 79 | 
            +
            - test/fixtures/vcr_cassettes/read/mwunsch.yml
         | 
| 80 | 
            +
            - test/fixtures/vcr_cassettes/read/optional.yml
         | 
| 81 | 
            +
            - test/fixtures/vcr_cassettes/write/delete.yml
         | 
| 82 | 
            +
            - test/fixtures/vcr_cassettes/write/edit.yml
         | 
| 83 | 
            +
            - test/fixtures/vcr_cassettes/write/write.yml
         | 
| 63 84 | 
             
            - test/helper.rb
         | 
| 64 85 | 
             
            - test/test_tumblr.rb
         | 
| 65 | 
            -
            - tumblr.gemspec
         | 
| 86 | 
            +
            - tumblr-rb.gemspec
         | 
| 66 87 | 
             
            has_rdoc: true
         | 
| 67 88 | 
             
            homepage: http://github.com/mwunsch/tumblr
         | 
| 68 89 | 
             
            licenses: []
         |