twurl 0.6.3 → 0.6.4
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/.gemtest +0 -0
 - data/.gitignore +38 -2
 - data/.travis.yml +7 -0
 - data/Gemfile +5 -1
 - data/Rakefile +3 -23
 - data/lib/twurl/version.rb +1 -1
 - data/test/account_information_controller_test.rb +4 -4
 - data/test/alias_controller_test.rb +2 -2
 - data/test/authorization_controller_test.rb +2 -2
 - data/test/cli_options_test.rb +2 -2
 - data/test/cli_test.rb +2 -2
 - data/test/configuration_controller_test.rb +3 -3
 - data/test/oauth_client_test.rb +1 -1
 - data/test/rcfile_test.rb +7 -7
 - data/test/request_controller_test.rb +1 -1
 - data/test/test_helper.rb +5 -2
 - data/twurl.gemspec +16 -16
 - metadata +41 -24
 - data/Gemfile.lock +0 -23
 
    
        data/.gemtest
    ADDED
    
    | 
         
            File without changes
         
     | 
    
        data/.gitignore
    CHANGED
    
    | 
         @@ -1,4 +1,40 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
             
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
      
 1 
     | 
    
         
            +
            *.gem
         
     | 
| 
      
 2 
     | 
    
         
            +
            *.rbc
         
     | 
| 
      
 3 
     | 
    
         
            +
            *.sw[a-p]
         
     | 
| 
      
 4 
     | 
    
         
            +
            *.tmproj
         
     | 
| 
      
 5 
     | 
    
         
            +
            *.tmproject
         
     | 
| 
      
 6 
     | 
    
         
            +
            *.un~
         
     | 
| 
      
 7 
     | 
    
         
            +
            *~
         
     | 
| 
       3 
8 
     | 
    
         
             
            .DS_Store
         
     | 
| 
      
 9 
     | 
    
         
            +
            .Spotlight-V100
         
     | 
| 
      
 10 
     | 
    
         
            +
            .Trashes
         
     | 
| 
      
 11 
     | 
    
         
            +
            ._*
         
     | 
| 
      
 12 
     | 
    
         
            +
            .bundle
         
     | 
| 
      
 13 
     | 
    
         
            +
            .config
         
     | 
| 
      
 14 
     | 
    
         
            +
            .directory
         
     | 
| 
      
 15 
     | 
    
         
            +
            .elc
         
     | 
| 
      
 16 
     | 
    
         
            +
            .emacs.desktop
         
     | 
| 
      
 17 
     | 
    
         
            +
            .emacs.desktop.lock
         
     | 
| 
      
 18 
     | 
    
         
            +
            .redcar
         
     | 
| 
      
 19 
     | 
    
         
            +
            .yardoc
         
     | 
| 
      
 20 
     | 
    
         
            +
            Desktop.ini
         
     | 
| 
      
 21 
     | 
    
         
            +
            Gemfile.lock
         
     | 
| 
      
 22 
     | 
    
         
            +
            Icon?
         
     | 
| 
      
 23 
     | 
    
         
            +
            InstalledFiles
         
     | 
| 
      
 24 
     | 
    
         
            +
            Session.vim
         
     | 
| 
      
 25 
     | 
    
         
            +
            Thumbs.db
         
     | 
| 
      
 26 
     | 
    
         
            +
            \#*\#
         
     | 
| 
      
 27 
     | 
    
         
            +
            _yardoc
         
     | 
| 
      
 28 
     | 
    
         
            +
            auto-save-list
         
     | 
| 
      
 29 
     | 
    
         
            +
            coverage
         
     | 
| 
      
 30 
     | 
    
         
            +
            doc
         
     | 
| 
      
 31 
     | 
    
         
            +
            lib/bundler/man
         
     | 
| 
       4 
32 
     | 
    
         
             
            pkg
         
     | 
