pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/rubygems Update rubygems package to 1.8.23.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/34abbedef510
branches:  trunk
changeset: 602789:34abbedef510
user:      taca <taca%pkgsrc.org@localhost>
date:      Sun Apr 22 08:11:54 2012 +0000

description:
Update rubygems package to 1.8.23.


=== 1.8.23 / 2012-04-19

This release increases the security used when RubyGems is talking to
an https server. If you use a custom RubyGems server over SSL, this
release will cause RubyGems to no longer connect unless your SSL cert
is globally valid.

You can configure SSL certificate usage in RubyGems through the
:ssl_ca_cert and :ssl_verify_mode options in ~/.gemrc and /etc/gemrc.
The recommended way is to set :ssl_ca_cert to the CA certificate for
your server or a certificate bundle containing your CA certification.

You may also set :ssl_verify_mode to 0 to completely disable SSL
certificate checks, but this is not recommended.


* 2 security fixes:
  * Disallow redirects from https to http
  * Turn on verification of server SSL certs

* 1 minor feature:
  * Add --clear-sources to fetch

* 2 bug fixes:
  * Use File.identical? to check if two files are the same.
  * Fixed init_with warning when using psych

=== 1.8.22 / 2012-04-13

* 4 bug fixes:

  * Workaround for psych/syck YAML date parsing issue
  * Don't trust the encoding of ARGV. Fixes #307
  * Quiet default warnings about missing spec variables
  * Read a binary file properly (windows fix)

=== 1.8.21 / 2012-03-22

* 2 bug fixes:

  * Add workaround for buggy yaml output from 1.9.2
  * Force 1.9.1 to remove it's prelude code. Fixes #305

=== 1.8.20 / 2012-03-21

* 4 bug fixes:

  * Add --force to `gem build` to skip validation. Fixes #297
  * Gracefully deal with YAML::PrivateType objects in Marshal'd gemspecs
  * Treat the source as a proper url base. Fixes #304
  * Warn when updating the specs cache fails. Fixes #300

=== 1.8.19 / 2012-03-14

* 3 bug fixes:

  * Handle loading psych vs syck properly. Fixes #298
  * Make sure Date objects don't leak in via Marshal
  * Perform Date => Time coercion on yaml loading. Fixes #266

=== 1.8.18 / 2012-03-11

* 4 bug fixes:

  * Use Psych API to emit more compatible YAML
  * Download and write inside `gem fetch` directly. Fixes #289
  * Honor sysconfdir on 1.8. Fixes #291
  * Search everywhere for a spec for `gem spec`. Fixes #288
  * Fix Gem.all_load_path. Fixes #171

diffstat:

 misc/rubygems/Makefile         |  14 +++++++++-----
 misc/rubygems/PLIST            |   5 ++++-
 misc/rubygems/distinfo         |  12 ++++++------
 misc/rubygems/patches/patch-aa |  14 +++++++-------
 misc/rubygems/patches/patch-ao |   8 ++++----
 5 files changed, 30 insertions(+), 23 deletions(-)

diffs (157 lines):

diff -r 241f758ae58c -r 34abbedef510 misc/rubygems/Makefile
--- a/misc/rubygems/Makefile    Sun Apr 22 01:24:33 2012 +0000
+++ b/misc/rubygems/Makefile    Sun Apr 22 08:11:54 2012 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.46 2012/02/19 16:32:43 taca Exp $
+# $NetBSD: Makefile,v 1.47 2012/04/22 08:11:54 taca Exp $
 
-DISTNAME=      rubygems-1.8.17
+DISTNAME=      rubygems-1.8.23
 CATEGORIES=    misc ruby
 MASTER_SITES=  http://production.cf.rubygems.org/rubygems/ \
                http://rubyforge.org/frs/download.php/75309/
@@ -44,8 +44,12 @@
 GENERATE_PLIST+=       \
        ${ECHO} "@comment The following lines are automatically generated." && \
        cd ${DESTDIR}${PREFIX} && \
