commit rubygem-netrc for openSUSE:Factory

2015-10-30 Thread h_root
Hello community,

here is the log from the commit of package rubygem-netrc for openSUSE:Factory 
checked in at 2015-10-30 21:52:57

Comparing /work/SRC/openSUSE:Factory/rubygem-netrc (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-netrc.new (New)


Package is "rubygem-netrc"

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-netrc/rubygem-netrc.changes  
2015-03-03 11:14:40.0 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-netrc.new/rubygem-netrc.changes 
2015-10-30 21:52:58.0 +0100
@@ -1,0 +2,12 @@
+Fri Oct 30 05:33:05 UTC 2015 - co...@suse.com
+
+- updated to version 0.11.0
+ see installed changelog.txt
+
+  0.11.0 10/29/15
+  ===
+  
+  Respect NETRC environment variable
+  Fix for JRuby PernGen Space
+
+---

Old:

  netrc-0.10.3.gem

New:

  netrc-0.11.0.gem



Other differences:
--
++ rubygem-netrc.spec ++
--- /var/tmp/diff_new_pack.JxdWH1/_old  2015-10-30 21:52:59.0 +0100
+++ /var/tmp/diff_new_pack.JxdWH1/_new  2015-10-30 21:52:59.0 +0100
@@ -24,7 +24,7 @@
 #
 
 Name:   rubygem-netrc
-Version:0.10.3
+Version:0.11.0
 Release:0
 %define mod_name netrc
 %define mod_full_name %{mod_name}-%{version}

++ netrc-0.10.3.gem -> netrc-0.11.0.gem ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Readme.md new/Readme.md
--- old/Readme.md   2015-02-25 00:25:25.0 +0100
+++ new/Readme.md   2015-10-29 23:08:28.0 +0100
@@ -1,7 +1,7 @@
 # Netrc
 
 This library reads and writes
-[`.netrc` 
files](http://www.gnu.org/software/inetutils/manual/html_node/The-_002enetrc-File.html).
+[`.netrc` 
files](http://www.gnu.org/software/inetutils/manual/html_node/The-_002enetrc-file.html).
 
 ## API
 
@@ -13,8 +13,11 @@
 the filename ends in ".gpg", it will be decrypted using
 [GPG](http://www.gnupg.org/).
 
-Read the user's default netrc file. On Unix: `$HOME/.netrc`.
-On Windows: `%HOME%\_netrc`, `%HOMEDRIVE%%HOMEPATH%\_netrc`, or 
`%USERPROFILE%\_netrc` (whichever is set first).
+Read the user's default netrc file.
+
+**On Unix:** `$NETRC/.netrc` or `$HOME/.netrc` (whichever is set first).
+
+**On Windows:** `%NETRC%\_netrc`, `%HOME%\_netrc`, 
`%HOMEDRIVE%%HOMEPATH%\_netrc`, or `%USERPROFILE%\_netrc` (whichever is set 
first).
 
 n = Netrc.read
 
@@ -47,4 +50,4 @@
 ## Running Tests
 
 $ bundle install
-$ bundle exec turn test
+$ bundle exec ruby -e 'Dir.glob "./test/**/test_*.rb", (:require)'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/changelog.txt new/changelog.txt
--- old/changelog.txt   2015-02-25 00:25:25.0 +0100
+++ new/changelog.txt   2015-10-29 23:08:28.0 +0100
@@ -1,3 +1,9 @@
+0.11.0 10/29/15
+===
+
+Respect NETRC environment variable
+Fix for JRuby PernGen Space
+
 0.10.3 02/24/15
 ===
 
Files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/netrc.rb new/lib/netrc.rb
--- old/lib/netrc.rb2015-02-25 00:25:25.0 +0100
+++ new/lib/netrc.rb2015-10-29 23:08:28.0 +0100
@@ -1,14 +1,14 @@
 require 'rbconfig'
 
 class Netrc
-  VERSION = "0.10.3"
+  VERSION = "0.11.0"
 
   # see 
http://stackoverflow.com/questions/4871309/what-is-the-correct-way-to-detect-if-ruby-is-running-on-windows
   WINDOWS = RbConfig::CONFIG["host_os"] =~ /mswin|mingw|cygwin/
   CYGWIN  = RbConfig::CONFIG["host_os"] =~ /cygwin/
 
   def self.default_path
-File.join(home_path, netrc_filename)
+File.join(ENV['NETRC'] || home_path, netrc_filename)
   end
 
   def self.home_path
@@ -18,7 +18,7 @@
   home ||= File.join(ENV['HOMEDRIVE'], ENV['HOMEPATH']) if 
ENV['HOMEDRIVE'] && ENV['HOMEPATH']
   home ||= ENV['USERPROFILE']
   # XXX: old stuff; most likely unnecessary
-  home = home.gsub("\\", "/") unless home.nil?
+  home = home.tr("\\", "/") unless home.nil?
 end
 
 (home && File.readable?(home)) ? home : Dir.pwd
@@ -65,8 +65,25 @@
 new(path, parse(lex([])))
   end
 
+  class TokenArray < Array
+def take
+  if length < 1
+raise Error, "unexpected EOF"
+  end
+  shift
+end
+
+def readto
+  l = []
+  while length > 0 && ! yield(self[0])
+l << shift
+  end
+  return l.join
+end
+  end
+
   def self.lex(lines)
-tokens = []
+tokens = TokenArray.new
 for line in lines
   content, comment = line.split(/(\s*#.*)/m)
   content.each_char do |char|
@@ -96,6 +113,8 @@
 s =~ /^\s/
   end
 
+
+
   # Returns two values, a header and a list of items.
   # 

commit rubygem-netrc for openSUSE:Factory

2015-03-03 Thread h_root
Hello community,

here is the log from the commit of package rubygem-netrc for openSUSE:Factory 
checked in at 2015-03-03 11:14:38

Comparing /work/SRC/openSUSE:Factory/rubygem-netrc (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-netrc.new (New)


Package is rubygem-netrc

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-netrc/rubygem-netrc.changes  
2015-02-27 10:59:00.0 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-netrc.new/rubygem-netrc.changes 
2015-03-03 11:14:40.0 +0100
@@ -1,0 +2,5 @@
+Wed Feb 25 05:32:44 UTC 2015 - co...@suse.com
+
+- updated to version 0.10.3
+
+---

Old:

  netrc-0.10.2.gem

New:

  netrc-0.10.3.gem



Other differences:
--
++ rubygem-netrc.spec ++
--- /var/tmp/diff_new_pack.5pKz2o/_old  2015-03-03 11:14:41.0 +0100
+++ /var/tmp/diff_new_pack.5pKz2o/_new  2015-03-03 11:14:41.0 +0100
@@ -24,7 +24,7 @@
 #
 
 Name:   rubygem-netrc
-Version:0.10.2
+Version:0.10.3
 Release:0
 %define mod_name netrc
 %define mod_full_name %{mod_name}-%{version}

++ netrc-0.10.2.gem - netrc-0.10.3.gem ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/changelog.txt new/changelog.txt
--- old/changelog.txt   2014-12-17 22:38:51.0 +0100
+++ new/changelog.txt   2015-02-25 00:25:25.0 +0100
@@ -1,3 +1,8 @@
+0.10.3 02/24/15
+===
+
+error when Dir.home is not readable
+
 0.10.2 12/17/14
 ===
 
Files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/netrc.rb new/lib/netrc.rb
--- old/lib/netrc.rb2014-12-17 22:38:51.0 +0100
+++ new/lib/netrc.rb2015-02-25 00:25:25.0 +0100
@@ -1,7 +1,7 @@
 require 'rbconfig'
 
 class Netrc
-  VERSION = 0.10.2
+  VERSION = 0.10.3
 
   # see 
http://stackoverflow.com/questions/4871309/what-is-the-correct-way-to-detect-if-ruby-is-running-on-windows
   WINDOWS = RbConfig::CONFIG[host_os] =~ /mswin|mingw|cygwin/
@@ -12,17 +12,16 @@
   end
 
   def self.home_path
-return Dir.home if defined? Dir.home # Ruby 1.9+
+home = Dir.respond_to?(:home) ? Dir.home : ENV['HOME']
+
 if WINDOWS  !CYGWIN
-  home = ENV['HOME']
-  home ||= ENV['HOMEDRIVE'] + ENV['HOMEPATH'] if ENV['HOMEDRIVE']  
ENV['HOMEPATH']
+  home ||= File.join(ENV['HOMEDRIVE'], ENV['HOMEPATH']) if 
ENV['HOMEDRIVE']  ENV['HOMEPATH']
   home ||= ENV['USERPROFILE']
-  home.gsub(\\,/)
-else
-  # In some cases, people run master process as root user, and run 
worker processes as www user.
-  # Fix Permission denied error in worker processes when $HOME is 
/root.
-  (ENV['HOME']  File.exist?(ENV['HOME'])  
File.stat(ENV['HOME']).readable?) ? ENV['HOME'] : './'
+  # XXX: old stuff; most likely unnecessary
+  home = home.gsub(\\, /) unless home.nil?
 end
+
+(home  File.readable?(home)) ? home : Dir.pwd
   rescue ArgumentError
 return Dir.pwd
   end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata2014-12-17 22:38:51.0 +0100
+++ new/metadata2015-02-25 00:25:25.0 +0100
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: netrc
 version: !ruby/object:Gem::Version
-  version: 0.10.2
+  version: 0.10.3
 platform: ruby
 authors:
 - Keith Rarick
@@ -9,7 +9,7 @@
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2014-12-17 00:00:00.0 Z
+date: 2015-02-24 00:00:00.0 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: turn
@@ -73,4 +73,3 @@
 specification_version: 4
 summary: Library to read and write netrc files.
 test_files: []
-has_rdoc: 

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org