head 1.6; access; symbols pkgsrc-2013Q2:1.6.0.18 pkgsrc-2013Q2-base:1.6 pkgsrc-2012Q4:1.6.0.16 pkgsrc-2012Q4-base:1.6 pkgsrc-2011Q4:1.6.0.14 pkgsrc-2011Q4-base:1.6 pkgsrc-2011Q2:1.6.0.12 pkgsrc-2011Q2-base:1.6 pkgsrc-2009Q4:1.6.0.10 pkgsrc-2009Q4-base:1.6 pkgsrc-2008Q4:1.6.0.8 pkgsrc-2008Q4-base:1.6 pkgsrc-2008Q3:1.6.0.6 pkgsrc-2008Q3-base:1.6 cube-native-xorg:1.6.0.4 cube-native-xorg-base:1.6 pkgsrc-2008Q2:1.6.0.2 pkgsrc-2008Q2-base:1.6 pkgsrc-2008Q1:1.5.0.2 pkgsrc-2008Q1-base:1.5 pkgsrc-2007Q4:1.4.0.2 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.3.0.6 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.4 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.2 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.1.1.1.0.2 pkgsrc-2006Q4-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.6 date 2008.04.04.15.30.02; author jlam; state dead; branches; next 1.5; 1.5 date 2008.02.09.06.31.59; author minskim; state Exp; branches; next 1.4; 1.4 date 2007.10.16.04.03.43; author minskim; state Exp; branches; next 1.3; 1.3 date 2007.02.18.23.49.14; author minskim; state Exp; branches 1.3.6.1; next 1.2; 1.2 date 2007.01.28.05.45.09; author minskim; state Exp; branches; next 1.1; 1.1 date 2006.10.12.08.36.22; author minskim; state Exp; branches 1.1.1.1; next ; 1.3.6.1 date 2007.12.10.17.08.15; author ghen; state Exp; branches; next ; 1.1.1.1 date 2006.10.12.08.36.22; author minskim; state Exp; branches; next ; desc @@ 1.6 log @Install as a gem using the pkgsrc rubygem.mk framework instead of directly into site_ruby. @ text @$NetBSD: patch-ab,v 1.5 2008/02/09 06:31:59 minskim Exp $ --- environments/boot.rb.orig 2007-12-16 17:05:17.000000000 -0800 +++ environments/boot.rb @@@@ -8,7 +8,7 @@@@ module Rails def boot! unless booted? preinitialize - pick_boot.run + Boot.new.run end end @@@@ -36,71 +36,8 @@@@ module Rails class Boot def run - load_initializer - Rails::Initializer.run(:set_load_path) - end - end - - class VendorBoot < Boot - def load_initializer - require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer" - end - end - - class GemBoot < Boot - def load_initializer - self.class.load_rubygems - load_rails_gem require 'initializer' - end - - def load_rails_gem - if version = self.class.gem_version - gem 'rails', version - else - gem 'rails' - end - rescue Gem::LoadError => load_error - $stderr.puts %(Missing the Rails #{version} gem. Please `gem install -v=#{version} rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.) - exit 1 - end - - class << self - def rubygems_version - Gem::RubyGemsVersion if defined? Gem::RubyGemsVersion - end - - def gem_version - if defined? RAILS_GEM_VERSION - RAILS_GEM_VERSION - elsif ENV.include?('RAILS_GEM_VERSION') - ENV['RAILS_GEM_VERSION'] - else - parse_gem_version(read_environment_rb) - end - end - - def load_rubygems - require 'rubygems' - - unless rubygems_version >= '0.9.4' - $stderr.puts %(Rails requires RubyGems >= 0.9.4 (you have #{rubygems_version}). Please `gem update --system` and try again.) - exit 1 - end - - rescue LoadError - $stderr.puts %(Rails requires RubyGems >= 0.9.4. Please install RubyGems and try again: http://rubygems.rubyforge.org) - exit 1 - end - - def parse_gem_version(text) - $1 if text =~ /^[^#]*RAILS_GEM_VERSION\s*=\s*["']([!~<>=]*\s*[\d.]+)["']/ - end - - private - def read_environment_rb - File.read("#{RAILS_ROOT}/config/environment.rb") - end + Rails::Initializer.run(:set_load_path) end end end @ 1.5 log @Update rails to 2.0.2. Now the default database is sqlite3, not mysql. There are many other changes. Please see CHANGELOG for the complete list: http://dev.rubyonrails.org/browser/tags/rel_2-0-2/railties/CHANGELOG @ text @d1 1 a1 1 $NetBSD$ @ 1.4 log @Update rails to 1.2.5. Changes: * Correct RAILS_GEM_VERSION regexp. Use =version gem requirement instead of ~>version so you don't get surprised by a beta gem in production. This change means upgrading to 1.2.5 will require a boot.rb upgrade. * Move custom inflections example so available before route generation. * Add a new rake task to aid debugging of named routes. * use Gem.find_name instead of search when freezing gems. Prevent false positives for other gems with rails in the name. Closes #8729 [wselman] * Fix syntax error in dispatcher than wrecked failsafe responses. * Add Active Resource to rails:freeze:edge and drop Action Web Service. * Give generate scaffold a more descriptive database message. Closes #7316 * Canonicalize RAILS_ROOT by using File.expand_path on Windows, which doesn't have to worry about symlinks, and Pathname#realpath elsewhere, which respects symlinks in relative paths but is incompatible with Windows. #6755 [Jeremy Kemper, trevor] @ text @d3 1 a3 1 --- environments/boot.rb.orig 2007-10-12 09:35:07.000000000 -0700 d5 34 a38 9 @@@@ -6,33 +6,7 @@@@ unless defined?(Rails::Initializer) if File.directory?("#{RAILS_ROOT}/vendor/rails") require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer" else - require 'rubygems' - - rails_gem_version = - if defined? RAILS_GEM_VERSION - RAILS_GEM_VERSION d40 20 a59 2 - File.read("#{File.dirname(__FILE__)}/environment.rb") =~ /^[^#]*RAILS_GEM_VERSION\s+=\s+'([\d.]+)'/ - $1 d62 2 a63 2 - if rails_gem_version - rails_gem = Gem.cache.search('rails', "=#{rails_gem_version}.0").sort_by { |g| g.version.version }.last d65 7 a71 8 - if rails_gem - gem "rails", "=#{rails_gem.version.version}" - require rails_gem.full_gem_path + '/lib/initializer' - else - STDERR.puts %(Cannot find gem for Rails =#{rails_gem_version}.0: - Install the missing gem with 'gem install -v=#{rails_gem_version} rails', or - change environment.rb to define RAILS_GEM_VERSION with your desired version. - ) d74 11 a84 5 - else - gem "rails" - require 'initializer' - end + require 'initializer' d86 1 a86 2 Rails::Initializer.run(:set_load_path) @ 1.3 log @Update rails to 1.2.2. Changes: * Fix gem deprecation warnings, which also means depending on RubyGems 0.9.0+ [Chad Fowler] * Require the dispatcher for Rails::Configuration#to_prepare. [Rick] @ text @d3 1 a3 1 --- environments/boot.rb.orig 2007-02-05 21:29:54.000000000 -0800 d5 1 a5 1 @@@@ -15,30 +15,7 @@@@ unless defined?(Rails::Initializer) d11 7 a17 3 - environment_without_comments = IO.readlines(File.dirname(__FILE__) + '/environment.rb').reject { |l| l =~ /^#/ }.join - environment_without_comments =~ /[^#]RAILS_GEM_VERSION = '([\d.]+)'/ - rails_gem_version = $1 d19 2 a20 3 - if version = defined?(RAILS_GEM_VERSION) ? RAILS_GEM_VERSION : rails_gem_version - # Asking for 1.1.6 will give you 1.1.6.5206, if available -- makes it easier to use beta gems - rails_gem = Gem.cache.search('rails', "~>#{version}.0").sort_by { |g| g.version.version }.last d26 2 a27 2 - STDERR.puts %(Cannot find gem for Rails ~>#{version}.0: - Install the missing gem with 'gem install -v=#{version} rails', or @ 1.3.6.1 log @Pullup ticket 2244 - requested by minskim security update for ruby-actionpack - pkgsrc/databases/ruby-activerecord/Makefile 1.10 - pkgsrc/databases/ruby-activerecord/distinfo 1.10 - pkgsrc/devel/ruby-activesupport/Makefile 1.12 - pkgsrc/devel/ruby-activesupport/distinfo 1.10 - pkgsrc/mail/ruby-actionmailer/Makefile 1.9 - pkgsrc/mail/ruby-actionmailer/distinfo 1.10 - pkgsrc/www/rails/Makefile 1.6 - pkgsrc/www/rails/PLIST 1.3 - pkgsrc/www/rails/distinfo 1.5 - pkgsrc/www/rails/patches/patch-ab 1.4 - pkgsrc/www/ruby-actionpack/Makefile 1.9, 1.10 - pkgsrc/www/ruby-actionpack/PLIST 1.10 - pkgsrc/www/ruby-actionpack/distinfo 1.10, 1.11 - pkgsrc/www/ruby-actionwebservice/Makefile 1.8 - pkgsrc/www/ruby-actionwebservice/distinfo 1.9 Module Name: pkgsrc Committed By: minskim Date: Tue Oct 16 02:56:02 UTC 2007 Modified Files: pkgsrc/devel/ruby-activesupport: Makefile distinfo Log Message: Update ruby-activesupport to 1.4.4. Changes: * Backport: allow array and hash query parameters. Array route parameters are converted/to/a/path as before. * Demote Hash#to_xml to use XmlSimple#xml_in_string so it can't read files or stdin. * Document Object#blank?. * Update Dependencies to ignore constants inherited from ancestors. * Improved multibyte performance by relying less on exception raising --- Module Name: pkgsrc Committed By: minskim Date: Tue Oct 16 03:17:32 UTC 2007 Modified Files: pkgsrc/www/ruby-actionpack: Makefile PLIST distinfo Log Message: Update ruby-actionpack to 1.13.5. Changes: * Backport: allow array and hash query parameters. Array route parameters are converted/to/a/path as before. #6765, #7047, #7462 [bgipsy, Jeremy McAnally, Dan Kubb, brendan, Diego Algorta Casamayou] * Fix in place editor's setter action with non-string fields. #7418 [Andreas] * Only accept session ids from cookies, prevents session fixation attacks. * Change the resource seperator from ; to / change the generated routes to use the new-style named routes. e.g. new_group_user_path(@@group) instead of group_new_user_path(@@group). [pixeltrix] * Integration tests: introduce methods for other HTTP methods. #6353 [caboose] * Improve performance of action caching. Closes #8231 [skaes] * Fix errors with around_filters which do not yield, restore 1.1 behaviour with after filters. Closes #8891 [skaes] * Allow you to delete cookies with options. Closes #3685 * Deprecate pagination. Install the classic_pagination plugin for forward compatibility, or move to the superior will_paginate plugin. #8157 * Fix filtered parameter logging with nil parameter values. #8422 [choonkeat] * Integration tests: alias xhr to xml_http_request and add a request_method argument instead of always using POST. #7124 * Document caches_action. #5419 [Jarkko Laine] * observe_form always sends the serialized form. #5271 * Update UrlWriter to accept :anchor parameter. Closes #6771. [octopod] * Replace the current block/continuation filter chain handling by an implementation based on a simple loop. Closes #8226 [Stefan Kaes] * Return the string representation from an Xml Builder when rendering a partial. #5044 [tpope] * Cleaned up, corrected, and mildly expanded ActionPack documentation. Closes #7190 [jeremymcanally] * Small collection of ActionController documentation cleanups. Closes #7319 * Performance: patch cgi/session/pstore to require digest/md5 once rather than per #initialize. #7583 [Stefan Kaes] * Deprecation: verification with :redirect_to => :named_route shouldn't be deprecated. #7525 [Justin French] --- Module Name: pkgsrc Committed By: minskim Date: Tue Oct 16 03:05:39 UTC 2007 Modified Files: pkgsrc/databases/ruby-activerecord: Makefile distinfo Log Message: Update ruby-activerecord to 1.15.5. Changes: * Depend on Action Pack 1.4.4 * Fix #count on a has_many :through association so that it recognizes the :uniq option. Closes #8801 [lifofifo] * Don't clobber includes passed to has_many.count [danger] * Make sure has_many uses :include when counting [danger] * Save associated records only if the association is already loaded. #8713 * Changing the :default Date format doesn't break date quoting. #6312 * Allow nil serialized attributes with a set class constraint. #7293 * belongs_to assignment creates a new proxy rather than modifying its target in-place. #8412 [mmangino@@elevatedrails.com] * Fix column type detection while loading fixtures. Closes #7987 [roderickvd] * Document deep eager includes. #6267 [Josh Susser, Dan Manges] * Oracle: extract column length for CHAR also. #7866 [ymendel] * Small additions and fixes for ActiveRecord documentation. Closes #7342 * SQLite: binary escaping works with $KCODE='u'. #7862 [tsuka] * Improved cloning performance by relying less on exception raising #8159 --- Module Name: pkgsrc Committed By: minskim Date: Tue Oct 16 03:26:23 UTC 2007 Modified Files: pkgsrc/mail/ruby-actionmailer: Makefile distinfo Log Message: Update ruby-actionmailer to 1.3.5. Changes: * Depend on Action Pack 1.13.5 --- Module Name: pkgsrc Committed By: minskim Date: Tue Oct 16 03:31:02 UTC 2007 Modified Files: pkgsrc/www/ruby-actionwebservice: Makefile distinfo Log Message: Update ruby-actionwebservice to 1.2.5. Changes: * Depend on Action Pack 1.13.5 * Depend on Active Record 1.15.5 --- Module Name: pkgsrc Committed By: minskim Date: Tue Oct 16 04:03:43 UTC 2007 Modified Files: pkgsrc/www/rails: Makefile PLIST distinfo pkgsrc/www/rails/patches: patch-ab Log Message: Update rails to 1.2.5. Changes: * Correct RAILS_GEM_VERSION regexp. Use =version gem requirement instead of ~>version so you don't get surprised by a beta gem in production. This change means upgrading to 1.2.5 will require a boot.rb upgrade. * Move custom inflections example so available before route generation. * Add a new rake task to aid debugging of named routes. * use Gem.find_name instead of search when freezing gems. Prevent false positives for other gems with rails in the name. Closes #8729 [wselman] * Fix syntax error in dispatcher than wrecked failsafe responses. * Add Active Resource to rails:freeze:edge and drop Action Web Service. * Give generate scaffold a more descriptive database message. Closes #7316 * Canonicalize RAILS_ROOT by using File.expand_path on Windows, which doesn't have to worry about symlinks, and Pathname#realpath elsewhere, which respects symlinks in relative paths but is incompatible with Windows. #6755 [Jeremy Kemper, trevor] --- Module Name: pkgsrc Committed By: minskim Date: Mon Dec 10 05:47:03 UTC 2007 Modified Files: pkgsrc/www/ruby-actionpack: Makefile distinfo Log Message: Update ruby-actionpack to 1.13.6. Changes: * Correct Broken Fix for session_fixation attacks * Ensure that cookies handle array values correctly. Closes #9937 [queso] @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.3 2007/02/18 23:49:14 minskim Exp $ d3 1 a3 1 --- environments/boot.rb.orig 2007-10-12 09:35:07.000000000 -0700 d5 1 a5 1 @@@@ -6,33 +6,7 @@@@ unless defined?(Rails::Initializer) d11 3 a13 7 - rails_gem_version = - if defined? RAILS_GEM_VERSION - RAILS_GEM_VERSION - else - File.read("#{File.dirname(__FILE__)}/environment.rb") =~ /^[^#]*RAILS_GEM_VERSION\s+=\s+'([\d.]+)'/ - $1 - end d15 3 a17 2 - if rails_gem_version - rails_gem = Gem.cache.search('rails', "=#{rails_gem_version}.0").sort_by { |g| g.version.version }.last d23 2 a24 2 - STDERR.puts %(Cannot find gem for Rails =#{rails_gem_version}.0: - Install the missing gem with 'gem install -v=#{rails_gem_version} rails', or @ 1.2 log @Update rails to 1.2.1. Major new features: - RESTful flavor with new encouragement for resource-oriented architectures. - multibyte-safe UTF-8 wrangling. @ text @d3 1 a3 1 --- environments/boot.rb.orig 2007-01-18 13:37:44.000000000 -0800 d20 1 a20 1 - require_gem "rails", "=#{rails_gem.version.version}" d30 1 a30 1 - require_gem "rails" @ 1.1 log @Initial revision @ text @d3 1 a3 1 --- environments/boot.rb.orig 2006-08-10 10:34:33.000000000 -0700 d5 1 a5 1 @@@@ -15,29 +15,7 @@@@ unless defined?(Rails::Initializer) d16 2 a17 1 - rails_gem = Gem.cache.search('rails', "=#{version}").first d20 1 a20 1 - require_gem "rails", "=#{version}" d23 1 a23 1 - STDERR.puts %(Cannot find gem for Rails =#{version}: @ 1.1.1.1 log @Import rails-1.1.6. Rails is a full-stack framework for developing database-backed web applications according to the Model-View-Control pattern. From the Ajax in the view, to the request and response in the controller, to the domain model wrapping the database, Rails gives you a pure-Ruby development environment. To go live, all you need to add is a database and a web server. @ text @@