netrc 0.10.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: abc7dade0f83a2542764f27110f02c194a8f21eb
4
- data.tar.gz: a0a9842ed83ed5aa376e633853444da708877972
3
+ metadata.gz: ef07a379c563cde99f932099f9e6a2b633bf48fe
4
+ data.tar.gz: 88f33f2ad37e3e5ed381ff5e00d31309246b47e7
5
5
  SHA512:
6
- metadata.gz: 5ec0bc4855e159e33090e53bc212cfa164b58a88d34a967b247b347c5f0b9a3d7d21ddf97883f6d71fd63d08cc5e5587800557a0567ffdb353a048c1f5bc02bf
7
- data.tar.gz: f1d5642f7afa850e782b0b822a5e25d1828abc901b108a5a74bd884642cdee68c068676e59c40064ea465c6504a30c48078991a53ec8c012528415aa7a56659e
6
+ metadata.gz: 596fac21bb4ce7f1d4f4947166e66d04b7235a48629816bb8a6faa3936920e7f1f7db25787082aef240ba651a4460f404f061493c06f8179cc1d1f47c1cae2d3
7
+ data.tar.gz: 6373156d03389c654a58394ef3ec05fef816a75cc34fcfd758f7a2ab548f60daa8cc873ae935da5065dcf102311139772b321ccc6f045af79c3925f482911515
@@ -1,3 +1,8 @@
1
+ 0.10.1 12/14/14
2
+ ===============
3
+
4
+ fix bug for `Dir.home` when can't find home
5
+
1
6
  0.10.0 12/10/14
2
7
  ===============
3
8
 
@@ -1,7 +1,7 @@
1
1
  require 'rbconfig'
2
2
 
3
3
  class Netrc
4
- VERSION = "0.10.0"
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
@@ -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
- assert_raise_with_message ArgumentError, "couldn't find HOME environment -- expanding `~'" do
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.0
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-10 00:00:00.000000000 Z
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: []