pkgsrcv2.git
12 years agoMerge from vendor branch TNF:
taca [Fri, 16 Dec 2011 12:57:06 +0000 (12:57 +0000)]
Merge from vendor branch TNF:
Importing www/drupal7 package version 7.10.

This is current stable release of Drupal.

Drupal is software that allows an individual or a community of users to easily
publish, manage and organize a great variety of content on a website. Tens of
thousands of people and organizations have used Drupal to set up scores of
different kinds of web sites, including

* community web portals and discussion sites
* corporate web sites/intranet portals
* personal web sites
* aficionado sites
* e-commerce applications
* resource directories

Drupal includes features to enable:

* content management systems
* blogs
* collaborative authoring environments
* forums
* newsletters
* picture galleries
* file uploads and download

12 years agoImporting www/drupal7 package version 7.10.
taca [Fri, 16 Dec 2011 12:57:06 +0000 (12:57 +0000)]
Importing www/drupal7 package version 7.10.

This is current stable release of Drupal.

Drupal is software that allows an individual or a community of users to easily
publish, manage and organize a great variety of content on a website. Tens of
thousands of people and organizations have used Drupal to set up scores of
different kinds of web sites, including

* community web portals and discussion sites
* corporate web sites/intranet portals
* personal web sites
* aficionado sites
* e-commerce applications
* resource directories

Drupal includes features to enable:

* content management systems
* blogs
* collaborative authoring environments
* forums
* newsletters
* picture galleries
* file uploads and download

12 years agoNote remove of www/drupal6-translations package.
taca [Fri, 16 Dec 2011 12:54:53 +0000 (12:54 +0000)]
Note remove of www/drupal6-translations package.

12 years ago-explicitely disable kerberos support to avoid PLIST fluctuations
drochner [Fri, 16 Dec 2011 12:54:41 +0000 (12:54 +0000)]
-explicitely disable kerberos support to avoid PLIST fluctuations
 (seen in bulk build)
-fix obvious typo in asm code (fixes i386 build)
-don't install nettle library to avoid conflict with pkgsrc/nettle
bump PKGREV

12 years agoRemove drupal6-translations.
taca [Fri, 16 Dec 2011 12:54:19 +0000 (12:54 +0000)]
Remove drupal6-translations.

Language files are maintained differnet way when this package was created.
So, remove this in complete and obsolete package now.

12 years agoRemove drupal6-translations now.
taca [Fri, 16 Dec 2011 12:53:11 +0000 (12:53 +0000)]
Remove drupal6-translations now.

12 years agoUse egg.mk, not distutils.mk.
gdt [Fri, 16 Dec 2011 12:51:56 +0000 (12:51 +0000)]
Use egg.mk, not distutils.mk.

This package can use either setuptools (egg.mk) or distutils
(distutils.mk), but it prefers setuptools and thus should be built
with our egg.mk support.  Adjust PLIST for egg.mk (different)
variables and drop eggfile conditionalization, as eggs always have
egg-info directories.

Thanks to dholland@ and obache@ for noticing/suggesting.

12 years agoNote update of www/thin package to 1.3.1.
taca [Fri, 16 Dec 2011 12:43:42 +0000 (12:43 +0000)]
Note update of www/thin package to 1.3.1.

12 years agoUpdate thin pacakge to 1.3.1.
taca [Fri, 16 Dec 2011 12:43:09 +0000 (12:43 +0000)]
Update thin pacakge to 1.3.1.

== 1.3.1 Triple Espresso
 * Fix service not working pre 1.9.

