netrc 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/changelog.txt +5 -0
  2. data/lib/netrc.rb +4 -3
  3. metadata +4 -4
@@ -1,3 +1,8 @@
1
+ 0.7.3 06/04/12
2
+ ==============
3
+
4
+ * also skip permissions check on cygwin
5
+
1
6
  0.7.2 05/23/12
2
7
  =============
3
8
 
@@ -1,6 +1,7 @@
1
1
  class Netrc
2
- VERSION = "0.7.2"
3
- WINDOWS = (RUBY_PLATFORM =~ /win32|mingw32/i)
2
+ VERSION = "0.7.3"
3
+ CYGWIN = RUBY_PLATFORM =~ /cygwin/i
4
+ WINDOWS = RUBY_PLATFORM =~ /win32|mingw32/i
4
5
 
5
6
  def self.default_path
6
7
  if WINDOWS
@@ -14,7 +15,7 @@ class Netrc
14
15
  # exist, returns an empty object.
15
16
  def self.read(path=default_path)
16
17
  perm = File.stat(path).mode & 0777
17
- if perm != 0600 && !(WINDOWS)
18
+ if perm != 0600 && !(CYGWIN) && !(WINDOWS)
18
19
  raise Error, "Permission bits for '#{path}' should be 0600, but are "+perm.to_s(8)
19
20
  end
20
21
  new(path, parse(lex(File.readlines(path))))
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.7.2
4
+ version: 0.7.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-05-23 00:00:00.000000000 Z
13
+ date: 2012-06-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: turn
17
- requirement: &70325610509140 !ruby/object:Gem::Requirement
17
+ requirement: &70143678261780 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,7 +22,7 @@ dependencies:
22
22
  version: '0'
23
23
  type: :development
24
24
  prerelease: false
25
- version_requirements: *70325610509140
25
+ version_requirements: *70143678261780
26
26
  description: This library can read and update netrc files, preserving formatting including
27
27
  comments and whitespace.
28
28
  email: geemus@gmail.com