| 
      
 33 
     | 
    
         
            +
            pkg/*
         
     | 
| 
      
 34 
     | 
    
         
            +
            rdoc
         
     | 
| 
      
 35 
     | 
    
         
            +
            spec/reports
         
     | 
| 
      
 36 
     | 
    
         
            +
            test/tmp
         
     | 
| 
      
 37 
     | 
    
         
            +
            test/version_tmp
         
     | 
| 
      
 38 
     | 
    
         
            +
            tmp
         
     | 
| 
      
 39 
     | 
    
         
            +
            tmtags
         
     | 
| 
      
 40 
     | 
    
         
            +
            tramp
         
     | 
    
        data/.travis.yml
    ADDED
    
    
    
        data/Gemfile
    CHANGED
    
    
    
        data/Rakefile
    CHANGED
    
    | 
         @@ -1,11 +1,6 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
             
     | 
| 
       2 
     | 
    
         
            -
            require 'rake'
         
     | 
| 
      
 1 
     | 
    
         
            +
            #!/usr/bin/env rake
         
     | 
| 
       3 
2 
     | 
    
         
             
            require 'rake/testtask'
         
     | 
| 
       4 
     | 
    
         
            -
            require ' 
     | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
       6 
     | 
    
         
            -
            require File.dirname(__FILE__) + '/lib/twurl'
         
     | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
       8 
     | 
    
         
            -
            library_root = File.dirname(__FILE__)
         
     | 
| 
      
 3 
     | 
    
         
            +
            require 'rubygems/package_task'
         
     | 
| 
       9 
4 
     | 
    
         | 
| 
       10 
5 
     | 
    
         
             
            task :default => :test
         
     | 
| 
       11 
6 
     | 
    
         | 
| 
         @@ -14,25 +9,10 @@ Rake::TestTask.new do |test| 
     | 
|
| 
       14 
9 
     | 
    
         
             
              test.verbose = true
         
     | 
| 
       15 
10 
     | 
    
         
             
            end
         
     | 
| 
       16 
11 
     | 
    
         | 
| 
       17 
     | 
    
         
            -
            namespace :test do
         
     | 
| 
       18 
     | 
    
         
            -
              desc "Analyze test coverage"
         
     | 
| 
       19 
     | 
    
         
            -
              task :coverage do
         
     | 
| 
       20 
     | 
    
         
            -
                system("rcov -x Library -x support --sort coverage #{File.join(library_root, 'test/*_test.rb')}")
         
     | 
| 
       21 
     | 
    
         
            -
                system("open #{File.join(library_root, 'coverage/index.html')}") if PLATFORM['darwin']
         
     | 
| 
       22 
     | 
    
         
            -
              end
         
     | 
| 
       23 
     | 
    
         
            -
             
     | 
| 
       24 
     | 
    
         
            -
              namespace :coverage do
         
     | 
| 
       25 
     | 
    
         
            -
                desc "Remove artifacts generated from coverage analysis"
         
     | 
| 
       26 
     | 
    
         
            -
                task :clobber do
         
     | 
| 
       27 
     | 
    
         
            -
                  rm_r 'coverage' rescue nil
         
     | 
| 
       28 
     | 
    
         
            -
                end
         
     | 
| 
       29 
     | 
    
         
            -
              end
         
     | 
| 
       30 
     | 
    
         
            -
            end
         
     | 
| 
       31 
     | 
    
         
            -
             
     | 
| 
       32 
12 
     | 
    
         
             
            namespace :dist do
         
     | 
| 
       33 
13 
     | 
    
         
             
              spec = Gem::Specification.load('twurl.gemspec')
         
     | 
| 
       34 
14 
     | 
    
         | 
| 
       35 
     | 
    
         
            -
               
     | 
| 
      
 15 
     | 
    
         
            +
              Gem::PackageTask.new(spec) do |pkg|
         
     | 
| 
       36 
16 
     | 
    
         
             
                pkg.need_tar_gz = true
         
     | 
| 
       37 
17 
     | 
    
         
             
                pkg.package_files.include('{lib,bin,test}/**/*')
         
     | 
| 
       38 
18 
     | 
    
         
             
                pkg.package_files.include('README')
         
     | 
    
        data/lib/twurl/version.rb
    CHANGED
    
    
| 
         @@ -1,6 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            require File.dirname(__FILE__) + '/test_helper'
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
            class Twurl::AccountInformationController::DispatchWithNoAuthorizedAccountsTest <  
     | 
| 
      
 3 
     | 
    
         
            +
            class Twurl::AccountInformationController::DispatchWithNoAuthorizedAccountsTest < MiniTest::Unit::TestCase
         
     | 
| 
       4 
4 
     | 
    
         
             
              attr_reader :options, :client, :controller
         
     | 
| 
       5 
5 
     | 
    
         
             
              def setup
         
     | 
| 
       6 
6 
     | 
    
         
             
                @options    = Twurl::Options.new
         
     | 
| 
         @@ -16,7 +16,7 @@ class Twurl::AccountInformationController::DispatchWithNoAuthorizedAccountsTest 
     | 
|
| 
       16 
16 
     | 
    
         
             
              end
         
     | 
| 
       17 
17 
     | 
    
         
             
            end
         
     | 
| 
       18 
18 
     | 
    
         | 
| 
       19 
     | 
    
         
            -
            class Twurl::AccountInformationController::DispatchWithOneAuthorizedAccountTest <  
     | 
| 
      
 19 
     | 
    
         
            +
            class Twurl::AccountInformationController::DispatchWithOneAuthorizedAccountTest < MiniTest::Unit::TestCase
         
     | 
| 
       20 
20 
     | 
    
         
             
              attr_reader :options, :client, :controller
         
     | 
| 
       21 
21 
     | 
    
         
             
              def setup
         
     | 
| 
       22 
22 
     | 
    
         
             
                @options    = Twurl::Options.test_exemplar
         
     | 
| 
         @@ -34,7 +34,7 @@ class Twurl::AccountInformationController::DispatchWithOneAuthorizedAccountTest 
     | 
|
| 
       34 
34 
     | 
    
         
             
              end
         
     | 
| 
       35 
35 
     | 
    
         
             
            end
         
     | 
| 
       36 
36 
     | 
    
         | 
| 
       37 
     | 
    
         
            -
            class Twurl::AccountInformationController::DispatchWithOneUsernameThatHasAuthorizedMultipleAccountsTest <  
     | 
| 
      
 37 
     | 
    
         
            +
            class Twurl::AccountInformationController::DispatchWithOneUsernameThatHasAuthorizedMultipleAccountsTest < MiniTest::Unit::TestCase
         
     | 
| 
       38 
38 
     | 
    
         
             
              attr_reader :default_client_options, :default_client, :other_client_options, :other_client, :controller
         
     | 
| 
       39 
39 
     | 
    
         
             
              def setup
         
     | 
| 
       40 
40 
     | 
    
         
             
                @default_client_options = Twurl::Options.test_exemplar
         
     | 
| 
         @@ -58,4 +58,4 @@ class Twurl::AccountInformationController::DispatchWithOneUsernameThatHasAuthori 
     | 
