Hello community,

here is the log from the commit of package rubygem-ruby-shadow for 
openSUSE:Factory checked in at 2015-10-08 08:26:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-ruby-shadow (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-ruby-shadow.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-ruby-shadow"

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-ruby-shadow/rubygem-ruby-shadow.changes  
2015-02-11 16:45:53.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.rubygem-ruby-shadow.new/rubygem-ruby-shadow.changes 
    2015-10-08 08:26:15.000000000 +0200
@@ -1,0 +2,12 @@
+Wed Oct  7 04:31:54 UTC 2015 - co...@suse.com
+
+- updated to version 2.5.0
+ see installed HISTORY
+
+  [2015/10/06]
+  * Version 2.5.0
+    - fixes for compiling for rubinius, at long last
+    - TESTS
+    - add a few method aliases
+
+-------------------------------------------------------------------

Old:
----
  ruby-shadow-2.4.1.gem

New:
----
  ruby-shadow-2.5.0.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-ruby-shadow.spec ++++++
--- /var/tmp/diff_new_pack.YDTScG/_old  2015-10-08 08:26:16.000000000 +0200
+++ /var/tmp/diff_new_pack.YDTScG/_new  2015-10-08 08:26:16.000000000 +0200
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-ruby-shadow
-Version:        2.4.1
+Version:        2.5.0
 Release:        0
 %define mod_name ruby-shadow
 %define mod_full_name %{mod_name}-%{version}

++++++ ruby-shadow-2.4.1.gem -> ruby-shadow-2.5.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HISTORY new/HISTORY
--- old/HISTORY 2014-12-02 19:12:32.000000000 +0100
+++ new/HISTORY 2015-10-06 23:04:05.000000000 +0200
@@ -1,3 +1,9 @@
+[2015/10/06]
+* Version 2.5.0
+  - fixes for compiling for rubinius, at long last
+  - TESTS
+  - add a few method aliases
+
 [2014/12/02]
 * Version 2.4.1
   - sp_loginclass support should NOT have been added to password implementation
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README new/README
--- old/README  2014-12-02 19:12:32.000000000 +0100
+++ new/README  2015-10-06 23:04:05.000000000 +0200
@@ -26,20 +26,23 @@
  still present, but no promises about earlier versions of Ruby.
 
 3. Shadow::Passwd module's methods
-_________________________________________________________
- Method                 | Linux | Solaris | OS X  | *BSD
-_________________________________________________________
- getspent               |   *   |    *    |   *   |   *
- getspnam(name)         |   *   |    *    |   *   |   *
- setspent               |   *   |    *    |   *   |   *
- endspent               |   *   |    *    |   *   |   *
- fgetspent(file)        |   *   |    *    |   N   |   N
- sgetspent(str)         |   *   |    N    |   N   |   N
- putspent(entry,file)   |   *   |    *    |   N   |   N
- lckpwdf,lock           |   *   |    *    |   N   |   N
- ulckpwdf,unlock        |   *   |    *    |   N   |   N
- lock?                  |   *   |    *    |   N   |   N
+________________________________________________________________________
+ Method                                | Linux | Solaris | OS X  | *BSD
+________________________________________________________________________
+ getspent                              |   *   |    *    |   *   |   *
+ getspnam(name)                        |   *   |    *    |   *   |   *
+ from_user_name(name) (alias of above) |   *   |    *    |   *   |   *
+ setspent                              |   *   |    *    |   *   |   *
+ endspent                              |   *   |    *    |   *   |   *
+ fgetspent(file)                       |   *   |    *    |   N   |   N
+ sgetspent(str)                        |   *   |    N    |   N   |   N
+ putspent(entry,file)                  |   *   |    *    |   N   |   N
+ add_password_entry (alias of above )  |   *   |    *    |   N   |   N
+ lckpwdf,lock                          |   *   |    *    |   N   |   N
+ ulckpwdf,unlock                       |   *   |    *    |   N   |   N
+ lock?                                 |   *   |    *    |   N   |   N
 
+Check the implementation in use via Shadow::IMPLEMENTATION.
 
 4. Structure
 
@@ -83,7 +86,7 @@
 
 * man shadow
 * /usr/include/shadow.h
-* Code at https://github.com/shadow-maint/shadow
+* Code at https://github.com/apalmblad/ruby-shadow
 
 
 Original Author:
Files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2014-12-02 19:12:32.000000000 +0100
+++ new/metadata        2015-10-06 23:04:05.000000000 +0200
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: ruby-shadow
 version: !ruby/object:Gem::Version
-  version: 2.4.1
+  version: 2.5.0
 platform: ruby
 authors:
 - Adam Palmblad
@@ -13,7 +13,7 @@
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2014-12-02 00:00:00.000000000 Z
+date: 2015-10-06 00:00:00.000000000 Z
 dependencies: []
 description: This module provides access to shadow passwords on Linux, OSX, 
FreeBSD,
   OpenBSD, and Solaris
@@ -55,7 +55,7 @@
       version: '0'
 requirements: []
 rubyforge_project: 
-rubygems_version: 2.4.2
+rubygems_version: 2.4.8
 signing_key: 
 specification_version: 4
 summary: "*nix Shadow Password Module"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pwd/shadow.c new/pwd/shadow.c
--- old/pwd/shadow.c    2014-12-02 19:12:32.000000000 +0100
+++ new/pwd/shadow.c    2015-10-06 23:04:05.000000000 +0200
@@ -115,6 +115,7 @@
                                     "sg_adm","sg_mem",NULL);
 
   rb_mShadow = rb_define_module("Shadow");
