diff options
author | taca <taca@pkgsrc.org> | 2012-04-22 08:11:54 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2012-04-22 08:11:54 +0000 |
commit | 8595c3c128bd9888d7d38541db99d773863e9b7c (patch) | |
tree | 2b06bd8001ffbc457a34ebe93f0dc6b9d0cee88e /misc/rubygems | |
parent | 8216bec9096fb465f17ae644d10747df97526d2c (diff) | |
download | pkgsrc-8595c3c128bd9888d7d38541db99d773863e9b7c.tar.gz |
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 (limited to 'misc/rubygems')
-rw-r--r-- | misc/rubygems/Makefile | 14 | ||||
-rw-r--r-- | misc/rubygems/PLIST | 5 | ||||
-rw-r--r-- | misc/rubygems/distinfo | 12 | ||||
-rw-r--r-- | misc/rubygems/patches/patch-aa | 14 | ||||
-rw-r--r-- | misc/rubygems/patches/patch-ao | 8 |
5 files changed, 30 insertions, 23 deletions
diff --git a/misc/rubygems/Makefile b/misc/rubygems/Makefile index 2a1c99d0b4a..d4dfd926efa 100644 --- a/misc/rubygems/Makefile +++ b/misc/rubygems/Makefile @@ -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 @@ FILES_SUBST+= RUBYGEM_NAME=${RUBYGEM_NAME} 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_HOME=${DESTDIR}${PREFIX}/${GEM_HOME} 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 --git a/misc/rubygems/PLIST b/misc/rubygems/PLIST index b6318175575..7f2b56e99f6 100644 --- a/misc/rubygems/PLIST +++ b/misc/rubygems/PLIST @@ -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/tar_writer.rb ${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/validator.rb ${RUBY_VENDORLIB}/rubygems/version.rb ${RUBY_VENDORLIB}/rubygems/version_option.rb ${RUBY_VENDORLIB}/ubygems.rb +@pkgdir lib/ruby/gems/1.9.3/doc diff --git a/misc/rubygems/distinfo b/misc/rubygems/distinfo index 067976397de..6942a56618b 100644 --- a/misc/rubygems/distinfo +++ b/misc/rubygems/distinfo @@ -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-aj) = 3b77a675470ea3702b9870843d2bb39bb6a83f3e 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 --git a/misc/rubygems/patches/patch-aa b/misc/rubygems/patches/patch-aa index 7fa4168db7b..3c9c1c36e5c 100644 --- a/misc/rubygems/patches/patch-aa +++ b/misc/rubygems/patches/patch-aa @@ -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 @@ $NetBSD: patch-aa,v 1.11 2011/09/04 17:05:13 taca Exp $ ###################################################################### # :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 @@ $NetBSD: patch-aa,v 1.11 2011/09/04 17:05:13 taca Exp $ 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 --git a/misc/rubygems/patches/patch-ao b/misc/rubygems/patches/patch-ao index 2133417db3d..b98c959e8ca 100644 --- a/misc/rubygems/patches/patch-ao +++ b/misc/rubygems/patches/patch-ao @@ -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 @@ Don't hard code config file's path for gem. - - path.strip - rescue LoadError -- "/etc" +- RbConfig::CONFIG["sysconfdir"] || "/etc" - end - end + system_config_path = '@PKG_SYSCONFDIR@' |