head 1.16; access; symbols pkgsrc-2014Q4:1.14.0.12 pkgsrc-2014Q4-base:1.14 pkgsrc-2014Q3:1.14.0.10 pkgsrc-2014Q3-base:1.14 pkgsrc-2014Q2:1.14.0.8 pkgsrc-2014Q2-base:1.14 pkgsrc-2014Q1:1.14.0.6 pkgsrc-2014Q1-base:1.14 pkgsrc-2013Q4:1.14.0.4 pkgsrc-2013Q4-base:1.14 pkgsrc-2013Q3:1.14.0.2 pkgsrc-2013Q3-base:1.14 pkgsrc-2013Q2:1.13.0.2 pkgsrc-2013Q2-base:1.13 pkgsrc-2013Q1:1.12.0.8 pkgsrc-2013Q1-base:1.12 pkgsrc-2012Q4:1.12.0.6 pkgsrc-2012Q4-base:1.12 pkgsrc-2012Q3:1.12.0.4 pkgsrc-2012Q3-base:1.12 pkgsrc-2012Q2:1.12.0.2 pkgsrc-2012Q2-base:1.12 pkgsrc-2012Q1:1.11.0.6 pkgsrc-2012Q1-base:1.11 pkgsrc-2011Q4:1.11.0.4 pkgsrc-2011Q4-base:1.11 pkgsrc-2011Q3:1.11.0.2 pkgsrc-2011Q3-base:1.11 pkgsrc-2011Q2:1.9.0.8 pkgsrc-2011Q2-base:1.9 pkgsrc-2011Q1:1.9.0.6 pkgsrc-2011Q1-base:1.9 pkgsrc-2010Q4:1.9.0.4 pkgsrc-2010Q4-base:1.9 pkgsrc-2010Q3:1.9.0.2 pkgsrc-2010Q3-base:1.9 pkgsrc-2010Q2:1.7.0.10 pkgsrc-2010Q2-base:1.7 pkgsrc-2010Q1:1.7.0.8 pkgsrc-2010Q1-base:1.7 pkgsrc-2009Q4:1.7.0.6 pkgsrc-2009Q4-base:1.7 pkgsrc-2009Q3:1.7.0.4 pkgsrc-2009Q3-base:1.7 pkgsrc-2009Q2:1.7.0.2 pkgsrc-2009Q2-base:1.7 pkgsrc-2009Q1:1.5.0.6 pkgsrc-2009Q1-base:1.5 pkgsrc-2008Q4:1.5.0.4 pkgsrc-2008Q4-base:1.5 pkgsrc-2008Q3:1.5.0.2 pkgsrc-2008Q3-base:1.5 cube-native-xorg:1.4.0.8 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.6 pkgsrc-2008Q2-base:1.4 cwrapper:1.4.0.4 pkgsrc-2008Q1:1.4.0.2 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.2.0.6 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.4 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.2 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.1.0.4 pkgsrc-2007Q1-base:1.1 pkgsrc-2006Q4:1.1.0.2 pkgsrc-2006Q4-base:1.1; locks; strict; comment @# @; 1.16 date 2015.03.08.14.44.16; author taca; state dead; branches; next 1.15; commitid tbLGE3mLcduMrOcy; 1.15 date 2015.01.25.16.13.13; author taca; state Exp; branches; next 1.14; commitid 0JNO4xTqRGEAhq7y; 1.14 date 2013.09.10.16.33.29; author taca; state Exp; branches; next 1.13; commitid BL9G7Z2UIOP9wU4x; 1.13 date 2013.06.11.14.55.54; author taca; state Exp; branches; next 1.12; commitid SPp1wZYhjtGPVcTw; 1.12 date 2012.04.22.08.11.54; author taca; state Exp; branches; next 1.11; 1.11 date 2011.09.04.17.05.13; author taca; state Exp; branches 1.11.6.1; next 1.10; 1.10 date 2011.08.12.15.50.44; author taca; state Exp; branches; next 1.9; 1.9 date 2010.09.16.12.02.05; author taca; state Exp; branches; next 1.8; 1.8 date 2010.09.10.03.48.40; author taca; state Exp; branches; next 1.7; 1.7 date 2009.06.12.23.02.57; author minskim; state Exp; branches; next 1.6; 1.6 date 2009.06.10.21.44.31; author minskim; state dead; branches; next 1.5; 1.5 date 2008.09.15.08.43.44; author taca; state Exp; branches; next 1.4; 1.4 date 2008.03.31.15.40.43; author jlam; state Exp; branches; next 1.3; 1.3 date 2008.03.08.00.43.55; author jlam; state Exp; branches; next 1.2; 1.2 date 2007.04.23.03.21.05; author minskim; state dead; branches; next 1.1; 1.1 date 2006.10.05.09.30.27; author cube; state Exp; branches; next ; 1.11.6.1 date 2012.04.22.21.02.19; author spz; state Exp; branches; next ; desc @@ 1.16 log @Update rubygems to 2.4.6. * Simplify Gem::Specification definition. * Remove some pkgsrc specific modifications. === 2.4.6 / 2014-02-05 Bug fixes: * Fixed resolving gems with both upper and lower requirement boundaries. Issue #1141 by Jakub Jirutka. * Moved extension directory after require_paths to fix missing constant bugs in some gems with C extensions. Issue #784 by Andr Arko, pull request #1137 by Barry Allard. * Use Gem::Dependency#requirement when adding a dependency to an existing dependency instance. Pull request #1101 by Josh Cheek. * Fixed warning of shadowed local variable in Gem::Specification. Pull request #1109 by Rohit Arondekar * Gem::Requirement should always sort requirements before coercion to Hash. Pull request #1139 by Eito Katagiri. * The `gem open` command should change the current working directory before opening the editor. Pull request #1142 by Alex Wood. * Ensure quotes are stripped from the Windows launcher script used to install gems. Pull request #1115 by Youngjun Song. * Fixed errors when writing to NFS to to 0444 files. Issue #1161 by Emmanuel Hadoux. * Removed dead code in Gem::StreamUI. Pull request #1117 by mediaslave24. * Fixed typos. Pull request #1096 by hakeda. * Relaxed CMake dependency for RHEL 6 and CentOS 6. Pull request #1124 by Vt Ondruch. * Relaxed Psych dependency. Pull request #1128 by Vt Ondruch. @ text @$NetBSD: patch-aa,v 1.15 2015/01/25 16:13:13 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. * Skip checking gem.build_complete existence of file. * Allow duplicate dependencies but warn them. --- lib/rubygems/specification.rb.orig 2014-11-30 04:25:42.000000000 +0000 +++ lib/rubygems/specification.rb @@@@ -172,6 +172,12 @@@@ class Gem::Specification < Gem::BasicSpe @@@@default_value[k].nil? } + # under pkgsrc environment + @@@@pkgsrc_nil_attributes = {} + [:authors, :cert_chain, :executables, :extensions, :extra_rdoc_files, :licenses, :required_rubygems_version, :test_files].each do |k| + @@@@pkgsrc_nil_attributes[k] = true + end + ###################################################################### # :section: Required gemspec attributes @@@@ -1779,7 +1785,7 @@@@ class Gem::Specification < Gem::BasicSpe # directory. def gem_build_complete_path # :nodoc: - File.join extension_dir, 'gem.build_complete' + File.join extension_dir end ## @@@@ -2456,8 +2462,25 @@@@ class Gem::Specification < Gem::BasicSpe extend Gem::UserInteraction normalize - nil_attributes = self.class.non_nil_attributes.find_all do |name| - instance_variable_get("@@#{name}").nil? + nil_attributes = self.class.non_nil_attributes.find_all do |attrname| + val = instance_variable_get("@@#{attrname}") + if val.nil? + if @@@@pkgsrc_nil_attributes.key?(attrname) + case attrname + when :required_rubygems_version + val = Gem::Requirement.default + else + val = [] + end + instance_variable_set("@@#{attrname}", val) + false + end + end + if attrname == :authors and val.empty? + val = ['not specified'] + self.authors = val + false + end end unless nil_attributes.empty? then @@@@ -2601,10 +2624,15 @@@@ http://opensource.org/licenses/alphabeti raise Gem::InvalidSpecificationException, "#{lazy} is not a summary" end - if homepage and not homepage.empty? and - homepage !~ /\A[a-z][a-z\d+.-]*:/i then - raise Gem::InvalidSpecificationException, - "\"#{homepage}\" is not a URI" + if homepage and not homepage.empty? + if @@homepage =~ /\A[a-z][a-z\d+.-]*/i and + @@homepage !~ /\A[a-z][a-z\d+.-]*:/i + @@homepage = "http://" + @@homepage + end + if homepage !~ /\A[a-z][a-z\d+.-]*:/i then + raise Gem::InvalidSpecificationException, + "\"#{homepage}\" is not a URI" + end end # Warnings @@@@ -2647,7 +2675,7 @@@@ http://opensource.org/licenses/alphabeti dependencies.each do |dep| if prev = seen[dep.name] then - raise Gem::InvalidSpecificationException, <<-MESSAGE + warn <<-MESSAGE duplicate dependency on #{dep}, (#{prev.requirement}) use: add_runtime_dependency '#{dep.name}', '#{dep.requirement}', '#{prev.requirement}' MESSAGE @ 1.15 log @Update rubygems to 2.4.5 and make this package for ruby18 only. Changes are too many to write here, please refer rubygem's github: https://github.com/rubygems/rubygems/blob/master/History.txt. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.14 2013/09/10 16:33:29 taca Exp $ @ 1.14 log @Update rubygems to 2.0.8. This includes a fix for CVE-2013-4287 in rubygems. === 2.0.8 / 2013-09-09 Security fixes: * RubyGems 2.0.7 and earlier are vulnerable to excessive CPU usage due to a backtracking in Gem::Version validation. See CVE-2013-4287 for full details including vulnerable APIs. Fixed versions include 2.0.8, 1.8.26 and 1.8.23.1 (for Ruby 1.9.3). Issue #626 by Damir Sharipov. Bug fixes: * Fixed Gem.clear_paths when Security is defined at top-level. Pull request #625 by elarkin === 2.0.7 / 2013-08-15 * Extensions may now be built in parallel (therefore gems may be installed in parallel). Bug #607 by Hemant Kumar. * Changed broken link to RubyGems Bookshelf to point to RubyGems guides. Ruby pull request #369 by 謝致邦. * Fixed various test failures due to platform differences or poor tests. Patches by Yui Naruse and Koichi Sasada. * Fixed documentation for Kernel#require. === 2.0.6 / 2013-07-24 Bug fixes: * Fixed the `--no-install` and `-I` options to `gem list` and friends. Bug #593 by Blargel. * Fixed crash when installing gems with extensions under the `-V` flag. Bug #601 by Nick Hoffman. * Fixed race condition retrieving HTTP connections in Gem::Request on JRuby. Bug #597 by Hemant Kumar. * Fixed building extensions on ruby 1.9.3 under mingw. Bug #594 by jonforums, Bug #599 by Chris Riesbeck * Restored default of remote search to `gem search`. === 2.0.5 / 2013-07-11 Bug fixes: * Fixed building of extensions that run ruby in their makefiles. Bug #589 by Zachary Salzbank. === 2.0.4 / 2013-07-09 Bug fixes: * Fixed error caused by gem install not finding the right platform for your platform. Bug #576 by John Anderson * Fixed pushing gems with the default host. Bug #495 by Utkarsh Kukreti * Improved unhelpful error message from `gem owner --remove`. Bug #488 by Steve Klabnik * Fixed typo in `gem spec` help. Pull request #563 by oooooooo * Fixed creation of build_info with --install-dir. Bug #457 by Vít Ondruch. * RubyGems converts non-string dependency names to strings now. Bug #505 by Terence Lee * Outdated prerelease versions are now listed in `gem outdated`. * RubyGems now only calls fsync() on the specification when installing, not every file from the gem. This improves the performance of gem installation on some systems. Pull Request #556 by Grzesiek Kolodziejczyk * Removed surprise search term anchoring in `gem search` to restore 1.8-like search behavior while still defaulting to --remote. Pull request #562 by Ben Bleything * Fixed handling of DESTDIR when building extensions. Pull request #573 by Akinori MUSHA * Fixed documentation of `gem pristine` defaults (--all is not a default). Pull request #577 by Shannon Skipper * Fixed a windows extension-building test failure. Pull request #575 by Hiroshi Shirosaki * Fixed issue with `gem update` where it would attempt to use a Version instead of a Requirement to find the latest gem. Fixes #570 by Nick Cox. * RubyGems now ignores an empty but set RUBYGEMS_HOST environment variable. Based on pull request #558 by Robin Dupret. * Removed duplicate creation of gem subdirectories in Gem::DependencyInstaller. Pull Request #456 by Vít Ondruch * RubyGems now works with Ruby built with `--with-ruby-version=''`. Pull Request #455 by Vít Ondruch * Fixed race condition when two threads require the same gem. Ruby bug report #8374 by Joel VanderWerf * Cleaned up siteconf between extension build and extension install. Pull request #587 by Dominic Cleal * Fix deprecation warnings when converting gemspecs to yaml. Ruby commit r41148 by Yui Naruse @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.13 2013/06/11 14:55:54 taca Exp $ d6 2 d9 1 a9 1 --- lib/rubygems/specification.rb.orig 2013-09-09 23:41:27.000000000 +0000 d11 1 a11 1 @@@@ -162,6 +162,12 @@@@ class Gem::Specification d24 11 a34 1 @@@@ -2337,7 +2343,24 @@@@ class Gem::Specification d37 1 a37 1 nil_attributes = self.class.non_nil_attributes.find_all do |name| d39 2 a40 1 + val = instance_variable_get("@@#{name}") d42 2 a43 2 + if @@@@pkgsrc_nil_attributes.key?(name) + case name d49 1 a49 1 + instance_variable_set("@@#{name}", val) d53 1 a53 1 + if name == :authors and val.empty? d61 1 a61 1 @@@@ -2475,10 +2498,15 @@@@ class Gem::Specification d81 9 @ 1.13 log @Update rubygems to 2.0.3. THere are too many changes to write here, please refer these release notes. http://blog.rubygems.org/2013/03/11/2.0.3-released.html http://blog.rubygems.org/2013/03/06/2.0.2-released.html http://blog.rubygems.org/2013/03/05/2.0.1-released.html http://blog.rubygems.org/2013/02/24/2.0.0-released.html http://blog.rubygems.org/2013/02/08/2.0.0.rc.2-released.html http://blog.rubygems.org/2012/12/03/2.0.0-preview2.html @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.12 2012/04/22 08:11:54 taca Exp $ d7 1 a7 1 --- lib/rubygems/specification.rb.orig 2013-02-12 20:04:55.000000000 +0000 d9 1 a9 1 @@@@ -164,6 +164,12 @@@@ class Gem::Specification d22 1 a22 1 @@@@ -2317,7 +2323,24 @@@@ class Gem::Specification d48 1 a48 1 @@@@ -2455,10 +2478,15 @@@@ class Gem::Specification @ 1.12 log @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 @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.11 2011/09/04 17:05:13 taca Exp $ d7 1 a7 1 --- lib/rubygems/specification.rb.orig 2012-04-13 22:21:48.000000000 +0000 d9 1 a9 1 @@@@ -118,6 +118,12 @@@@ class Gem::Specification d22 1 a22 10 @@@@ -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) # Workaround for where the date format output from psych isn't @@@@ -1987,7 +1993,24 @@@@ class Gem::Specification d48 1 a48 1 @@@@ -2090,10 +2113,15 @@@@ class Gem::Specification d55 1 d63 1 a63 1 "\"#{homepage}\" is not a URI" @ 1.11 log @Update rubygems package to 1.8.10. === 1.8.10 / 2011-08-25 RubyGems 1.8.10 contains a security fix that prevents malicious gems from executing code when their specification is loaded. See https://github.com/rubygems/rubygems/pull/165 for details. * 5 bug fixes: * RubyGems escapes strings in ruby-format specs using #dump instead of #to_s and %q to prevent code injection. Issue #165 by Postmodern * RubyGems attempt to activate the psych gem now to obtain bugfixes from psych. * Gem.dir has been restored to the front of Gem.path. Fixes remaining problem with Issue #115 * Fixed Syck DefaultKey infecting ruby-format specifications. * `gem uninstall a b` no longer stops if gem "a" is not installed. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.10 2011/08/12 15:50:44 taca Exp $ d7 1 a7 1 --- lib/rubygems/specification.rb.orig 2011-08-27 00:43:50.000000000 +0000 d22 1 a22 1 @@@@ -984,7 +990,7 @@@@ class Gem::Specification d29 3 a31 3 else raise(Gem::InvalidSpecificationException, @@@@ -1950,7 +1956,24 @@@@ class Gem::Specification d57 1 a57 1 @@@@ -2053,10 +2076,15 @@@@ class Gem::Specification @ 1.11.6.1 log @Pullup ticket #3750 - requested by taca misc/rubygems: security fix Revisions pulled up: - misc/rubygems/Makefile 1.47 - misc/rubygems/PLIST 1.20 - misc/rubygems/distinfo 1.37 - misc/rubygems/patches/patch-aa 1.12 - misc/rubygems/patches/patch-ao 1.4 ------------------------------------------------------------------- Module Name: pkgsrc Committed By: taca Date: Sun Apr 22 08:11:54 UTC 2012 Modified Files: pkgsrc/misc/rubygems: Makefile PLIST distinfo pkgsrc/misc/rubygems/patches: patch-aa patch-ao Log Message: 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 To generate a diff of this commit: cvs rdiff -u -r1.46 -r1.47 pkgsrc/misc/rubygems/Makefile cvs rdiff -u -r1.19 -r1.20 pkgsrc/misc/rubygems/PLIST cvs rdiff -u -r1.36 -r1.37 pkgsrc/misc/rubygems/distinfo cvs rdiff -u -r1.11 -r1.12 pkgsrc/misc/rubygems/patches/patch-aa cvs rdiff -u -r1.3 -r1.4 pkgsrc/misc/rubygems/patches/patch-ao @ text @d1 1 a1 1 $NetBSD$ d7 1 a7 1 --- lib/rubygems/specification.rb.orig 2012-04-13 22:21:48.000000000 +0000 d22 1 a22 1 @@@@ -1000,7 +1006,7 @@@@ class Gem::Specification d29 3 a31 3 # Workaround for where the date format output from psych isn't @@@@ -1987,7 +1993,24 @@@@ class Gem::Specification d57 1 a57 1 @@@@ -2090,10 +2113,15 @@@@ class Gem::Specification @ 1.10 log @Update rubygems package to 1.8.7 with adding compatibility to read older gemspec files. Changes are too may to write here, please refer History.txt file. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.9 2010/09/16 12:02:05 taca Exp $ d5 1 d7 1 a7 1 --- lib/rubygems/specification.rb.orig 2011-07-25 23:44:31.000000000 +0000 d22 9 @ 1.9 log @Update rubygems to 1.3.7. o pkgsrc changes: * Add patches to keep output of specification sub-command as before. * Make sure to 'yaml is loaded in Gem::Specification::from_yaml(). === 1.3.7 / 2010-05-13 NOTE: http://rubygems.org is now the default source for downloading gems. You may have sources set via ~/.gemrc, so you should replace http://gems.rubyforge.org with http://rubygems.org http://gems.rubyforge.org will continue to work for the forseeable future. New features: * `gem` commands * `gem install` and `gem fetch` now report alternate platforms when a matching one couldn't be found. * `gem contents` --prefix is now the default as specified in --help. Bug #27211 by Mamoru Tasaka. * `gem fetch` can fetch of old versions again. Bug #27960 by Eric Hankins. * `gem query` and friends output now lists platforms. Bug #27856 by Greg Hazel. * `gem server` now allows specification of multiple gem dirs for documentation. Bug #27573 by Yuki Sonoda. * `gem unpack` can unpack gems again. Bug #27872 by Timothy Jones. * `gem unpack` now unpacks remote gems. * --user-install is no longer the default. If you really liked it, see Gem::ConfigFile to learn how to set it by default. (This change was made in 1.3.6) * RubyGems now has platform support for IronRuby. Patch #27951 by Will Green. Bug fixes: * Require rubygems/custom_require if --disable-gem was set. Bug #27700 by Roger Pack. * RubyGems now protects against exceptions being raised by plugins. * rubygems/builder now requires user_interaction. Ruby Bug #1040 by Phillip Toland. * Gem::Dependency support #version_requirements= with a warning. Fix for old Rails versions. Bug #27868 by Wei Jen Lu. * Gem::PackageTask depends on the package dir like the other rake package tasks so dependencies can be hooked up correctly. === 1.3.6 / 2010-02-17 New features: * `gem` commands * Added `gem push` and `gem owner` for interacting with modern/Gemcutter sources * `gem dep` now supports --prerelease. * `gem fetch` now supports --prerelease. * `gem server` now supports --bind. Patch #27357 by Bruno Michel. * `gem rdoc` no longer overwrites built documentation. Use --overwrite force rebuilding. Patch #25982 by Akinori MUSHA. * Captial letters are now allowed in prerelease versions. Bug fixes: * Development deps are no longer added to rubygems-update gem so older versions can update sucessfully. * Installer bugs: * Prerelease gems can now depend on non-prerelease gems. * Development dependencies are ignored unless explicitly needed. Bug #27608 by Roger Pack. * `gem` commands * `gem which` now fails if no paths were found. Adapted patch #27681 by Caio Chassot. * `gem server` no longer has invalid markup. Bug #27045 by Eric Young. * `gem list` and friends show both prerelease and regular gems when --prerelease --all is given * Gem::Format no longer crashes on empty files. Bug #27292 by Ian Ragsdale. * Gem::GemPathSearcher handles nil require_paths. Patch #27334 by Roger Pack. * Gem::RemoteFetcher no longer copies the file if it is where we want it. Patch #27409 by Jakub Stastny. Deprecation Notices: * lib/rubygems/timer.rb has been removed. * Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. * Bulk index update is no longer supported. * Gem::manage_gems was removed in 1.3.3. * Time::today was removed in 1.3.3. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.8 2010/09/10 03:48:40 taca Exp $ d3 2 a4 2 * Make sure to load YAML. * Avoid access nil. d6 1 a6 1 --- lib/rubygems/specification.rb.orig 2010-04-22 04:43:03.000000000 +0000 d8 3 a10 2 @@@@ -476,6 +476,7 @@@@ class Gem::Specification # 'input' can be anything that YAML.load() accepts: String or IO. d12 8 a19 4 def self.from_yaml(input) + require 'yaml' input = normalize_yaml_input input spec = YAML.load input d21 28 a48 1 @@@@ -837,12 +838,12 @@@@ class Gem::Specification d51 12 a62 6 @@files.delete_if do |file| File.directory? file end - @@test_files.delete_if do |file| File.directory? file end - @@executables.delete_if do |file| + @@test_files and @@test_files.delete_if do |file| File.directory? file end + @@executables and @@executables.delete_if do |file| File.directory? File.join(bindir, file) a63 4 - @@extra_rdoc_files.delete_if do |file| File.directory? file end - @@extensions.delete_if do |file| File.directory? file end + @@extra_rdoc_files and @@extra_rdoc_files.delete_if do |file| File.directory? file end + @@extensions and @@extensions.delete_if do |file| File.directory? file end d65 1 a65 2 non_files = files.select do |file| !File.file? file @ 1.8 log @* take maintainer ship. * Add LICENSE. * Adjust new ruby packages' framework. * Command name is gem${RUBY_VER} == gem18 now and add ALTERNATIVES. * Add comments to patches. * Overhalt --install_root option. * Avoid access HOME when --install_root is enabled. * honor PKG_SYSCONFDIR. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.7 2009/06/12 23:02:57 minskim Exp $ d3 1 d6 1 a6 1 --- lib/rubygems/specification.rb.orig 2009-05-19 17:41:16.000000000 -0700 d8 9 a16 1 @@@@ -812,12 +812,12 @@@@ class Gem::Specification @ 1.7 log @Test variables before using them. Several variables in Gem::Specification can be nil for old gemspec. Bump PKGREVISION. @ text @d1 3 a3 1 $NetBSD$ @ 1.6 log @Update rubygems to 1.3.4. New features since 1.3.1: * RubyGems now loads plugins from rubygems_plugin.rb in installed gems. This can be used to add commands (See Gem::CommandManager) or add install/uninstall hooks (See Gem::Installer and Gem::Uninstaller). * Gem::Version now understands prerelease versions using letters. (eg. '1.2.1.b') Thanks to Josh Susser, Alex Vollmer and Phil Hagelberg. * RubyGems now includes a Rake task for creating gems which replaces rake's Rake::GemPackageTask. See Gem::PackageTask. * Gem::find_files now returns paths in $LOAD_PATH. * Added Gem::promote_load_path for use with Gem::find_files * Added Gem::bin_path to make finding executables easier. Patch #24114 by James Tucker. * Various improvements to build arguments for installing gems. * `gem contents` added --all and --no-prefix. * Gem::Specification * #validate strips directories and errors on not-files. * #description no longer removes newlines. * #name must be a String. * FIXME and TODO are no longer allowed in various fields. * Added support for a license attribute. Feature #11041 (partial). * Removed Gem::Specification::list, too much process growth. Bug #23668 by Steve Purcell. * `gem generate_index` * Can now generate an RSS feed. * Modern indicies can now be updated incrementally. * Legacy indicies can be updated separately from modern. * `gem server` allows port names (from /etc/services) with --port. * `gem server` now has search that jumps to RDoc. Patch #22959 by Vladimir Dobriakov. * `gem spec` can retrieve single fields from a spec (like `gem spec rake authors`). * Gem::Specification#has_rdoc= is deprecated and ignored (defaults to true) * RDoc is now generated regardless of Gem::Specification#has_rdoc? @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.5 2008/09/15 08:43:44 taca Exp $ d3 19 a21 10 --- lib/rubygems/commands/install_command.rb.orig 2008-06-21 05:05:41.000000000 +0900 +++ lib/rubygems/commands/install_command.rb @@@@ -59,6 +59,7 @@@@ class Gem::Commands::InstallCommand < Ge :format_executable => options[:format_executable], :ignore_dependencies => options[:ignore_dependencies], :install_dir => options[:install_dir], + :install_root => options[:install_root], :security_policy => options[:security_policy], :wrappers => options[:wrappers], :bin_dir => options[:bin_dir], @ 1.5 log @Update rubygems pacakge to 1.2.0. Release 1.2.0 adds new features and fixes some bugs. New features: * RubyGems no longer performs bulk updates and instead only fetches the gemspec files it needs. Alternate sources will need to upgrade to RubyGems 1.2 to allow RubyGems to take advantage of the new metadata updater. If a pre 1.2 remote source is in the sources list, RubyGems will revert to the bulk update code for compatibility. * RubyGems now has runtime and development dependency types. Use #add_development_dependency and #add_runtime_dependency. All typeless dependencies are considered to be runtime dependencies. * RubyGems will now require rubygems/defaults/operating_system.rb and rubygems/defaults/#{RBX_ENGINE}.rb if they exist. This allows packagers and ruby implementers to add custom behavior to RubyGems via these files. (If the RubyGems API is insufficient, please suggest improvements via the RubyGems list.) * /etc/gemrc (and windows equivalent) for global settings * setup.rb now handles --vendor and --destdir for packagers * `gem stale` command that lists gems by last access time Bugs Fixed: * File modes from gems are now honored, patch #19737 * Marshal Gem::Specification objects from the future can now be loaded. * A trailing / is now added to remote sources when missing, bug #20134 * Gems with legacy platforms will now be correctly uninstalled, patch #19877 * `gem install --no-wrappers` followed by `gem install --wrappers` no longer overwrites executables * `gem pristine` now forces reinstallation of gems, bug #20387 * RubyGems gracefully handles ^C while loading .gemspec files from disk, bug #20523 * Paths are expanded in more places, bug #19317, bug #19896 * Gem::DependencyInstaller resets installed gems every install, bug #19444 * Gem.default_path is now honored if GEM_PATH is not set, patch #19502 Other Changes Include: * setup.rb * stub files created by RubyGems 0.7.x and older are no longer removed. When upgrading from these ancient versions, upgrade to 1.1.x first to clean up stubs. * RDoc is no longer required until necessary, patch #20414 * `gem server` * Now completely matches the output of `gem generate_index` and has correct content types * Refreshes from source directories for every hit. The server will no longer need to be restarted after installing gems. * `gem query --details` and friends now display author, homepage, rubyforge url and installed location * `gem install` without -i no longer reinstalls dependencies if they are in GEM_PATH but not in GEM_HOME * Gem::RemoteFetcher now performs persistent connections for HEAD requests, bug #7973 @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.4 2008/03/31 15:40:43 jlam Exp $ @ 1.4 log @Update rubygems to 1.1.0. Changes from version 1.0.1 include: + Port patches to allow gems to be installed into an "installion root" from 1.0.1nb2. + Rename the --build-root option to --install-root, which more accurately reflects the purpose of the option. + Update rubygem.mk to work with rubygems-1.1.0. + Require 1.1.0 as the minimum rubygems version for the build. + Remove GEM_FORMAT and special code to extract the gemspec file from a gem archive -- `gem spec' can now do it correctly by itself. + Rename various *buildroot* targets to *install-root* to match the name of the `gem' option. * RubyGems now uses persistent connections on index updates and only updates from a latest index by default, cutting candidate gems for updates to roughly 1/4 (at present). Index updates are much faster now. * `gem list -r` may only show the latest version of a gem, add --all to see all gems. * `gem spec` now extracts specifications from .gem files. * `gem query --installed` to aid automation of checking for gems. This update has been tested with the 3 packages in pkgsrc that install using the ``gem'' command: devel/rubyforge misc/ruby-gem_plugin www/mongrel This update has also been tested with the 129 packages in my local tree that install using the ``gem'' command. @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 --- lib/rubygems/commands/install_command.rb.orig 2008-03-28 17:29:50.000000000 -0400 d5 1 a5 1 @@@@ -60,6 +60,7 @@@@ class Gem::Commands::InstallCommand < Ge d12 1 a12 1 :bin_dir => options[:bin_dir] @ 1.3 log @+ Add patches by Marcus Rueckert for destdir-style installation of gems. Patches from the OpenSuSE rubygems-1.0.1 src rpm. + Support user-destdir installation. + Dynamically generate the entire portion of the PLIST that corresponds to the documentation generated by rubygem at install-time. Bump the PKGREVISION to 1. @ text @d3 1 a3 3 Patch by Marcus Rueckert for staged installation of gems. --- lib/rubygems/commands/install_command.rb.orig 2007-12-12 19:43:02.000000000 -0500 d9 1 a9 1 + :build_root => options[:build_root], d12 1 a12 1 } @ 1.2 log @Update rubygems to 0.9.2. Major changes since 0.9.0: * RubyGems no longer allows installation of files outside the gem directory * #require_gem will now print a warning, use #gem instead * RubyGems now requires ruby 1.8.2 or greater * RubyGems is -w clean * The "unpack" command now works properly. * User name and password are now passed properly to the authenticating proxy when downloading gems. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.1 2006/10/05 09:30:27 cube Exp $ d3 12 a14 10 --- lib/rubygems/gem_commands.rb.orig 2006-06-22 04:44:51.000000000 +0200 +++ lib/rubygems/gem_commands.rb @@@@ -1329,6 +1329,7 @@@@ module Gem if s.empty? path_kind = "default gem paths" system = true + s = Gem::SourceIndex.installed_spec_directories else path_kind = "specified path" system = false @ 1.1 log @Add a patch to make "gem contents" work. http://rubyforge.org/tracker/index.php?func=detail&aid=6032&group_id=126&atid=575 @ text @d1 1 a1 1 $NetBSD$ @