-         ${FIND} ${GEM_DOCDIR:S|${PREFIX}/||} \! -type d -print | \
-               ${SORT};
+           if [ -d ${GEM_DOCDIR:S|${PREFIX}/||} ]; then \
+               ${FIND} ${GEM_DOCDIR:S|${PREFIX}/||} \! -type d -print | \
+               ${SORT}; \
+           else \
+               :; \
+           fi
 
 # Force the Gem repository to be under ${DESTDIR}.  This is harmless
 # because this package depends on no other gems.
@@ -54,7 +58,7 @@
 INSTALL_ENV+=          GEM_PATH=${DESTDIR}${PREFIX}/${GEM_HOME}
 
 INSTALL_TARGET=                install
-INSTALL_TARGET+=       --vendor
+INSTALL_TARGET+=       --vendor --no-rdoc --no-ri
 .if ${_USE_DESTDIR} != "no"
 INSTALL_TARGET+=       --destdir=${DESTDIR:Q}
 .endif
diff -r 241f758ae58c -r 34abbedef510 misc/rubygems/PLIST
--- a/misc/rubygems/PLIST       Sun Apr 22 01:24:33 2012 +0000
+++ b/misc/rubygems/PLIST       Sun Apr 22 08:11:54 2012 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.19 2011/12/15 14:40:47 taca Exp $
+@comment $NetBSD: PLIST,v 1.20 2012/04/22 08:11:54 taca Exp $
 bin/gem${RUBY_VER}.new
 ${RUBY_VENDORLIB}/gauntlet_rubygems.rb
 ${RUBY_VENDORLIB}/rbconfig/datadir.rb
@@ -74,6 +74,8 @@
 ${RUBY_VENDORLIB}/rubygems/package_task.rb
 ${RUBY_VENDORLIB}/rubygems/path_support.rb
 ${RUBY_VENDORLIB}/rubygems/platform.rb
+${RUBY_VENDORLIB}/rubygems/psych_additions.rb
+${RUBY_VENDORLIB}/rubygems/psych_tree.rb
 ${RUBY_VENDORLIB}/rubygems/remote_fetcher.rb
 ${RUBY_VENDORLIB}/rubygems/require_paths_builder.rb
 ${RUBY_VENDORLIB}/rubygems/requirement.rb
@@ -92,3 +94,4 @@
 ${RUBY_VENDORLIB}/rubygems/version.rb
 ${RUBY_VENDORLIB}/rubygems/version_option.rb
 ${RUBY_VENDORLIB}/ubygems.rb
+@pkgdir lib/ruby/gems/1.9.3/doc
diff -r 241f758ae58c -r 34abbedef510 misc/rubygems/distinfo
--- a/misc/rubygems/distinfo    Sun Apr 22 01:24:33 2012 +0000
+++ b/misc/rubygems/distinfo    Sun Apr 22 08:11:54 2012 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.36 2012/02/19 16:32:43 taca Exp $
+$NetBSD: distinfo,v 1.37 2012/04/22 08:11:54 taca Exp $
 
-SHA1 (rubygems-1.8.17.tgz) = ad4ab95bc3673c0c664d6fea2e40ce1cadec92cd
-RMD160 (rubygems-1.8.17.tgz) = 06659da8d782b3196b89d9eeeefec591fa8e0822
-Size (rubygems-1.8.17.tgz) = 252560 bytes
-SHA1 (patch-aa) = cd7fde36ce3d67a5d96a3280d9f11b3c5b78a820
+SHA1 (rubygems-1.8.23.tgz) = add96c8aed4e11526995bc354a213c72a393980c
+RMD160 (rubygems-1.8.23.tgz) = 624c47502305f9ae91ae6acb48e8772a187a2ca8
+Size (rubygems-1.8.23.tgz) = 379999 bytes
+SHA1 (patch-aa) = 6f58690757271a230ead260a3429732067256567
 SHA1 (patch-ab) = d2917ec23a41293049bdf901c809423126a6161d
 SHA1 (patch-ac) = 7814fd204106f67e04ee9d278666b9ba30da3478
 SHA1 (patch-ad) = 79c1a0750925862598545a992380ef7dfd8803a1
@@ -14,6 +14,6 @@
 SHA1 (patch-al) = beeff0531ff4bd23c0796b1e28805ae6fe2202b0
 SHA1 (patch-am) = 374b16a77a3471958e0fcf7a60633658f9e9d559
 SHA1 (patch-an) = a4de56fc44a4c7556486268344d44640538db108
