netrc 0.8.0 → 0.9.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.
- checksums.yaml +5 -13
- data/Readme.md +2 -2
- data/changelog.txt +5 -0
- data/lib/netrc.rb +6 -3
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
|
|
5
|
-
data.tar.gz: !binary |-
|
|
6
|
-
NTBhOWYyMmUwZDk3Y2Q3NDkzYmQ2MTczYjhhZmM4NWZiODYxM2E0OA==
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 58ff22fb27f91e9e7a1d438fd790fa03533fd8f9
|
|
4
|
+
data.tar.gz: 35b9f2b6f2447ca9a4f39958d165011595932239
|
|
7
5
|
SHA512:
|
|
8
|
-
metadata.gz:
|
|
9
|
-
|
|
10
|
-
YmQwNmJjNjYxZjhlODgyOTJmMTVlMDYwMTI1NjExNTQ0MzkzMjExNjU4Yjli
|
|
11
|
-
ZmVlZmYxOTkxZmIzMjhjZDI4NzZiOTJjNzdhN2I2MjE4NTlmZTI=
|
|
12
|
-
data.tar.gz: !binary |-
|
|
13
|
-
NTU1ODU3NTllYTg1NTQ4OWY5N2NlNWRjYWIzMzBlY2QyMzU3NzM3YjcwNDhk
|
|
14
|
-
YTkwNGJiOWIyNWZkMzYzNzM3NWIyOGVjMzU1YmZmNjIwNGY4NDRmMTdjYTc0
|
|
15
|
-
ZTExYjFmNDMxNjQyODE1NWQ2MDA3ZjliZDYxMzEyNzk3MmI2M2U=
|
|
6
|
+
metadata.gz: 178e9c25d3d775d76a6f987bdb998cd33bdfa7f164ca035fe706d32212554e3b5d36f46105c9159a48bcbcdfd4662230e43fa9e10dbeae5dfb00637cf4f138ee
|
|
7
|
+
data.tar.gz: 13c0243fd3427f91e47b5aa4ddbe293aa058b843c00b50c35515814d1eb9f651ebfd81d69598e16c6bfe9aa69c57d422198bdcb074b2c28770f52e23c64ef161
|
data/Readme.md
CHANGED
|
@@ -13,8 +13,8 @@ If the file doesn't exist, Netrc.read will return an empty object. If
|
|
|
13
13
|
the filename ends in ".gpg", it will be decrypted using
|
|
14
14
|
[GPG](http://www.gnupg.org/).
|
|
15
15
|
|
|
16
|
-
Read the user's default netrc file
|
|
17
|
-
`%HOME%\_netrc`
|
|
16
|
+
Read the user's default netrc file. On Unix: `$HOME/.netrc`.
|
|
17
|
+
On Windows: `%HOME%\_netrc`, `%HOMEDRIVE%%HOMEPATH%\_netrc`, or `%USERPROFILE%\_netrc` (whichever is set first).
|
|
18
18
|
|
|
19
19
|
n = Netrc.read
|
|
20
20
|
|
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.
|
|
4
|
+
VERSION = "0.9.0"
|
|
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/
|
|
@@ -9,11 +9,14 @@ class Netrc
|
|
|
9
9
|
|
|
10
10
|
def self.default_path
|
|
11
11
|
if WINDOWS && !CYGWIN
|
|
12
|
-
|
|
12
|
+
home = ENV['HOME']
|
|
13
|
+
home ||= ENV['HOMEDRIVE'] + ENV['HOMEPATH'] if ENV['HOMEDRIVE'] && ENV['HOMEPATH']
|
|
14
|
+
home ||= ENV['USERPROFILE']
|
|
15
|
+
File.join(home.gsub("\\","/"), "_netrc")
|
|
13
16
|
else
|
|
14
17
|
# In some cases, people run master process as "root" user, and run worker processes as "www" user.
|
|
15
18
|
# Fix "Permission denied" error in worker processes when $HOME is "/root".
|
|
16
|
-
default_dir = (ENV['HOME'] && File.
|
|
19
|
+
default_dir = (ENV['HOME'] && File.exist?(ENV['HOME']) && File.stat(ENV['HOME']).readable?) ? ENV['HOME'] : './'
|
|
17
20
|
File.join(default_dir, ".netrc")
|
|
18
21
|
end
|
|
19
22
|
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.
|
|
4
|
+
version: 0.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Keith Rarick
|
|
@@ -9,20 +9,20 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2014-
|
|
12
|
+
date: 2014-12-01 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: turn
|
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
|
17
17
|
requirements:
|
|
18
|
-
- -
|
|
18
|
+
- - ">="
|
|
19
19
|
- !ruby/object:Gem::Version
|
|
20
20
|
version: '0'
|
|
21
21
|
type: :development
|
|
22
22
|
prerelease: false
|
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
|
24
24
|
requirements:
|
|
25
|
-
- -
|
|
25
|
+
- - ">="
|
|
26
26
|
- !ruby/object:Gem::Version
|
|
27
27
|
version: '0'
|
|
28
28
|
description: This library can read and update netrc files, preserving formatting including
|
|
@@ -57,17 +57,17 @@ require_paths:
|
|
|
57
57
|
- lib
|
|
58
58
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
59
59
|
requirements:
|
|
60
|
-
- -
|
|
60
|
+
- - ">="
|
|
61
61
|
- !ruby/object:Gem::Version
|
|
62
62
|
version: '0'
|
|
63
63
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
64
64
|
requirements:
|
|
65
|
-
- -
|
|
65
|
+
- - ">="
|
|
66
66
|
- !ruby/object:Gem::Version
|
|
67
67
|
version: '0'
|
|
68
68
|
requirements: []
|
|
69
69
|
rubyforge_project:
|
|
70
|
-
rubygems_version: 2.
|
|
70
|
+
rubygems_version: 2.2.2
|
|
71
71
|
signing_key:
|
|
72
72
|
specification_version: 4
|
|
73
73
|
summary: Library to read and write netrc files.
|