|
| 
       58 
58 
     | 
    
         | 
| 
       59 
59 
     | 
    
         
             
                controller.dispatch
         
     | 
| 
       60 
60 
     | 
    
         
             
              end
         
     | 
| 
       61 
     | 
    
         
            -
            end
         
     | 
| 
      
 61 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -1,6 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            require File.dirname(__FILE__) + '/test_helper'
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
            class Twurl::AliasesController::DispatchTest <  
     | 
| 
      
 3 
     | 
    
         
            +
            class Twurl::AliasesController::DispatchTest < MiniTest::Unit::TestCase
         
     | 
| 
       4 
4 
     | 
    
         
             
              attr_reader :options, :client
         
     | 
| 
       5 
5 
     | 
    
         
             
              def setup
         
     | 
| 
       6 
6 
     | 
    
         
             
                @options = Twurl::Options.test_exemplar
         
     | 
| 
         @@ -50,4 +50,4 @@ class Twurl::AliasesController::DispatchTest < Test::Unit::TestCase 
     | 
|
| 
       50 
50 
     | 
    
         
             
                controller = Twurl::AliasesController.new(client, options)
         
     | 
| 
       51 
51 
     | 
    
         
             
                controller.dispatch
         
     | 
| 
       52 
52 
     | 
    
         
             
              end
         
     | 
| 
       53 
     | 
    
         
            -
            end
         
     | 
| 
      
 53 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -1,6 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            require File.dirname(__FILE__) + '/test_helper'
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
            class Twurl::AuthorizationController::DispatchTest <  
     | 
| 
      
 3 
     | 
    
         
            +
            class Twurl::AuthorizationController::DispatchTest < MiniTest::Unit::TestCase
         
     | 
| 
       4 
4 
     | 
    
         
             
              attr_reader :options, :client, :controller
         
     | 
| 
       5 
5 
     | 
    
         
             
              def setup
         
     | 
| 
       6 
6 
     | 
    
         
             
                @options    = Twurl::Options.new
         
     | 
| 
         @@ -27,4 +27,4 @@ class Twurl::AuthorizationController::DispatchTest < Test::Unit::TestCase 
     | 
|
| 
       27 
27 
     | 
    
         
             
                end
         
     | 
| 
       28 
28 
     | 
    
         
             
              end
         
     | 
| 
       29 
29 
     | 
    
         
             
              include ErrorCases
         
     | 
| 
       30 
     | 
    
         
            -
            end
         
     | 
| 
      
 30 
     | 
    
         
            +
            end
         
     | 
    
        data/test/cli_options_test.rb
    CHANGED
    
    | 
         @@ -1,6 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            require File.dirname(__FILE__) + '/test_helper'
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
            class Twurl::Options::Test <  
     | 
| 
      
 3 
     | 
    
         
            +
            class Twurl::Options::Test < MiniTest::Unit::TestCase
         
     | 
| 
       4 
4 
     | 
    
         
             
              attr_reader :options
         
     | 
| 
       5 
5 
     | 
    
         
             
              def setup
         
     | 
| 
       6 
6 
     | 
    
         
             
                @options = Twurl::Options.new
         
     | 
| 
         @@ -20,4 +20,4 @@ class Twurl::Options::Test < Test::Unit::TestCase 
     | 
|
| 
       20 
20 
     | 
    
         
             
                options.protocol = 'https'
         
     | 
| 
       21 
21 
     | 
    
         
             
                assert options.ssl?
         
     | 
| 
       22 
22 
     | 
    
         
             
              end
         
     | 
| 
       23 
     | 
    
         
            -
            end
         
     | 
| 
      
 23 
     | 
    
         
            +
            end
         
     | 
    
        data/test/cli_test.rb
    CHANGED
    
    | 
         @@ -1,6 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            require File.dirname(__FILE__) + '/test_helper'
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
            class Twurl::CLI::OptionParsingTest <  
     | 
| 
      
 3 
     | 
    
         
            +
            class Twurl::CLI::OptionParsingTest < MiniTest::Unit::TestCase
         
     | 
| 
       4 
4 
     | 
    
         
             
              module CommandParsingTests
         
     | 
| 
       5 
5 
     | 
    
         
             
                def test_no_command_specified_falls_to_default_command
         
     | 
| 
       6 
6 
     | 
    
         
             
                  options = Twurl::CLI.parse_options(['/1/url/does/not/matter.xml'])
         
     | 
| 
         @@ -133,7 +133,7 @@ class Twurl::CLI::OptionParsingTest < Test::Unit::TestCase 
     | 
|
| 
       133 
133 
     | 
    
         | 
| 
       134 
134 
     | 
    
         
             
                def test_setting_host_updates_to_requested_value
         
     | 
| 
       135 
135 
     | 
    
         
             
                  custom_host = 'localhost:3000'
         
     | 
| 
       136 
     | 
    
         
            -
                   
     | 
| 
      
 136 
     | 
    
         
            +
                  assert Twurl::Options::DEFAULT_HOST != custom_host
         
     | 
| 
       137 
137 
     | 
    
         | 
| 
       138 
138 
     | 
    
         
             
                  [['-H', custom_host], ['--host', custom_host]].each do |option_combination|
         
     | 
| 
       139 
139 
     | 
    
         
             
                    options = Twurl::CLI.parse_options(option_combination)
         
     | 
| 
         @@ -1,6 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            require File.dirname(__FILE__) + '/test_helper'
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
            class Twurl::ConfigurationController::DispatchTest <  
     | 