-SHA1 (patch-ao) = b78557ffaa2df6c251ad7bfce760574e0ef3157a
+SHA1 (patch-ao) = f2b6566e01eff03302a01e407a16120397ec5b50
 SHA1 (patch-ap) = eaf2bf2fc7cc71139df7ce2677c3ec9fa95d1081
 SHA1 (patch-test_rubygems_test__gem.rb) = 8bad451e8054fe954c13d28e542509b8adae2764
diff -r 241f758ae58c -r 34abbedef510 misc/rubygems/patches/patch-aa
--- a/misc/rubygems/patches/patch-aa    Sun Apr 22 01:24:33 2012 +0000
+++ b/misc/rubygems/patches/patch-aa    Sun Apr 22 08:11:54 2012 +0000
@@ -1,10 +1,10 @@
-$NetBSD: patch-aa,v 1.11 2011/09/04 17:05:13 taca Exp $
+$NetBSD: patch-aa,v 1.12 2012/04/22 08:11:54 taca Exp $
 
 * Relax to allow some attribute could be nil.
 * Complete "http://"; to homepage attribute if it isn't begin with it.
 * Accpet date with Time, but ignore time part.
 
---- lib/rubygems/specification.rb.orig 2011-08-27 00:43:50.000000000 +0000
+--- lib/rubygems/specification.rb.orig 2012-04-13 22:21:48.000000000 +0000
 +++ lib/rubygems/specification.rb
 @@ -118,6 +118,12 @@ class Gem::Specification
      @@default_value[k].nil?
@@ -19,16 +19,16 @@
    ######################################################################
    # :section: Required gemspec attributes
  
-@@ -984,7 +990,7 @@ class Gem::Specification
+@@ -1000,7 +1006,7 @@ class Gem::Specification
      # way to do it.
      @date = case date
              when String then
 -              if /\A(\d{4})-(\d{2})-(\d{2})\Z/ =~ date then
 +              if /\A(\d{4})-(\d{2})-(\d{2})/ =~ date then
                  Time.utc($1.to_i, $2.to_i, $3.to_i)
-               else
-                 raise(Gem::InvalidSpecificationException,
-@@ -1950,7 +1956,24 @@ class Gem::Specification
+ 
+               # Workaround for where the date format output from psych isn't
+@@ -1987,7 +1993,24 @@ class Gem::Specification
      normalize
  
      nil_attributes = self.class.non_nil_attributes.find_all do |name|
@@ -54,7 +54,7 @@
      end
  
      unless nil_attributes.empty? then
-@@ -2053,10 +2076,15 @@ class Gem::Specification
+@@ -2090,10 +2113,15 @@ class Gem::Specification
        raise Gem::InvalidSpecificationException, "#{lazy} is not a summary"
      end
  
diff -r 241f758ae58c -r 34abbedef510 misc/rubygems/patches/patch-ao
--- a/misc/rubygems/patches/patch-ao    Sun Apr 22 01:24:33 2012 +0000
+++ b/misc/rubygems/patches/patch-ao    Sun Apr 22 08:11:54 2012 +0000
@@ -1,10 +1,10 @@
-$NetBSD: patch-ao,v 1.3 2011/03/23 14:35:05 taca Exp $
+$NetBSD: patch-ao,v 1.4 2012/04/22 08:11:54 taca Exp $
 
 Don't hard code config file's path for gem.
 
---- lib/rubygems/config_file.rb.orig   2011-02-26 20:40:09.000000000 +0000
+--- lib/rubygems/config_file.rb.orig   2012-03-22 21:25:48.000000000 +0000
 +++ lib/rubygems/config_file.rb
-@@ -45,32 +45,7 @@ class Gem::ConfigFile
+@@ -47,32 +47,7 @@ class Gem::ConfigFile
  
    PLATFORM_DEFAULTS = {}
  
@@ -31,7 +31,7 @@
 -
 -        path.strip
 -      rescue LoadError
--        "/etc"
+-        RbConfig::CONFIG["sysconfdir"] || "/etc"
 -      end
 -    end
 +  system_config_path = '@PKG_SYSCONFDIR@'



Home | Main Index | Thread Index | Old Index