markd [Mon, 19 Mar 2012 10:12:51 +0000 (10:12 +0000)]
Merge from vendor branch TNF:
Import phonon-backend-gstreamer version 4.5.1
Phonon GStreamer backend.
markd [Mon, 19 Mar 2012 10:12:51 +0000 (10:12 +0000)]
Import phonon-backend-gstreamer version 4.5.1
Phonon GStreamer backend.
markd [Mon, 19 Mar 2012 10:07:52 +0000 (10:07 +0000)]
Update to 4.5.1
Required for KDE SC 4.8
markd [Mon, 19 Mar 2012 09:46:22 +0000 (09:46 +0000)]
Update to 2.7.4
Bugfixes, port to Raptor 2. Required for KDE SC 4.8.
markd [Mon, 19 Mar 2012 09:40:08 +0000 (09:40 +0000)]
Update to 1.0.15
Bug fixes, new features. Requires Raptor V2.
markd [Mon, 19 Mar 2012 09:26:23 +0000 (09:26 +0000)]
Update to 0.9.28
Various bug fixes, new features and works with raptor2.
obache [Mon, 19 Mar 2012 09:14:52 +0000 (09:14 +0000)]
fix last commit.
gtk should be dropped from module list instead of gtk2.
noticed by Uwe Klaus via private mail.
markd [Mon, 19 Mar 2012 09:12:26 +0000 (09:12 +0000)]
Import raptor2 version 2.0.6
Version 2 of the Raptor RDF Syntax Library.
markd [Mon, 19 Mar 2012 09:12:26 +0000 (09:12 +0000)]
Merge from vendor branch TNF:
Import raptor2 version 2.0.6
Version 2 of the Raptor RDF Syntax Library.
markd [Mon, 19 Mar 2012 08:53:30 +0000 (08:53 +0000)]
Update to version 0.7.0
Changes unknown but required for KDE SC 4.8
dholland [Mon, 19 Mar 2012 03:07:55 +0000 (03:07 +0000)]
Makefile is not MAKE_JOBS_SAFE as shipped. Patch it up, since it doesn't
appear to require or be using gmake.
dholland [Mon, 19 Mar 2012 02:12:28 +0000 (02:12 +0000)]
Makefile is not MAKE_JOBS_SAFE as shipped. Patch it up, since it doesn't
appear to require or be using gmake.
obache [Mon, 19 Mar 2012 01:43:36 +0000 (01:43 +0000)]
* switch MASTER_SITES to http one
* instead of manual extract command, tell archive format to extractor.
abs [Sun, 18 Mar 2012 23:22:03 +0000 (23:22 +0000)]
Use CMAKE rather than custom Makefile. Add additional items to PLIST
jakllsch [Sun, 18 Mar 2012 21:23:22 +0000 (21:23 +0000)]
Updated x11/xcalib to 0.8nb1
jakllsch [Sun, 18 Mar 2012 21:23:13 +0000 (21:23 +0000)]
Fix COMMENT (and therefore bump pkgrev).
jakllsch [Sun, 18 Mar 2012 21:20:58 +0000 (21:20 +0000)]
Updated x11/xicc to 0.1nb3
jakllsch [Sun, 18 Mar 2012 21:20:49 +0000 (21:20 +0000)]
update to nb3
pkgsrc changes:
- Ensure there is a file argument supplied.
- Use a Atom format that works.
pettai [Sun, 18 Mar 2012 21:16:06 +0000 (21:16 +0000)]
Updated mail/mimedefang to 2.73
pettai [Sun, 18 Mar 2012 21:11:11 +0000 (21:11 +0000)]
Here are the most important changes in MIMEDefang 2.73:
* A new -G option causes files created by mimedefang to
be group-readable and sockets to be group readable/writable.
* The multiplexor snoops in on communications and saves the
Sendmail queue-ID for logging purposes. It logs the queue ID when
logging a slave's STDERR.
* MIMEDefang passes along the client port number, server IP address
and server port number to all filter functions. This feature was
sponsored by Scayl.
mspo [Sun, 18 Mar 2012 19:50:35 +0000 (19:50 +0000)]
big version bump:
2.62 2012-03-17 00:00:00
- Deprecated Mojolicious::Renderer->default_template_class in favor
of Mojolicious::Renderer->classes.
- Deprecated Mojolicious::Static->default_static_class in favor of
Mojolicious::Static->classes.
- Added options function to Mojolicious::Lite.
- Added options method to Mojolicious::Routes.
- Added options method to Mojo::UserAgent.
- Added options_ok method to Test::Mojo.
- Added o function to ojo.
- Removed experimental status from Mojo::Cache.
- Removed experimental status from Mojo::DOM::CSS.
- Removed experimental status from Mojo::DOM::HTML.
- Removed experimental status from Mojo::Server::Morbo.
- Removed experimental status from Mojo::Transaction::WebSocket.
- Removed experimental status from Mojo::UserAgent::Transactor.
- Removed experimental status from Mojolicious::Command::cpanify.
- Removed experimental status from upgrade event in
Mojo::Transaction::HTTP.
- Removed experimental status from t helper in
Mojolicious::Plugin::TagHelpers.
- Removed experimental status from current_route and url_with helpers
in Mojolicious::Plugin::DefaultHelpers.
- Removed experimental status from websocket function in
Mojolicious::Lite.
- Removed experimental status from cache attribute in
Mojolicious::Renderer.
- Removed experimental status from format attribute in
Mojolicious::Routes::Pattern.
- Removed experimental status from ca and local_address,
request_timeout and transactor attributes in Mojo::UserAgent.
- Removed experimental status from cache attribute in
Mojolicious::Routes.
- Removed experimental status from send method in
Mojolicious::Controller.
- Removed experimental status from finish_ok, message_is,
message_isnt, message_like, message_unlike, send_ok and
websocket_ok methods in Test::Mojo.
- Removed experimental status from detect method in
Mojolicious::Types.
- Removed experimental status from app_url, build_websocket_tx and
websocket methods in Mojo::UserAgent.
- Removed experimental status from emit_safe method in
Mojo::EventEmitter.
- Removed experimental status from to_psgi_app method in
Mojo::Server::PSGI.
- Removed experimental status from clone method in
Mojo::Message::Request.
- Removed experimental status from has_conditions, has_custom_name,
has_websocket, is_websocket and websocket methods in
Mojolicious::Routes.
- Removed experimental status from clone, is_limit_exceeded and
max_line_size methods in Mojo::Headers.
- Removed experimental status from text_after, text_before and xml
methods, as well as trim arguments in Mojo::DOM.
- Removed experimental status from boundary, charset, clone,
is_dynamic, progress and max_leftover_size methods in
Mojo::Content.
- Removed experimental status from clone method in
Mojo::Content::MultiPart.
- Removed experimental status from clone method in
Mojo::Content::Single.
- Removed experimental status from is_dynamic, is_limit_exceeded and
max_line_size methods in Mojo::Message.
- Improved Mojo::IOWatcher exception handling a little.
- Improved Mojolicious::Routes logging.
- Improved documentation.
- Improved tests.
- Fixed port generation bug. (xaka)
- Fixed IPv6 listen value bug in Mojo::Server::Daemon.
2.61 2012-03-14 00:00:00
- Merged Mojolicious exception handling into the around_dispatch
hook, this will allow a whole new category of exception handling
plugins.
- Improved documentation.
2.60 2012-03-13 00:00:00
- Added EXPERIMENTAL current_route helper to
Mojolicious::Plugin::DefaultHelpers.
- Made text_area helper a little smarter. (sshaw, sri)
- Improved inactivity timeout logging for WebSockets.
- Improved documentation.
- Improved tests.
- Fixed escaping bug in select_field and text_area helpers.
- Fixed Windows bug in "asset.t".
2.59 2012-03-09 00:00:00
- Removed duplicate 2.58 directory.
2.58 2012-03-09 00:00:00
- Added support for MOJO_LISTEN environment variable.
- Removed listen attribute from Mojo::Server::Morbo.
- Improved event loop compatibility of Mojo::Server::PSGI.
- Improved documentation.
- Improved tests.
- Fixed Mojo::URL object handling bug in url_for.
- Fixed bug in Hypnotoad that prevented disabling of reverse proxy
support between zero downtime software upgrades.
- Fixed small caching bug in Morbo file watcher.
- Fixed Windows bug in "asset.t".
2.57 2012-03-03 00:00:00
- Replaced protection from excessively large form values in
Mojo::Message with documentation.
- Improved documentation.
2.56 2012-03-01 00:00:00
- Deprecated custom HTTPS listen values in favor of URLs for all
built-in web servers.
https://*:3000:/x/server.crt:/y/server.key:/z/ca.crt
becomes
https://*:3000?cert=/x/server.crt&key=/y/server.key&ca=/z/ca.crt
- Removed experimental status from patch function in
Mojolicious::Lite.
- Removed experimental status from patch method in
Mojolicious::Routes.
- Removed experimental status from patch method in Mojo::UserAgent.
- Removed experimental status from patch_ok method in Test::Mojo.
- Removed experimental status from t function in ojo.
- Improved documentation.
- Fixed small inconsistency between Mojo::IOWatcher and
Mojo::IOWatcher::EV where Mojo::IOWatcher wouldn't stop
automatically when not watching for events anymore.
- Fixed Mojo::IOLoop to clean up after itself.
2.55 2012-02-28 00:00:00
- Combined WebSocket timeout with normal inactivity timeout.
- Improved documentation.
2.54 2012-02-27 00:00:00
- Deprecated class and method stash values in favor of controller and
action.
- Added EXPERIMENTAL patch function to Mojolicious::Lite.
- Added EXPERIMENTAL patch method to Mojolicious::Routes.
- Added EXPERIMENTAL patch method to Mojo::UserAgent.
- Added EXPERIMENTAL patch_ok method to Test::Mojo.
- Added EXPERIMENTAL t function to ojo.
- Added support for MOJO_CONNECT_TIMEOUT, MOJO_INACTIVITY_TIMEOUT,
MOJO_REQUEST_TIMEOUT and MOJO_WEBSOCKET_TIMEOUT environment
variables.
- Split up Mojolicious::Guides::Cheatsheet into more reference
documentation.
- Increased default connect timeout from 3 to 10 seconds in
Mojo::UserAgent and Mojo::IOLoop::Client.
- Improved resilience of Mojo::IOLoop::Stream.
- Improved test command to colorize by default.
- Improved documentation.
- Fixed small rendering bug in Mojolicious::Plugin::PODRenderer.
2.53 2012-02-25 00:00:00
- Improved Hypnotoad with many info level log messages.
- Improved resilience of Mojo::IOLoop::Stream.
- Improved documentation.
- Fixed Hypnotoad upgrade timeout bug.
2.52 2012-02-24 00:00:00
- Removed experimental status from config method in Mojo.
- Renamed send_message method in Mojolicious::Controller to send.
- Renamed send_message_ok method in Test::mojo to send_ok.
- Renamed to_psgi method in Mojo::Server::PSGI to to_psgi_app.
- Combined send_message and send_frame methods in
Mojo::Transaction::WebSocket to send.
- Improved emit_chain method in Mojolicious::Plugins to allow
reforwarding. (jamadam)
- Improved documentation.
- Fixed bug that prevented Mojo::IOLoop from dying when started
twice.
- Fixed a cookie jar path parsing bug. (marcus)
- Fixed multiple value bug in param method of
Mojolicious::Controller.
2.51 2012-02-19 00:00:00
- Added EXPERIMENTAL to_psgi method to Mojo::Server::PSGI.
- Removed experimental status from around_dispatch hook.
- Removed experimental status from emit_chain method in
Mojolicious::Plugins.
- Removed experimental status from drain event in Mojo::Content.
- Improved portability of scripts.
- Improved documentation.
- Fixed bug that can prevent foreign event loops from being able to
control Mojo::IOLoop.
2.50 2012-02-18 00:00:00
- Added EXPERIMENTAL is_running method to Mojo::IOWatcher and
Mojo::IOWatcher::EV.
- Added file upload support to param method in
Mojolicious::Controller.
- Removed gitignore command.
- Improved Mojo::IOLoop to be controllable from foreign event loops.
- Improved protection from excessively large form values in
Mojo::Message.
- Improved resilience of Mojo::IOLoop::Client.
- Improved documentation.
- Fixed Mojo::Template expressions and escaped expressions to
consistently enforce scalar context.
- Fixed small bugs in makefile command. (tempire, marcus, sri)
2.49 2012-02-13 00:00:00
- Deprecated Mojolicious::Renderer->root in favor of
Mojolicious::Renderer->paths. (memowe, sri)
- Deprecated Mojolicious::Static->root in favor of
Mojolicious::Static->paths. (memowe, sri)
- Added support for multiple "templates" and "public" directories to
Mojolicious. (memowe, sri)
- Improved version command to be more responsive. (crab)
- Improved resilience of Mojo::IOLoop::Client.
- Improved documentation.
- Improved tests.
- Fixed parent combinator bug in Mojo::DOM::CSS. (sharifulin, sri)
wiz [Sun, 18 Mar 2012 19:39:47 +0000 (19:39 +0000)]
Updated lang/mono to 2.10.6nb2
wiz [Sun, 18 Mar 2012 19:39:36 +0000 (19:39 +0000)]
Fix mandoc -Tlint warning in mprof-report(1); for mkmandb.
Bump PKGREVISION.
pettai [Sun, 18 Mar 2012 19:24:07 +0000 (19:24 +0000)]
Updated security/dnssec-tools to 1.12.1
pettai [Sun, 18 Mar 2012 19:23:28 +0000 (19:23 +0000)]
1.12.1 (2/7/12)
- Minor bug fix release
- Fix perl Validator module so it compiles after a header move
- Make all OSes use the new dnssec-check gui as they should have
1.12 (1/26/12)
- New Features:
- libval: - Made improvements to support IPv6,
added the ability to fetch IPv6 glue
- Fixed the EDNS0 fallback behavior.
- Tidied up the locking semantics in libval.
- Added support for hard-coding validator configuration
information that gets used in the absence of other
configuration data. This feature allows the
validator library to be self-contained in
environments where setting up configuration data at
specific locations in the file system is not always
feasible.
- The library has been ported to the Android OS
- rollerd: - Added support for phase-specific commands. This allows
the zone operator to customize processing of the rollerd
utility during different rollerd phases.
- Added support for zone groups. This allows a collection
of zones to be controlled as a group, rather each of
those zones individually.
- Improved the manner in which rollerd indexes the zones
being managed, with the significantly decreased access
times for rollerd's data files. This results in rollerd
being able to support a lot more zones with a single
rollerd instance.
- rollctl and the rollover GUI programs may have new
commands to allow for immediate termination of rollerd.
- apps - Added patch to enable local validation in NTP, with
the ability to handle a specific chicken and egg problem
related to the interdependency between DNSSEC and an
accurate system clock.
- Added a patch to enable DNSSEC validation in Qt
based applications
- dnssec-check - Completely rewritten GUI with many new features
- Now contains the ability to submit the results
to a central DNSSEC-Tools repository. The
results will be analyzed and published on a
regular basis. Please help us get started by
running dnssec-check on your networks! Note
that it explains that it only sends hashed IP
addresses to our servers and the reports
generated will be aggregation summaries of the
data collected.
- It now runs on both Android and Harmattan (N9) devices
- maketestzone - Now produces zones with wildcards and changes to
NSEC record signatures
- dnssec-nodes - parses unbound log files
- Initial work porting to Android
- dnssec-system-tray
- parses unbound log files
1.11 (9/30/11)
- New Features:
- libval: - Significant improvements and bug fixes to the
asynchronous support.
- Added asynchronous version of val_getaddr_info.
- Some reworking of the asynchronous API and callbacks.
Note the asynchronous api is still under development and
subject to changes that break backwards compatibility.
- rollerd: - Added an experimental time-based method for queuing
rollover operations. This original method (full list
of all zones) is the default queuing method, but the
new method can be used by editing the rollerd script.
rollctl and rollrec.pm were also modified to support
this change.
- Added support for merging a set of rollrec files.
rollctl and rollrec.pm were also modified to support
this change.
- dnssec-nodes - This graphical DNS debugging utility was greatly enhanced
- Now parses both bind and libval log files
- Multiple log files can be watched
- Node's represent multiple data sets
internally, which are independently displayed
and tracked.
- Added support for searching for and
highlighting DNS data and DNSSEC status
results
- dnssec-system-tray
- This utility can now report on BOGUS responses
detected in both libval and bind log files.
- Summary window revamped to group similar
messages together.
Plus many more minor features and bug fixes
wiz [Sun, 18 Mar 2012 18:09:30 +0000 (18:09 +0000)]
+ TeXmacs-1.0.7.15, audacity-2.0, calibre-0.8.43, clamav-0.97.4,
dar-2.4.4, etm-889, gnutls-3.0.16, gtkwave-3.3.34, jhead-2.95,
libXt-1.1.3, libdrm-2.4.32, mp3diags-1.1.17, nginx-1.0.14,
scmgit-base-1.7.9.4, scmgit-docs-1.7.9.4, seamonkey-2.8, stella-3.6,
vifm-0.7.2a, webalizer-2.23.05, wine-devel-1.5.0, xf86-input-mouse-1.7.2,
xproto-7.0.23.
pettai [Sun, 18 Mar 2012 17:39:15 +0000 (17:39 +0000)]
Updated security/opendnssec to 1.3.7
pettai [Sun, 18 Mar 2012 17:38:46 +0000 (17:38 +0000)]
OpenDNSSEC 1.3.7
* OPENDNSSEC-215: Signer Engine: Always recover serial from backup,
even if it is corrupted, preventing unnecessary serial decrementals.
* OPENDNSSEC-217: Enforcer: Tries to detect pidfile staleness, so that
the daemon will start after a power failure.
Bugfixes:
* ods-hsmutil: Fixed a small memory leak when printing a DNSKEY.
* OPENDNSSEC-216: Signer Engine: Fix duplicate NSEC3PARAM bug.
* OPENDNSSEC-218: Signer Engine: Prevent endless loop in case the locators
in the signer backup files and the HSM are out of sync.
* OPENDNSSEC-225: Fix problem with pid found when not existing.
* SUPPORT-21: HSM SCA 6000 in combination with OpenCryptoki can return RSA key
material with leading zeroes. DNSSEC does not allow leading zeroes in key
data. You are affected by this bug if your DNSKEY RDATA e.g. begins with
"BAABA". Normal keys begin with e.g. "AwEAA". OpenDNSSEC will now sanitize
incoming data before adding it to the DNSKEY. Do not upgrade to this version
if you are affected by the bug. You first need to go unsigned, then do the
upgrade, and finally sign your zone again. SoftHSM and other HSM:s will not
produce data with leading zeroes and the bug will thus not affect you.
OpenDNSSEC 1.3.6
* OPENDNSSEC-33: Signer Engine: Check HSM connection before use, attempt to
reconnect if it is not valid.
* OPENDNSSEC-178: Signer Engine: Instead of waiting an arbitrary amount of
time, let worker wait with pushing sign operations until the queue is
non-full.
* Signer Engine: Adjust some log messages.
Bugfixes:
* ods-control: Wrong exit status if Enforcer was already running.
* OPENDNSSEC-56: ods-ksmutil had the wrong option for config file in the
help usage text.
* OPENDNSSEC-207: Signer Engine: Fix communication from a process not
attached to a shell.
* OPENDNSSEC-209: Signer Engine: Make output file adapter atomic by writing
signed file to an intermediate file first.
asau [Sun, 18 Mar 2012 17:35:46 +0000 (17:35 +0000)]
Updated math/mathomatic to 15.8.1
asau [Sun, 18 Mar 2012 17:34:16 +0000 (17:34 +0000)]
Update to Mathomatic 15.8.1
CHANGES MADE TO MATHOMATIC 15.8.0 TO BRING IT UP TO THE NEXT VERSION:
Added some important missing documentation, and the makefiles were fixed.
Some scary messages explained to make them less scary.
02/23/12 - All makefiles corrected to fix the following problem:
Removed -Cv option from the install command, so that installing
Mathomatic under NetBSD works without a hitch. The "install -Cv"
option is not supported under some operating systems, so compiling
and installing Mathomatic will now be easier on those systems.
02/27/12 - Added Heron's formula (calculates the area of any triangle, given
all three side lengths) to the "help geometry" command. Mathomatic
can solve for any side length, too. See "tests/heron.in" for some
proofs.
03/01/12 - "make uninstall" is now passing the current "prefix" (the directory
being operated on, like "/usr") to the lib and primes uninstall.
03/04/12 - Added noisy compile-time warning if DBL_DIG is not 15, and display
it as digits precision in the version command.
Removed "no right_associative_power" from set options listing, now
only lists "right_associative_power" if it is set. A very
unimportant and rarely used option that was just taking up display
space. However, when set, this option makes Mathomatic work like
most other computer algebra systems when parsing multiple power
operators on the same level (without parentheses). So feel free
to use it, or recommend I make it the default.
03/06/12 - Fixed a bug in modulus simplification; sometimes it would go in an
infinite loop because it was not checking that it made the
expression smaller. It now checks that the result is actually
smaller. Surprisingly, this problem happened only when doing
polynomial division for a modulus operator to simplify it.
Here is a test expression, to see if you have this bug:
(x % ((x - y)/integer_any1)). Simplifying it results in a hang,
on any version of Mathomatic without the new bug fix.
Mathomatic version 15.8.1 released Friday 03/09/12.
abs [Sun, 18 Mar 2012 17:31:53 +0000 (17:31 +0000)]
Add a buildlink for anyone who needs samba 3.5
abs [Sun, 18 Mar 2012 16:58:25 +0000 (16:58 +0000)]
Added devel/yajl version 2.0.1
abs [Sun, 18 Mar 2012 16:57:03 +0000 (16:57 +0000)]
+yajl
abs [Sun, 18 Mar 2012 16:56:32 +0000 (16:56 +0000)]
Added devel/yajl version 2.0.1
Yet Another JSON Library. YAJL is a small event-driven (SAX-style) JSON parser
written in ANSI C, and a small validating JSON generator.
YAJL is released under the BSD license.
abs [Sun, 18 Mar 2012 16:56:32 +0000 (16:56 +0000)]
Merge from vendor branch TNF:
Added devel/yajl version 2.0.1
Yet Another JSON Library. YAJL is a small event-driven (SAX-style) JSON parser
written in ANSI C, and a small validating JSON generator.
YAJL is released under the BSD license.
gls [Sun, 18 Mar 2012 16:04:35 +0000 (16:04 +0000)]
Fix PLIST.
Thanks joerg!
pettai [Sun, 18 Mar 2012 15:11:43 +0000 (15:11 +0000)]
Updated security/softhsm to 1.3.2
pettai [Sun, 18 Mar 2012 15:11:07 +0000 (15:11 +0000)]
SoftHSM 1.3.2
* Update the README with information on moving the database
between different architectures.
Bugfixes:
* Fix the destruction order of the Singleton objects.
shattered [Sun, 18 Mar 2012 12:42:25 +0000 (12:42 +0000)]
Updated sysutils/mtools to 4.0.17
shattered [Sun, 18 Mar 2012 12:41:53 +0000 (12:41 +0000)]
Update to 4.0.17 and delint. Notable changes:
Added missing -i option to mshortname
Make it clear that label is limited to 11 characters
mbadblocks now takes a list of bad blocks
mbadblocks now is able to do write scanning for bad blocks
mshowfat can show cluster of specific offset
Fixed encoding of all-lowercase names
Consider every directory entry after an ENDMARK (0x00) to be deleted
wiz [Sun, 18 Mar 2012 12:02:41 +0000 (12:02 +0000)]
Revert previous, boost packages are at 1.49.
reinoud [Sun, 18 Mar 2012 11:33:46 +0000 (11:33 +0000)]
pkgsrc/meta/boost/ is at version 1.58 but devel/boost-jam's buidlink3.mk file
was referring to 1.59. References to the boost-jam's package were thus getting
confused since they expect 1.59 to be there when 1.58 was installed.
XXX shouldn't this be a version var in meta/boost/Makefile.common ?
taca [Sun, 18 Mar 2012 09:20:49 +0000 (09:20 +0000)]
Note update of devel/ZenTest package to 4.7.0.
taca [Sun, 18 Mar 2012 09:20:18 +0000 (09:20 +0000)]
Update ZenTest to 4.7.0.
=== 4.7.0 / 2012-03-15
* 2 minor enhancements:
* autotest/timestamp now uses ran_command hook. (bhenderson)
* run_command hook is now passed cmd. (bhenderson)
* 1 bug fix:
* Fixed run_command hook to only trigger when there are test files to run.
(bhenderson)
taca [Sun, 18 Mar 2012 09:16:27 +0000 (09:16 +0000)]
Note update of misc/ruby-sprockets package to 2.3.1.
taca [Sun, 18 Mar 2012 09:15:36 +0000 (09:15 +0000)]
Update ruby-sprockets to 2.3.1.
**2.3.1** (February 11, 2012)
* Added bytesize to manifest
* Added Asset#bytesize alias
* Security: Check path for forbidden access after unescaping
**2.3.0** (January 16, 2012)
* Added special Sass importer that automatically tracks any `@import`ed files.
**2.2.0** (January 10, 2012)
* Added `sprockets` command line utility.
* Added rake/sprocketstask.
* Added json manifest log of compiled assets.
* Added `stub` directive that allows you to exclude files from the bundle.
* Added per environment external encoding
(Environment#default_external_encoding). Defaults to UTF-8. Fixes issues
where LANG is not set correctly and Rubys default external is set to ASCII.
**2.1.2** (November 20, 2011)
* Disabled If-Modified-Since server checks. Fixes some browser caching issues
when serving the asset body only. If-None-Match caching is sufficent.
**2.1.1** (November 18, 2011)
* Fix windows absolute path check bug.
**2.1.0** (November 11, 2011)
* Directive comment lines are now turned into empty lines instead of
removed. This way line numbers in
CoffeeScript syntax errors are correct.
* Performance and caching bug fixes.
taca [Sun, 18 Mar 2012 09:10:54 +0000 (09:10 +0000)]
Note update of archivers/ruby-zip package to 0.9.6.1.
taca [Sun, 18 Mar 2012 09:10:22 +0000 (09:10 +0000)]
Update ruby-zip package to 0.9.6.1.
Exact changes are unknown.
taca [Sun, 18 Mar 2012 08:17:15 +0000 (08:17 +0000)]
Note remove of www/ruby-rack11 package.
taca [Sun, 18 Mar 2012 08:16:17 +0000 (08:16 +0000)]
Remove ruby-rack11, maybe last package for Ruby on Rails 2.
taca [Sun, 18 Mar 2012 08:15:12 +0000 (08:15 +0000)]
Remove ruby-rack11.
taca [Sun, 18 Mar 2012 08:12:30 +0000 (08:12 +0000)]
Remove Ruby on Rails 2 support.
taca [Sun, 18 Mar 2012 08:10:38 +0000 (08:10 +0000)]
Note remove of Ruby on Rails 2 packages:
www/ruby-rails
mail/ruby-actionmailer
www/ruby-activeresource
databases/ruby-activerecord
www/ruby-actionpack
devel/ruby-activesupport
taca [Sun, 18 Mar 2012 08:09:27 +0000 (08:09 +0000)]
Remove ruby-activesupport, say good-by to Ruby on Rails 2.
taca [Sun, 18 Mar 2012 08:08:17 +0000 (08:08 +0000)]
Remove ruby-actionpack, say good-by to Ruby on Rails 2.
taca [Sun, 18 Mar 2012 08:07:07 +0000 (08:07 +0000)]
Remove ruby-activerecord, say good-by to Ruby on Rails 2.
taca [Sun, 18 Mar 2012 08:05:31 +0000 (08:05 +0000)]
Remove ruby-activeresource, say good-by to Ruby on Rails 2.
taca [Sun, 18 Mar 2012 08:04:02 +0000 (08:04 +0000)]
Remove ruby-actionmailer, say good-by to Ruby on Rails 2.
taca [Sun, 18 Mar 2012 08:03:04 +0000 (08:03 +0000)]
Remove ruby-rails, say good-by to Ruby on Rails 2.
taca [Sun, 18 Mar 2012 08:01:12 +0000 (08:01 +0000)]
Remove Ruby on Rails 2 pacakges:
databases/ruby-activerecord
devel/ruby-activesupport
mail/ruby-actionmailer
www/ruby-actionpack
www/ruby-activeresource
www/ruby-rails
taca [Sun, 18 Mar 2012 07:56:25 +0000 (07:56 +0000)]
Note remove of databases/ruby-acts-as-versioned02.
taca [Sun, 18 Mar 2012 07:55:42 +0000 (07:55 +0000)]
Remove ruby-acts-as-versioned02 package for Ruby on Rails 2.
taca [Sun, 18 Mar 2012 07:54:29 +0000 (07:54 +0000)]
Remove ruby-acts-as-versioned02.
taca [Sun, 18 Mar 2012 07:49:31 +0000 (07:49 +0000)]
Note remove of these packages.
devel/ruby-rspec-rails1
devel/ruby-rspec1
taca [Sun, 18 Mar 2012 07:48:56 +0000 (07:48 +0000)]
Remove ruby-rspec-rails1 and ruby-rspec1.
taca [Sun, 18 Mar 2012 07:48:23 +0000 (07:48 +0000)]
Remove ruby-rspec1 package for Ruby on Rails 2.
taca [Sun, 18 Mar 2012 07:48:07 +0000 (07:48 +0000)]
Remove ruby-rspec-rails1 package for Ruby on Rails 2.
taca [Sun, 18 Mar 2012 07:18:16 +0000 (07:18 +0000)]
Note addition of ruby-sass-rails packages:
www/ruby-sass-rails31 3.1.5
www/ruby-sass-rails32 3.2.4
taca [Sun, 18 Mar 2012 07:15:30 +0000 (07:15 +0000)]
Add and enable ruby-sass-rails31 and ruby-sass-rails32.
taca [Sun, 18 Mar 2012 07:14:31 +0000 (07:14 +0000)]
Importing ruby-sass-rails32 version 3.2.4 for Ruby on Rails 3.2.
Sass adapter for the Rails asset pipeline.
taca [Sun, 18 Mar 2012 07:14:31 +0000 (07:14 +0000)]
Merge from vendor branch TNF:
Importing ruby-sass-rails32 version 3.2.4 for Ruby on Rails 3.2.
Sass adapter for the Rails asset pipeline.
taca [Sun, 18 Mar 2012 07:13:47 +0000 (07:13 +0000)]
Importing ruby-sass-rails31 version 3.1.5 for Ruby on Rails 3.1.
Sass adapter for the Rails asset pipeline.
taca [Sun, 18 Mar 2012 07:13:47 +0000 (07:13 +0000)]
Merge from vendor branch TNF:
Importing ruby-sass-rails31 version 3.1.5 for Ruby on Rails 3.1.
Sass adapter for the Rails asset pipeline.
taca [Sun, 18 Mar 2012 07:07:16 +0000 (07:07 +0000)]
Note addtion of these packages:
www/ruby-journey 1.0.3
www/ruby-jquery-rails10 1.0.19
www/ruby-jquery-rails20 2.0.1
taca [Sun, 18 Mar 2012 07:06:38 +0000 (07:06 +0000)]
Add and enable ruby-journey, ruby-jquery-rails10 and ruby-jquery-rails20.
taca [Sun, 18 Mar 2012 07:04:40 +0000 (07:04 +0000)]
Importing ruby-jquery-rails20 version 2.0.1.
This is for Ruby on Rails 3.2.
jquery-rails provides jQuery and the jQuery-ujs driver for your Rails 3
applications.
taca [Sun, 18 Mar 2012 07:04:40 +0000 (07:04 +0000)]
Merge from vendor branch TNF:
Importing ruby-jquery-rails20 version 2.0.1.
This is for Ruby on Rails 3.2.
jquery-rails provides jQuery and the jQuery-ujs driver for your Rails 3
applications.
taca [Sun, 18 Mar 2012 07:02:55 +0000 (07:02 +0000)]
Importing ruby-jquery-rails version 1.0.19 as www/ruby-jquery-rails10.
This isn't latest version but for Ruby on Rails 3.1.
jquery-rails provides jQuery and the jQuery-ujs driver for your Rails 3
applications.
taca [Sun, 18 Mar 2012 07:02:55 +0000 (07:02 +0000)]
Merge from vendor branch TNF:
Importing ruby-jquery-rails version 1.0.19 as www/ruby-jquery-rails10.
This isn't latest version but for Ruby on Rails 3.1.
jquery-rails provides jQuery and the jQuery-ujs driver for your Rails 3
applications.
taca [Sun, 18 Mar 2012 07:01:13 +0000 (07:01 +0000)]
Importing ruby-journey version 1.0.3.
Journey is a router. It routes requests.
taca [Sun, 18 Mar 2012 07:01:13 +0000 (07:01 +0000)]
Merge from vendor branch TNF:
Importing ruby-journey version 1.0.3.
Journey is a router. It routes requests.
taca [Sun, 18 Mar 2012 06:56:44 +0000 (06:56 +0000)]
Add and enable ruby-actionpack32, ruby-activeresource32 and ruby-rails32.
taca [Sun, 18 Mar 2012 06:54:45 +0000 (06:54 +0000)]
Add and enable ruby-actionmailer32.
taca [Sun, 18 Mar 2012 06:54:16 +0000 (06:54 +0000)]
Add and enable ruby-activerecord32.
taca [Sun, 18 Mar 2012 06:53:54 +0000 (06:53 +0000)]
Add and enable ruby-activemodel32, ruby-activesupport32 and ruby-railties32.
taca [Sun, 18 Mar 2012 06:53:00 +0000 (06:53 +0000)]
Importing ruby-rails32 version 3.2.2.
taca [Sun, 18 Mar 2012 06:53:00 +0000 (06:53 +0000)]
Merge from vendor branch TNF:
Importing ruby-rails32 version 3.2.2.
taca [Sun, 18 Mar 2012 06:51:50 +0000 (06:51 +0000)]
Importing ruby-railties32 version 3.2.2.
## Rails 3.2.1 (January 26, 2012) ##
* Documentation fixes.
* Migration generation understands decimal{1.2} and decimal{1-2}, in
addition to decimal{1,2}. *José Valim*
## Rails 3.2.0 (January 20, 2012) ##
* Rails 2.3-style plugins in vendor/plugins are deprecated and will be removed in Rails 4.0. Move them out of vendor/plugins and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. *Santiago Pastorino*
* Guides are available as a single .mobi for the Kindle and free Kindle readers apps. *Michael Pearson & Xavier Noria*
* Allow scaffold/model/migration generators to accept a "index" and "uniq" modifiers, as in: "tracking_id:integer:uniq" in order to generate (unique) indexes. Some types also accept custom options, for instance, you can specify the precision and scale for decimals as "price:decimal{7,2}". *Dmitrii Samoilov*
* Added `config.exceptions_app` to set the exceptions application invoked by the ShowException middleware when an exception happens. Defaults to `ActionDispatch::PublicExceptions.new(Rails.public_path)`. *José Valim*
* Speed up development by only reloading classes if dependencies files changed. This can be turned off by setting `config.reload_classes_only_on_change` to false. *José Valim*
* New applications get a flag `config.active_record.auto_explain_threshold_in_seconds` in the environments configuration files. With a value of 0.5 in development.rb, and commented out in production.rb. No mention in test.rb. *fxn*
* Add DebugExceptions middleware which contains features extracted from ShowExceptions middleware *José Valim*
* Display mounted engine's routes in `rake routes` *Piotr Sarnacki*
* Allow to change the loading order of railties with `config.railties_order=` *Piotr Sarnacki*
Example:
config.railties_order = [Blog::Engine, :main_app, :all]
* Scaffold returns 204 No Content for API requests without content. This makes scaffold work with jQuery out of the box *José Valim*
* Update Rails::Rack::Logger middleware to apply any tags set in config.log_tags to the newly ActiveSupport::TaggedLogging Rails.logger. This makes it easy to tag log lines with debug information like subdomain and request id -- both very helpful in debugging multi-user production applications *DHH*
* Default options to `rails new` can be set in ~/.railsrc *Guillermo Iguaran*
* Add destroy alias to Rails engines *Guillermo Iguaran*
* Add destroy alias for Rails command line. This allows the following: `rails d model post` *Andrey Ognevsky*
* Attributes on scaffold and model generators default to string. This allows the following: "rails g scaffold Post title body:text author" *José Valim*
* Remove old plugin generator (`rails generate plugin`) in favor of `rails plugin new` command *Guillermo Iguaran*
* Remove old 'config.paths.app.controller' API in favor of 'config.paths["app/controller"]' API *Guillermo Iguaran*
taca [Sun, 18 Mar 2012 06:51:50 +0000 (06:51 +0000)]
Merge from vendor branch TNF:
Importing ruby-railties32 version 3.2.2.
## Rails 3.2.1 (January 26, 2012) ##
* Documentation fixes.
* Migration generation understands decimal{1.2} and decimal{1-2}, in
addition to decimal{1,2}. *José Valim*
## Rails 3.2.0 (January 20, 2012) ##
* Rails 2.3-style plugins in vendor/plugins are deprecated and will be removed in Rails 4.0. Move them out of vendor/plugins and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. *Santiago Pastorino*
* Guides are available as a single .mobi for the Kindle and free Kindle readers apps. *Michael Pearson & Xavier Noria*
* Allow scaffold/model/migration generators to accept a "index" and "uniq" modifiers, as in: "tracking_id:integer:uniq" in order to generate (unique) indexes. Some types also accept custom options, for instance, you can specify the precision and scale for decimals as "price:decimal{7,2}". *Dmitrii Samoilov*
* Added `config.exceptions_app` to set the exceptions application invoked by the ShowException middleware when an exception happens. Defaults to `ActionDispatch::PublicExceptions.new(Rails.public_path)`. *José Valim*
* Speed up development by only reloading classes if dependencies files changed. This can be turned off by setting `config.reload_classes_only_on_change` to false. *José Valim*
* New applications get a flag `config.active_record.auto_explain_threshold_in_seconds` in the environments configuration files. With a value of 0.5 in development.rb, and commented out in production.rb. No mention in test.rb. *fxn*
* Add DebugExceptions middleware which contains features extracted from ShowExceptions middleware *José Valim*
* Display mounted engine's routes in `rake routes` *Piotr Sarnacki*
* Allow to change the loading order of railties with `config.railties_order=` *Piotr Sarnacki*
Example:
config.railties_order = [Blog::Engine, :main_app, :all]
* Scaffold returns 204 No Content for API requests without content. This makes scaffold work with jQuery out of the box *José Valim*
* Update Rails::Rack::Logger middleware to apply any tags set in config.log_tags to the newly ActiveSupport::TaggedLogging Rails.logger. This makes it easy to tag log lines with debug information like subdomain and request id -- both very helpful in debugging multi-user production applications *DHH*
* Default options to `rails new` can be set in ~/.railsrc *Guillermo Iguaran*
* Add destroy alias to Rails engines *Guillermo Iguaran*
* Add destroy alias for Rails command line. This allows the following: `rails d model post` *Andrey Ognevsky*
* Attributes on scaffold and model generators default to string. This allows the following: "rails g scaffold Post title body:text author" *José Valim*
* Remove old plugin generator (`rails generate plugin`) in favor of `rails plugin new` command *Guillermo Iguaran*
* Remove old 'config.paths.app.controller' API in favor of 'config.paths["app/controller"]' API *Guillermo Iguaran*
taca [Sun, 18 Mar 2012 06:50:59 +0000 (06:50 +0000)]
Importing ruby-actionmailer32 version 3.2.2.
## Rails 3.2.1 (January 26, 2012) ##
* No changes.
## Rails 3.2.0 (January 20, 2012) ##
* Upgrade mail version to 2.4.0 *ML*
* Remove Old ActionMailer API *Josh Kalderimis*
## Rails 3.1.0 (August 30, 2011) ##
* No changes
taca [Sun, 18 Mar 2012 06:50:59 +0000 (06:50 +0000)]
Merge from vendor branch TNF:
Importing ruby-actionmailer32 version 3.2.2.
## Rails 3.2.1 (January 26, 2012) ##
* No changes.
## Rails 3.2.0 (January 20, 2012) ##
* Upgrade mail version to 2.4.0 *ML*
* Remove Old ActionMailer API *Josh Kalderimis*
## Rails 3.1.0 (August 30, 2011) ##
* No changes
taca [Sun, 18 Mar 2012 06:50:07 +0000 (06:50 +0000)]
Importing ruby-activeresource32 version 3.2.2.
## Rails 3.2.1 (January 26, 2012) ##
* Documentation fixes.
## Rails 3.2.0 (January 20, 2012) ##
* Redirect responses: 303 See Other and 307 Temporary Redirect now behave like
301 Moved Permanently and 302 Found. GH #3302.
*Jim Herz*
taca [Sun, 18 Mar 2012 06:50:07 +0000 (06:50 +0000)]
Merge from vendor branch TNF:
Importing ruby-activeresource32 version 3.2.2.
## Rails 3.2.1 (January 26, 2012) ##
* Documentation fixes.
## Rails 3.2.0 (January 20, 2012) ##
* Redirect responses: 303 See Other and 307 Temporary Redirect now behave like
301 Moved Permanently and 302 Found. GH #3302.
*Jim Herz*
taca [Sun, 18 Mar 2012 06:49:06 +0000 (06:49 +0000)]
Importing ruby-activerecord32 3.2.2.
## Rails 3.2.1 (January 26, 2012) ##
* The threshold for auto EXPLAIN is ignored if there's no logger. *fxn*
* Call `to_s` on the value passed to `table_name=`, in particular symbols
are supported (regression). *Sergey Nartimov*
* Fix possible race condition when two threads try to define attribute
methods for the same class. *Jon Leighton*
## Rails 3.2.0 (January 20, 2012) ##
* Added a `with_lock` method to ActiveRecord objects, which starts
a transaction, locks the object (pessimistically) and yields to the block.
The method takes one (optional) parameter and passes it to `lock!`.
Before:
class Order < ActiveRecord::Base
def cancel!
transaction do
lock!
# ... cancelling logic
end
end
end
After:
class Order < ActiveRecord::Base
def cancel!
with_lock do
# ... cancelling logic
end
end
end
*Olek Janiszewski*
* 'on' and 'ON' boolean columns values are type casted to true
*Santiago Pastorino*
* Added ability to run migrations only for given scope, which allows
to run migrations only from one engine (for example to revert changes
from engine that you want to remove).
Example:
rake db:migrate SCOPE=blog
*Piotr Sarnacki*
* Migrations copied from engines are now scoped with engine's name,
for example 01_create_posts.blog.rb. *Piotr Sarnacki*
* Implements `AR::Base.silence_auto_explain`. This method allows the user to
selectively disable automatic EXPLAINs within a block. *fxn*
* Implements automatic EXPLAIN logging for slow queries.
A new configuration parameter `config.active_record.auto_explain_threshold_in_seconds`
determines what's to be considered a slow query. Setting that to `nil` disables
this feature. Defaults are 0.5 in development mode, and `nil` in test and production
modes.
As of this writing there's support for SQLite, MySQL (mysql2 adapter), and
PostgreSQL.
*fxn*
* Implemented ActiveRecord::Relation#pluck method
Method returns Array of column value from table under ActiveRecord model
Client.pluck(:id)
*Bogdan Gusiev*
* Automatic closure of connections in threads is deprecated. For example
the following code is deprecated:
Thread.new { Post.find(1) }.join
It should be changed to close the database connection at the end of
the thread:
Thread.new {
Post.find(1)
Post.connection.close
}.join
Only people who spawn threads in their application code need to worry
about this change.
* Deprecated:
* `set_table_name`
* `set_inheritance_column`
* `set_sequence_name`
* `set_primary_key`
* `set_locking_column`
Use an assignment method instead. For example, instead of `set_table_name`, use `self.table_name=`:
class Project < ActiveRecord::Base
self.table_name = "project"
end
Or define your own `self.table_name` method:
class Post < ActiveRecord::Base
def self.table_name
"special_" + super
end
end
Post.table_name # => "special_posts"
*Jon Leighton*
* Generated association methods are created within a separate module to allow overriding and
composition using `super`. For a class named `MyModel`, the module is named
`MyModel::GeneratedFeatureMethods`. It is included into the model class immediately after
the `generated_attributes_methods` module defined in ActiveModel, so association methods
override attribute methods of the same name. *Josh Susser*
* Implemented ActiveRecord::Relation#explain. *fxn*
* Add ActiveRecord::Relation#uniq for generating unique queries.
Before:
Client.select('DISTINCT name')
After:
Client.select(:name).uniq
This also allows you to revert the unqueness in a relation:
Client.select(:name).uniq.uniq(false)
*Jon Leighton*
* Support index sort order in sqlite, mysql and postgres adapters. *Vlad Jebelev*
* Allow the :class_name option for associations to take a symbol (:Client) in addition to
a string ('Client').
This is to avoid confusing newbies, and to be consistent with the fact that other options
like :foreign_key already allow a symbol or a string.
*Jon Leighton*
* In development mode the db:drop task also drops the test database. For symmetry with
the db:create task. *Dmitriy Kiriyenko*
* Added ActiveRecord::Base.store for declaring simple single-column key/value stores *DHH*
class User < ActiveRecord::Base
store :settings, accessors: [ :color, :homepage ]
end
u = User.new(color: 'black', homepage: '37signals.com')
u.color # Accessor stored attribute
u.settings[:country] = 'Denmark' # Any attribute, even if not specified with an accessor
* MySQL: case-insensitive uniqueness validation avoids calling LOWER when
the column already uses a case-insensitive collation. Fixes #561.
*Joseph Palermo*
* Transactional fixtures enlist all active database connections. You can test
models on different connections without disabling transactional fixtures.
*Jeremy Kemper*
* Add first_or_create, first_or_create!, first_or_initialize methods to Active Record. This is a
better approach over the old find_or_create_by dynamic methods because it's clearer which
arguments are used to find the record and which are used to create it:
User.where(:first_name => "Scarlett").first_or_create!(:last_name => "Johansson")
*Andrés Mejía*
* Fix nested attributes bug where _destroy parameter is taken into account
during :reject_if => :all_blank (fixes #2937)
*Aaron Christy*
* Add ActiveSupport::Cache::NullStore for use in development and testing.
*Brian Durand*
taca [Sun, 18 Mar 2012 06:49:06 +0000 (06:49 +0000)]
Merge from vendor branch TNF:
Importing ruby-activerecord32 3.2.2.
## Rails 3.2.1 (January 26, 2012) ##
* The threshold for auto EXPLAIN is ignored if there's no logger. *fxn*
* Call `to_s` on the value passed to `table_name=`, in particular symbols
are supported (regression). *Sergey Nartimov*
* Fix possible race condition when two threads try to define attribute
methods for the same class. *Jon Leighton*
## Rails 3.2.0 (January 20, 2012) ##
* Added a `with_lock` method to ActiveRecord objects, which starts
a transaction, locks the object (pessimistically) and yields to the block.
The method takes one (optional) parameter and passes it to `lock!`.
Before:
class Order < ActiveRecord::Base
def cancel!
transaction do
lock!
# ... cancelling logic
end
end
end
After:
class Order < ActiveRecord::Base
def cancel!
with_lock do
# ... cancelling logic
end
end
end
*Olek Janiszewski*
* 'on' and 'ON' boolean columns values are type casted to true
*Santiago Pastorino*
* Added ability to run migrations only for given scope, which allows
to run migrations only from one engine (for example to revert changes
from engine that you want to remove).
Example:
rake db:migrate SCOPE=blog
*Piotr Sarnacki*
* Migrations copied from engines are now scoped with engine's name,
for example 01_create_posts.blog.rb. *Piotr Sarnacki*
* Implements `AR::Base.silence_auto_explain`. This method allows the user to
selectively disable automatic EXPLAINs within a block. *fxn*
* Implements automatic EXPLAIN logging for slow queries.
A new configuration parameter `config.active_record.auto_explain_threshold_in_seconds`
determines what's to be considered a slow query. Setting that to `nil` disables
this feature. Defaults are 0.5 in development mode, and `nil` in test and production
modes.
As of this writing there's support for SQLite, MySQL (mysql2 adapter), and
PostgreSQL.
*fxn*
* Implemented ActiveRecord::Relation#pluck method
Method returns Array of column value from table under ActiveRecord model
Client.pluck(:id)
*Bogdan Gusiev*
* Automatic closure of connections in threads is deprecated. For example
the following code is deprecated:
Thread.new { Post.find(1) }.join
It should be changed to close the database connection at the end of
the thread:
Thread.new {
Post.find(1)
Post.connection.close
}.join
Only people who spawn threads in their application code need to worry
about this change.
* Deprecated:
* `set_table_name`
* `set_inheritance_column`
* `set_sequence_name`
* `set_primary_key`
* `set_locking_column`
Use an assignment method instead. For example, instead of `set_table_name`, use `self.table_name=`:
class Project < ActiveRecord::Base
self.table_name = "project"
end
Or define your own `self.table_name` method:
class Post < ActiveRecord::Base
def self.table_name
"special_" + super
end
end
Post.table_name # => "special_posts"
*Jon Leighton*
* Generated association methods are created within a separate module to allow overriding and
composition using `super`. For a class named `MyModel`, the module is named
`MyModel::GeneratedFeatureMethods`. It is included into the model class immediately after
the `generated_attributes_methods` module defined in ActiveModel, so association methods
override attribute methods of the same name. *Josh Susser*
* Implemented ActiveRecord::Relation#explain. *fxn*
* Add ActiveRecord::Relation#uniq for generating unique queries.
Before:
Client.select('DISTINCT name')
After:
Client.select(:name).uniq
This also allows you to revert the unqueness in a relation:
Client.select(:name).uniq.uniq(false)
*Jon Leighton*
* Support index sort order in sqlite, mysql and postgres adapters. *Vlad Jebelev*
* Allow the :class_name option for associations to take a symbol (:Client) in addition to
a string ('Client').
This is to avoid confusing newbies, and to be consistent with the fact that other options
like :foreign_key already allow a symbol or a string.
*Jon Leighton*
* In development mode the db:drop task also drops the test database. For symmetry with
the db:create task. *Dmitriy Kiriyenko*
* Added ActiveRecord::Base.store for declaring simple single-column key/value stores *DHH*
class User < ActiveRecord::Base
store :settings, accessors: [ :color, :homepage ]
end
u = User.new(color: 'black', homepage: '37signals.com')
u.color # Accessor stored attribute
u.settings[:country] = 'Denmark' # Any attribute, even if not specified with an accessor
* MySQL: case-insensitive uniqueness validation avoids calling LOWER when
the column already uses a case-insensitive collation. Fixes #561.
*Joseph Palermo*
* Transactional fixtures enlist all active database connections. You can test
models on different connections without disabling transactional fixtures.
*Jeremy Kemper*
* Add first_or_create, first_or_create!, first_or_initialize methods to Active Record. This is a
better approach over the old find_or_create_by dynamic methods because it's clearer which
arguments are used to find the record and which are used to create it:
User.where(:first_name => "Scarlett").first_or_create!(:last_name => "Johansson")
*Andrés Mejía*
* Fix nested attributes bug where _destroy parameter is taken into account
during :reject_if => :all_blank (fixes #2937)
*Aaron Christy*
* Add ActiveSupport::Cache::NullStore for use in development and testing.
*Brian Durand*
taca [Sun, 18 Mar 2012 06:47:55 +0000 (06:47 +0000)]
Importing ruby-actionpack32 version 3.2.2.
## Rails 3.2.2 (unreleased) ##
* Format lookup for partials is derived from the format in which the template is being rendered. Closes #5025 part 2 *Santiago Pastorino*
* Use the right format when a partial is missing. Closes #5025. *Santiago Pastorino*
* Default responder will now always use your overridden block in `respond_with` to render your response. *Prem Sichanugrist*
* check_box helper with :disabled => true will generate a disabled hidden field to conform with the HTML convention where disabled fields are not submitted with the form.
This is a behavior change, previously the hidden tag had a value of the disabled checkbox.
*Tadas Tamosauskas*
## Rails 3.2.1 (January 26, 2012) ##
* Documentation improvements.
* Allow `form.select` to accept ranges (regression). *Jeremy Walker*
* `datetime_select` works with -/+ infinity dates. *Joe Van Dyk*
## Rails 3.2.0 (January 20, 2012) ##
* Setting config.assets.logger to false turn off Sprockets logger *Guillermo Iguaran*
* Add `config.action_dispatch.default_charset` to configure default charset for ActionDispatch::Response. *Carlos Antonio da Silva*
* Deprecate setting default charset at controller level, use the new `config.action_dispatch.default_charset` instead. *Carlos Antonio da Silva*
* Deprecate ActionController::UnknownAction in favour of AbstractController::ActionNotFound. *Carlos Antonio da Silva*
* Deprecate ActionController::DoubleRenderError in favour of AbstractController::DoubleRenderError. *Carlos Antonio da Silva*
* Deprecate method_missing handling for not found actions, use action_missing instead. *Carlos Antonio da Silva*
* Deprecate ActionController#rescue_action, ActionController#initialize_template_class, and ActionController#assign_shortcuts.
These methods were not being used internally anymore and are going to be removed in Rails 4. *Carlos Antonio da Silva*
* Add config.assets.logger to configure Sprockets logger *Rafael França*
* Use a BodyProxy instead of including a Module that responds to
close. Closes #4441 if Active Record is disabled assets are delivered
correctly *Santiago Pastorino*
* Rails initialization with initialize_on_precompile = false should set assets_dir *Santiago Pastorino*
* Add font_path helper method *Santiago Pastorino*
* Depends on rack ~> 1.4.0 *Santiago Pastorino*
* Add :gzip option to `caches_page`. The default option can be configured globally using `page_cache_compression` *Andrey Sitnik*
* The ShowExceptions middleware now accepts a exceptions application that is responsible to render an exception when the application fails. The application is invoked with a copy of the exception in `env["action_dispatch.exception"]` and with the PATH_INFO rewritten to the status code. *José Valim*
* Add `button_tag` support to ActionView::Helpers::FormBuilder.
This support mimics the default behavior of `submit_tag`.
Example:
<%= form_for @post do |f| %>
<%= f.button %>
<% end %>
* Date helpers accept a new option, `:use_two_digit_numbers = true`, that renders select boxes for months and days with a leading zero without changing the respective values.
For example, this is useful for displaying ISO8601-style dates such as '2011-08-01'. *Lennart Fridén and Kim Persson*
* Make ActiveSupport::Benchmarkable a default module for ActionController::Base, so the #benchmark method is once again available in the controller context like it used to be *DHH*
* Deprecated implied layout lookup in controllers whose parent had a explicit layout set:
class ApplicationController
layout "application"
end
class PostsController < ApplicationController
end
In the example above, Posts controller will no longer automatically look up for a posts layout.
If you need this functionality you could either remove `layout "application"` from ApplicationController or explicitly set it to nil in PostsController. *José Valim*
* Rails will now use your default layout (such as "layouts/application") when you specify a layout with `:only` and `:except` condition, and those conditions fail. *Prem Sichanugrist*
For example, consider this snippet:
class CarsController
layout 'single_car', :only => :show
end
Rails will use 'layouts/single_car' when a request comes in `:show` action, and use 'layouts/application' (or 'layouts/cars', if exists) when a request comes in for any other actions.
* form_for with +:as+ option uses "#{action}_#{as}" as css class and id:
Before:
form_for(@user, :as => 'client') # => "<form class="client_new">..."
Now:
form_for(@user, :as => 'client') # => "<form class="new_client">..."
*Vasiliy Ermolovich*
* Allow rescue responses to be configured through a railtie as in `config.action_dispatch.rescue_responses`. Please look at ActiveRecord::Railtie for an example *José Valim*
* Allow fresh_when/stale? to take a record instead of an options hash *DHH*
* Assets should use the request protocol by default or default to relative if no request is available *Jonathan del Strother*
* Log "Filter chain halted as CALLBACKNAME rendered or redirected" every time a before callback halts *José Valim*
* You can provide a namespace for your form to ensure uniqueness of id attributes on form elements.
The namespace attribute will be prefixed with underscore on the generate HTML id. *Vasiliy Ermolovich*
Example:
<%= form_for(@offer, :namespace => 'namespace') do |f| %>
<%= f.label :version, 'Version' %>:
<%= f.text_field :version %>
<% end %>
* Refactor ActionDispatch::ShowExceptions. The controller is responsible for choosing to show exceptions when `consider_all_requests_local` is false.
It's possible to override `show_detailed_exceptions?` in controllers to specify which requests should provide debugging information on errors. The default value is now false, meaning local requests in production will no longer show the detailed exceptions page unless `show_detailed_exceptions?` is overridden and set to `request.local?`.
* Responders now return 204 No Content for API requests without a response body (as in the new scaffold) *José Valim*
* Added ActionDispatch::RequestId middleware that'll make a unique X-Request-Id header available to the response and enables the ActionDispatch::Request#uuid method. This makes it easy to trace requests from end-to-end in the stack and to identify individual requests in mixed logs like Syslog *DHH*
* Limit the number of options for select_year to 1000.
Pass the :max_years_allowed option to set your own limit.
*Libo Cannici*
* Passing formats or handlers to render :template and friends is deprecated. For example: *Nick Sutterer & José Valim*
render :template => "foo.html.erb"
Instead, you can provide :handlers and :formats directly as option:
render :template => "foo", :formats => [:html, :js], :handlers => :erb
* Changed log level of warning for missing CSRF token from :debug to :warn. *Mike Dillon*
* content_tag_for and div_for can now take the collection of records. It will also yield the record as the first argument if you set a receiving argument in your block *Prem Sichanugrist*
So instead of having to do this:
@items.each do |item|
content_tag_for(:li, item) do
Title: <%= item.title %>
end
end
You can now do this:
content_tag_for(:li, @items) do |item|
Title: <%= item.title %>
end
* send_file now guess the mime type *Esad Hajdarevic*
* Mime type entries for PDF, ZIP and other formats were added *Esad Hajdarevic*
* Generate hidden input before select with :multiple option set to true.
This is useful when you rely on the fact that when no options is set,
the state of select will be sent to rails application. Without hidden field
nothing is sent according to HTML spec *Bogdan Gusiev*
* Refactor ActionController::TestCase cookies *Andrew White*
Assigning cookies for test cases should now use cookies[], e.g:
cookies[:email] = 'user@example.com'
get :index
assert_equal 'user@example.com', cookies[:email]
To clear the cookies, use clear, e.g:
cookies.clear
get :index
assert_nil cookies[:email]
We now no longer write out HTTP_COOKIE and the cookie jar is
persistent between requests so if you need to manipulate the environment
for your test you need to do it before the cookie jar is created.
* ActionController::ParamsWrapper on ActiveRecord models now only wrap
attr_accessible attributes if they were set, if not, only the attributes
returned by the class method attribute_names will be wrapped. This fixes
the wrapping of nested attributes by adding them to attr_accessible.
taca [Sun, 18 Mar 2012 06:47:55 +0000 (06:47 +0000)]
Merge from vendor branch TNF:
Importing ruby-actionpack32 version 3.2.2.
## Rails 3.2.2 (unreleased) ##
* Format lookup for partials is derived from the format in which the template is being rendered. Closes #5025 part 2 *Santiago Pastorino*
* Use the right format when a partial is missing. Closes #5025. *Santiago Pastorino*
* Default responder will now always use your overridden block in `respond_with` to render your response. *Prem Sichanugrist*
* check_box helper with :disabled => true will generate a disabled hidden field to conform with the HTML convention where disabled fields are not submitted with the form.
This is a behavior change, previously the hidden tag had a value of the disabled checkbox.
*Tadas Tamosauskas*
## Rails 3.2.1 (January 26, 2012) ##
* Documentation improvements.
* Allow `form.select` to accept ranges (regression). *Jeremy Walker*
* `datetime_select` works with -/+ infinity dates. *Joe Van Dyk*
## Rails 3.2.0 (January 20, 2012) ##
* Setting config.assets.logger to false turn off Sprockets logger *Guillermo Iguaran*
* Add `config.action_dispatch.default_charset` to configure default charset for ActionDispatch::Response. *Carlos Antonio da Silva*
* Deprecate setting default charset at controller level, use the new `config.action_dispatch.default_charset` instead. *Carlos Antonio da Silva*
* Deprecate ActionController::UnknownAction in favour of AbstractController::ActionNotFound. *Carlos Antonio da Silva*
* Deprecate ActionController::DoubleRenderError in favour of AbstractController::DoubleRenderError. *Carlos Antonio da Silva*
* Deprecate method_missing handling for not found actions, use action_missing instead. *Carlos Antonio da Silva*
* Deprecate ActionController#rescue_action, ActionController#initialize_template_class, and ActionController#assign_shortcuts.
These methods were not being used internally anymore and are going to be removed in Rails 4. *Carlos Antonio da Silva*
* Add config.assets.logger to configure Sprockets logger *Rafael França*
* Use a BodyProxy instead of including a Module that responds to
close. Closes #4441 if Active Record is disabled assets are delivered
correctly *Santiago Pastorino*
* Rails initialization with initialize_on_precompile = false should set assets_dir *Santiago Pastorino*
* Add font_path helper method *Santiago Pastorino*
* Depends on rack ~> 1.4.0 *Santiago Pastorino*
* Add :gzip option to `caches_page`. The default option can be configured globally using `page_cache_compression` *Andrey Sitnik*
* The ShowExceptions middleware now accepts a exceptions application that is responsible to render an exception when the application fails. The application is invoked with a copy of the exception in `env["action_dispatch.exception"]` and with the PATH_INFO rewritten to the status code. *José Valim*
* Add `button_tag` support to ActionView::Helpers::FormBuilder.
This support mimics the default behavior of `submit_tag`.
Example:
<%= form_for @post do |f| %>
<%= f.button %>
<% end %>
* Date helpers accept a new option, `:use_two_digit_numbers = true`, that renders select boxes for months and days with a leading zero without changing the respective values.
For example, this is useful for displaying ISO8601-style dates such as '2011-08-01'. *Lennart Fridén and Kim Persson*
* Make ActiveSupport::Benchmarkable a default module for ActionController::Base, so the #benchmark method is once again available in the controller context like it used to be *DHH*
* Deprecated implied layout lookup in controllers whose parent had a explicit layout set:
class ApplicationController
layout "application"
end
class PostsController < ApplicationController
end
In the example above, Posts controller will no longer automatically look up for a posts layout.
If you need this functionality you could either remove `layout "application"` from ApplicationController or explicitly set it to nil in PostsController. *José Valim*
* Rails will now use your default layout (such as "layouts/application") when you specify a layout with `:only` and `:except` condition, and those conditions fail. *Prem Sichanugrist*
For example, consider this snippet:
class CarsController
layout 'single_car', :only => :show
end
Rails will use 'layouts/single_car' when a request comes in `:show` action, and use 'layouts/application' (or 'layouts/cars', if exists) when a request comes in for any other actions.
* form_for with +:as+ option uses "#{action}_#{as}" as css class and id:
Before:
form_for(@user, :as => 'client') # => "<form class="client_new">..."
Now:
form_for(@user, :as => 'client') # => "<form class="new_client">..."
*Vasiliy Ermolovich*
* Allow rescue responses to be configured through a railtie as in `config.action_dispatch.rescue_responses`. Please look at ActiveRecord::Railtie for an example *José Valim*
* Allow fresh_when/stale? to take a record instead of an options hash *DHH*
* Assets should use the request protocol by default or default to relative if no request is available *Jonathan del Strother*
* Log "Filter chain halted as CALLBACKNAME rendered or redirected" every time a before callback halts *José Valim*
* You can provide a namespace for your form to ensure uniqueness of id attributes on form elements.
The namespace attribute will be prefixed with underscore on the generate HTML id. *Vasiliy Ermolovich*
Example:
<%= form_for(@offer, :namespace => 'namespace') do |f| %>
<%= f.label :version, 'Version' %>:
<%= f.text_field :version %>
<% end %>
* Refactor ActionDispatch::ShowExceptions. The controller is responsible for choosing to show exceptions when `consider_all_requests_local` is false.
It's possible to override `show_detailed_exceptions?` in controllers to specify which requests should provide debugging information on errors. The default value is now false, meaning local requests in production will no longer show the detailed exceptions page unless `show_detailed_exceptions?` is overridden and set to `request.local?`.
* Responders now return 204 No Content for API requests without a response body (as in the new scaffold) *José Valim*
* Added ActionDispatch::RequestId middleware that'll make a unique X-Request-Id header available to the response and enables the ActionDispatch::Request#uuid method. This makes it easy to trace requests from end-to-end in the stack and to identify individual requests in mixed logs like Syslog *DHH*
* Limit the number of options for select_year to 1000.
Pass the :max_years_allowed option to set your own limit.
*Libo Cannici*
* Passing formats or handlers to render :template and friends is deprecated. For example: *Nick Sutterer & José Valim*
render :template => "foo.html.erb"
Instead, you can provide :handlers and :formats directly as option:
render :template => "foo", :formats => [:html, :js], :handlers => :erb
* Changed log level of warning for missing CSRF token from :debug to :warn. *Mike Dillon*
* content_tag_for and div_for can now take the collection of records. It will also yield the record as the first argument if you set a receiving argument in your block *Prem Sichanugrist*
So instead of having to do this:
@items.each do |item|
content_tag_for(:li, item) do
Title: <%= item.title %>
end
end
You can now do this:
content_tag_for(:li, @items) do |item|
Title: <%= item.title %>
end
* send_file now guess the mime type *Esad Hajdarevic*
* Mime type entries for PDF, ZIP and other formats were added *Esad Hajdarevic*
* Generate hidden input before select with :multiple option set to true.
This is useful when you rely on the fact that when no options is set,
the state of select will be sent to rails application. Without hidden field
nothing is sent according to HTML spec *Bogdan Gusiev*
* Refactor ActionController::TestCase cookies *Andrew White*
Assigning cookies for test cases should now use cookies[], e.g:
cookies[:email] = 'user@example.com'
get :index
assert_equal 'user@example.com', cookies[:email]
To clear the cookies, use clear, e.g:
cookies.clear
get :index
assert_nil cookies[:email]
We now no longer write out HTTP_COOKIE and the cookie jar is
persistent between requests so if you need to manipulate the environment
for your test you need to do it before the cookie jar is created.
* ActionController::ParamsWrapper on ActiveRecord models now only wrap
attr_accessible attributes if they were set, if not, only the attributes
returned by the class method attribute_names will be wrapped. This fixes
the wrapping of nested attributes by adding them to attr_accessible.
taca [Sun, 18 Mar 2012 06:46:44 +0000 (06:46 +0000)]
Importing ruby-activemodel32 version 3.2.2.
## Rails 3.2.1 (January 26, 2012) ##
* No changes.
## Rails 3.2.0 (January 20, 2012) ##
* Deprecated `define_attr_method` in `ActiveModel::AttributeMethods`, because this only existed to
support methods like `set_table_name` in Active Record, which are themselves being deprecated. *Jon Leighton*
* Add ActiveModel::Errors#added? to check if a specific error has been added *Martin Svalin*
* Add ability to define strict validation(with :strict => true option) that always raises exception when fails *Bogdan Gusiev*
* Deprecate "Model.model_name.partial_path" in favor of "model.to_partial_path" *Grant Hutchins, Peter Jaros*
* Provide mass_assignment_sanitizer as an easy API to replace the sanitizer behavior. Also support both :logger (default) and :strict sanitizer behavior *Bogdan Gusiev*
taca [Sun, 18 Mar 2012 06:46:44 +0000 (06:46 +0000)]
Merge from vendor branch TNF:
Importing ruby-activemodel32 version 3.2.2.
## Rails 3.2.1 (January 26, 2012) ##
* No changes.
## Rails 3.2.0 (January 20, 2012) ##
* Deprecated `define_attr_method` in `ActiveModel::AttributeMethods`, because this only existed to
support methods like `set_table_name` in Active Record, which are themselves being deprecated. *Jon Leighton*
* Add ActiveModel::Errors#added? to check if a specific error has been added *Martin Svalin*
* Add ability to define strict validation(with :strict => true option) that always raises exception when fails *Bogdan Gusiev*
* Deprecate "Model.model_name.partial_path" in favor of "model.to_partial_path" *Grant Hutchins, Peter Jaros*
* Provide mass_assignment_sanitizer as an easy API to replace the sanitizer behavior. Also support both :logger (default) and :strict sanitizer behavior *Bogdan Gusiev*
taca [Sun, 18 Mar 2012 06:44:50 +0000 (06:44 +0000)]
Importing ruby-activesupport32 version 3.2.2.
## Rails 3.2.1 (January 26, 2012) ##
* Documentation fixes and improvements.
* Update time zone offset information. *Ravil Bayramgalin*
* The deprecated `ActiveSupport::Base64.decode64` calls `::Base64.decode64`
now. *Jonathan Viney*
* Fixes uninitialized constant `ActiveSupport::TaggedLogging::ERROR`. *kennyj*
## Rails 3.2.0 (January 20, 2012) ##
* ActiveSupport::Base64 is deprecated in favor of ::Base64. *Sergey Nartimov*
* Module#synchronize is deprecated with no replacement. Please use `monitor`
from ruby's standard library.
* (Date|DateTime|Time)#beginning_of_week accept an optional argument to
be able to set the day at which weeks are assumed to start.
* Deprecated ActiveSupport::MessageEncryptor#encrypt and decrypt. *José Valim*
* ActiveSupport::Notifications.subscribed provides subscriptions to events while a block runs. *fxn*
* Module#qualified_const_(defined?|get|set) are analogous to the corresponding methods
in the standard API, but accept qualified constant names. *fxn*
* Added inflection #deconstantize which complements #demodulize. This inflection
removes the righmost segment in a qualified constant name. *fxn*
* Added ActiveSupport:TaggedLogging that can wrap any standard Logger class to provide tagging capabilities *DHH*
Logger = ActiveSupport::TaggedLogging.new(Logger.new(STDOUT))
Logger.tagged("BCX") { Logger.info "Stuff" } # Logs "[BCX] Stuff"
Logger.tagged("BCX", "Jason") { Logger.info "Stuff" } # Logs "[BCX] [Jason] Stuff"
Logger.tagged("BCX") { Logger.tagged("Jason") { Logger.info "Stuff" } } # Logs "[BCX] [Jason] Stuff"
* Added safe_constantize that constantizes a string but returns nil instead of an exception if the constant (or part of it) does not exist *Ryan Oblak*
* ActiveSupport::OrderedHash is now marked as extractable when using Array#extract_options! *Prem Sichanugrist*
* Added Array#prepend as an alias for Array#unshift and Array#append as an alias for Array#<< *DHH*
* The definition of blank string for Ruby 1.9 has been extended to Unicode whitespace.
Also, in 1.8 the ideographic space U+3000 is considered to be whitespace. *Akira Matsuda, Damien Mathieu*
* The inflector understands acronyms. *dlee*
* Deprecated ActiveSupport::Memoizable in favor of Ruby memoization pattern *José Valim*
* Added Time#all_day/week/quarter/year as a way of generating ranges (example: Event.where(created_at: Time.now.all_week)) *DHH*
* Added instance_accessor: false as an option to Class#cattr_accessor and friends *DHH*
* Removed ActiveSupport::SecureRandom in favor of SecureRandom from the standard library *Jon Leighton*
* ActiveSupport::OrderedHash now has different behavior for #each and
\#each_pair when given a block accepting its parameters with a splat. *Andrew Radev*
* ActiveSupport::BufferedLogger#silence is deprecated. If you want to squelch
logs for a certain block, change the log level for that block.
* ActiveSupport::BufferedLogger#open_log is deprecated. This method should
not have been public in the first place.
* ActiveSupport::BufferedLogger's behavior of automatically creating the
directory for your log file is deprecated. Please make sure to create the
directory for your log file before instantiating.
* ActiveSupport::BufferedLogger#auto_flushing is deprecated. Either set the
sync level on the underlying file handle like this:
f = File.open('foo.log', 'w')
f.sync = true
ActiveSupport::BufferedLogger.new f
Or tune your filesystem. The FS cache is now what controls flushing.
* ActiveSupport::BufferedLogger#flush is deprecated. Set sync on your
filehandle, or tune your filesystem.