| 
      
 3 
     | 
    
         
            +
            class Twurl::ConfigurationController::DispatchTest < MiniTest::Unit::TestCase
         
     | 
| 
       4 
4 
     | 
    
         
             
              def test_error_message_is_displayed_if_setting_is_unrecognized
         
     | 
| 
       5 
5 
     | 
    
         
             
                options = Twurl::Options.test_exemplar
         
     | 
| 
       6 
6 
     | 
    
         
             
                client  = Twurl::OAuthClient.test_exemplar
         
     | 
| 
         @@ -15,7 +15,7 @@ class Twurl::ConfigurationController::DispatchTest < Test::Unit::TestCase 
     | 
|
| 
       15 
15 
     | 
    
         
             
              end
         
     | 
| 
       16 
16 
     | 
    
         
             
            end
         
     | 
| 
       17 
17 
     | 
    
         | 
| 
       18 
     | 
    
         
            -
            class Twurl::ConfigurationController::DispatchDefaultSettingTest <  
     | 
| 
      
 18 
     | 
    
         
            +
            class Twurl::ConfigurationController::DispatchDefaultSettingTest < MiniTest::Unit::TestCase
         
     | 
| 
       19 
19 
     | 
    
         
             
              def test_setting_default_profile_just_by_username
         
     | 
| 
       20 
20 
     | 
    
         
             
                options = Twurl::Options.test_exemplar
         
     | 
| 
       21 
21 
     | 
    
         
             
                client  = Twurl::OAuthClient.test_exemplar
         
     | 
| 
         @@ -41,4 +41,4 @@ class Twurl::ConfigurationController::DispatchDefaultSettingTest < Test::Unit::T 
     | 
|
| 
       41 
41 
     | 
    
         
             
                controller = Twurl::ConfigurationController.new(client, options)
         
     | 
| 
       42 
42 
     | 
    
         
             
                controller.dispatch
         
     | 
| 
       43 
43 
     | 
    
         
             
              end
         
     | 
| 
       44 
     | 
    
         
            -
            end
         
     | 
| 
      
 44 
     | 
    
         
            +
            end
         
     | 
    
        data/test/oauth_client_test.rb
    CHANGED
    
    | 
         @@ -1,6 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            require File.dirname(__FILE__) + '/test_helper'
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
            class Twurl::OAuthClient::AbstractOAuthClientTest <  
     | 
| 
      
 3 
     | 
    
         
            +
            class Twurl::OAuthClient::AbstractOAuthClientTest < MiniTest::Unit::TestCase
         
     | 
| 
       4 
4 
     | 
    
         
             
              attr_reader :client, :options
         
     | 
| 
       5 
5 
     | 
    
         
             
              def setup
         
     | 
| 
       6 
6 
     | 
    
         
             
                Twurl::OAuthClient.instance_variable_set(:@rcfile, nil)
         
     | 
    
        data/test/rcfile_test.rb
    CHANGED
    
    | 
         @@ -1,12 +1,12 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            require File.dirname(__FILE__) + '/test_helper'
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
            class Twurl::RCFile::PathConstructionTest <  
     | 
| 
      
 3 
     | 
    
         
            +
            class Twurl::RCFile::PathConstructionTest < MiniTest::Unit::TestCase
         
     | 
| 
       4 
4 
     | 
    
         
             
              def test_file_path_appends_file_to_directory
         
     | 
| 
       5 
5 
     | 
    
         
             
                assert_equal File.join(Twurl::RCFile.directory, Twurl::RCFile::FILE), Twurl::RCFile.file_path
         
     | 
| 
       6 
6 
     | 
    
         
             
              end
         
     | 
| 
       7 
7 
     | 
    
         
             
            end
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
       9 
     | 
    
         
            -
            class Twurl::RCFile::LoadingTest <  
     | 
| 
      
 9 
     | 
    
         
            +
            class Twurl::RCFile::LoadingTest < MiniTest::Unit::TestCase
         
     | 
| 
       10 
10 
     | 
    
         
             
              def test_load_parses_and_loads_file_if_it_exists
         
     | 
| 
       11 
11 
     | 
    
         
             
                mock(YAML).load_file(Twurl::RCFile.file_path).times(1)
         
     | 
| 
       12 
12 
     | 
    
         
             
                mock(Twurl::RCFile).default_rcfile_structure.never
         
     | 
| 
         @@ -22,7 +22,7 @@ class Twurl::RCFile::LoadingTest < Test::Unit::TestCase 
     | 
|
| 
       22 
22 
     | 
    
         
             
              end
         
     | 
| 
       23 
23 
     | 
    
         
             
            end
         
     | 
| 
       24 
24 
     | 
    
         | 
| 
       25 
     | 
    
         
            -
            class Twurl::RCFile::InitializationTest <  
     | 
| 
      
 25 
     | 
    
         
            +
            class Twurl::RCFile::InitializationTest < MiniTest::Unit::TestCase
         
     | 
| 
       26 
26 
     | 
    
         
             
              def test_initializing_when_the_file_does_not_exist_loads_default_rcfile_structure
         
     | 
| 
       27 
27 
     | 
    
         
             
                mock(YAML).load_file(Twurl::RCFile.file_path) { raise Errno::ENOENT }.times(1)
         
     | 
| 
       28 
28 
     | 
    
         | 
| 
         @@ -40,7 +40,7 @@ class Twurl::RCFile::InitializationTest < Test::Unit::TestCase 
     | 
