netrc 0.10.0 → 0.10.1
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.
- checksums.yaml +4 -4
- data/changelog.txt +5 -0
- data/lib/netrc.rb +3 -1
- data/test/test_netrc.rb +1 -3
- metadata +4 -3
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: ef07a379c563cde99f932099f9e6a2b633bf48fe
         | 
| 4 | 
            +
              data.tar.gz: 88f33f2ad37e3e5ed381ff5e00d31309246b47e7
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 596fac21bb4ce7f1d4f4947166e66d04b7235a48629816bb8a6faa3936920e7f1f7db25787082aef240ba651a4460f404f061493c06f8179cc1d1f47c1cae2d3
         | 
| 7 | 
            +
              data.tar.gz: 6373156d03389c654a58394ef3ec05fef816a75cc34fcfd758f7a2ab548f60daa8cc873ae935da5065dcf102311139772b321ccc6f045af79c3925f482911515
         | 
    
        data/changelog.txt
    CHANGED
    
    
    
        data/lib/netrc.rb
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            require 'rbconfig'
         | 
| 2 2 |  | 
| 3 3 | 
             
            class Netrc
         | 
| 4 | 
            -
              VERSION = "0.10. | 
| 4 | 
            +
              VERSION = "0.10.1"
         | 
| 5 5 |  | 
| 6 6 | 
             
              # see http://stackoverflow.com/questions/4871309/what-is-the-correct-way-to-detect-if-ruby-is-running-on-windows
         | 
| 7 7 | 
             
              WINDOWS = RbConfig::CONFIG["host_os"] =~ /mswin|mingw|cygwin/
         | 
| @@ -23,6 +23,8 @@ class Netrc | |
| 23 23 | 
             
                  # Fix "Permission denied" error in worker processes when $HOME is "/root".
         | 
| 24 24 | 
             
                  (ENV['HOME'] && File.exist?(ENV['HOME']) && File.stat(ENV['HOME']).readable?) ? ENV['HOME'] : './'
         | 
| 25 25 | 
             
                end
         | 
| 26 | 
            +
              rescue ArgumentError
         | 
| 27 | 
            +
                return Dir.pwd
         | 
| 26 28 | 
             
              end
         | 
| 27 29 |  | 
| 28 30 | 
             
              def self.netrc_filename
         | 
    
        data/test/test_netrc.rb
    CHANGED
    
    | @@ -196,9 +196,7 @@ class TestNetrc < Test::Unit::TestCase | |
| 196 196 | 
             
              def test_missing_environment
         | 
| 197 197 | 
             
                nil_home = nil
         | 
| 198 198 | 
             
                ENV["HOME"], nil_home = nil_home, ENV["HOME"]
         | 
| 199 | 
            -
                 | 
| 200 | 
            -
                  Netrc.read
         | 
| 201 | 
            -
                end
         | 
| 199 | 
            +
                assert_equal File.join(Dir.pwd, '.netrc'), Netrc.default_path
         | 
| 202 200 | 
             
              ensure
         | 
| 203 201 | 
             
                ENV["HOME"], nil_home = nil_home, ENV["HOME"]
         | 
| 204 202 | 
             
              end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: netrc
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.10. | 
| 4 | 
            +
              version: 0.10.1
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Keith Rarick
         | 
| @@ -9,7 +9,7 @@ authors: | |
| 9 9 | 
             
            autorequire: 
         | 
| 10 10 | 
             
            bindir: bin
         | 
| 11 11 | 
             
            cert_chain: []
         | 
| 12 | 
            -
            date: 2014-12- | 
| 12 | 
            +
            date: 2014-12-14 00:00:00.000000000 Z
         | 
| 13 13 | 
             
            dependencies:
         | 
| 14 14 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 15 15 | 
             
              name: turn
         | 
| @@ -49,7 +49,8 @@ files: | |
| 49 49 | 
             
            - test/test_netrc.rb
         | 
| 50 50 | 
             
            - test/test_parse.rb
         | 
| 51 51 | 
             
            homepage: https://github.com/geemus/netrc
         | 
| 52 | 
            -
            licenses: | 
| 52 | 
            +
            licenses:
         | 
| 53 | 
            +
            - MIT
         | 
| 53 54 | 
             
            metadata: {}
         | 
| 54 55 | 
             
            post_install_message: 
         | 
| 55 56 | 
             
            rdoc_options: []
         |