== 1.3.0 Double Espresso
 * BREAKING CHANGE: Thin no longer ships with fat Windows binaries.
   From now on, to install on Windows, install https://github.com/oneclick/rubyinstaller/wiki/Development-Kit.
 * BREAKING CHANGE: Remove automatic Content-Length setting.
   It is now the responsibility of the app (or a middleware) to set the Content-Length.
 * Log errors to STDERR [textgoeshere]
 * Shut down gracefully when receiving SIGTERM [ddollar]

     Processes are allowed a chance to shut down gracefully when receiving
     SIGTERM (http://en.wikipedia.org/wiki/SIGTERM).

     On Heroku, when shutting down a process, we send a SIGTERM followed 10
     seconds later with a SIGKILL, similar to the behavior of the init daemon
     on most Unix systems. This patch will allow Heroku apps to shut down
     gracefully when they need to be terminated / moved.

12 years agoClarify when distutils.mk should be used.
gdt [Fri, 16 Dec 2011 12:41:05 +0000 (12:41 +0000)]
Clarify when distutils.mk should be used.

12 years agoNote addition of textproc/ruby-multi_json package version 1.0.4.
taca [Fri, 16 Dec 2011 12:39:39 +0000 (12:39 +0000)]
Note addition of textproc/ruby-multi_json package version 1.0.4.

12 years agoImporting textproc/ruby-multi_json package version 1.0.4.
taca [Fri, 16 Dec 2011 12:38:43 +0000 (12:38 +0000)]
Importing textproc/ruby-multi_json package version 1.0.4.

MultiJSON

Lots of Ruby libraries utilize JSON parsing in some form, and everyone has
their favorite JSON library. In order to best support multiple JSON parsers
and libraries, multi_json is a general-purpose swappable JSON backend library.

12 years agoMerge from vendor branch TNF:
taca [Fri, 16 Dec 2011 12:38:43 +0000 (12:38 +0000)]
Merge from vendor branch TNF:
Importing textproc/ruby-multi_json package version 1.0.4.

MultiJSON

Lots of Ruby libraries utilize JSON parsing in some form, and everyone has
their favorite JSON library. In order to best support multiple JSON parsers
and libraries, multi_json is a general-purpose swappable JSON backend library.

12 years agoNote addtion of Ruby on Rails 3.1.3 packages:
taca [Fri, 16 Dec 2011 12:36:46 +0000 (12:36 +0000)]
Note addtion of Ruby on Rails 3.1.3 packages:

devel/ruby-activesupport31
devel/ruby-activemodel31
databases/ruby-activerecord31
www/ruby-actionpack31
www/ruby-activeresource31
mail/ruby-actionmailer31
devel/ruby-railties31
www/ruby-rails31

12 years agoAdd and enable ruby-rails31.
taca [Fri, 16 Dec 2011 12:34:55 +0000 (12:34 +0000)]
Add and enable ruby-rails31.

12 years agoImporting www/ruby-rails31 package version 3.1.3.
taca [Fri, 16 Dec 2011 12:34:30 +0000 (12:34 +0000)]
Importing www/ruby-rails31 package version 3.1.3.

Please refer changes for Ruby on Rails 3.1.3.

http://guides.rubyonrails.org/3_1_release_notes.html
http://weblog.rubyonrails.org/2011/8/31/rails-3-1-0-has-been-released
http://weblog.rubyonrails.org/2011/10/7/ann-rails-3-1-1
http://weblog.rubyonrails.org/2011/11/18/rails-3-1-2-has-been-released
http://weblog.rubyonrails.org/2011/11/20/rails-3-1-3-has-been-released

12 years agoMerge from vendor branch TNF:
taca [Fri, 16 Dec 2011 12:34:30 +0000 (12:34 +0000)]
Merge from vendor branch TNF:
Importing www/ruby-rails31 package version 3.1.3.

Please refer changes for Ruby on Rails 3.1.3.

http://guides.rubyonrails.org/3_1_release_notes.html
http://weblog.rubyonrails.org/2011/8/31/rails-3-1-0-has-been-released
http://weblog.rubyonrails.org/2011/10/7/ann-rails-3-1-1
http://weblog.rubyonrails.org/2011/11/18/rails-3-1-2-has-been-released
http://weblog.rubyonrails.org/2011/11/20/rails-3-1-3-has-been-released

12 years agoAdd and enable ruby-railties31.
taca [Fri, 16 Dec 2011 12:33:29 +0000 (12:33 +0000)]
Add and enable ruby-railties31.

12 years agoImporting devel/ruby-railties31 package version 3.1.3.
taca [Fri, 16 Dec 2011 12:32:50 +0000 (12:32 +0000)]
Importing devel/ruby-railties31 package version 3.1.3.

## Rails 3.1.3 (unreleased) ##

*   New apps should be generated with a sass-rails dependency of 3.1.5, not 3.1.5.rc.2

## Rails 3.1.2 (unreleased) ##

*   Engines: don't blow up if db/seeds.rb is missing.

    *Jeremy Kemper*

*   `rails new foo --skip-test-unit` should not add the `:test` task to the rake default task.
    *GH 2564*

    *José Valim*

## Rails 3.1.1 (October 7, 2011) ##

*   Add jquery-rails to Gemfile of plugins, test/dummy app needs it. Closes #3091. *Santiago Pastorino*

*   Add config.assets.initialize_on_precompile which, when set to false, forces
    `rake assets:precompile` to load the application but does not initialize it.

    To the app developer, this means configuration add in
    config/initializers/* will not be executed.

    Plugins developers need to special case their initializers that are
    meant to be run in the assets group by adding :group => :assets.

## Rails 3.1.0 (August 30, 2011) ##

*   The default database schema file is written as UTF-8. *Aaron Patterson*

*   Generated apps with --dev or --edge flags depend on git versions of
    sass-rails and coffee-rails. *Santiago Pastorino*

*   Rack::Sendfile middleware is used only if x_sendfile_header is present. *Santiago Pastorino*

*   Add JavaScript Runtime name to the Rails Info properties. *DHH*

*   Make pp enabled by default in Rails console. *Akira Matsuda*

*   Add alias `r` for rails runner. *Jordi Romero*

*   Make sprockets/railtie require explicit and add --skip-sprockets to app generator *José Valim*

*   Added Rails.groups that automatically handles Rails.env and ENV["RAILS_GROUPS"] *José Valim*

*   The new rake task assets:clean removes precompiled assets. *fxn*

*   Application and plugin generation run bundle install unless --skip-gemfile or --skip-bundle. *fxn*

*   Fixed database tasks for jdbc* adapters #jruby *Rashmi Yadav*

*   Template generation for jdbcpostgresql  #jruby *Vishnu Atrai*

*   Template generation for jdbcmysql and jdbcsqlite3 #jruby *Arun Agrawal*

*   The -j option of the application generator accepts an arbitrary string. If passed "foo",
    the gem "foo-rails" is added to the Gemfile, and the application JavaScript manifest
    requires "foo" and "foo_ujs". As of this writing "prototype-rails" and "jquery-rails"
    exist and provide those files via the asset pipeline. Default is "jquery". *fxn*

*   jQuery is no longer vendored, it is provided from now on by the jquery-rails gem. *fxn*

*   Prototype and Scriptaculous are no longer vendored, they are provided from now on
    by the prototype-rails gem. *fxn*

*   The scaffold controller will now produce SCSS file if Sass is available *Prem Sichanugrist*

*   The controller and resource generators will now automatically produce asset stubs (this can be turned off with --skip-assets). These stubs will use Coffee and Sass, if those libraries are available. *DHH*

*   jQuery is the new default JavaScript library. *fxn*

*   Changed scaffold, application, and mailer generator to create Ruby 1.9 style hash when running on Ruby 1.9 *Prem Sichanugrist*

    So instead of creating something like:

        redirect_to users_path, :notice => "User has been created"

    it will now be like this:

        redirect_to users_path, notice: "User has been created"

    You can also passing `--old-style-hash` to make Rails generate old style hash even you're on Ruby 1.9

*   Changed scaffold_controller generator to create format block for JSON instead of XML *Prem Sichanugrist*

*   Add using Turn with natural language test case names for test_help.rb when running with minitest (Ruby 1.9.2+) *DHH*

*   Direct logging of Active Record to STDOUT so it's shown inline with the results in the console *DHH*

*   Added `config.force_ssl` configuration which loads Rack::SSL middleware and force all requests to be under HTTPS protocol *DHH, Prem Sichanugrist, and Josh Peek*

*   Added `rails plugin new` command which generates rails plugin with gemspec, tests and dummy application for testing *Piotr Sarnacki*

*   Added -j parameter with jquery/prototype as options. Now you can create your apps with jQuery using `rails new myapp -j jquery`. The default is still Prototype. *siong1987*

*   Added Rack::Etag and Rack::ConditionalGet to the default middleware stack *José Valim*

*   Added Rack::Cache to the default middleware stack *Yehuda Katz and Carl Lerche*

*   Engine is now rack application *Piotr Sarnacki*

*   Added middleware stack to Engine *Piotr Sarnacki*

*   Engine can now load plugins *Piotr Sarnacki*

*   Engine can load its own environment file *Piotr Sarnacki*

*   Added helpers to call engines' route helpers from application and vice versa *Piotr Sarnacki*

*   Task for copying plugins' and engines' migrations to application's db/migrate directory *Piotr Sarnacki*

*   Changed ActionDispatch::Static to allow handling multiple directories *Piotr Sarnacki*

*   Added isolate_namespace() method to Engine, which sets Engine as isolated *Piotr Sarnacki*

*   Include all helpers from plugins and shared engines in application *Piotr Sarnacki*

12 years agoMerge from vendor branch TNF:
taca [Fri, 16 Dec 2011 12:32:50 +0000 (12:32 +0000)]
Merge from vendor branch TNF:
Importing devel/ruby-railties31 package version 3.1.3.

## Rails 3.1.3 (unreleased) ##

*   New apps should be generated with a sass-rails dependency of 3.1.5, not 3.1.5.rc.2

## Rails 3.1.2 (unreleased) ##

*   Engines: don't blow up if db/seeds.rb is missing.

    *Jeremy Kemper*

*   `rails new foo --skip-test-unit` should not add the `:test` task to the rake default task.
    *GH 2564*

    *José Valim*

## Rails 3.1.1 (October 7, 2011) ##

*   Add jquery-rails to Gemfile of plugins, test/dummy app needs it. Closes #3091. *Santiago Pastorino*

*   Add config.assets.initialize_on_precompile which, when set to false, forces
    `rake assets:precompile` to load the application but does not initialize it.

    To the app developer, this means configuration add in
    config/initializers/* will not be executed.

    Plugins developers need to special case their initializers that are
    meant to be run in the assets group by adding :group => :assets.

## Rails 3.1.0 (August 30, 2011) ##

*   The default database schema file is written as UTF-8. *Aaron Patterson*

*   Generated apps with --dev or --edge flags depend on git versions of
    sass-rails and coffee-rails. *Santiago Pastorino*

*   Rack::Sendfile middleware is used only if x_sendfile_header is present. *Santiago Pastorino*

*   Add JavaScript Runtime name to the Rails Info properties. *DHH*

*   Make pp enabled by default in Rails console. *Akira Matsuda*

*   Add alias `r` for rails runner. *Jordi Romero*

*   Make sprockets/railtie require explicit and add --skip-sprockets to app generator *José Valim*

*   Added Rails.groups that automatically handles Rails.env and ENV["RAILS_GROUPS"] *José Valim*

*   The new rake task assets:clean removes precompiled assets. *fxn*

*   Application and plugin generation run bundle install unless --skip-gemfile or --skip-bundle. *fxn*

*   Fixed database tasks for jdbc* adapters #jruby *Rashmi Yadav*

*   Template generation for jdbcpostgresql  #jruby *Vishnu Atrai*

*   Template generation for jdbcmysql and jdbcsqlite3 #jruby *Arun Agrawal*

*   The -j option of the application generator accepts an arbitrary string. If passed "foo",
    the gem "foo-rails" is added to the Gemfile, and the application JavaScript manifest
    requires "foo" and "foo_ujs". As of this writing "prototype-rails" and "jquery-rails"
    exist and provide those files via the asset pipeline. Default is "jquery". *fxn*

*   jQuery is no longer vendored, it is provided from now on by the jquery-rails gem. *fxn*

*   Prototype and Scriptaculous are no longer vendored, they are provided from now on
    by the prototype-rails gem. *fxn*

*   The scaffold controller will now produce SCSS file if Sass is available *Prem Sichanugrist*

*   The controller and resource generators will now automatically produce asset stubs (this can be turned off with --skip-assets). These stubs will use Coffee and Sass, if those libraries are available. *DHH*

*   jQuery is the new default JavaScript library. *fxn*

*   Changed scaffold, application, and mailer generator to create Ruby 1.9 style hash when running on Ruby 1.9 *Prem Sichanugrist*

    So instead of creating something like:

        redirect_to users_path, :notice => "User has been created"

    it will now be like this:

        redirect_to users_path, notice: "User has been created"

    You can also passing `--old-style-hash` to make Rails generate old style hash even you're on Ruby 1.9

*   Changed scaffold_controller generator to create format block for JSON instead of XML *Prem Sichanugrist*

*   Add using Turn with natural language test case names for test_help.rb when running with minitest (Ruby 1.9.2+) *DHH*

*   Direct logging of Active Record to STDOUT so it's shown inline with the results in the console *DHH*

*   Added `config.force_ssl` configuration which loads Rack::SSL middleware and force all requests to be under HTTPS protocol *DHH, Prem Sichanugrist, and Josh Peek*

*   Added `rails plugin new` command which generates rails plugin with gemspec, tests and dummy application for testing *Piotr Sarnacki*

*   Added -j parameter with jquery/prototype as options. Now you can create your apps with jQuery using `rails new myapp -j jquery`. The default is still Prototype. *siong1987*

*   Added Rack::Etag and Rack::ConditionalGet to the default middleware stack *José Valim*

*   Added Rack::Cache to the default middleware stack *Yehuda Katz and Carl Lerche*

*   Engine is now rack application *Piotr Sarnacki*

*   Added middleware stack to Engine *Piotr Sarnacki*

*   Engine can now load plugins *Piotr Sarnacki*

*   Engine can load its own environment file *Piotr Sarnacki*

*   Added helpers to call engines' route helpers from application and vice versa *Piotr Sarnacki*

*   Task for copying plugins' and engines' migrations to application's db/migrate directory *Piotr Sarnacki*

*   Changed ActionDispatch::Static to allow handling multiple directories *Piotr Sarnacki*

*   Added isolate_namespace() method to Engine, which sets Engine as isolated *Piotr Sarnacki*

*   Include all helpers from plugins and shared engines in application *Piotr Sarnacki*

12 years agoAdd and enable ruby-actionmailer31.
taca [Fri, 16 Dec 2011 12:32:03 +0000 (12:32 +0000)]
Add and enable ruby-actionmailer31.

12 years agoImporrting mail/ruby-actionmailer31 package version 3.1.3.
taca [Fri, 16 Dec 2011 12:31:25 +0000 (12:31 +0000)]
Imporrting mail/ruby-actionmailer31 package version 3.1.3.

## Rails 3.1.1 (October 7, 2011) ##

*   No changes

## Rails 3.1.0 (August 30, 2011) ##

*   No changes

12 years agoMerge from vendor branch TNF:
taca [Fri, 16 Dec 2011 12:31:25 +0000 (12:31 +0000)]
Merge from vendor branch TNF:
Imporrting mail/ruby-actionmailer31 package version 3.1.3.

## Rails 3.1.1 (October 7, 2011) ##

*   No changes

## Rails 3.1.0 (August 30, 2011) ##

*   No changes

12 years agoAdd and enable ruby-actionpack31 and ruby-activeresource31.
taca [Fri, 16 Dec 2011 12:30:20 +0000 (12:30 +0000)]
Add and enable ruby-actionpack31 and ruby-activeresource31.

12 years agoImporting www/ruby-activeresource31 package version 3.1.3.
taca [Fri, 16 Dec 2011 12:28:37 +0000 (12:28 +0000)]
Importing www/ruby-activeresource31 package version 3.1.3.

## Rails 3.1.1 (October 7, 2011) ##

*   No changes

## Rails 3.1.0 (August 30, 2011) ##

*   The default format has been changed to JSON for all requests. If you want to continue to use XML you will need to set `self.format = :xml` in the class. eg.

    class User < ActiveResource::Base
    self.format = :xml
    end

12 years agoMerge from vendor branch TNF:
taca [Fri, 16 Dec 2011 12:28:37 +0000 (12:28 +0000)]
Merge from vendor branch TNF:
Importing www/ruby-activeresource31 package version 3.1.3.

## Rails 3.1.1 (October 7, 2011) ##

*   No changes

## Rails 3.1.0 (August 30, 2011) ##

*   The default format has been changed to JSON for all requests. If you want to continue to use XML you will need to set `self.format = :xml` in the class. eg.

    class User < ActiveResource::Base
    self.format = :xml
    end

12 years agoImporting www/ruby-actionpack31 package version 3.1.3.
taca [Fri, 16 Dec 2011 12:26:30 +0000 (12:26 +0000)]
Importing www/ruby-actionpack31 package version 3.1.3.

## Rails 3.1.3 (unreleased) ##

*   Downgrade sprockets to ~> 2.0.3. Using 2.1.0 caused regressions.

*   Fix using `tranlate` helper with a html translation which uses the `:count` option for
    pluralization.

    *Jon Leighton*

## Rails 3.1.2 (unreleased) ##

*   Fix XSS security vulnerability in the `translate` helper method. When using interpolation
    in combination with HTML-safe translations, the interpolated input would not get HTML
    escaped. *GH 3664*

    Before:

        translate('foo_html', :something => '<script>') # => "...<script>..."

    After:

        translate('foo_html', :something => '<script>') # => "...&lt;script&gt;..."

    *Sergey Nartimov*

*   Upgrade sprockets dependency to ~> 2.1.0

*   Ensure that the format isn't applied twice to the cache key, else it becomes impossible
    to target with expire_action.

    *Christopher Meiklejohn*

*   Swallow error when can't unmarshall object from session.

    *Bruno Zanchet*

*   Implement a workaround for a bug in ruby-1.9.3p0 where an error would be raised
    while attempting to convert a template from one encoding to another.

    Please see http://redmine.ruby-lang.org/issues/5564 for details of the bug.

    The workaround is to load all conversions into memory ahead of time, and will
    only happen if the ruby version is *exactly* 1.9.3p0. The hope is obviously that
    the underlying problem will be resolved in the next patchlevel release of
    1.9.3.

    *Jon Leighton*

*   Ensure users upgrading from 3.0.x to 3.1.x will properly upgrade their flash object in session (issues #3298 and #2509)

## Rails 3.1.1 (October 7, 2011) ##

*   stylesheet_link_tag('/stylesheets/application') and similar helpers doesn't
    throw Sprockets::FileOutsidePaths exception anymore *Santiago Pastorino*

*   Ensure default_asset_host_protocol is respected, closes #2980. *Jos\8f«± Valim*

    Changing rake db:schema:dump to run :environment as well as :load_config,
    as running :load_config alone will lead to the dumper being run without
    including extensions such as those included in foreigner and
    spatial_adapter.

    This reverses a change made here:
    https://github.com/rails/rails/commit/5df72a238e9fcb18daf6ab6e6dc9051c9106d7bb#L0L324

    I'm assuming here that :load_config needs to be invoked
    separately from :environment, as it is elsewhere in the
    file for db operations, if not the alternative is to go
    back to "task :dump => :environment do".

    *Ben Woosley*

*   Update to rack-cache 1.1.

    Versions prior to 1.1 delete the If-Modified-Since and If-Not-Modified
    headers when config.action_controller.perform_caching is true. This has two
    problems:
        * unexpected inconsistent behaviour between development &
          production environments
        * breaks applications that use of these headers

    *Brendan Ribera*

*   Ensure that enhancements to assets:precompile task are only run once *Sam Pohlenz*

*   TestCase should respect the view_assigns API instead of pulling variables on
    its own. *Jos\8f«± Valim*

*   javascript_path and stylesheet_path now refer to /assets if asset pipelining
    is on. *Santiago Pastorino*

*   button_to support form option. Now you're able to pass for example
    'data-type' => 'json'. *ihower*

*   image_path and image_tag should use /assets if asset pipelining is turned
    on. Closes #3126 *Santiago Pastorino and christos*

*   Avoid use of existing precompiled assets during rake assets:precompile run.
    Closes #3119 *Guillermo Iguaran*

*   Copy assets to nondigested filenames too *Santiago Pastorino*

*   Give precedence to `config.digest = false` over the existence of
    manifest.yml asset digests *christos*

*   escape options for the stylesheet_link_tag method *Alexey Vakhov*

*   Re-launch assets:precompile task using (Rake.)ruby instead of Kernel.exec so
    it works on Windows *cablegram*

*   env var passed to process shouldn't be modified in process method. [Santiago
    Pastorino]

*   `rake assets:precompile` loads the application but does not initialize
    it.

    To the app developer, this means configuration add in
    config/initializers/* will not be executed.

    Plugins developers need to special case their initializers that are
    meant to be run in the assets group by adding :group => :assets. *Jos\8f«± Valim*

*   Sprockets uses config.assets.prefix for asset_path *asee*

*   FileStore key_file_path properly limit filenames to 255 characters. *phuibonhoa*

*   Fix Hash#to_query edge case with html_safe strings. *brainopia*

*   Allow asset tag helper methods to accept :digest => false option in order to completely avoid the digest generation.
    Useful for linking assets from static html files or from emails when the user
    could probably look at an older html email with an older asset. *Santiago Pastorino*

*   Don't mount Sprockets server at config.assets.prefix if config.assets.compile is false. *Mark J. Titorenko*

*   Set relative url root in assets when controller isn't available for Sprockets (eg. Sass files using asset_path). Fixes #2435 *Guillermo Iguaran*

*   Fix basic auth credential generation to not make newlines. GH #2882

*   Fixed the behavior of asset pipeline when config.assets.digest and config.assets.compile are false and requested asset isn't precompiled.
    Before the requested asset were compiled anyway ignoring that the config.assets.compile flag is false. *Guillermo Iguaran*

*   CookieJar is now Enumerable. Fixes #2795

*   Fixed AssetNotPrecompiled error raised when rake assets:precompile is compiling certain .erb files. See GH #2763 #2765 #2805 *Guillermo Iguaran*

*   Manifest is correctly placed in assets path when default assets prefix is changed. Fixes #2776 *Guillermo Iguaran*

*   Fixed stylesheet_link_tag and javascript_include_tag to respect additional options passed by the users when debug is on. *Guillermo Iguaran*

*   Fix ActiveRecord#exists? when passsed a nil value

*   Fix assert_select_email to work on multipart and non-multipart emails as the method stopped working correctly in Rails 3.x due to changes in the new mail gem.

## Rails 3.1.0 (August 30, 2011) ##

*   Param values are `paramified` in controller tests. *David Chelimsky*

*   x_sendfile_header now defaults to nil and config/environments/production.rb doesn't set a particular value for it. This allows servers to set it through X-Sendfile-Type. *Santiago Pastorino*

*   The submit form helper does not generate an id "object_name_id" anymore. *fbrusatti*

*   Make sure respond_with with :js tries to render a template in all cases *Jos\8f«± Valim*

*   json_escape will now return a SafeBuffer string if it receives SafeBuffer string *tenderlove*

*   Make sure escape_js returns SafeBuffer string if it receives SafeBuffer string *Prem Sichanugrist*

*   Fix escape_js to work correctly with the new SafeBuffer restriction *Paul Gallagher*

*   Brought back alternative convention for namespaced models in i18n *thoefer*

    Now the key can be either "namespace.model" or "namespace/model" until further deprecation.

*   It is prohibited to perform a in-place SafeBuffer mutation *tenderlove*

    The old behavior of SafeBuffer allowed you to mutate string in place via
    method like `sub!`. These methods can add unsafe strings to a safe buffer,
    and the safe buffer will continue to be marked as safe.

    An example problem would be something like this:

        <%= link_to('hello world', @user).sub!(/hello/, params[:xss])  %>

    In the above example, an untrusted string (`params[:xss]`) is added to the
    safe buffer returned by `link_to`, and the untrusted content is successfully
    sent to the client without being escaped.  To prevent this from happening
    `sub!` and other similar methods will now raise an exception when they are called on a safe buffer.

    In addition to the in-place versions, some of the versions of these methods which return a copy of the string will incorrectly mark strings as safe. For example:

         <%= link_to('hello world', @user).sub(/hello/, params[:xss]) %>

    The new versions will now ensure that *all* strings returned by these methods on safe buffers are marked unsafe.

    You can read more about this change in http://groups.google.com/group/rubyonrails-security/browse_thread/thread/2e516e7acc96c4fb

*   Warn if we cannot verify CSRF token authenticity *Jos\8f«± Valim*

*   Allow AM/PM format in datetime selectors *Aditya Sanghi*

*   Only show dump of regular env methods on exception screen (not all the rack crap) *DHH*

*   auto_link has been removed with no replacement.  If you still use auto_link
    please install the rails_autolink gem:
        http://github.com/tenderlove/rails_autolink

    *tenderlove*

*   Added streaming support, you can enable it with: *Jos\8f«± Valim*

        class PostsController < ActionController::Base
          stream :only => :index
        end

    Please read the docs at `ActionController::Streaming` for more information.

*   Added `ActionDispatch::Request.ignore_accept_header` to ignore accept headers and only consider the format given as parameter *Jos\8f«± Valim*

*   Created `ActionView::Renderer` and specified an API for `ActionView::Context`, check those objects for more information *Jos\8f«± Valim*

*   Added `ActionController::ParamsWrapper` to wrap parameters into a nested hash, and will be turned on for JSON request in new applications by default *Prem Sichanugrist*

    This can be customized by setting `ActionController::Base.wrap_parameters` in `config/initializer/wrap_parameters.rb`

*   RJS has been extracted out to a gem. *fxn*

*   Implicit actions named not_implemented can be rendered. *Santiago Pastorino*

*   Wildcard route will always match the optional format segment by default. *Prem Sichanugrist*

    For example if you have this route:

        map '*pages' => 'pages#show'

    by requesting '/foo/bar.json', your `params[:pages]` will be equals to "foo/bar" with the request format of JSON. If you want the old 3.0.x behavior back, you could supply `:format => false` like this:

        map '*pages' => 'pages#show', :format => false

*   Added Base.http_basic_authenticate_with to do simple http basic authentication with a single class method call *DHH*

        class PostsController < ApplicationController
          USER_NAME, PASSWORD = "dhh", "secret"

          before_filter :authenticate, :except => [ :index ]

          def index
            render :text => "Everyone can see me!"
          end

          def edit
            render :text => "I'm only accessible if you know the password"
          end

          private
            def authenticate
              authenticate_or_request_with_http_basic do |user_name, password|
                user_name == USER_NAME && password == PASSWORD
              end
            end
        end

    ..can now be written as

        class PostsController < ApplicationController
          http_basic_authenticate_with :name => "dhh", :password => "secret", :except => :index

          def index
            render :text => "Everyone can see me!"
          end

          def edit
            render :text => "I'm only accessible if you know the password"
          end
        end

*   Allow you to add `force_ssl` into controller to force browser to transfer data via HTTPS protocol on that particular controller. You can also specify `:only` or `:except` to specific it to particular action. *DHH and Prem Sichanugrist*

*   Allow FormHelper#form_for to specify the :method as a direct option instead of through the :html hash *DHH*

        form_for(@post, remote: true, method: :delete) instead of form_for(@post, remote: true, html: { method: :delete })

*   Make JavaScriptHelper#j() an alias for JavaScriptHelper#escape_javascript() -- note this then supersedes the Object#j() method that the JSON gem adds within templates using the JavaScriptHelper *DHH*

*   Sensitive query string parameters (specified in config.filter_parameters) will now be filtered out from the request paths in the log file. *Prem Sichanugrist, fxn*

*   URL parameters which return false for to_param now appear in the query string (previously they were removed) *Andrew White*

*   URL parameters which return nil for to_param are now removed from the query string *Andrew White*

*   ActionDispatch::MiddlewareStack now uses composition over inheritance. It is
    no longer an array which means there may be methods missing that were not
    tested.

*   Add an :authenticity_token option to form_tag for custom handling or to omit the token (pass :authenticity_token => false).  *Jakub Ku\8f«õma, Igor Wiedler*

*   HTML5 button_tag helper. *Rizwan Reza*

*   Template lookup now searches further up in the inheritance chain. *Artemave*

*   Brought back config.action_view.cache_template_loading, which allows to decide whether templates should be cached or not. *Piotr Sarnacki*

*   url_for and named url helpers now accept :subdomain and :domain as options, *Josh Kalderimis*

*   The redirect route method now also accepts a hash of options which will only change the parts of the url in question, or an object which responds to call, allowing for redirects to be reused (check the documentation for examples). *Josh Kalderimis*

*   Added config.action_controller.include_all_helpers. By default 'helper :all' is done in ActionController::Base, which includes all the helpers by default. Setting include_all_helpers to false will result in including only application_helper and helper corresponding to controller (like foo_helper for foo_controller). *Piotr Sarnacki*

*   Added a convenience idiom to generate HTML5 data-* attributes in tag helpers from a :data hash of options:

        tag("div", :data => {:name => 'Stephen', :city_state => %w(Chicago IL)})
        # => <div data-name="Stephen" data-city-state="[&quot;Chicago&quot;,&quot;IL&quot;]" />

    Keys are dasherized. Values are JSON-encoded, except for strings and symbols. *Stephen Celis*

*   Deprecate old template handler API. The new API simply requires a template handler to respond to call. *Jos\8f«± Valim*

*   :rhtml and :rxml were finally removed as template handlers. *Jos\8f«± Valim*

*   Moved etag responsibility from ActionDispatch::Response to the middleware stack. *Jos\8f«± Valim*

*   Rely on Rack::Session stores API for more compatibility across the Ruby world. This is backwards incompatible since Rack::Session expects #get_session to accept 4 arguments and requires #destroy_session instead of simply #destroy. *Jos\8f«± Valim*

*   file_field automatically adds :multipart => true to the enclosing form. *Santiago Pastorino*

*   Renames csrf_meta_tag -> csrf_meta_tags, and aliases csrf_meta_tag for backwards compatibility. *fxn*

*   Add Rack::Cache to the default stack. Create a Rails store that delegates to the Rails cache, so by default, whatever caching layer you are using will be used for HTTP caching. Note that Rack::Cache will be used if you use #expires_in, #fresh_when or #stale with :public => true. Otherwise, the caching rules will apply to the browser only. *Yehuda Katz, Carl Lerche*

12 years agoMerge from vendor branch TNF:
taca [Fri, 16 Dec 2011 12:26:30 +0000 (12:26 +0000)]
Merge from vendor branch TNF:
Importing www/ruby-actionpack31 package version 3.1.3.

## Rails 3.1.3 (unreleased) ##

*   Downgrade sprockets to ~> 2.0.3. Using 2.1.0 caused regressions.

*   Fix using `tranlate` helper with a html translation which uses the `:count` option for
    pluralization.

    *Jon Leighton*

## Rails 3.1.2 (unreleased) ##

*   Fix XSS security vulnerability in the `translate` helper method. When using interpolation
    in combination with HTML-safe translations, the interpolated input would not get HTML
    escaped. *GH 3664*

    Before:

        translate('foo_html', :something => '<script>') # => "...<script>..."

    After:

        translate('foo_html', :something => '<script>') # => "...&lt;script&gt;..."

    *Sergey Nartimov*

*   Upgrade sprockets dependency to ~> 2.1.0

*   Ensure that the format isn't applied twice to the cache key, else it becomes impossible
    to target with expire_action.

    *Christopher Meiklejohn*

*   Swallow error when can't unmarshall object from session.

    *Bruno Zanchet*

*   Implement a workaround for a bug in ruby-1.9.3p0 where an error would be raised
    while attempting to convert a template from one encoding to another.

    Please see http://redmine.ruby-lang.org/issues/5564 for details of the bug.

    The workaround is to load all conversions into memory ahead of time, and will
    only happen if the ruby version is *exactly* 1.9.3p0. The hope is obviously that
    the underlying problem will be resolved in the next patchlevel release of
    1.9.3.

    *Jon Leighton*

*   Ensure users upgrading from 3.0.x to 3.1.x will properly upgrade their flash object in session (issues #3298 and #2509)

## Rails 3.1.1 (October 7, 2011) ##

*   stylesheet_link_tag('/stylesheets/application') and similar helpers doesn't
    throw Sprockets::FileOutsidePaths exception anymore *Santiago Pastorino*

*   Ensure default_asset_host_protocol is respected, closes #2980. *Jos\8f«± Valim*

    Changing rake db:schema:dump to run :environment as well as :load_config,
    as running :load_config alone will lead to the dumper being run without
    including extensions such as those included in foreigner and
    spatial_adapter.

    This reverses a change made here:
    https://github.com/rails/rails/commit/5df72a238e9fcb18daf6ab6e6dc9051c9106d7bb#L0L324

    I'm assuming here that :load_config needs to be invoked
    separately from :environment, as it is elsewhere in the
    file for db operations, if not the alternative is to go
    back to "task :dump => :environment do".

    *Ben Woosley*

*   Update to rack-cache 1.1.

    Versions prior to 1.1 delete the If-Modified-Since and If-Not-Modified
    headers when config.action_controller.perform_caching is true. This has two
    problems:
        * unexpected inconsistent behaviour between development &
          production environments
        * breaks applications that use of these headers

    *Brendan Ribera*

*   Ensure that enhancements to assets:precompile task are only run once *Sam Pohlenz*

*   TestCase should respect the view_assigns API instead of pulling variables on
    its own. *Jos\8f«± Valim*

*   javascript_path and stylesheet_path now refer to /assets if asset pipelining
    is on. *Santiago Pastorino*

*   button_to support form option. Now you're able to pass for example
    'data-type' => 'json'. *ihower*

*   image_path and image_tag should use /assets if asset pipelining is turned
    on. Closes #3126 *Santiago Pastorino and christos*

*   Avoid use of existing precompiled assets during rake assets:precompile run.
    Closes #3119 *Guillermo Iguaran*

*   Copy assets to nondigested filenames too *Santiago Pastorino*

*   Give precedence to `config.digest = false` over the existence of
    manifest.yml asset digests *christos*

*   escape options for the stylesheet_link_tag method *Alexey Vakhov*

*   Re-launch assets:precompile task using (Rake.)ruby instead of Kernel.exec so
    it works on Windows *cablegram*

*   env var passed to process shouldn't be modified in process method. [Santiago
    Pastorino]

*   `rake assets:precompile` loads the application but does not initialize
    it.

    To the app developer, this means configuration add in
    config/initializers/* will not be executed.

    Plugins developers need to special case their initializers that are
    meant to be run in the assets group by adding :group => :assets. *Jos\8f«± Valim*

*   Sprockets uses config.assets.prefix for asset_path *asee*

*   FileStore key_file_path properly limit filenames to 255 characters. *phuibonhoa*

*   Fix Hash#to_query edge case with html_safe strings. *brainopia*

*   Allow asset tag helper methods to accept :digest => false option in order to completely avoid the digest generation.
    Useful for linking assets from static html files or from emails when the user
    could probably look at an older html email with an older asset. *Santiago Pastorino*

*   Don't mount Sprockets server at config.assets.prefix if config.assets.compile is false. *Mark J. Titorenko*

*   Set relative url root in assets when controller isn't available for Sprockets (eg. Sass files using asset_path). Fixes #2435 *Guillermo Iguaran*

*   Fix basic auth credential generation to not make newlines. GH #2882

*   Fixed the behavior of asset pipeline when config.assets.digest and config.assets.compile are false and requested asset isn't precompiled.
    Before the requested asset were compiled anyway ignoring that the config.assets.compile flag is false. *Guillermo Iguaran*

*   CookieJar is now Enumerable. Fixes #2795

*   Fixed AssetNotPrecompiled error raised when rake assets:precompile is compiling certain .erb files. See GH #2763 #2765 #2805 *Guillermo Iguaran*

*   Manifest is correctly placed in assets path when default assets prefix is changed. Fixes #2776 *Guillermo Iguaran*

*   Fixed stylesheet_link_tag and javascript_include_tag to respect additional options passed by the users when debug is on. *Guillermo Iguaran*

*   Fix ActiveRecord#exists? when passsed a nil value

*   Fix assert_select_email to work on multipart and non-multipart emails as the method stopped working correctly in Rails 3.x due to changes in the new mail gem.

## Rails 3.1.0 (August 30, 2011) ##

*   Param values are `paramified` in controller tests. *David Chelimsky*

*   x_sendfile_header now defaults to nil and config/environments/production.rb doesn't set a particular value for it. This allows servers to set it through X-Sendfile-Type. *Santiago Pastorino*

*   The submit form helper does not generate an id "object_name_id" anymore. *fbrusatti*

*   Make sure respond_with with :js tries to render a template in all cases *Jos\8f«± Valim*

*   json_escape will now return a SafeBuffer string if it receives SafeBuffer string *tenderlove*

*   Make sure escape_js returns SafeBuffer string if it receives SafeBuffer string *Prem Sichanugrist*

*   Fix escape_js to work correctly with the new SafeBuffer restriction *Paul Gallagher*

*   Brought back alternative convention for namespaced models in i18n *thoefer*

    Now the key can be either "namespace.model" or "namespace/model" until further deprecation.

*   It is prohibited to perform a in-place SafeBuffer mutation *tenderlove*

    The old behavior of SafeBuffer allowed you to mutate string in place via
    method like `sub!`. These methods can add unsafe strings to a safe buffer,
    and the safe buffer will continue to be marked as safe.

    An example problem would be something like this:

        <%= link_to('hello world', @user).sub!(/hello/, params[:xss])  %>

    In the above example, an untrusted string (`params[:xss]`) is added to the
    safe buffer returned by `link_to`, and the untrusted content is successfully
    sent to the client without being escaped.  To prevent this from happening
    `sub!` and other similar methods will now raise an exception when they are called on a safe buffer.

    In addition to the in-place versions, some of the versions of these methods which return a copy of the string will incorrectly mark strings as safe. For example:

         <%= link_to('hello world', @user).sub(/hello/, params[:xss]) %>

    The new versions will now ensure that *all* strings returned by these methods on safe buffers are marked unsafe.

    You can read more about this change in http://groups.google.com/group/rubyonrails-security/browse_thread/thread/2e516e7acc96c4fb

*   Warn if we cannot verify CSRF token authenticity *Jos\8f«± Valim*

*   Allow AM/PM format in datetime selectors *Aditya Sanghi*

*   Only show dump of regular env methods on exception screen (not all the rack crap) *DHH*

*   auto_link has been removed with no replacement.  If you still use auto_link
    please install the rails_autolink gem:
        http://github.com/tenderlove/rails_autolink

    *tenderlove*

*   Added streaming support, you can enable it with: *Jos\8f«± Valim*

        class PostsController < ActionController::Base
          stream :only => :index
        end

    Please read the docs at `ActionController::Streaming` for more information.

*   Added `ActionDispatch::Request.ignore_accept_header` to ignore accept headers and only consider the format given as parameter *Jos\8f«± Valim*

*   Created `ActionView::Renderer` and specified an API for `ActionView::Context`, check those objects for more information *Jos\8f«± Valim*

*   Added `ActionController::ParamsWrapper` to wrap parameters into a nested hash, and will be turned on for JSON request in new applications by default *Prem Sichanugrist*

    This can be customized by setting `ActionController::Base.wrap_parameters` in `config/initializer/wrap_parameters.rb`

*   RJS has been extracted out to a gem. *fxn*

*   Implicit actions named not_implemented can be rendered. *Santiago Pastorino*

*   Wildcard route will always match the optional format segment by default. *Prem Sichanugrist*

    For example if you have this route:

        map '*pages' => 'pages#show'

    by requesting '/foo/bar.json', your `params[:pages]` will be equals to "foo/bar" with the request format of JSON. If you want the old 3.0.x behavior back, you could supply `:format => false` like this:

        map '*pages' => 'pages#show', :format => false

*   Added Base.http_basic_authenticate_with to do simple http basic authentication with a single class method call *DHH*

        class PostsController < ApplicationController
          USER_NAME, PASSWORD = "dhh", "secret"

          before_filter :authenticate, :except => [ :index ]

          def index
            render :text => "Everyone can see me!"
          end

          def edit
            render :text => "I'm only accessible if you know the password"
          end

          private
            def authenticate
              authenticate_or_request_with_http_basic do |user_name, password|
                user_name == USER_NAME && password == PASSWORD
              end
            end
        end

    ..can now be written as

        class PostsController < ApplicationController
          http_basic_authenticate_with :name => "dhh", :password => "secret", :except => :index

          def index
            render :text => "Everyone can see me!"
          end

          def edit
            render :text => "I'm only accessible if you know the password"
          end
        end

*   Allow you to add `force_ssl` into controller to force browser to transfer data via HTTPS protocol on that particular controller. You can also specify `:only` or `:except` to specific it to particular action. *DHH and Prem Sichanugrist*

*   Allow FormHelper#form_for to specify the :method as a direct option instead of through the :html hash *DHH*

        form_for(@post, remote: true, method: :delete) instead of form_for(@post, remote: true, html: { method: :delete })

*   Make JavaScriptHelper#j() an alias for JavaScriptHelper#escape_javascript() -- note this then supersedes the Object#j() method that the JSON gem adds within templates using the JavaScriptHelper *DHH*

*   Sensitive query string parameters (specified in config.filter_parameters) will now be filtered out from the request paths in the log file. *Prem Sichanugrist, fxn*

*   URL parameters which return false for to_param now appear in the query string (previously they were removed) *Andrew White*

*   URL parameters which return nil for to_param are now removed from the query string *Andrew White*

*   ActionDispatch::MiddlewareStack now uses composition over inheritance. It is
    no longer an array which means there may be methods missing that were not
    tested.

*   Add an :authenticity_token option to form_tag for custom handling or to omit the token (pass :authenticity_token => false).  *Jakub Ku\8f«õma, Igor Wiedler*

*   HTML5 button_tag helper. *Rizwan Reza*

*   Template lookup now searches further up in the inheritance chain. *Artemave*

*   Brought back config.action_view.cache_template_loading, which allows to decide whether templates should be cached or not. *Piotr Sarnacki*

*   url_for and named url helpers now accept :subdomain and :domain as options, *Josh Kalderimis*

*   The redirect route method now also accepts a hash of options which will only change the parts of the url in question, or an object which responds to call, allowing for redirects to be reused (check the documentation for examples). *Josh Kalderimis*

*   Added config.action_controller.include_all_helpers. By default 'helper :all' is done in ActionController::Base, which includes all the helpers by default. Setting include_all_helpers to false will result in including only application_helper and helper corresponding to controller (like foo_helper for foo_controller). *Piotr Sarnacki*

*   Added a convenience idiom to generate HTML5 data-* attributes in tag helpers from a :data hash of options:

        tag("div", :data => {:name => 'Stephen', :city_state => %w(Chicago IL)})
        # => <div data-name="Stephen" data-city-state="[&quot;Chicago&quot;,&quot;IL&quot;]" />

    Keys are dasherized. Values are JSON-encoded, except for strings and symbols. *Stephen Celis*

*   Deprecate old template handler API. The new API simply requires a template handler to respond to call. *Jos\8f«± Valim*

*   :rhtml and :rxml were finally removed as template handlers. *Jos\8f«± Valim*

*   Moved etag responsibility from ActionDispatch::Response to the middleware stack. *Jos\8f«± Valim*

*   Rely on Rack::Session stores API for more compatibility across the Ruby world. This is backwards incompatible since Rack::Session expects #get_session to accept 4 arguments and requires #destroy_session instead of simply #destroy. *Jos\8f«± Valim*

*   file_field automatically adds :multipart => true to the enclosing form. *Santiago Pastorino*

*   Renames csrf_meta_tag -> csrf_meta_tags, and aliases csrf_meta_tag for backwards compatibility. *fxn*

*   Add Rack::Cache to the default stack. Create a Rails store that delegates to the Rails cache, so by default, whatever caching layer you are using will be used for HTTP caching. Note that Rack::Cache will be used if you use #expires_in, #fresh_when or #stale with :public => true. Otherwise, the caching rules will apply to the browser only. *Yehuda Katz, Carl Lerche*

12 years agoAdd and enable ruby-activerecord31.
taca [Fri, 16 Dec 2011 12:25:05 +0000 (12:25 +0000)]
Add and enable ruby-activerecord31.

12 years agoImporting databases/ruby-activerecord31 package version 3.1.3.
taca [Fri, 16 Dec 2011 12:24:12 +0000 (12:24 +0000)]
Importing databases/ruby-activerecord31 package version 3.1.3.

## Rails 3.1.3 (unreleased) ##

*   Perf fix: If we're deleting all records in an association, don't add a IN(..) clause
    to the query. *GH 3672*

    *Jon Leighton*

*   Fix bug with referencing other mysql databases in set_table_name. *GH 3690*

*   Fix performance bug with mysql databases on a server with lots of other databses. *GH 3678*

    *Christos Zisopoulos and Kenny J*

## Rails 3.1.2 (unreleased) ##

*   Fix problem with prepared statements and PostgreSQL when multiple schemas are used.
    *GH #3232*

    *Juan M. Cuello*

*   Fix bug with PostgreSQLAdapter#indexes. When the search path has multiple schemas, spaces
    were not being stripped from the schema names after the first.

    *Sean Kirby*

*   Preserve SELECT columns on the COUNT for finder_sql when possible. *GH 3503*

    *Justin Mazzi*

*   Reset prepared statement cache when schema changes impact statement results. *GH 3335*

    *Aaron Patterson*

*   Postgres: Do not attempt to deallocate a statement if the connection is no longer active.

    *Ian Leitch*

*   Prevent QueryCache leaking database connections. *GH 3243*

    *Mark J. Titorenko*

*   Fix bug where building the conditions of a nested through association could potentially
    modify the conditions of the through and/or source association. If you have experienced
    bugs with conditions appearing in the wrong queries when using nested through associations,
    this probably solves your problems. *GH #3271*

    *Jon Leighton*

*   If a record is removed from a has_many :through, all of the join records relating to that
    record should also be removed from the through association's target.

    *Jon Leighton*

*   Fix adding multiple instances of the same record to a has_many :through. *GH #3425*

    *Jon Leighton*

*   Fix creating records in a through association with a polymorphic source type. *GH #3247*

    *Jon Leighton*

*   MySQL: use the information_schema than the describe command when we look for a primary key. *GH #3440*
    *Kenny J*

## Rails 3.1.1 (October 7, 2011) ##

*   Raise an exception if the primary key of a model in an association is needed
    but unknown. Fixes #3207.

    *Jon Leighton*

*   Add deprecation for the preload_associations method. Fixes #3022.

    *Jon Leighton*

*   Don't require a DB connection when loading a model that uses set_primary_key. GH #2807.

    *Jon Leighton*

*   Fix using select() with a habtm association, e.g. Person.friends.select(:name). GH #3030 and
    \#2923.

    *Hendy Tanata*

*   Fix belongs_to polymorphic with custom primary key on target. GH #3104.

    *Jon Leighton*

*   CollectionProxy#replace should change the DB records rather than just mutating the array.
    Fixes #3020.

    *Jon Leighton*

*   LRU cache in mysql and sqlite are now per-process caches.

    * lib/active_record/connection_adapters/mysql_adapter.rb: LRU cache
     keys are per process id.
    * lib/active_record/connection_adapters/sqlite_adapter.rb: ditto

    *Aaron Patterson*

*   Database adapters use a statement pool for limiting the number of open
    prepared statments on the database.  The limit defaults to 1000, but can
    be adjusted in your database config by changing 'statement_limit'.

*   Fix clash between using 'preload', 'joins' or 'eager_load' in a default scope and including the
    default scoped model in a nested through association. (GH #2834.) *Jon Leighton*

*   Ensure we are not comparing a string with a symbol in HasManyAssociation#inverse_updates_counter_cache?.
    Fixes GH #2755, where a counter cache could be decremented twice as far as it was supposed to be.

    *Jon Leighton*

*   Don't send any queries to the database when the foreign key of a belongs_to is nil. Fixes
    GH #2828. *Georg Friedrich*

*   Fixed find_in_batches method to not include order from default_scope. See GH #2832 *Arun Agrawal*

*   Don't compute table name for abstract classes. Fixes problem with setting the primary key
    in an abstract class. See GH #2791. *Akira Matsuda*

*   Psych errors with poor yaml formatting are proxied. Fixes GH #2645 and
    GH #2731

*   Use the LIMIT word with the methods #last and #first. Fixes GH #2783 *Damien Mathieu*

## Rails 3.1.0 (August 30, 2011) ##

*   Add a proxy_association method to association proxies, which can be called by association
    extensions to access information about the association. This replaces proxy_owner etc with
    proxy_association.owner.

    *Jon Leighton*

*   Active Record's dynamic finder will now show a deprecation warning if you passing in less number of arguments than what you call in method signature. This behavior will raise ArgumentError in the next version of Rails *Prem Sichanugrist*

*   Deprecated the AssociationCollection constant. CollectionProxy is now the appropriate constant
    to use, though be warned that this is not really a public API.

    This should solve upgrade problems with the will_paginate plugin (and perhaps others). Thanks
    Paul Battley for reporting.

    *Jon Leighton*

*   ActiveRecord::MacroReflection::AssociationReflection#build_record has a new method signature.

    Before: def build_association(*options)
    After:  def build_association(*options, &block)

    Users who are redefining this method to extend functionality should ensure that the block is
    passed through to ActiveRecord::Base#new.

    This change is necessary to fix https://github.com/rails/rails/issues/1842.

    A deprecation warning and workaround has been added to 3.1, but authors will need to update
    their code for it to work correctly in 3.2.

    *Jon Leighton*

*   AR#pluralize_table_names can be used to singularize/pluralize table name of an individual model:

        class User < ActiveRecord::Base
          self.pluralize_table_names = false
        end

    Previously this could only be set globally for all models through ActiveRecord::Base.pluralize_table_names. *Guillermo Iguaran*

*   Add block setting of attributes to singular associations:

        class User < ActiveRecord::Base
          has_one :account
        end

        user.build_account{ |a| a.credit_limit => 100.0 }

    The block is called after the instance has been initialized. *Andrew White*

*   Add ActiveRecord::Base.attribute_names to return a list of attribute names. This will return an empty array if the model is abstract or table does not exists. *Prem Sichanugrist*

*   CSV Fixtures are deprecated and support will be removed in Rails 3.2.0

*   AR#new, AR#create, AR#create!, AR#update_attributes and AR#update_attributes! all accept a second hash as option that allows you
    to specify which role to consider when assigning attributes. This is built on top of ActiveModel's
    new mass assignment capabilities:

        class Post < ActiveRecord::Base
          attr_accessible :title
          attr_accessible :title, :published_at, :as => :admin
        end

        Post.new(params[:post], :as => :admin)

    assign_attributes() with similar API was also added and attributes=(params, guard) was deprecated.

    Please note that this changes the method signatures for AR#new, AR#create, AR#create!, AR#update_attributes and AR#update_attributes!. If you have overwritten these methods you should update them accordingly.

    *Josh Kalderimis*

*   default_scope can take a block, lambda, or any other object which responds to `call` for lazy
    evaluation:

        default_scope { ... }
        default_scope lambda { ... }
        default_scope method(:foo)

    This feature was originally implemented by Tim Morgan, but was then removed in favour of
    defining a 'default_scope' class method, but has now been added back in by Jon Leighton.
    The relevant lighthouse ticket is #1812.

*   Default scopes are now evaluated at the latest possible moment, to avoid problems where
    scopes would be created which would implicitly contain the default scope, which would then
    be impossible to get rid of via Model.unscoped.

    Note that this means that if you are inspecting the internal structure of an
    ActiveRecord::Relation, it will *not* contain the default scope, though the resulting
    query will do. You can get a relation containing the default scope by calling
    ActiveRecord#with_default_scope, though this is not part of the public API.

    *Jon Leighton*

*   If you wish to merge default scopes in special ways, it is recommended to define your default
    scope as a class method and use the standard techniques for sharing code (inheritance, mixins,
    etc.):

        class Post < ActiveRecord::Base
          def self.default_scope
            where(:published => true).where(:hidden => false)
          end
        end

    *Jon Leighton*

*   PostgreSQL adapter only supports PostgreSQL version 8.2 and higher.

*   ConnectionManagement middleware is changed to clean up the connection pool
    after the rack body has been flushed.

*   Added an update_column method on ActiveRecord. This new method updates a given attribute on an object, skipping validations and callbacks.
    It is recommended to use #update_attribute unless you are sure you do not want to execute any callback, including the modification of
    the updated_at column. It should not be called on new records.
    Example:

        User.first.update_column(:name, "sebastian")         # => true

    *Sebastian Martinez*

*   Associations with a :through option can now use *any* association as the
    through or source association, including other associations which have a
    :through option and has_and_belongs_to_many associations

    *Jon Leighton*

*   The configuration for the current database connection is now accessible via
    ActiveRecord::Base.connection_config. *fxn*

*   limits and offsets are removed from COUNT queries unless both are supplied.
    For example:

        People.limit(1).count           # => 'SELECT COUNT(*) FROM people'
        People.offset(1).count          # => 'SELECT COUNT(*) FROM people'
        People.limit(1).offset(1).count # => 'SELECT COUNT(*) FROM people LIMIT 1 OFFSET 1'

    *lighthouse #6262*

*   ActiveRecord::Associations::AssociationProxy has been split. There is now an Association class
    (and subclasses) which are responsible for operating on associations, and then a separate,
    thin wrapper called CollectionProxy, which proxies collection associations.

    This prevents namespace pollution, separates concerns, and will allow further refactorings.

    Singular associations (has_one, belongs_to) no longer have a proxy at all. They simply return
    the associated record or nil. This means that you should not use undocumented methods such
    as bob.mother.create - use bob.create_mother instead.

    *Jon Leighton*

*   Make has_many :through associations work correctly when you build a record and then save it. This
    requires you to set the :inverse_of option on the source reflection on the join model, like so:

    class Post < ActiveRecord::Base
        has_many :taggings
        has_many :tags, :through => :taggings
    end

    class Tagging < ActiveRecord::Base
        belongs_to :post
        belongs_to :tag, :inverse_of => :tagging # :inverse_of must be set!
    end

    class Tag < ActiveRecord::Base
        has_many :taggings
        has_many :posts, :through => :taggings
    end

    post = Post.first
    tag = post.tags.build :name => "ruby"
    tag.save # will save a Taggable linking to the post

    *Jon Leighton*

*   Support the :dependent option on has_many :through associations. For historical and practical
    reasons, :delete_all is the default deletion strategy employed by association.delete(*records),
    despite the fact that the default strategy is :nullify for regular has_many. Also, this only
    works at all if the source reflection is a belongs_to. For other situations, you should directly
    modify the through association.

    *Jon Leighton*

*   Changed the behaviour of association.destroy for has_and_belongs_to_many and has_many :through.
    From now on, 'destroy' or 'delete' on an association will be taken to mean 'get rid of the link',
    not (necessarily) 'get rid of the associated records'.

    Previously, has_and_belongs_to_many.destroy(*records) would destroy the records themselves. It
    would not delete any records in the join table. Now, it deletes the records in the join table.

    Previously, has_many_through.destroy(*records) would destroy the records themselves, and the
    records in the join table. [Note: This has not always been the case; previous version of Rails
    only deleted the records themselves.] Now, it destroys only the records in the join table.

    Note that this change is backwards-incompatible to an extent, but there is unfortunately no
    way to 'deprecate' it before changing it. The change is being made in order to have
    consistency as to the meaning of 'destroy' or 'delete' across the different types of associations.

    If you wish to destroy the records themselves, you can do records.association.each(&:destroy)

    *Jon Leighton*

*   Add :bulk => true option to change_table to make all the schema changes defined in change_table block using a single ALTER statement. *Pratik Naik*

    Example:

    change_table(:users, :bulk => true) do |t|
        t.string :company_name
        t.change :birthdate, :datetime
    end

    This will now result in:

        ALTER TABLE `users` ADD COLUMN `company_name` varchar(255), CHANGE `updated_at` `updated_at` datetime DEFAULT NULL

*   Removed support for accessing attributes on a has_and_belongs_to_many join table. This has been
    documented as deprecated behaviour since April 2006. Please use has_many :through instead.
    *Jon Leighton*

*   Added a create_association! method for has_one and belongs_to associations. *Jon Leighton*

*   Migration files generated from model and constructive migration generators
    (for example, add_name_to_users) use the reversible migration's `change`
    method instead of the ordinary `up` and `down` methods. *Prem Sichanugrist*

*   Removed support for interpolating string SQL conditions on associations. Instead, you should
    use a proc, like so:

    Before:

        has_many :things, :conditions => 'foo = #{bar}'

    After:

        has_many :things, :conditions => proc { "foo = #{bar}" }

    Inside the proc, 'self' is the object which is the owner of the association, unless you are
    eager loading the association, in which case 'self' is the class which the association is within.

    You can have any "normal" conditions inside the proc, so the following will work too:

        has_many :things, :conditions => proc { ["foo = ?", bar] }

    Previously :insert_sql and :delete_sql on has_and_belongs_to_many association allowed you to call
    'record' to get the record being inserted or deleted. This is now passed as an argument to
    the proc.

*   Added ActiveRecord::Base#has_secure_password (via ActiveModel::SecurePassword) to encapsulate dead-simple password usage with BCrypt encryption and salting [DHH]. Example:

        # Schema: User(name:string, password_digest:string, password_salt:string)
        class User < ActiveRecord::Base
          has_secure_password
        end

        user = User.new(:name => "david", :password => "", :password_confirmation => "nomatch")
        user.save                                                      # => false, password required
        user.password = "mUc3m00RsqyRe"
        user.save                                                      # => false, confirmation doesn't match
        user.password_confirmation = "mUc3m00RsqyRe"
        user.save                                                      # => true
        user.authenticate("notright")                                  # => false
        user.authenticate("mUc3m00RsqyRe")                             # => user
        User.find_by_name("david").try(:authenticate, "notright")      # => nil
        User.find_by_name("david").try(:authenticate, "mUc3m00RsqyRe") # => user

*   When a model is generated add_index is added by default for belongs_to or references columns

    rails g model post user:belongs_to will generate the following:

        class CreatePosts < ActiveRecord::Migration
          def change
            create_table :posts do |t|
              t.belongs_to :user
              t.timestamps
            end
            add_index :posts, :user_id
          end
        end

    *Santiago Pastorino*

*   Setting the id of a belongs_to object will update the reference to the
    object. *#2989 state:resolved*

*   ActiveRecord::Base#dup and ActiveRecord::Base#clone semantics have changed
    to closer match normal Ruby dup and clone semantics.

*   Calling ActiveRecord::Base#clone will result in a shallow copy of the record,
    including copying the frozen state.  No callbacks will be called.

*   Calling ActiveRecord::Base#dup will duplicate the record, including calling
    after initialize hooks.  Frozen state will not be copied, and all associations
    will be cleared.  A duped record will return true for new_record?, have a nil
    id field, and is saveable.

*   Migrations can be defined as reversible, meaning that the migration system
    will figure out how to reverse your migration.  To use reversible migrations,
    just define the "change" method.  For example:

        class MyMigration < ActiveRecord::Migration
          def change
            create_table(:horses) do
              t.column :content, :text
              t.column :remind_at, :datetime
            end
          end
        end

    Some things cannot be automatically reversed for you.  If you know how to
    reverse those things, you should define 'up' and 'down' in your migration.  If
    you define something in `change` that cannot be reversed, an
    IrreversibleMigration exception will be raised when going down.

*   Migrations should use instance methods rather than class methods:
        class FooMigration < ActiveRecord::Migration
          def up
            ...
          end
        end

    *Aaron Patterson*

*   has_one maintains the association with separate after_create/after_update instead
    of a single after_save. *fxn*

*   The following code:

        Model.limit(10).scoping { Model.count }

    now generates the following SQL:

        SELECT COUNT(*) FROM models LIMIT 10

    This may not return what you want.  Instead, you may with to do something
    like this:

        Model.limit(10).scoping { Model.all.size }

    *Aaron Patterson*

12 years agoMerge from vendor branch TNF:
taca [Fri, 16 Dec 2011 12:24:12 +0000 (12:24 +0000)]
Merge from vendor branch TNF:
Importing databases/ruby-activerecord31 package version 3.1.3.

## Rails 3.1.3 (unreleased) ##

*   Perf fix: If we're deleting all records in an association, don't add a IN(..) clause
    to the query. *GH 3672*

    *Jon Leighton*

*   Fix bug with referencing other mysql databases in set_table_name. *GH 3690*

*   Fix performance bug with mysql databases on a server with lots of other databses. *GH 3678*

    *Christos Zisopoulos and Kenny J*

## Rails 3.1.2 (unreleased) ##

*   Fix problem with prepared statements and PostgreSQL when multiple schemas are used.
    *GH #3232*

    *Juan M. Cuello*

*   Fix bug with PostgreSQLAdapter#indexes. When the search path has multiple schemas, spaces
    were not being stripped from the schema names after the first.

    *Sean Kirby*

*   Preserve SELECT columns on the COUNT for finder_sql when possible. *GH 3503*

    *Justin Mazzi*

*   Reset prepared statement cache when schema changes impact statement results. *GH 3335*

    *Aaron Patterson*

*   Postgres: Do not attempt to deallocate a statement if the connection is no longer active.

    *Ian Leitch*

*   Prevent QueryCache leaking database connections. *GH 3243*

    *Mark J. Titorenko*

*   Fix bug where building the conditions of a nested through association could potentially
    modify the conditions of the through and/or source association. If you have experienced
    bugs with conditions appearing in the wrong queries when using nested through associations,
    this probably solves your problems. *GH #3271*

    *Jon Leighton*

*   If a record is removed from a has_many :through, all of the join records relating to that
    record should also be removed from the through association's target.

    *Jon Leighton*

*   Fix adding multiple instances of the same record to a has_many :through. *GH #3425*

    *Jon Leighton*

*   Fix creating records in a through association with a polymorphic source type. *GH #3247*

    *Jon Leighton*

*   MySQL: use the information_schema than the describe command when we look for a primary key. *GH #3440*
    *Kenny J*

## Rails 3.1.1 (October 7, 2011) ##

*   Raise an exception if the primary key of a model in an association is needed
    but unknown. Fixes #3207.

    *Jon Leighton*

*   Add deprecation for the preload_associations method. Fixes #3022.

    *Jon Leighton*

*   Don't require a DB connection when loading a model that uses set_primary_key. GH #2807.

    *Jon Leighton*

*   Fix using select() with a habtm association, e.g. Person.friends.select(:name). GH #3030 and
    \#2923.

    *Hendy Tanata*

*   Fix belongs_to polymorphic with custom primary key on target. GH #3104.

    *Jon Leighton*

*   CollectionProxy#replace should change the DB records rather than just mutating the array.
    Fixes #3020.

    *Jon Leighton*

*   LRU cache in mysql and sqlite are now per-process caches.

    * lib/active_record/connection_adapters/mysql_adapter.rb: LRU cache
     keys are per process id.
    * lib/active_record/connection_adapters/sqlite_adapter.rb: ditto

    *Aaron Patterson*

*   Database adapters use a statement pool for limiting the number of open
    prepared statments on the database.  The limit defaults to 1000, but can
    be adjusted in your database config by changing 'statement_limit'.

*   Fix clash between using 'preload', 'joins' or 'eager_load' in a default scope and including the
    default scoped model in a nested through association. (GH #2834.) *Jon Leighton*

*   Ensure we are not comparing a string with a symbol in HasManyAssociation#inverse_updates_counter_cache?.
    Fixes GH #2755, where a counter cache could be decremented twice as far as it was supposed to be.

    *Jon Leighton*

*   Don't send any queries to the database when the foreign key of a belongs_to is nil. Fixes
    GH #2828. *Georg Friedrich*

*   Fixed find_in_batches method to not include order from default_scope. See GH #2832 *Arun Agrawal*

*   Don't compute table name for abstract classes. Fixes problem with setting the primary key
    in an abstract class. See GH #2791. *Akira Matsuda*

*   Psych errors with poor yaml formatting are proxied. Fixes GH #2645 and
    GH #2731

*   Use the LIMIT word with the methods #last and #first. Fixes GH #2783 *Damien Mathieu*

## Rails 3.1.0 (August 30, 2011) ##

*   Add a proxy_association method to association proxies, which can be called by association
    extensions to access information about the association. This replaces proxy_owner etc with
    proxy_association.owner.

    *Jon Leighton*

*   Active Record's dynamic finder will now show a deprecation warning if you passing in less number of arguments than what you call in method signature. This behavior will raise ArgumentError in the next version of Rails *Prem Sichanugrist*

*   Deprecated the AssociationCollection constant. CollectionProxy is now the appropriate constant
    to use, though be warned that this is not really a public API.

    This should solve upgrade problems with the will_paginate plugin (and perhaps others). Thanks
    Paul Battley for reporting.

    *Jon Leighton*

*   ActiveRecord::MacroReflection::AssociationReflection#build_record has a new method signature.

    Before: def build_association(*options)
    After:  def build_association(*options, &block)

    Users who are redefining this method to extend functionality should ensure that the block is
    passed through to ActiveRecord::Base#new.

    This change is necessary to fix https://github.com/rails/rails/issues/1842.

    A deprecation warning and workaround has been added to 3.1, but authors will need to update
    their code for it to work correctly in 3.2.

    *Jon Leighton*

*   AR#pluralize_table_names can be used to singularize/pluralize table name of an individual model:

        class User < ActiveRecord::Base
          self.pluralize_table_names = false
        end

    Previously this could only be set globally for all models through ActiveRecord::Base.pluralize_table_names. *Guillermo Iguaran*

*   Add block setting of attributes to singular associations:

        class User < ActiveRecord::Base
          has_one :account
        end

        user.build_account{ |a| a.credit_limit => 100.0 }

    The block is called after the instance has been initialized. *Andrew White*

*   Add ActiveRecord::Base.attribute_names to return a list of attribute names. This will return an empty array if the model is abstract or table does not exists. *Prem Sichanugrist*

*   CSV Fixtures are deprecated and support will be removed in Rails 3.2.0

*   AR#new, AR#create, AR#create!, AR#update_attributes and AR#update_attributes! all accept a second hash as option that allows you
    to specify which role to consider when assigning attributes. This is built on top of ActiveModel's
    new mass assignment capabilities:

        class Post < ActiveRecord::Base
          attr_accessible :title
          attr_accessible :title, :published_at, :as => :admin
        end

        Post.new(params[:post], :as => :admin)

    assign_attributes() with similar API was also added and attributes=(params, guard) was deprecated.

    Please note that this changes the method signatures for AR#new, AR#create, AR#create!, AR#update_attributes and AR#update_attributes!. If you have overwritten these methods you should update them accordingly.

    *Josh Kalderimis*

*   default_scope can take a block, lambda, or any other object which responds to `call` for lazy
    evaluation:

        default_scope { ... }
        default_scope lambda { ... }
        default_scope method(:foo)

    This feature was originally implemented by Tim Morgan, but was then removed in favour of
    defining a 'default_scope' class method, but has now been added back in by Jon Leighton.
    The relevant lighthouse ticket is #1812.

*   Default scopes are now evaluated at the latest possible moment, to avoid problems where
    scopes would be created which would implicitly contain the default scope, which would then
    be impossible to get rid of via Model.unscoped.

    Note that this means that if you are inspecting the internal structure of an
    ActiveRecord::Relation, it will *not* contain the default scope, though the resulting
    query will do. You can get a relation containing the default scope by calling
    ActiveRecord#with_default_scope, though this is not part of the public API.

    *Jon Leighton*

*   If you wish to merge default scopes in special ways, it is recommended to define your default
    scope as a class method and use the standard techniques for sharing code (inheritance, mixins,
    etc.):

        class Post < ActiveRecord::Base
          def self.default_scope
            where(:published => true).where(:hidden => false)
          end
        end

    *Jon Leighton*

*   PostgreSQL adapter only supports PostgreSQL version 8.2 and higher.

*   ConnectionManagement middleware is changed to clean up the connection pool
    after the rack body has been flushed.

*   Added an update_column method on ActiveRecord. This new method updates a given attribute on an object, skipping validations and callbacks.
    It is recommended to use #update_attribute unless you are sure you do not want to execute any callback, including the modification of
    the updated_at column. It should not be called on new records.
    Example:

        User.first.update_column(:name, "sebastian")         # => true

    *Sebastian Martinez*

*   Associations with a :through option can now use *any* association as the
    through or source association, including other associations which have a
    :through option and has_and_belongs_to_many associations

    *Jon Leighton*

*   The configuration for the current database connection is now accessible via
    ActiveRecord::Base.connection_config. *fxn*

*   limits and offsets are removed from COUNT queries unless both are supplied.
    For example:

        People.limit(1).count           # => 'SELECT COUNT(*) FROM people'
        People.offset(1).count          # => 'SELECT COUNT(*) FROM people'
        People.limit(1).offset(1).count # => 'SELECT COUNT(*) FROM people LIMIT 1 OFFSET 1'

    *lighthouse #6262*

*   ActiveRecord::Associations::AssociationProxy has been split. There is now an Association class
    (and subclasses) which are responsible for operating on associations, and then a separate,
    thin wrapper called CollectionProxy, which proxies collection associations.

    This prevents namespace pollution, separates concerns, and will allow further refactorings.

    Singular associations (has_one, belongs_to) no longer have a proxy at all. They simply return
    the associated record or nil. This means that you should not use undocumented methods such
    as bob.mother.create - use bob.create_mother instead.

    *Jon Leighton*

*   Make has_many :through associations work correctly when you build a record and then save it. This
    requires you to set the :inverse_of option on the source reflection on the join model, like so:

    class Post < ActiveRecord::Base
        has_many :taggings
        has_many :tags, :through => :taggings
    end

    class Tagging < ActiveRecord::Base
        belongs_to :post
        belongs_to :tag, :inverse_of => :tagging # :inverse_of must be set!
    end

    class Tag < ActiveRecord::Base
        has_many :taggings
        has_many :posts, :through => :taggings
    end

    post = Post.first
    tag = post.tags.build :name => "ruby"
    tag.save # will save a Taggable linking to the post

    *Jon Leighton*

*   Support the :dependent option on has_many :through associations. For historical and practical
    reasons, :delete_all is the default deletion strategy employed by association.delete(*records),
    despite the fact that the default strategy is :nullify for regular has_many. Also, this only
    works at all if the source reflection is a belongs_to. For other situations, you should directly
    modify the through association.

    *Jon Leighton*

*   Changed the behaviour of association.destroy for has_and_belongs_to_many and has_many :through.
    From now on, 'destroy' or 'delete' on an association will be taken to mean 'get rid of the link',
    not (necessarily) 'get rid of the associated records'.

    Previously, has_and_belongs_to_many.destroy(*records) would destroy the records themselves. It
    would not delete any records in the join table. Now, it deletes the records in the join table.

    Previously, has_many_through.destroy(*records) would destroy the records themselves, and the
    records in the join table. [Note: This has not always been the case; previous version of Rails
    only deleted the records themselves.] Now, it destroys only the records in the join table.

    Note that this change is backwards-incompatible to an extent, but there is unfortunately no
    way to 'deprecate' it before changing it. The change is being made in order to have
    consistency as to the meaning of 'destroy' or 'delete' across the different types of associations.

    If you wish to destroy the records themselves, you can do records.association.each(&:destroy)

    *Jon Leighton*

*   Add :bulk => true option to change_table to make all the schema changes defined in change_table block using a single ALTER statement. *Pratik Naik*

    Example:

    change_table(:users, :bulk => true) do |t|
        t.string :company_name
        t.change :birthdate, :datetime
    end

    This will now result in:

        ALTER TABLE `users` ADD COLUMN `company_name` varchar(255), CHANGE `updated_at` `updated_at` datetime DEFAULT NULL

*   Removed support for accessing attributes on a has_and_belongs_to_many join table. This has been
    documented as deprecated behaviour since April 2006. Please use has_many :through instead.
    *Jon Leighton*

*   Added a create_association! method for has_one and belongs_to associations. *Jon Leighton*

*   Migration files generated from model and constructive migration generators
    (for example, add_name_to_users) use the reversible migration's `change`
    method instead of the ordinary `up` and `down` methods. *Prem Sichanugrist*

*   Removed support for interpolating string SQL conditions on associations. Instead, you should
    use a proc, like so:

    Before:

        has_many :things, :conditions => 'foo = #{bar}'

    After:

        has_many :things, :conditions => proc { "foo = #{bar}" }

    Inside the proc, 'self' is the object which is the owner of the association, unless you are
    eager loading the association, in which case 'self' is the class which the association is within.

    You can have any "normal" conditions inside the proc, so the following will work too:

        has_many :things, :conditions => proc { ["foo = ?", bar] }

    Previously :insert_sql and :delete_sql on has_and_belongs_to_many association allowed you to call
    'record' to get the record being inserted or deleted. This is now passed as an argument to
    the proc.

*   Added ActiveRecord::Base#has_secure_password (via ActiveModel::SecurePassword) to encapsulate dead-simple password usage with BCrypt encryption and salting [DHH]. Example:

        # Schema: User(name:string, password_digest:string, password_salt:string)
        class User < ActiveRecord::Base
          has_secure_password
        end

        user = User.new(:name => "david", :password => "", :password_confirmation => "nomatch")
        user.save                                                      # => false, password required
        user.password = "mUc3m00RsqyRe"
        user.save                                                      # => false, confirmation doesn't match
        user.password_confirmation = "mUc3m00RsqyRe"
        user.save                                                      # => true
        user.authenticate("notright")                                  # => false
        user.authenticate("mUc3m00RsqyRe")                             # => user
        User.find_by_name("david").try(:authenticate, "notright")      # => nil
        User.find_by_name("david").try(:authenticate, "mUc3m00RsqyRe") # => user

*   When a model is generated add_index is added by default for belongs_to or references columns

    rails g model post user:belongs_to will generate the following:

        class CreatePosts < ActiveRecord::Migration
          def change
            create_table :posts do |t|
              t.belongs_to :user
              t.timestamps
            end
            add_index :posts, :user_id
          end
        end

    *Santiago Pastorino*

*   Setting the id of a belongs_to object will update the reference to the
    object. *#2989 state:resolved*

*   ActiveRecord::Base#dup and ActiveRecord::Base#clone semantics have changed
    to closer match normal Ruby dup and clone semantics.

*   Calling ActiveRecord::Base#clone will result in a shallow copy of the record,
    including copying the frozen state.  No callbacks will be called.

*   Calling ActiveRecord::Base#dup will duplicate the record, including calling
    after initialize hooks.  Frozen state will not be copied, and all associations
    will be cleared.  A duped record will return true for new_record?, have a nil
    id field, and is saveable.

*   Migrations can be defined as reversible, meaning that the migration system
    will figure out how to reverse your migration.  To use reversible migrations,
    just define the "change" method.  For example:

        class MyMigration < ActiveRecord::Migration
          def change
            create_table(:horses) do
              t.column :content, :text
              t.column :remind_at, :datetime
            end
          end
        end

    Some things cannot be automatically reversed for you.  If you know how to
    reverse those things, you should define 'up' and 'down' in your migration.  If
    you define something in `change` that cannot be reversed, an
    IrreversibleMigration exception will be raised when going down.

*   Migrations should use instance methods rather than class methods:
        class FooMigration < ActiveRecord::Migration
          def up
            ...
          end
        end

    *Aaron Patterson*

*   has_one maintains the association with separate after_create/after_update instead
    of a single after_save. *fxn*

*   The following code:

        Model.limit(10).scoping { Model.count }

    now generates the following SQL:

        SELECT COUNT(*) FROM models LIMIT 10

    This may not return what you want.  Instead, you may with to do something
    like this:

        Model.limit(10).scoping { Model.all.size }

    *Aaron Patterson*

12 years agoAdd and enable ruby-activemodel31 and ruby-activesupport31.
taca [Fri, 16 Dec 2011 12:23:25 +0000 (12:23 +0000)]
Add and enable ruby-activemodel31 and ruby-activesupport31.

12 years agoImporting devel/ruby-activemodel31 package version 3.1.3.
taca [Fri, 16 Dec 2011 12:21:23 +0000 (12:21 +0000)]
Importing devel/ruby-activemodel31 package version 3.1.3.

## Rails 3.1.1 (October 7, 2011) ##

*   Remove hard dependency on bcrypt-ruby to avoid make ActiveModel dependent on a binary library.
    You must add the gem explicitly to your Gemfile if you want use ActiveModel::SecurePassword:

    gem 'bcrypt-ruby', '~> 3.0.0'

    See GH #2687. *Guillermo Iguaran*

## Rails 3.1.0 (August 30, 2011) ##

*   Alternate I18n namespace lookup is no longer supported.
    Instead of "activerecord.models.admins.post", do "activerecord.models.admins/post" instead *José Valim*

*   attr_accessible and friends now accepts :as as option to specify a role *Josh Kalderimis*

*   Add support for proc or lambda as an option for InclusionValidator,
    ExclusionValidator, and FormatValidator *Prem Sichanugrist*

    You can now supply Proc, lambda, or anything that respond to #call in those
    validations, and it will be called with current record as an argument.
    That given proc or lambda must returns an object which respond to #include? for
    InclusionValidator and ExclusionValidator, and returns a regular expression
    object for FormatValidator.

*   Added ActiveModel::SecurePassword to encapsulate dead-simple password usage with BCrypt encryption and salting *DHH*

*   ActiveModel::AttributeMethods allows attributes to be defined on demand *Alexander Uvarov*

*   Add support for selectively enabling/disabling observers *Myron Marston*

12 years agoMerge from vendor branch TNF:
taca [Fri, 16 Dec 2011 12:21:23 +0000 (12:21 +0000)]
Merge from vendor branch TNF:
Importing devel/ruby-activemodel31 package version 3.1.3.

## Rails 3.1.1 (October 7, 2011) ##

*   Remove hard dependency on bcrypt-ruby to avoid make ActiveModel dependent on a binary library.
    You must add the gem explicitly to your Gemfile if you want use ActiveModel::SecurePassword:

    gem 'bcrypt-ruby', '~> 3.0.0'

    See GH #2687. *Guillermo Iguaran*

## Rails 3.1.0 (August 30, 2011) ##

*   Alternate I18n namespace lookup is no longer supported.
    Instead of "activerecord.models.admins.post", do "activerecord.models.admins/post" instead *José Valim*

*   attr_accessible and friends now accepts :as as option to specify a role *Josh Kalderimis*

*   Add support for proc or lambda as an option for InclusionValidator,
    ExclusionValidator, and FormatValidator *Prem Sichanugrist*

    You can now supply Proc, lambda, or anything that respond to #call in those
    validations, and it will be called with current record as an argument.
    That given proc or lambda must returns an object which respond to #include? for
    InclusionValidator and ExclusionValidator, and returns a regular expression
    object for FormatValidator.

*   Added ActiveModel::SecurePassword to encapsulate dead-simple password usage with BCrypt encryption and salting *DHH*

*   ActiveModel::AttributeMethods allows attributes to be defined on demand *Alexander Uvarov*

*   Add support for selectively enabling/disabling observers *Myron Marston*

12 years agoImporting devel/ruby-activesupport31 package version 3.1.3.
taca [Fri, 16 Dec 2011 12:15:16 +0000 (12:15 +0000)]
Importing devel/ruby-activesupport31 package version 3.1.3.

## Rails 3.1.1 (October 7, 2011) ##

*   ruby193: String#prepend is also unsafe *Akira Matsuda*

*   Fix obviously breakage of Time.=== for Time subclasses *jeremyevans*

*   Added fix so that file store does not raise an exception when cache dir does
    not exist yet. This can happen if a delete_matched is called before anything
    is saved in the cache. *Philippe Huibonhoa*

*   Fixed performance issue where TimeZone lookups would require tzinfo each time *Tim Lucas*

*   ActiveSupport::OrderedHash is now marked as extractable when using Array#extract_options! *Prem Sichanugrist*

## Rails 3.1.0 (August 30, 2011) ##

*   ActiveSupport::Dependencies#load and ActiveSupport::Dependencies#require now
    return the value from `super` *Aaron Patterson*

*   Fixed ActiveSupport::Gzip to work properly in Ruby 1.8 *Guillermo Iguaran*

*   Kernel.require_library_or_gem was deprecated and will be removed in Rails 3.2.0 *Josh Kalderimis*

*   ActiveSupport::Duration#duplicable? was fixed for Ruby 1.8 *thedarkone*

*   ActiveSupport::BufferedLogger set log encoding to BINARY, but still use text
    mode to output portable newlines. *fxn*

*   ActiveSupport::Dependencies now raises NameError if it finds an existing constant in load_missing_constant. This better reflects the nature of the error which is usually caused by calling constantize on a nested constant. *Andrew White*

*   Deprecated ActiveSupport::SecureRandom in favour of SecureRandom from the standard library *Jon Leighton*

*   New reporting method Kernel#quietly. *fxn*

*   Add String#inquiry as a convenience method for turning a string into a StringInquirer object *DHH*

*   Add Object#in? to test if an object is included in another object *Prem Sichanugrist, Brian Morearty, John Reitano*

*   LocalCache strategy is now a real middleware class, not an anonymous class
    posing for pictures.

*   ActiveSupport::Dependencies::ClassCache class has been introduced for
    holding references to reloadable classes.

*   ActiveSupport::Dependencies::Reference has been refactored to take direct
    advantage of the new ClassCache.

*   Backports Range#cover? as an alias for Range#include? in Ruby 1.8 *Diego Carrion, fxn*

*   Added weeks_ago and prev_week to Date/DateTime/Time. *Rob Zolkos, fxn*

*   Added before_remove_const callback to ActiveSupport::Dependencies.remove_unloadable_constants! *Andrew White*

*   JSON decoding now uses the multi_json gem which also vendors a json engine called OkJson. The yaml backend has been removed in favor of OkJson as a default engine for 1.8.x, while the built in 1.9.x json implementation will be used by default. *Josh Kalderimis*

12 years agoMerge from vendor branch TNF:
taca [Fri, 16 Dec 2011 12:15:16 +0000 (12:15 +0000)]
Merge from vendor branch TNF:
Importing devel/ruby-activesupport31 package version 3.1.3.

## Rails 3.1.1 (October 7, 2011) ##

*   ruby193: String#prepend is also unsafe *Akira Matsuda*

*   Fix obviously breakage of Time.=== for Time subclasses *jeremyevans*

*   Added fix so that file store does not raise an exception when cache dir does
    not exist yet. This can happen if a delete_matched is called before anything
    is saved in the cache. *Philippe Huibonhoa*

*   Fixed performance issue where TimeZone lookups would require tzinfo each time *Tim Lucas*

*   ActiveSupport::OrderedHash is now marked as extractable when using Array#extract_options! *Prem Sichanugrist*

## Rails 3.1.0 (August 30, 2011) ##

*   ActiveSupport::Dependencies#load and ActiveSupport::Dependencies#require now
    return the value from `super` *Aaron Patterson*

*   Fixed ActiveSupport::Gzip to work properly in Ruby 1.8 *Guillermo Iguaran*

*   Kernel.require_library_or_gem was deprecated and will be removed in Rails 3.2.0 *Josh Kalderimis*

*   ActiveSupport::Duration#duplicable? was fixed for Ruby 1.8 *thedarkone*

*   ActiveSupport::BufferedLogger set log encoding to BINARY, but still use text
    mode to output portable newlines. *fxn*

*   ActiveSupport::Dependencies now raises NameError if it finds an existing constant in load_missing_constant. This better reflects the nature of the error which is usually caused by calling constantize on a nested constant. *Andrew White*

*   Deprecated ActiveSupport::SecureRandom in favour of SecureRandom from the standard library *Jon Leighton*

*   New reporting method Kernel#quietly. *fxn*

*   Add String#inquiry as a convenience method for turning a string into a StringInquirer object *DHH*

*   Add Object#in? to test if an object is included in another object *Prem Sichanugrist, Brian Morearty, John Reitano*

*   LocalCache strategy is now a real middleware class, not an anonymous class
    posing for pictures.

*   ActiveSupport::Dependencies::ClassCache class has been introduced for
    holding references to reloadable classes.

*   ActiveSupport::Dependencies::Reference has been refactored to take direct
    advantage of the new ClassCache.

*   Backports Range#cover? as an alias for Range#include? in Ruby 1.8 *Diego Carrion, fxn*

*   Added weeks_ago and prev_week to Date/DateTime/Time. *Rob Zolkos, fxn*

*   Added before_remove_const callback to ActiveSupport::Dependencies.remove_unloadable_constants! *Andrew White*

*   JSON decoding now uses the multi_json gem which also vendors a json engine called OkJson. The yaml backend has been removed in favor of OkJson as a default engine for 1.8.x, while the built in 1.9.x json implementation will be used by default. *Josh Kalderimis*

12 years agoAdd support for Solaris as a target.
fhajny [Fri, 16 Dec 2011 12:14:12 +0000 (12:14 +0000)]
Add support for Solaris as a target.
Make rc.d script optional in PLIST.

12 years agoNote update of devel/ruby-rdoc package to 3.12.
taca [Fri, 16 Dec 2011 11:49:16 +0000 (11:49 +0000)]
Note update of devel/ruby-rdoc package to 3.12.

12 years agoUpdate ruby-rdoc package to 3.12.
taca [Fri, 16 Dec 2011 11:48:33 +0000 (11:48 +0000)]
Update ruby-rdoc package to 3.12.

=== 3.12 / 2011-12-15

* Minor enhancements
  * Added DEVELOPERS document which contains an overview of how RDoc works and
    how to add new features to RDoc.
  * Improved title for HTML output to include <code>--title</code> in the
    title element.
  * <code>rdoc --pipe</code> now understands <code>--markup</code>.
  * RDoc now supports irc-scheme hyperlinks.  Issue #83 by trans.

* Bug fixes
  * Fix title on HTML output for pages.
  * Fixed parsing of non-indented HEREDOC.
  * Fixed parsing of <code>%w[]</code> and other % literals.  Issue #84 by
    Erik Hollensbe
  * Fixed arrow replacement in HTML output munging the spaceship operator.
    Issue #85 by eclectic923.
  * Verbatim sections with ERB that match the ruby code whitelist are no
    longer syntax-highlighted.  Issue #86 by eclectic923
  * Line endings on windows are normalized immediately after reading with
    binmode.  Issue #87 by Usa Nakamura
  * RDoc better understands directives for comments.  Comment directives can
    now be found anywhere in multi-line comments.  Issue #90 by Ryan Davis
  * Tidy links to methods show the label again.  Issue #88 by Simon Chiang
  * RDoc::Parser::C can now find comments directly above
    +rb_define_class_under+.  Issue #89 by Enrico
  * In rdoc, backspace and ansi formatters, labels and notes without bodies
    are now shown.
  * In rdoc, backspace and ansi formatters, whitespace between label or note
    and the colon is now stripped.

12 years agoNote update of devel/ruby-loquacious package to 1.9.1.
taca [Fri, 16 Dec 2011 11:47:06 +0000 (11:47 +0000)]
Note update of devel/ruby-loquacious package to 1.9.1.

12 years agoUpdate ruby-loquacious package to 1.9.1.
taca [Fri, 16 Dec 2011 11:46:20 +0000 (11:46 +0000)]
Update ruby-loquacious package to 1.9.1.

== 1.9.1 / 2011-12-15

Bug Fixes
- Properly generate accessor method when merging

12 years agoNote update of TYPO3 packages:
taca [Fri, 16 Dec 2011 11:30:51 +0000 (11:30 +0000)]
Note update of TYPO3 packages:

www/typo3_45 4.5.9
www/typo3_46 4.6.2

12 years agoUpdate typo3_46 pacakge to 4.6.2 (TYPO3 4.6.2).
taca [Fri, 16 Dec 2011 11:29:41 +0000 (11:29 +0000)]
Update typo3_46 pacakge to 4.6.2 (TYPO3 4.6.2).

This release fixed remote code execution problem,
http://typo3.org/teams/security/security-bulletins/typo3-core/typo3-core-sa-2011-004/.

2011-12-16  5a45350
[RELEASE] Release of TYPO3 4.6.2 (TYPO3 v4 Release Team)
2011-12-16  18bb20b
[TASK] Raise submodule pointer (TYPO3 v4 Release Team)
2011-12-16  4394475  #29899
[BUGFIX] RTE not loading in IE when content css file does not exist
 (Stanislas Rolland)
2011-12-14  19cf831  #30851
[TASK] Add CSS Class to special input types in FORM (Ingo Pfennigstorf)
2011-12-11  a36bd66  #19278
[BUGFIX] Install Tool shows internal MySQL databases (Mario Rimann)
2011-12-11  a14f4f1  #32433
[BUGFIX] Disabled ImageMagick throws Exception (Markus Klein)
2011-12-07  62d5c2b  #32075
[TASK] Integrate system extension linkvalidator as submodule
       (Oliver Hader)
2011-12-07  67665b4  #22231
[BUGFIX] Add possibility to use Wizards->Suggest in FlexForms
 (Tolleiv Nietsch)
2011-12-05  4a948c9  #30631
[BUGFIX] RTE doesn't allow to create links around images in IE8
 (Stanislas Rolland)
2011-11-29  3ffa430  #32040
[BUGFIX][SECURITY] XSS vulnerability in BE-User Admin module
   (Marco Bresch)
2011-11-26  f701338  #32025
[BUGFIX] Respect linkVars for generating the cHash (Helmut Hummel)
2011-11-24  4cffee7  #31290
[BUGFIX] Core calls deprecated ADMCMD_preview() (Markus Klein)
2011-11-22  5f8a929
[TASK] Set TYPO3 version to 4.6.2-dev (TYPO3 v4 Release Team)

12 years agoUpdate typo3_45 pacakge to 4.5.9 (TYPO3 4.5.9).
taca [Fri, 16 Dec 2011 11:26:29 +0000 (11:26 +0000)]
Update typo3_45 pacakge to 4.5.9 (TYPO3 4.5.9).

This release fixed remote code execution problem,
http://typo3.org/teams/security/security-bulletins/typo3-core/typo3-core-sa-2011-004/.

2011-12-16  dd85342
[RELEASE] Release of TYPO3 4.5.9 (TYPO3 v4 Release Team)
2011-12-16  7f71d9d
[TASK] Raise submodule pointer (TYPO3 v4 Release Team)
2011-12-16  a5546eb  #29899
[BUGFIX] RTE not loading in IE when content css file does not
 exist (Stanislas Rolland)
2011-12-14  03f137b  #25398
[BUGFIX] TCEforms draws huge empty icon row which on
 select-fields (Benjamin Mack)
2011-12-11  98c2451  #23355,#23860,
[BUGFIX] Restructure the random byte generator (Helmut Hummel)
2011-12-11  92c7bb5  #19278
[BUGFIX] Install Tool shows internal MySQL databases
 (Mario Rimann)
2011-12-08  cbc0793  #29597
[BUGFIX] Wrong char for explodes of links (Georg Ringer)
2011-12-07  58024ca  #32075
[TASK] Integrate system extension linkvalidator as submodule
       (Oliver Hader)
2011-12-07  5455f86  #22231
[BUGFIX] Add possibility to use Wizards->Suggest in FlexForms
 (Tolleiv Nietsch)
2011-12-07  2d95a76  #27634
[BUGFIX] Gap between module menu items causes collapse on click
 (Kay Strobach)
2011-12-07  44dc505  #28012
[BUGFIX] Localization: Editing in TCEforms shows unstyled
 original value (Benjamin Mack)
2011-12-07  a3bfd01  #28916
[BUGFIX] Use trimExplode() for pageOverlayFields (Georg Ringer)
2011-12-07  a65381a  #30369
[BUGFIX] EM: Available extension list misses icons
 (Steffen Gebert)
2011-12-05  8477462  #27272,#17020,
[BUGFIX] Remove hardcoded limits in T3D export (Georg Ringer)
2011-11-29  d1eeb92  #30695
[TASK] Implement check for saltedpasswords in reports module
       (Steffen Ritter)
2011-11-29  c1a0c9c  #32040
[BUGFIX][SECURITY] XSS vulnerability in BE-User Admin module
   (Marco Bresch)
2011-11-22  b4ff1bf  #31450
[BUGFIX] Log date picker broken (Francois Suter)
2011-11-22  4b60371
[TASK] Set TYPO3 version to 4.5.9-dev (TYPO3 v4 Release Team)

12 years agoRemove accidentaly resurrected patches.
asau [Fri, 16 Dec 2011 11:10:13 +0000 (11:10 +0000)]
Remove accidentaly resurrected patches.

12 years agoUpdate to Samba 3.5.11 from net/samba35, part of Samba packages rearrangement.
asau [Fri, 16 Dec 2011 11:05:25 +0000 (11:05 +0000)]
Update to Samba 3.5.11 from net/samba35, part of Samba packages rearrangement.

12 years agoupdate to 1.2.8.15
drochner [Fri, 16 Dec 2011 11:00:12 +0000 (11:00 +0000)]
update to 1.2.8.15
changes: documentation fixes and updates

12 years agoupdate to 3.3.28
drochner [Fri, 16 Dec 2011 10:58:14 +0000 (10:58 +0000)]
update to 3.3.28
changes:
-Added support for colorful traces
-bugfices

12 years agoNeed to check requirement of math library for atan2(3).
obache [Fri, 16 Dec 2011 10:51:18 +0000 (10:51 +0000)]
Need to check requirement of math library for atan2(3).

12 years agoNote update of net/p5-Net-Jifty, devel/p5-Test-Mock-LWP,
hiramatsu [Fri, 16 Dec 2011 06:14:40 +0000 (06:14 +0000)]
Note update of net/p5-Net-Jifty, devel/p5-Test-Mock-LWP,
devel/p5-UNIVERSAL-isa, www/p5-Catalyst-Plugin-Authorization-Roles and
devel/p5-version.

12 years agoUpdate p5-version to 0.95.
hiramatsu [Fri, 16 Dec 2011 06:13:39 +0000 (06:13 +0000)]
Update p5-version to 0.95.

Changes from previous:
----------------------
2011-11-12  John Peacock  <john.peacock@havurah-software.org>

* .hgtags:
Tagging version '0.95' using shipit.
[f76612f96814] [tip]

* README, t/coretests.pm, vutil/vxs.xs:
Turns out the XS code didn't prevent the math ops from working after
all. Add a test to make sure we catch that and update README for
release.
[9f4e1ff7704c] [0.95]

* t/06noop.t:
Forgot to add test file for math noop methods
[ca0bc8526ea5]

* MANIFEST, vperl/vpp.pm:
Restore 5.14.x behavior of UNIVERSAL::VERSION to pure Perl code
[1dd0281f09b8]

* t/coretests.pm, vutil/vutil.c, vutil/vutil.h, vutil/vxs.xs:
Fix segfault with versions that start with 'v', especially
'version'.
[868edaf0223b]

2011-10-30  John Peacock  <john.peacock@havurah-software.org>

* lib/version.pm, t/01base.t, t/02derived.t, t/03require.t,
t/05sigdie.t, t/coretests.pm, vutil/lib/version/vxs.pm:
Bump $VERSION in preparation for eventual release.
[3bcfd3008cbc]

* vutil/vxs.xs:
Revert change to UNIVERSAL::VERSION replacement, pending ruling from
the bench.
[d5c1282dfe13]

* vperl/vpp.pm:
For some reason, nomethod doesn't work in pure Perl code, so be
explicit about ops that are not allowed.
[5cad9cde035e]

2011-08-21  John Peacock  <john.peacock@havurah-software.org>

* .hgtags:
Tagging version '0.94' using shipit.
[743538f58cb7]

* Makefile.PL, lib/version.pod, lib/version/Internals.pod:
Tweak POD and add LICENSE to Makefile.PL. Resolves:

 https://rt.cpan.org/Public/Bug/Display.html?id=70120
[3a4fae29c763] [0.94]

* MANIFEST, t/05sigdie.t:
Add test to confirm that the $SIG{__DIE__} handling is correct.
[4a421bba05c9]

* lib/version.pm, t/01base.t, t/02derived.t, t/03require.t,
vperl/vpp.pm, vutil/lib/version/vxs.pm:
Prevent DIE handlers in user code from tripping up loading version.
Don't know how this hasn't shown up until now. Resolves:

 https://rt.cpan.org/Ticket/Display.html?id=70260
[754fd86858af]

12 years agoUpdate to p5-Catalyst-Plugin-Authorization-Roles to 0.09.
hiramatsu [Fri, 16 Dec 2011 06:13:13 +0000 (06:13 +0000)]
Update to p5-Catalyst-Plugin-Authorization-Roles to 0.09.

Changes from previous:
----------------------
0.09   2011-04-29
        - Fix documentation to point at the tutorial, rather than
          old advent article.
        - Link to Catalyst::ActionRole::ACL
        - Tidy up examples to show the new authentication system
        - fix check_* to always return scalar values,
          even in list context (RT#66812)

12 years agoUpdate p5-UNIVERSAL-isa to 1.20110614.
hiramatsu [Fri, 16 Dec 2011 06:12:45 +0000 (06:12 +0000)]
Update p5-UNIVERSAL-isa to 1.20110614.

Change from previous:
---------------------
1.20110613 2011-06-13 14:16:04 America/Los_Angeles
    - converted to Dist::Zilla

12 years agoUpdate p5-Test-Mock-LWP to 0.06.
hiramatsu [Fri, 16 Dec 2011 06:12:09 +0000 (06:12 +0000)]
Update p5-Test-Mock-LWP to 0.06.

Change from previous:
---------------------
0.06 - Sat Jul 16 10:26:33 PDT 2011
 - Update Makefile.PL and META.yml for RT #69466

12 years agoUpdate p5-Net-Jifty to 0.14.
hiramatsu [Fri, 16 Dec 2011 06:11:42 +0000 (06:11 +0000)]
Update p5-Net-Jifty to 0.14.

Change from previous:
---------------------
0.14    3 Jan 2011
        Bump to Encode 2.41 to fix a test issue with encoded periods (Sartak)

12 years ago- SSL bug fixes
manu [Fri, 16 Dec 2011 05:40:46 +0000 (05:40 +0000)]
- SSL bug fixes
- Use secondary groups

12 years agoSomebody sent patches upstream to use the -current prerelease libquota API
dholland [Fri, 16 Dec 2011 05:21:37 +0000 (05:21 +0000)]
Somebody sent patches upstream to use the -current prerelease libquota API
(such as it is) -- correct it for necessary changes. Closes PR 45714.

Note: this will break again in a few days when that API is removed...

12 years agoYet another package that thinks it's a good idea to conditionalize on
dholland [Fri, 16 Dec 2011 05:14:27 +0000 (05:14 +0000)]
Yet another package that thinks it's a good idea to conditionalize on
X headers' include guards, which changed at some point. Hack it to
recognize what's there nowadays as well as the old symbol.

While here, deploy INSTALLATION_DIRS to work around apparent dir
permission problems in the package's own install logic.

12 years agoRepo copy files
repo-copy [Fri, 16 Dec 2011 02:54:48 +0000 (02:54 +0000)]
Repo copy files

12 years agoFixup fromcvs/togit conversion
pkgsrc fixup [Fri, 16 Dec 2011 02:54:47 +0000 (18:54 -0800)]
Fixup fromcvs/togit conversion

12 years agoConditionalize EGG_FILE in PLIST, for pre-eggfile versions of python.
gdt [Fri, 16 Dec 2011 01:10:29 +0000 (01:10 +0000)]
Conditionalize EGG_FILE in PLIST, for pre-eggfile versions of python.

12 years agoFix PLIST not to have PYVERSION encoded.
gdt [Fri, 16 Dec 2011 01:07:23 +0000 (01:07 +0000)]
Fix PLIST not to have PYVERSION encoded.
No PKGREVISION++, because no change in the case when it built.

Adjust whitespace around LICENSE=.

12 years agoUpdated filesystems/py-fuse-bindings to 0.2.1
gdt [Fri, 16 Dec 2011 00:51:16 +0000 (00:51 +0000)]
Updated filesystems/py-fuse-bindings to 0.2.1

12 years agoUpdate to 0.2.1. Note in DESCR that this is what GNU/Linux calls
gdt [Fri, 16 Dec 2011 00:50:47 +0000 (00:50 +0000)]
Update to 0.2.1.  Note in DESCR that this is what GNU/Linux calls
"fuse-python".

Upstream does not provide NEWS.  Perusal of Changelog leads to the
conclusion that there are many bugfixes and minor enhancements, but no
major changes.

(Tested with "bup fuse" and ../fuse-wikipediafs on NetBSD 5.1_STABLE.)

12 years ago+ samba30
asau [Thu, 15 Dec 2011 23:09:57 +0000 (23:09 +0000)]
+ samba30

12 years agoAdjust path for buildlink.
asau [Thu, 15 Dec 2011 22:59:28 +0000 (22:59 +0000)]
Adjust path for buildlink.
Use common files from net/samba just like other Samba packages do.

12 years ago+ libXi-1.4.4.
wiz [Thu, 15 Dec 2011 22:58:18 +0000 (22:58 +0000)]
+ libXi-1.4.4.
- clamav-0.97.3, cvsd-1.0.22, gcal-3.6.1, icsi-finger-1.0.29,
  merb-builder-0.9.13, merb-parts-0.9.13, netatalk-2.2.1, pcre-8.21,
  py-twisted-11.0.0, tor-0.2.2.33, wordpress-3.3, xpdf-3.03.

12 years agoNote update of tex-metapost{,-doc}.
minskim [Thu, 15 Dec 2011 22:36:15 +0000 (22:36 +0000)]
Note update of tex-metapost{,-doc}.

12 years agoUpdate tex-metapost{,-doc} to 1.212.
minskim [Thu, 15 Dec 2011 22:34:40 +0000 (22:34 +0000)]
Update tex-metapost{,-doc} to 1.212.

Changes:

* MetaPost now adheres to the openin_any / openout_any settings in
   texmf.cnf

* In some cases 'readfrom' made the file's path be prepended to the
   actually read string from the file.

* The 'prologues:=3 output' with embedded labels was unreliable,
   especially when the resulting eps was included into a TeX document
   via dvips.

* 'newinternal numeric' has been fixed, it generated an error in
   metapost 1.211.

* Label regeneration sometimes failed to run when the file time stamps
   were close together.

* Reallocation of the string pool during output file name creation
   ('outputtemplate') could cause corruption in the created file's name.

12 years agoReimport Samba 3.0.37 from net/samba as net/samba30 as part of Samba packages rotation.
asau [Thu, 15 Dec 2011 22:23:24 +0000 (22:23 +0000)]
Reimport Samba 3.0.37 from net/samba as net/samba30 as part of Samba packages rotation.

12 years agoMerge from vendor branch TNF:
asau [Thu, 15 Dec 2011 22:23:24 +0000 (22:23 +0000)]
Merge from vendor branch TNF:
Reimport Samba 3.0.37 from net/samba as net/samba30 as part of Samba packages rotation.

12 years agoAdded www/jetty7 version 7.5.4.20111024
ryoon [Thu, 15 Dec 2011 22:22:35 +0000 (22:22 +0000)]
Added www/jetty7 version 7.5.4.20111024

12 years agoAdd jetty7
ryoon [Thu, 15 Dec 2011 22:20:39 +0000 (22:20 +0000)]
Add jetty7

12 years agoImport jetty-7.5.4.20111024 as www/jetty7
ryoon [Thu, 15 Dec 2011 22:19:11 +0000 (22:19 +0000)]
Import jetty-7.5.4.20111024 as www/jetty7

Jetty provides an HTTP server, HTTP client, and javax.servlet
container. These components are open source and available for
commercial use and distribution.

Tested on NetBSD/i386 5.99.58 with lang/openjdk7

12 years agoMerge from vendor branch TNF:
ryoon [Thu, 15 Dec 2011 22:19:11 +0000 (22:19 +0000)]
Merge from vendor branch TNF:
Import jetty-7.5.4.20111024 as www/jetty7

Jetty provides an HTTP server, HTTP client, and javax.servlet
container. These components are open source and available for
commercial use and distribution.

Tested on NetBSD/i386 5.99.58 with lang/openjdk7

12 years agoAdd lppl-1.3c and epl-v1.0 to default_acceptable_licenses.
ryoon [Thu, 15 Dec 2011 22:16:55 +0000 (22:16 +0000)]
Add lppl-1.3c and epl-v1.0 to default_acceptable_licenses.

12 years agoAdd epl-v1.0 to DEFAULT_ACCEPTABLE_LICENSES.
ryoon [Thu, 15 Dec 2011 22:13:45 +0000 (22:13 +0000)]
Add epl-v1.0 to DEFAULT_ACCEPTABLE_LICENSES.

12 years agoAdd "Eclipse Public License - v 1.0" as epl-v1.0
ryoon [Thu, 15 Dec 2011 22:12:28 +0000 (22:12 +0000)]
Add "Eclipse Public License - v 1.0" as epl-v1.0

12 years agoRepo copy files
repo-copy [Thu, 15 Dec 2011 19:32:38 +0000 (19:32 +0000)]
Repo copy files

12 years agoFixup fromcvs/togit conversion
pkgsrc fixup [Thu, 15 Dec 2011 19:32:37 +0000 (11:32 -0800)]
Fixup fromcvs/togit conversion

12 years agoUpdated databases/postgresql83 to 8.3.17
adam [Thu, 15 Dec 2011 17:31:43 +0000 (17:31 +0000)]
Updated databases/postgresql83 to 8.3.17

12 years agoChanges 8.3.17:
adam [Thu, 15 Dec 2011 17:31:09 +0000 (17:31 +0000)]
Changes 8.3.17:
* Fix bugs in information_schema.referential_constraints view
* Correct collations for citext columns and indexes
* Prevent possible crash when joining to a scalar function
* Prevent transitory data corruption of GIN indexes after a crash
* Prevent data corruption on TOAST columns when copying data
* Fix failures during hot standby startup
* Correct another "variable not found in subplan target list" bug
* Fix bug with sorting on aggregate expressions in windowing functions
* Multiple bug fixes for pg_upgrade
* Change Foreign Key creation order to better support self-referential keys
* Multiple bug fixes to CREATE EXTENSION
* Ensure that function return type and data returned from PL/perl agree
* Ensure that PL/perl strings are always UTF-8
* Assorted bug fixes for various Extensions
* Updates to the time zone database, particularly to CST6

12 years agoUpdated databases/postgresql84 to 8.4.10
adam [Thu, 15 Dec 2011 17:19:46 +0000 (17:19 +0000)]
Updated databases/postgresql84 to 8.4.10

12 years agoUpdated graphics/png to 1.5.7
wiz [Thu, 15 Dec 2011 17:16:37 +0000 (17:16 +0000)]
Updated graphics/png to 1.5.7

12 years agoUpdate png to 1.5.7:
wiz [Thu, 15 Dec 2011 17:16:26 +0000 (17:16 +0000)]
Update png to 1.5.7:

Changes since the last public release (1.5.6):
  Added support for ARM processor (Mans Rullgard)
  Fixed bug in pngvalid on early allocation failure; fixed type cast in
    pngmem.c; pngvalid would attempt to call png_error() if the allocation
    of a png_struct or png_info failed. This would probably have led to a
    crash.  The pngmem.c implementation of png_malloc() included a cast
    to png_size_t which would fail on large allocations on 16-bit systems.
  Fix for the preprocessor of the Intel C compiler. The preprocessor
    splits adjacent @ signs with a space; this changes the concatentation
    token from @-@-@ to PNG_JOIN; that should work with all compiler
    preprocessors.
  Paeth filter speed improvements from work by Siarhei Siamashka. This
    changes the 'Paeth' reconstruction function to improve the GCC code
    generation on x86. The changes are only part of the suggested ones;
    just the changes that definitely improve speed and remain simple.
    The changes also slightly increase the clarity of the code.
  Check compression_type parameter in png_get_iCCP and remove spurious
    casts. The compression_type parameter is always assigned to, so must
    be non-NULL. The cast of the profile length potentially truncated the
    value unnecessarily on a 16-bit int system, so the cast of the (byte)
    compression type to (int) is specified by ANSI-C anyway.
  Fixed FP division by zero in pngvalid.c; the 'test_pixel' code left
    the sBIT fields in the test pixel as 0, which resulted in a floating
    point division by zero which was irrelevant but causes systems where
    FP exceptions cause a crash. Added code to pngvalid to turn on FP
    exceptions if the appropriate glibc support is there to ensure this is
    tested in the future.
  Added versioning to pnglibconf.h comments.
  Installed more accurate linear to sRGB conversion tables. The slightly
    modified tables reduce the number of 16-bit values that
    convert to an off-by-one 8-bit value.  The "makesRGB.c" code that was used
    to generate the tables is now in a contrib/sRGBtables sub-directory.
  Added run-time detection of NEON support.
  Multiple transform bug fixes plus a work-round for double gamma correction.
    libpng does not support more than one transform that requires linear data
    at once - if this is tried typically the results is double gamma
    correction. Since the simplified APIs can need rgb to gray combined with
    a compose operation it is necessary to do one of these outside the main
    libpng transform code. This check-in also contains fixes to various bugs
    in compose and rgb to gray (on palette).
  Fixes for C++ compilation using g++ When libpng source is compiled
    using g++. The compiler imposes C++ rules on the C source; thus it
    is desireable to make the source work with either C or C++ rules
    without throwing away useful error information.  This change adds
    png_voidcast to allow C semantic (void*) cases or the corresponding
    C++ static_cast operation, as appropriate.
  Added --noexecstack to assembler file compilation. GCC does not set
    this on assembler compilation, even though it does on C compilation.
    This creates security issues if assembler code is enabled; the
    work-around is to set it by default in the flags for $(CCAS)
  Removed "zTXt" from warning in generic chunk decompression function.
  Validate time settings passed to pngset() and png_convert_to_rfc1123()
    (Frank Busse).
  Added MINGW support to CMakeLists.txt
  Reject invalid compression flag or method when reading the iTXt chunk.
  Moved pngvalid.c into contrib/libtests
  Rebuilt Makefile.in, configure, etc., with autoconf-2.68
  Replaced an "#if" with "#ifdef" in pngrtran.c
  Revised #if PNG_DO_BC block in png.c (use #ifdef and add #else)
  Revised pngconf.h to use " __declspec(restrict)" only when MSC_VER >= 1400,
    as in libpng-1.5.4.
  Put CRLF line endings in the owatcom project files.
  Updated CMakeLists.txt to account for the relocation of pngvalid.c
  Minor fixes to pngvalid.c for gcc 4.6.2 compatibility to remove warnings
    reported by earlier versions.

12 years agoChanges 8.4.10:
adam [Thu, 15 Dec 2011 17:16:13 +0000 (17:16 +0000)]
Changes 8.4.10:
* Fix bugs in information_schema.referential_constraints view
* Correct collations for citext columns and indexes
* Prevent possible crash when joining to a scalar function
* Prevent transitory data corruption of GIN indexes after a crash
* Prevent data corruption on TOAST columns when copying data
* Fix failures during hot standby startup
* Correct another "variable not found in subplan target list" bug
* Fix bug with sorting on aggregate expressions in windowing functions
* Multiple bug fixes for pg_upgrade
* Change Foreign Key creation order to better support self-referential keys
* Multiple bug fixes to CREATE EXTENSION
* Ensure that function return type and data returned from PL/perl agree
* Ensure that PL/perl strings are always UTF-8
* Assorted bug fixes for various Extensions
* Updates to the time zone database, particularly to CST6

12 years agoMissing commit (sorry!)
manu [Thu, 15 Dec 2011 17:15:05 +0000 (17:15 +0000)]
Missing commit (sorry!)

12 years agoAdjust emul/linux/dev/shm to emul/${LINUX_BASE}/dev/shm to ensure correct directory...
abs [Thu, 15 Dec 2011 17:00:31 +0000 (17:00 +0000)]
Adjust emul/linux/dev/shm to emul/${LINUX_BASE}/dev/shm to ensure correct directory is used for suse113_32_base. Bump pkgrevision

12 years agoNote update of these packages:
taca [Thu, 15 Dec 2011 16:21:35 +0000 (16:21 +0000)]
Note update of these packages:

textproc/ruby-json-utils 1.6.1
textproc/ruby-redcloth 4.2.9
textproc/ruby-will-paginate 3.0.2

12 years agoUpdate ruby-will-paginate package to 3.0.2.
taca [Thu, 15 Dec 2011 16:20:04 +0000 (16:20 +0000)]
Update ruby-will-paginate package to 3.0.2.

Changes are unknown.

12 years agoUpdate ruby-redcloth package to 4.2.9.
taca [Thu, 15 Dec 2011 16:19:33 +0000 (16:19 +0000)]
Update ruby-redcloth package to 4.2.9.

== 4.2.9 / November 25, 2011

* Fix RbConfig / Config warning in Ruby 1.9.3. [Steve Purcell, Robert Gleeson, and unclaimedbaggage]
* Use RSTRING_NOT_MODIFIED header for Rubinius [Dirkjan Bussink]

12 years agoUpdate ruby-json-utils package to 1.6.1.
taca [Thu, 15 Dec 2011 16:18:50 +0000 (16:18 +0000)]
Update ruby-json-utils package to 1.6.1.

Changes are unknown.

12 years agoNote update of textproc/ruby-json and textproc/ruby-json-pure to 1.6.3.
taca [Thu, 15 Dec 2011 16:12:52 +0000 (16:12 +0000)]
Note update of textproc/ruby-json and textproc/ruby-json-pure to 1.6.3.

12 years agoUpdate ruby-json and ruby-json-pure pacakge to 1.6.3.
taca [Thu, 15 Dec 2011 16:11:59 +0000 (16:11 +0000)]
Update ruby-json and ruby-json-pure pacakge to 1.6.3.

2011-12-01 (1.6.3)
  * Let JSON.load('') return nil as well to make mysql text columns (default to
    '') work better for serialization.
2011-11-21 (1.6.2)
  * Add support for OpenStruct and BigDecimal.
  * Fix bug when parsing nil in quirks_mode.
  * Make JSON.dump and JSON.load methods better cooperate with Rails' serialize
    method. Just use: serialize :value, JSON
  * Fix bug with time serialization concerning nanoseconds. Thanks for the
    patch go to Josh Partlow (jpartlow@github).
  * Improve parsing speed for JSON numbers (integers and floats) in a similar way to
    what Evan Phoenix <evan@phx.io> suggested in:
    https://github.com/flori/json/pull/103
2011-09-18 (1.6.1)
  * Using -target 1.5 to force Java bits to compile with 1.5.

12 years agoNote update of www/fengoffice package to 1.7.5nb2.
taca [Thu, 15 Dec 2011 16:06:25 +0000 (16:06 +0000)]
Note update of www/fengoffice package to 1.7.5nb2.

12 years agoCorrect LICENSE. It isn't GPL v3 but AGPL v3.
taca [Thu, 15 Dec 2011 16:05:58 +0000 (16:05 +0000)]
Correct LICENSE.  It isn't GPL v3 but AGPL v3.

Bump PKGREVISION.

12 years agoNote update of these packages:
taca [Thu, 15 Dec 2011 16:03:35 +0000 (16:03 +0000)]
Note update of these packages:

sysutils/ruby-facter 1.6.4
textproc/ruby-bluecloth 2.2.0
textproc/ruby-coderay 1.0.4
textproc/ruby-haml 3.1.4
textproc/ruby-hpricot 0.8.5

12 years agoUpdate ruby-hpricot package to 0.8.5.
taca [Thu, 15 Dec 2011 16:02:33 +0000 (16:02 +0000)]
Update ruby-hpricot package to 0.8.5.

= 0.8.5
=== 29 November 2011
* Remove escaped quote (\') from matching (#55)
* Fix 'undefined method downcase for nil:NilClass' on JRuby (#58)
* Unescape hex numeric character references

12 years agoUpdate ruby-haml package to 3.1.4.
taca [Thu, 15 Dec 2011 16:01:51 +0000 (16:01 +0000)]
Update ruby-haml package to 3.1.4.

Changes are unknown.

12 years agoUpdate ruby-coderay package to 1.0.4.
taca [Thu, 15 Dec 2011 16:00:42 +0000 (16:00 +0000)]
Update ruby-coderay package to 1.0.4.

It looks like some clean up but don't know exact changes.