|
| 
       40 
40 
     | 
    
         
             
              end
         
     | 
| 
       41 
41 
     | 
    
         
             
            end
         
     | 
| 
       42 
42 
     | 
    
         | 
| 
       43 
     | 
    
         
            -
            class Twurl::RCFile::DefaultProfileFromDefaultRCFileTest <  
     | 
| 
      
 43 
     | 
    
         
            +
            class Twurl::RCFile::DefaultProfileFromDefaultRCFileTest < MiniTest::Unit::TestCase
         
     | 
| 
       44 
44 
     | 
    
         
             
              attr_reader :rcfile
         
     | 
| 
       45 
45 
     | 
    
         
             
              def setup
         
     | 
| 
       46 
46 
     | 
    
         
             
                mock(YAML).load_file(Twurl::RCFile.file_path) { raise Errno::ENOENT }.times(1)
         
     | 
| 
         @@ -66,7 +66,7 @@ class Twurl::RCFile::DefaultProfileFromDefaultRCFileTest < Test::Unit::TestCase 
     | 
|
| 
       66 
66 
     | 
    
         
             
              end
         
     | 
| 
       67 
67 
     | 
    
         
             
            end
         
     | 
| 
       68 
68 
     | 
    
         | 
| 
       69 
     | 
    
         
            -
            class Twurl::RCFile::UpdatingTest <  
     | 
| 
      
 69 
     | 
    
         
            +
            class Twurl::RCFile::UpdatingTest < MiniTest::Unit::TestCase
         
     | 
| 
       70 
70 
     | 
    
         
             
              attr_reader :rcfile
         
     | 
| 
       71 
71 
     | 
    
         
             
              def setup
         
     | 
| 
       72 
72 
     | 
    
         
             
                mock(YAML).load_file(Twurl::RCFile.file_path) { raise Errno::ENOENT }.times(1)
         
     | 
| 
         @@ -108,7 +108,7 @@ class Twurl::RCFile::UpdatingTest < Test::Unit::TestCase 
     | 
|
| 
       108 
108 
     | 
    
         
             
              end
         
     | 
| 
       109 
109 
     | 
    
         
             
            end
         
     | 
| 
       110 
110 
     | 
    
         | 
| 
       111 
     | 
    
         
            -
            class Twurl::RCFile::SavingTest <  
     | 
| 
      
 111 
     | 
    
         
            +
            class Twurl::RCFile::SavingTest < MiniTest::Unit::TestCase
         
     | 
| 
       112 
112 
     | 
    
         
             
              attr_reader :rcfile
         
     | 
| 
       113 
113 
     | 
    
         
             
              def setup
         
     | 
| 
       114 
114 
     | 
    
         
             
                delete_rcfile
         
     | 
| 
         @@ -138,4 +138,4 @@ class Twurl::RCFile::SavingTest < Test::Unit::TestCase 
     | 
|
| 
       138 
138 
     | 
    
         
             
                rescue Errno::ENOENT
         
     | 
| 
       139 
139 
     | 
    
         
             
                  # Do nothing
         
     | 
| 
       140 
140 
     | 
    
         
             
                end
         
     | 
| 
       141 
     | 
    
         
            -
            end
         
     | 
| 
      
 141 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -1,6 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            require File.dirname(__FILE__) + '/test_helper'
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
            class Twurl::RequestController::AbstractTestCase <  
     | 
| 
      
 3 
     | 
    
         
            +
            class Twurl::RequestController::AbstractTestCase < MiniTest::Unit::TestCase
         
     | 
| 
       4 
4 
     | 
    
         
             
              attr_reader :options, :client, :controller
         
     | 
| 
       5 
5 
     | 
    
         
             
              def setup
         
     | 
| 
       6 
6 
     | 
    
         
             
                Twurl::CLI.output = StringIO.new
         
     | 
    
        data/test/test_helper.rb
    CHANGED
    
    | 
         @@ -1,9 +1,12 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            $:.unshift File.dirname(__FILE__) + '/../lib'
         
     | 
| 
      
 2 
     | 
    
         
            +
            require 'rubygems'
         
     | 
| 
      
 3 
     | 
    
         
            +
            require 'simplecov'
         
     | 
| 
      
 4 
     | 
    
         
            +
            SimpleCov.start
         
     | 
| 
       2 
5 
     | 
    
         
             
            require 'twurl'
         
     | 
| 
       3 
     | 
    
         
            -
            require ' 
     | 
| 
      
 6 
     | 
    
         
            +
            require 'minitest/autorun'
         
     | 
| 
       4 
7 
     | 
    
         
             
            require 'rr'
         
     | 
| 
       5 
8 
     | 
    
         | 
| 
       6 
     | 
    
         
            -
            class  
     | 
| 
      
 9 
     | 
    
         
            +
            class MiniTest::Unit::TestCase
         
     | 
| 
       7 
10 
     | 
    
         
             
              include RR::Adapters::TestUnit
         
     | 
| 
       8 
11 
     | 
    
         
             
            end
         
     | 
| 
       9 
12 
     | 
    
         | 
    
        data/twurl.gemspec
    CHANGED
    
    | 
         @@ -1,25 +1,25 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            #  
     | 
