[DRE-commits] [ruby-shadow] 01/01: Imported Upstream version 2.2.0

David Suárez deiv-guest at alioth.debian.org
Sat Oct 12 20:50:58 UTC 2013


This is an automated email from the git hooks/post-receive script.

deiv-guest pushed a commit to annotated tag upstream/2.2.0
in repository ruby-shadow.

commit 896deeca2edd57799090c1513b092fdac6b62c87
Author: David Suárez <david.sephirot at gmail.com>
Date:   Sat Oct 12 22:20:06 2013 +0200

    Imported Upstream version 2.2.0
---
 README              |    2 +-
 checksums.yaml.gz   |  Bin 0 -> 267 bytes
 extconf.rb          |   17 ++++++++++++++++-
 metadata.yml        |   23 ++++++++++-------------
 ruby-shadow.gemspec |   23 +++++++++++++++--------
 5 files changed, 42 insertions(+), 23 deletions(-)

diff --git a/README b/README
index 4c018e8..0733d2e 100644
--- a/README
+++ b/README
@@ -2,7 +2,7 @@ Shadow Password module
 
 Copyright (C) 1998-1999 Takaaki Tateishi <ttate at jaist.ac.jp>
 Modified at: <1999/8/19 06:47:14 by ttate>
-License: Free for any use with your own risk!
+License: See LICENSE
 
 
 1. What's this
diff --git a/checksums.yaml.gz b/checksums.yaml.gz
new file mode 100644
index 0000000..8d5441c
Binary files /dev/null and b/checksums.yaml.gz differ
diff --git a/extconf.rb b/extconf.rb
index d2baadd..7dcbba7 100644
--- a/extconf.rb
+++ b/extconf.rb
@@ -6,7 +6,11 @@
 
 require 'mkmf'
 
-$CFLAGS = RUBY_VERSION =~ /1\.9/ ? '-DRUBY19' : ''
+$CFLAGS = case RUBY_VERSION
+          when /^1\.9/; '-DRUBY19'
+          when /^2\./; '-DRUBY19'
+          else; ''
+          end
 
 #$LDFLAGS = "-lshadow"
 
@@ -26,4 +30,15 @@ if ok
     $CFLAGS += ' -DSOLARIS'
   end
   create_makefile("shadow")
+else
+  osx_ok = have_func( "endpwent" )
+  osx_ok &= have_func( "getpwent" )
+  osx_ok &= have_func( "getpwnam" )
+  osx_ok &= have_func( "getpwnam_r" )
+  osx_ok &= have_func( "getpwuid" )
+  osx_ok &= have_func( "setpassent" )
+  osx_ok &= have_func( "setpwent" )
+  if osx_ok
+    raise "It looks like you're on OSX.  There is a branch that might help here: https://github.com/apalmblad/ruby-shadow/tree/osx"
+  end
 end
diff --git a/metadata.yml b/metadata.yml
index f852662..7488b04 100644
--- a/metadata.yml
+++ b/metadata.yml
@@ -1,8 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: ruby-shadow
 version: !ruby/object:Gem::Version
-  version: 2.1.4
-  prerelease: 
+  version: 2.2.0
 platform: ruby
 authors:
 - Adam Palmblad
@@ -14,8 +13,7 @@ authors:
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2012-04-17 00:00:00.000000000 -07:00
-default_executable: 
+date: 2013-02-25 00:00:00.000000000 Z
 dependencies: []
 description: This module provides access to shadow passwords on Linux and Solaris
 email:
@@ -33,29 +31,28 @@ files:
 - README.euc
 - ruby-shadow.gemspec
 - shadow.c
-has_rdoc: true
 homepage: https://github.com/apalmblad/ruby-shadow
-licenses: []
+licenses:
+- Public Domain License
+metadata: {}
 post_install_message: 
 rdoc_options: []
 require_paths:
 - lib
 required_ruby_version: !ruby/object:Gem::Requirement
-  none: false
   requirements:
-  - - ! '>='
+  - - '>='
     - !ruby/object:Gem::Version
       version: '1.8'
 required_rubygems_version: !ruby/object:Gem::Requirement
-  none: false
   requirements:
-  - - ! '>='
+  - - '>='
     - !ruby/object:Gem::Version
       version: '0'
 requirements: []
 rubyforge_project: 
-rubygems_version: 1.6.2
+rubygems_version: 2.0.0
 signing_key: 
-specification_version: 3
-summary: ! '*nix Shadow Password Module'
+specification_version: 4
+summary: '*nix Shadow Password Module'
 test_files: []
diff --git a/ruby-shadow.gemspec b/ruby-shadow.gemspec
index 496f6c0..616450b 100644
--- a/ruby-shadow.gemspec
+++ b/ruby-shadow.gemspec
@@ -1,17 +1,24 @@
 # -*- encoding: utf-8 -*-
 
 Gem::Specification.new do |spec|
-  spec.authors               = ['Adam Palmblad', 'Eric Hankins', 'Ian Marlier', 'Jeff Blaine', 'Remi Broemeling', 'Takaaki Tateishi']
+  spec.authors               = ['Adam Palmblad',
+                                'Eric Hankins',
+                                'Ian Marlier',
+                                'Jeff Blaine',
+                                'Remi Broemeling',
+                                'Takaaki Tateishi']
+
   spec.description           = 'This module provides access to shadow passwords on Linux and Solaris'
   spec.email                 = ['adam.palmblad at teampages.com']
   spec.extensions            = ['extconf.rb']
   spec.files                 = []
-  File.open('MANIFEST').each { |file|
-    spec.files              << file.chomp
-  }
+  File.open('MANIFEST').each do |file|
+    spec.files << file.chomp
+  end
   spec.homepage              = 'https://github.com/apalmblad/ruby-shadow'
-	spec.name                  = 'ruby-shadow'
-	spec.required_ruby_version = '>= 1.8'
-	spec.summary               = '*nix Shadow Password Module'
-	spec.version               = '2.1.4'
+  spec.name                  = 'ruby-shadow'
+  spec.required_ruby_version = ['>= 1.8']
+  spec.summary               = '*nix Shadow Password Module'
+  spec.version               = '2.2.0'
+  spec.license  = "Public Domain License"
 end

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-shadow.git



More information about the Pkg-ruby-extras-commits mailing list