netrc 0.7 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE ADDED
@@ -0,0 +1,7 @@
1
+ Copyright (c) 2012 Wesley Beary <geemus@gmail.com>
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Readme.md CHANGED
@@ -37,4 +37,5 @@ Have fun!
37
37
 
38
38
  ## Running Tests
39
39
 
40
- $ turn test
40
+ $ bundle install
41
+ $ bundle exec turn test
@@ -0,0 +1,7 @@
1
+ 0.7.1 03/13/12
2
+ ==============
3
+
4
+ * add Gemfile to simplify development
5
+ * add MIT license
6
+ * fix test require path
7
+ * fix unused variable assignment (caused warnings) in tests
@@ -1,5 +1,5 @@
1
1
  class Netrc
2
- VERSION = "0.7"
2
+ VERSION = "0.7.1"
3
3
  WINDOWS = (RUBY_PLATFORM =~ /win32|mingw32/i)
4
4
 
5
5
  def self.default_path
@@ -1,7 +1,7 @@
1
1
  $VERBOSE = true
2
2
  require 'test/unit'
3
3
 
4
- require '../netrc/lib/netrc'
4
+ require File.expand_path("#{File.dirname(__FILE__)}/../lib/netrc")
5
5
 
6
6
  class TestLex < Test::Unit::TestCase
7
7
  def test_lex_empty
@@ -2,7 +2,7 @@ $VERBOSE = true
2
2
  require 'test/unit'
3
3
  require 'fileutils'
4
4
 
5
- require '../netrc/lib/netrc'
5
+ require File.expand_path("#{File.dirname(__FILE__)}/../lib/netrc")
6
6
 
7
7
  class TestNetrc < Test::Unit::TestCase
8
8
  def setup
@@ -58,7 +58,6 @@ class TestNetrc < Test::Unit::TestCase
58
58
  def test_set_get
59
59
  n = Netrc.read("data/sample.netrc")
60
60
  n["m"] = "a", "b"
61
- l, p = n["m"]
62
61
  assert_equal(["a", "b"], n["m"])
63
62
  end
64
63
 
@@ -1,7 +1,7 @@
1
1
  $VERBOSE = true
2
2
  require 'test/unit'
3
3
 
4
- require '../netrc/lib/netrc'
4
+ require File.expand_path("#{File.dirname(__FILE__)}/../lib/netrc")
5
5
 
6
6
  class TestParse < Test::Unit::TestCase
7
7
  def test_parse_empty
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'
4
+ version: 0.7.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,8 +10,19 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-02-22 00:00:00.000000000 Z
14
- dependencies: []
13
+ date: 2012-03-13 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: turn
17
+ requirement: &70193810670960 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
23
+ type: :development
24
+ prerelease: false
25
+ version_requirements: *70193810670960
15
26
  description: This library can read and update netrc files, preserving formatting including
16
27
  comments and whitespace.
17
28
  email: geemus@gmail.com
@@ -19,7 +30,9 @@ executables: []
19
30
  extensions: []
20
31
  extra_rdoc_files: []
21
32
  files:
33
+ - LICENSE
22
34
  - Readme.md
35
+ - changelog.txt
23
36
  - data/permissive.netrc
24
37
  - data/sample.netrc
25
38
  - lib/netrc.rb