| 
       2 
     | 
    
         
            -
            require File.expand_path( 
     | 
| 
      
 1 
     | 
    
         
            +
            # encoding: utf-8
         
     | 
| 
      
 2 
     | 
    
         
            +
            require File.expand_path('../lib/twurl/version', __FILE__)
         
     | 
| 
       3 
3 
     | 
    
         | 
| 
       4 
4 
     | 
    
         
             
            Gem::Specification.new do |s|
         
     | 
| 
       5 
     | 
    
         
            -
              s. 
     | 
| 
       6 
     | 
    
         
            -
              s. 
     | 
| 
      
 5 
     | 
    
         
            +
              s.add_dependency 'oauth', '~> 0.4'
         
     | 
| 
      
 6 
     | 
    
         
            +
              s.add_development_dependency 'rake', '~> 0.8'
         
     | 
| 
      
 7 
     | 
    
         
            +
              s.add_development_dependency 'rr', '~> 1.0'
         
     | 
| 
      
 8 
     | 
    
         
            +
              s.add_development_dependency 'simplecov', '~> 0.4'
         
     | 
| 
      
 9 
     | 
    
         
            +
              s.add_development_dependency 'minitest', '~> 2.5'
         
     | 
| 
       7 
10 
     | 
    
         
             
              s.authors = ["Marcel Molina", "Raffi Krikorian"]
         
     | 
| 
       8 
     | 
    
         
            -
              s.default_executable = "twurl"
         
     | 
| 
       9 
11 
     | 
    
         
             
              s.description = %q{Curl for the Twitter API}
         
     | 
| 
       10 
     | 
    
         
            -
              s.email = [ 
     | 
| 
      
 12 
     | 
    
         
            +
              s.email = ['marcel@twitter.com', 'raffi@twitter.com']
         
     | 
| 
       11 
13 
     | 
    
         
             
              s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
         
     | 
| 
       12 
     | 
    
         
            -
              s.extra_rdoc_files = %w( 
     | 
| 
      
 14 
     | 
    
         
            +
              s.extra_rdoc_files = %w(CHANGELOG COPYING INSTALL README)
         
     | 
| 
       13 
15 
     | 
    
         
             
              s.files = `git ls-files`.split("\n")
         
     | 
| 
       14 
     | 
    
         
            -
              s.homepage =  
     | 
| 
       15 
     | 
    
         
            -
              s. 
     | 
| 
       16 
     | 
    
         
            -
              s. 
     | 
| 
       17 
     | 
    
         
            -
              s. 
     | 
| 
       18 
     | 
    
         
            -
              s.required_rubygems_version = Gem::Requirement.new( 
     | 
| 
      
 16 
     | 
    
         
            +
              s.homepage = 'http://github.com/marcel/twurl'
         
     | 
| 
      
 17 
     | 
    
         
            +
              s.name = 'twurl'
         
     | 
| 
      
 18 
     | 
    
         
            +
              s.rdoc_options = ['--title', 'twurl -- OAuth-enabled curl for the Twitter API', '--main', 'README', '--line-numbers', '--inline-source']
         
     | 
| 
      
 19 
     | 
    
         
            +
              s.require_paths = ['lib']
         
     | 
| 
      
 20 
     | 
    
         
            +
              s.required_rubygems_version = Gem::Requirement.new('>= 1.3.6') if s.respond_to? :required_rubygems_version=
         
     | 
| 
      
 21 
     | 
    
         
            +
              s.rubyforge_project = 'twurl'
         
     | 
| 
       19 
22 
     | 
    
         
             
              s.summary = s.description
         
     | 
| 
       20 
23 
     | 
    
         
             
              s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
         
     | 
| 
       21 
     | 
    
         
            -
              s. 
     | 
| 
       22 
     | 
    
         
            -
              s.add_development_dependency("rr", ["~> 1.0"])
         
     | 
| 
       23 
     | 
    
         
            -
              s.add_development_dependency("test-unit", ["~> 2.1"])
         
     | 
| 
       24 
     | 
    
         
            -
              s.add_runtime_dependency("oauth", ["~> 0.4"])
         
     | 
| 
      
 24 
     | 
    
         
            +
              s.version = Twurl::Version
         
     | 
| 
       25 
25 
     | 
    
         
             
            end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,13 +1,13 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification 
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: twurl
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version 
         
     | 
| 
       4 
     | 
    
         
            -
              hash:  
     | 
| 
       5 
     | 
    
         
            -
              prerelease:  
     | 
| 
      
 4 
     | 
    
         
            +
              hash: 15
         
     | 
| 
      
 5 
     | 
    
         
            +
              prerelease: 
         
     | 
| 
       6 
6 
     | 
    
         
             
              segments: 
         
     | 
| 
       7 
7 
     | 
    
         
             
              - 0
         
     | 
| 
       8 
8 
     | 
    
         
             
              - 6
         
     | 
| 
       9 
     | 
    
         
            -
              -  
     | 
| 
       10 
     | 
    
         
            -
              version: 0.6. 
     | 
| 
      
 9 
     | 
    
         
            +
              - 4
         
     | 
| 
      
 10 
     | 
    
         
            +
              version: 0.6.4
         
     | 
| 
       11 
11 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       12 
12 
     | 
    
         
             
            authors: 
         
     | 
| 
       13 
13 
     | 
    
         
             
            - Marcel Molina
         
     | 
| 
         @@ -16,56 +16,56 @@ autorequire: 
     | 
|
| 
       16 
16 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       17 
17 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       18 
18 
     | 
    
         | 
| 
       19 
     | 
    
         
            -
            date: 2011- 
     | 
| 
       20 
     | 
    
         
            -
            default_executable:  
     | 
| 
      
 19 
     | 
    
         
            +
            date: 2011-08-31 00:00:00 -07:00
         
     | 
| 
      
 20 
     | 
    
         
            +
            default_executable: 
         
     | 
| 
       21 
21 
     | 
    
         
             
            dependencies: 
         
     | 
| 
       22 
22 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     | 
| 
       23 
     | 
    
         
            -
              name:  
     | 
| 
      
 23 
     | 
    
         
            +
              name: oauth
         
     | 
| 
       24 
24 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       25 
25 
     | 
    
         
             
              requirement: &id001 !ruby/object:Gem::Requirement 
         
     | 
| 
       26 
26 
     | 
    
         
             
                none: false
         
     | 
| 
       27 
27 
     | 
    
         
             
                requirements: 
         
     | 
| 
       28 
28 
     | 
    
         
             
                - - ~>
         
     | 
| 
       29 
29 
     | 
    
         
             
                  - !ruby/object:Gem::Version 
         
     | 
| 
       30 
     | 
    
         
            -
                    hash:  
     | 
| 
      
 30 
     | 
    
         
            +
                    hash: 3
         
     | 
| 
       31 
31 
     | 
    
         
             
                    segments: 
         
     | 
| 
       32 
32 
     | 
    
         
             
                    - 0
         
     | 
| 
       33 
     | 
    
         
            -
                    -  
     | 
| 
       34 
     | 
    
         
            -
                    version: "0. 
     | 
| 
       35 
     | 
    
         
            -
              type: : 
     | 
| 
      
 33 
     | 
    
         
            +
                    - 4
         
     | 
| 
      
 34 
     | 
    
         
            +
                    version: "0.4"
         
     | 
| 
      
 35 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
       36 
36 
     | 
    
         
             
              version_requirements: *id001
         
     | 
| 
       37 
37 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     | 
| 
       38 
     | 
    
         
            -
              name:  
     | 
| 
      
 38 
     | 
    
         
            +
              name: rake
         
     | 
| 
       39 
39 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       40 
40 
     | 
    
         
             
              requirement: &id002 !ruby/object:Gem::Requirement 
         
     | 
| 
       41 
41 
     | 
    
         
             
                none: false
         
     | 
| 
       42 
42 
     | 
    
         
             
                requirements: 
         
     | 
| 
       43 
43 
     | 
    
         
             
                - - ~>
         
     | 
| 
       44 
44 
     | 
    
         
             
                  - !ruby/object:Gem::Version 
         
     | 
| 
       45 
     | 
    
         
            -
                    hash:  
     | 
| 
      
 45 
     | 
    
         
            +
                    hash: 27
         
     | 
| 
       46 
46 
     | 
    
         
             
                    segments: 
         
     | 
| 
       47 
     | 
    
         
            -
                    - 1
         
     | 
| 
       48 
47 
     | 
    
         
             
                    - 0
         
     | 
| 
       49 
     | 
    
         
            -
                     
     | 
| 
      
 48 
     | 
    
         
            +
                    - 8
         
     | 
| 
      
 49 
     | 
    
         
            +
                    version: "0.8"
         
     | 
| 
       50 
50 
     | 
    
         
             
              type: :development
         
     | 
| 
       51 
51 
     | 
    
         
             
              version_requirements: *id002
         
     | 
| 
       52 
52 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     | 
| 
       53 
     | 
    
         
            -
              name:  
     | 
| 
      
 53 
     | 
    
         
            +
              name: rr
         
     | 
| 
       54 
54 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       55 
55 
     | 
    
         
             
              requirement: &id003 !ruby/object:Gem::Requirement 
         
     | 
| 
       56 
56 
     | 
    
         
             
                none: false
         
     | 
| 
       57 
57 
     | 
    
         
             
                requirements: 
         
     | 
| 
       58 
58 
     | 
    
         
             
                - - ~>
         
     | 
| 
       59 
59 
     | 
    
         
             
                  - !ruby/object:Gem::Version 
         
     | 
| 
       60 
     | 
    
         
            -
                    hash:  
     | 
| 
      
 60 
     | 
    
         
            +
                    hash: 15
         
     | 
| 
       61 
61 
     | 
    
         
             
                    segments: 
         
     | 
| 
       62 
     | 
    
         
            -
                    - 2
         
     | 
| 
       63 
62 
     | 
    
         
             
                    - 1
         
     | 
| 
       64 
     | 
    
         
            -
                     
     | 
| 
      
 63 
     | 
    
         
            +
                    - 0
         
     | 
| 
      
 64 
     | 
    
         
            +
                    version: "1.0"
         
     | 
| 
       65 
65 
     | 
    
         
             
              type: :development
         
     | 
| 
       66 
66 
     | 
    
         
             
              version_requirements: *id003
         
     | 
| 
       67 
67 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     | 
| 
       68 
     | 
    
         
            -
              name:  
     | 
| 
      
 68 
     | 
    
         
            +
              name: simplecov
         
     | 
| 
       69 
69 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       70 
70 
     | 
    
         
             
              requirement: &id004 !ruby/object:Gem::Requirement 
         
     | 
| 
       71 
71 
     | 
    
         
             
                none: false
         
     | 
| 
         @@ -77,8 +77,23 @@ dependencies: 
     | 
|
| 
       77 
77 
     | 
    
         
             
                    - 0
         
     | 
| 
       78 
78 
     | 
    
         
             
                    - 4
         
     | 
| 
       79 
79 
     | 
    
         
             
                    version: "0.4"
         
     | 
| 
       80 
     | 
    
         
            -
              type: : 
     | 
| 
      
 80 
     | 
    
         
            +
              type: :development
         
     | 
| 
       81 
81 
     | 
    
         
             
              version_requirements: *id004
         
     | 
| 
      
 82 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency 
         
     | 
| 
      
 83 
     | 
    
         
            +
              name: minitest
         
     | 
| 
      
 84 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 85 
     | 
    
         
            +
              requirement: &id005 !ruby/object:Gem::Requirement 
         
     | 
| 
      
 86 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 87 
     | 
    
         
            +
                requirements: 
         
     | 
| 
      
 88 
     | 
    
         
            +
                - - ~>
         
     | 
| 
      
 89 
     | 
    
         
            +
                  - !ruby/object:Gem::Version 
         
     | 
| 
      
 90 
     | 
    
         
            +
                    hash: 9
         
     | 
| 
      
 91 
     | 
    
         
            +
                    segments: 
         
     | 
| 
      
 92 
     | 
    
         
            +
                    - 2
         
     | 
| 
      
 93 
     | 
    
         
            +
                    - 5
         
     | 
| 
      
 94 
     | 
    
         
            +
                    version: "2.5"
         
     | 
| 
      
 95 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 96 
     | 
    
         
            +
              version_requirements: *id005
         
     | 
| 
       82 
97 
     | 
    
         
             
            description: Curl for the Twitter API
         
     | 
| 
       83 
98 
     | 
    
         
             
            email: 
         
     | 
| 
       84 
99 
     | 
    
         
             
            - marcel@twitter.com
         
     | 
| 
         @@ -88,15 +103,17 @@ executables: 
     | 
|
| 
       88 
103 
     | 
    
         
             
            extensions: []
         
     | 
| 
       89 
104 
     | 
    
         | 
| 
       90 
105 
     | 
    
         
             
            extra_rdoc_files: 
         
     | 
| 
       91 
     | 
    
         
            -
            -  
     | 
| 
      
 106 
     | 
    
         
            +
            - CHANGELOG
         
     | 
| 
       92 
107 
     | 
    
         
             
            - COPYING
         
     | 
| 
       93 
108 
     | 
    
         
             
            - INSTALL
         
     | 
| 
      
 109 
     | 
    
         
            +
            - README
         
     | 
| 
       94 
110 
     | 
    
         
             
            files: 
         
     | 
| 
      
 111 
     | 
    
         
            +
            - .gemtest
         
     | 
| 
       95 
112 
     | 
    
         
             
            - .gitignore
         
     | 
| 
      
 113 
     | 
    
         
            +
            - .travis.yml
         
     | 
| 
       96 
114 
     | 
    
         
             
            - CHANGELOG
         
     | 
| 
       97 
115 
     | 
    
         
             
            - COPYING
         
     | 
| 
       98 
116 
     | 
    
         
             
            - Gemfile
         
     | 
| 
       99 
     | 
    
         
            -
            - Gemfile.lock
         
     | 
| 
       100 
117 
     | 
    
         
             
            - INSTALL
         
     | 
| 
       101 
118 
     | 
    
         
             
            - README
         
     | 
| 
       102 
119 
     | 
    
         
             
            - Rakefile
         
     | 
| 
         @@ -160,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       160 
177 
     | 
    
         
             
            requirements: []
         
     | 
| 
       161 
178 
     | 
    
         | 
| 
       162 
179 
     | 
    
         
             
            rubyforge_project: twurl
         
     | 
| 
       163 
     | 
    
         
            -
            rubygems_version: 1. 
     | 
| 
      
 180 
     | 
    
         
            +
            rubygems_version: 1.5.0
         
     | 
| 
       164 
181 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       165 
182 
     | 
    
         
             
            specification_version: 3
         
     | 
| 
       166 
183 
     | 
    
         
             
            summary: Curl for the Twitter API
         
     | 
    
        data/Gemfile.lock
    DELETED
    
    | 
         @@ -1,23 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            PATH
         
     | 
| 
       2 
     | 
    
         
            -
              remote: .
         
     | 
| 
       3 
     | 
    
         
            -
              specs:
         
     | 
| 
       4 
     | 
    
         
            -
                twurl (0.6.1)
         
     | 
| 
       5 
     | 
    
         
            -
                  oauth (~> 0.4)
         
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
       7 
     | 
    
         
            -
            GEM
         
     | 
| 
       8 
     | 
    
         
            -
              remote: http://rubygems.org/
         
     | 
| 
       9 
     | 
    
         
            -
              specs:
         
     | 
| 
       10 
     | 
    
         
            -
                oauth (0.4.3)
         
     | 
| 
       11 
     | 
    
         
            -
                rake (0.8.7)
         
     | 
| 
       12 
     | 
    
         
            -
                rr (1.0.0)
         
     | 
| 
       13 
     | 
    
         
            -
                test-unit (2.1.1)
         
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
            PLATFORMS
         
     | 
| 
       16 
     | 
    
         
            -
              ruby
         
     | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
       18 
     | 
    
         
            -
            DEPENDENCIES
         
     | 
| 
       19 
     | 
    
         
            -
              oauth (~> 0.4)
         
     | 
| 
       20 
     | 
    
         
            -
              rake (~> 0.8)
         
     | 
| 
       21 
     | 
    
         
            -
              rr (~> 1.0)
         
     | 
| 
       22 
     | 
    
         
            -
              test-unit (~> 2.1)
         
     | 
| 
       23 
     | 
    
         
            -
              twurl!
         
     |