+  rb_define_const( rb_mShadow, "IMPLEMENTATION", rb_str_new_cstr( "PWD" ) );
   rb_eFileLock = rb_define_class_under(rb_mShadow,"FileLock",rb_eException);
   rb_mPasswd = rb_define_module_under(rb_mShadow,"Passwd");
   rb_define_const(rb_mPasswd,"Entry",rb_sPasswdEntry);
@@ -125,4 +126,5 @@
   rb_define_module_function(rb_mPasswd,"endspent",rb_shadow_endspent,0);
   rb_define_module_function(rb_mPasswd,"getspent",rb_shadow_getspent,0);
   rb_define_module_function(rb_mPasswd,"getspnam",rb_shadow_getspnam,1);
+  rb_define_module_function(rb_mPasswd,"from_user_name",rb_shadow_getspnam,1);
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ruby-shadow.gemspec new/ruby-shadow.gemspec
--- old/ruby-shadow.gemspec     2014-12-02 19:12:32.000000000 +0100
+++ new/ruby-shadow.gemspec     2015-10-06 23:04:05.000000000 +0200
@@ -19,6 +19,6 @@
   spec.name                  = 'ruby-shadow'
   spec.required_ruby_version = ['>= 1.8']
   spec.summary               = '*nix Shadow Password Module'
-  spec.version               = '2.4.1'
+  spec.version               = '2.5.0'
   spec.license  = "Public Domain License"
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/shadow/shadow.c new/shadow/shadow.c
--- old/shadow/shadow.c 2014-12-02 19:12:32.000000000 +0100
+++ new/shadow/shadow.c 2015-10-06 23:04:05.000000000 +0200
@@ -144,21 +144,27 @@
 
   if( TYPE(file) != T_FILE )
     rb_raise(rb_eTypeError,"argument must be a File.");
-
+    /*
   for(i=0; i<NUM_FIELDS; i++)
-    val[i] = RSTRUCT_PTR( entry )[i]; //val[i] = RSTRUCT(entry)->ptr[i];
+  {
+    val[i] = rb_ary_entry( entry, i ); //val[i] = RSTRUCT(entry)->ptr[i];
+    i//val[i] = rb_struct_aref( entry, i );
+  }
+  */
   cfile = file_ptr( RFILE(file)->fptr );
 
-
-  centry.sp_namp = StringValuePtr(val[0]);
-  centry.sp_pwdp = StringValuePtr(val[1]);
-  centry.sp_lstchg = FIX2INT(val[2]);
-  centry.sp_min = FIX2INT(val[3]);
-  centry.sp_max = FIX2INT(val[4]);
-  centry.sp_warn = FIX2INT(val[5]);
-  centry.sp_inact = FIX2INT(val[6]);
-  centry.sp_expire = FIX2INT(val[8]);
-  centry.sp_flag = FIX2INT(val[9]);
+  VALUE x = rb_ary_entry( entry, 0 );
+  centry.sp_namp = StringValuePtr( x );
+  x = rb_ary_entry( entry, 1 );
+  centry.sp_pwdp = StringValuePtr( x );
+  centry.sp_lstchg = FIX2INT( rb_ary_entry( entry, 2) );
+  centry.sp_min = FIX2INT( rb_ary_entry( entry, 3 ) );
+  centry.sp_max = FIX2INT( rb_ary_entry( entry, 4 ) );
+  centry.sp_warn = FIX2INT( rb_ary_entry( entry, 5 ));
+  centry.sp_inact = FIX2INT( rb_ary_entry( entry, 6 ) );
+  // missing 7 I think is put in to deal with beign similar to BSD returns, 
for the value pw_change.
+  centry.sp_expire = FIX2INT( rb_ary_entry( entry, 8 ) );
+  centry.sp_flag = FIX2INT( rb_ary_entry( entry, 9 ) );
 
   result = putspent(&centry,cfile);
 
@@ -252,6 +258,7 @@
                                    "sg_adm","sg_mem",NULL);
 
   rb_mShadow = rb_define_module("Shadow");
+  rb_define_const( rb_mShadow, "IMPLEMENTATION", rb_str_new_cstr( "SHADOW" ) );
   rb_eFileLock = rb_define_class_under(rb_mShadow,"FileLock",rb_eException);
   rb_mPasswd = rb_define_module_under(rb_mShadow,"Passwd");
   rb_define_const(rb_mPasswd,"Entry",rb_sPasswdEntry);
@@ -266,7 +273,9 @@
   rb_define_module_function(rb_mPasswd,"fgetspent",rb_shadow_fgetspent,1);
   rb_define_module_function(rb_mPasswd,"getspent",rb_shadow_getspent,0);
   rb_define_module_function(rb_mPasswd,"getspnam",rb_shadow_getspnam,1);
+  rb_define_module_function(rb_mPasswd,"from_user_name",rb_shadow_getspnam,1);
   rb_define_module_function(rb_mPasswd,"putspent",rb_shadow_putspent,2);
+  
rb_define_module_function(rb_mPasswd,"add_password_entry",rb_shadow_putspent,2);
   rb_define_module_function(rb_mPasswd,"lckpwdf",rb_shadow_lckpwdf,0);
   rb_define_module_function(rb_mPasswd,"lock",rb_shadow_lock,0);
   rb_define_module_function(rb_mPasswd,"ulckpwdf",rb_shadow_ulckpwdf,0);


Reply via email to