pkgsrc change: allow build on Ruby 2.2.
# 2.8.0
### Deprecations
* `ensure_length_of` has been renamed to `validate_length_of`.
`ensure_length_of` is deprecated and will be removed in 3.0.0.
* `set_the_flash` has been renamed to `set_flash`. `set_the_flash` is
deprecated and will be removed in 3.0.0.
* `set_session(:foo)` is deprecated in favor of `set_session[:foo]`.
`set_session(:foo)` will be invalid syntax in 3.0.0.
* Using `should set_session[:key].to(nil)` to assert that that a value has not
been set is deprecated. Please use `should_not set_session[:key]` instead.
In 3.0.0, `should set_session[:key].to(nil)` will only pass if the value is
truly nil.
### Bug fixes
* Fix `delegate_method` so that it works again with shoulda-context. ([#591])
* Fix `validate_uniqueness_of` when used with `scoped_to` so that when one of
the scope attributes is a polymorphic `*_type` attribute and the model has
another validation on the same attribute, the matcher does not fail with an
error. ([#592])
* Fix `has_many` used with `through` so that when the association does not
exist, and the matcher fails, it does not raise an error when producing the
failure message. ([#588])
* Fix `have_and_belong_to_many` used with `join_table` so that it does not fail
when `foreign_key` and/or `association_foreign_key` was specified on the
association as a symbol instead of a string. ([#584])
* Fix `allow_value` when an i18n translation key is passed to `with_message` and
the `:against` option is used to specify an alternate attribute. A bug here
also happened to affect `validate_confirmation_of` when an i18n translation
key is passed to `with_message`. ([#593])
* Fix `class_name` qualifier for association matchers so that if the model being
referenced is namespaced, the matcher will correctly resolve the class before
checking it against the association's `class_name`. ([#537])
* Fix `validate_inclusion_of` used with `with_message` so that it fails if given
a message that does not match the message on the validation. ([#598])
* Fix `route` matcher so that when controller and action are specified in hash
notation (e.g. `posts#show`), route parameters such as `id` do not need to be
specified as a string but may be specified as a number as well. ([#602])
* Fix `allow_value`, `validate_numericality_of` and `validate_inclusion_of` so
that they handle RangeErrors emitted from ActiveRecord 4.2. These exceptions
arise whenever we attempt to set an attribute using a value that lies outside
the range of the column (assuming the column is an integer). RangeError is now
treated specially, failing the test instead of bubbling up as an error.
([#634], [#637], [#642])
### Features
* Add ability to test `:primary_key` option on associations. ([#597])
* Add `allow_blank` qualifier to `validate_uniqueness_of` to complement
the `allow_blank` option. ([#543])
* Change `set_session` so that #[] and #to qualifiers are optional, similar to
`set_flash`. That is, you can now say `should set_session` to assert that any
flash value has been set, or `should set_session.to('value')` to assert that
any value in the session is 'value'.
* Change `set_session` so that its #to qualifier supports regexps, similar to
`set_flash`.
* Add `with_prefix` qualifier to `delegate_method` to correspond to the `prefix`
option for Rails's `delegate` macro. ([#622])
* Add support for Rails 4.2, especially fixing `serialize` matcher to remove
warning about `serialized_attributes` being deprecated. ([#627])
* Update `dependent` qualifier on association matchers to support `:destroy`,
`:delete`, `:nullify`, `:restrict`, `:restrict_with_exception`, and
`:restrict_with_error`. You can also pass `true` or `false` to assert that
the association has (or has not) been declared with *any* dependent option.
([#631])
### Improvements
* Tweak `allow_value` failure message so that it reads a bit nicer when listing
existing errors.
[#591]: https://github.com/thoughtbot/shoulda-matchers/pull/591
[#592]: https://github.com/thoughtbot/shoulda-matchers/pull/592
[#588]: https://github.com/thoughtbot/shoulda-matchers/pull/588
[#584]: https://github.com/thoughtbot/shoulda-matchers/pull/584
[#593]: https://github.com/thoughtbot/shoulda-matchers/pull/593
[#597]: https://github.com/thoughtbot/shoulda-matchers/pull/597
[#537]: https://github.com/thoughtbot/shoulda-matchers/pull/537
[#598]: https://github.com/thoughtbot/shoulda-matchers/pull/598
[#602]: https://github.com/thoughtbot/shoulda-matchers/pull/602
[#543]: https://github.com/thoughtbot/shoulda-matchers/pull/543
[#622]: https://github.com/thoughtbot/shoulda-matchers/pull/622
[#627]: https://github.com/thoughtbot/shoulda-matchers/pull/627
[#631]: https://github.com/thoughtbot/shoulda-matchers/pull/631
[#634]: https://github.com/thoughtbot/shoulda-matchers/pull/634
[#637]: https://github.com/thoughtbot/shoulda-matchers/pull/637
[#642]: https://github.com/thoughtbot/shoulda-matchers/pull/642
# 2.7.0
### Deprecations
* `ensure_inclusion_of` has been renamed to `validate_inclusion_of`.
`ensure_inclusion_of` is deprecated and will be removed in 3.0.0.
* `ensure_exclusion_of` has been renamed to `validate_exclusion_of`.
`ensure_exclusion_of` is deprecated and will be removed in 3.0.0.
### Bug fixes
* Fix `delegate_method` so that it does not raise an error if the method that
returns the delegate object is private.
* Warn when `ensure_inclusion_of` is chained with `.in_array([false, true])`
as well as with `.in_array([true, false])`.
* Fix `set_session` so that the `to` qualifier if given nil checks that the
session variable in question was set to nil (previously this actually did
nothing).
* Fix `filter_param` so that it works when `config.filter_parameters` contains
regexes.
* Fix `delegate_method` so that it can be required independent of Active
Support.
* Fix `validate_uniqueness_of`. When used against an unpersisted record whose
model contained a non-nullable column other than the one being validated, the
matcher would break. Even if the test set that column to a value beforehand,
the record had to be persisted in order for the matcher to work. Now this is
no longer the case and the record can remain unpersisted.
* Fix `validate_absence_of`: it required that a string be passed as the
attribute name rather than a symbol (which is the usual and documented usage).
### Improvements
* `have_and_belongs_to_many` now checks to make sure that the join table
contains the correct columns for the left- and right-hand side of the
association.
* Reword failure message for `delegate_method` so that it's a little more
helpful.
### Features
* Add new matcher `define_enum_for` to test usage of the `enum` macro introduced
in Rails 4.1.
pkgsrc change: remove RUBY_VERSION_SUPPORTED since it has default value.
## 1.2.2
- fix handshake for draft 11+ sending Sec-WebSocket-Origin instead of Origin
pkgsrc change: add support for pkg_alternatives.
unicorn 4.9.0 - TempfileReaper support in Rack 1.6
This release supports the Rack::TempfileReaper middleware found
in rack 1.6 for cleaning up disk space used by temporary files.
We also use Rack::TempfileReaper for cleaning up large temporary
files buffered with TeeInput. Users on rack 1.5 and earlier
will see no changes.
There's also a bunch of documentation/build system improvements.
This is likely to be the last Ruby 1.8-compatible release,
unicorn 5.x will require 1.9.3 or later as well as dropping lots
of cruft (the stupid "Status:" header in responses being the
most notable).
21 changes backported from master:
ISSUES: update with mailing list subscription
FAQ: add entry for Rails autoflush_log
dev: remove isolate dependency
unicorn.gemspec: depend on test-unit 3.0
remove RubyForge and Freecode references
remove mongrel.rubyforge.org references
examples: add run_once to before_fork hook example
t/t0002-parser-error.sh: relax test for rack 1.6.0
switch docs + website to olddoc
README: clarify/reduce references to unicorn_rails
gemspec: fixup olddoc migration
GNUmakefile: fix clean gem build + reduce build cruft
doc: update support status for Ruby versions
fix uninstalled testing and reduce require paths
test_socket_helper: do not depend on SO_REUSEPORT
ISSUES: add section for bugs in other projects
explain 11 byte magic number for self-pipe
Links: mark Rainbows! as historical, reference yahns
doc: document UNICORN_FD in manpage
tee_input: support for Rack::TempfileReaper middleware
support TempfileReaper in deployment and development envs
= 1.4.6 / 2015-03-2x
* Improve tests and documentation. (Dar«¿o Here«Ð«â, Seiichi Yonezawa, kyoendo,
John Voloski, Ferenc-, Renaud Martinet, Christian Haase, marocchino,
huoxito, Damir Svrtan, Amaury Medeiros, Jeremy Evans, Kashyap, shenqihui,
Ausmarton Fernandes, kami, Vipul A M, Lei Wu, 7stud, Taylor Shuler,
namusyaka, burningTyger, Cornelius Bock, detomastah, hakeda, John Hope,
Ruben Gonzalez, Andrey Deryabin, attilaolah, Anton Davydov, Nikita Penzin,
Dyego Costa)
* Remove duplicate require of sinatra/base. (Alexey Muranov)
* Escape HTML in 404 error page. (Andy Brody)
* Refactor to method call in `Stream#close` and `#callback`. (Damir Svrtan)
* Depend on latest version of Slim. (Damir Svrtan)
* Fix compatibility with Tilt version 2. (Yegor Timoschenko)
* Fix compatibility issue with Rack `pretty` method from ShowExceptions.
(Kashyap)
* Show date in local time in exception messages. (tayler1)
* Fix logo on error pages when using Ruby 1.8. (Jeremy Evans)
* Upgrade test suite to Minitest version 5 and fix Ruby 2.2 compatibility.
(Vipul A M)
- FFT video filter
- TDSC decoder
- DTS lossless extension (XLL) decoding (not lossless, disabled by default)
- showwavespic filter
- DTS decoding through libdcadec
- Drop support for nvenc API before 5.0
- nvenc HEVC encoder
- Detelecine filter
- Intel QSV-accelerated H.264 encoding
- MMAL-accelerated H.264 decoding
- basic APNG encoder and muxer with default extension "apng"
- unpack DivX-style packed B-frames in MPEG-4 bitstream filter
- WebM Live Chunk Muxer
- nvenc level and tier options
- chorus filter
- Canopus HQ/HQA decoder
- Automatically rotate videos based on metadata in ffmpeg
- improved Quickdraw compatibility
- VP9 high bit-depth and extended colorspaces decoding support
- WebPAnimEncoder API when available for encoding and muxing WebP
- Direct3D11-accelerated decoding
- Support Secure Transport
- Multipart JPEG demuxer
3.4.14 (22 May 2015)
* Further avoid race conditions when caching.
* Only emit one warning for each line that uses the deprecated form of
unquote().
* Stop parsing and emitting invalid @supports directives.
* Add a deprecation warning for using != to compare a number with units to a
number without. Such a warning already existed for ==.
* Improve rounding of the results of color operations.
=== 2.11.3 / 2015-05-18
* 5 bug fixes:
* Be sure to unlink tempfiles after a request. Fixes#690
* Coerce the key to a string before checking. (thar be symbols). Fixes#684
* Fix hang on bad SSL handshake
* Remove `enable_SSLv3` support from JRuby
* 1 PR merged:
* Merge pull request #698 from looker/hang-handshake
=== 2.11.2 / 2015-04-11
* 2 minor features:
* Add `on_worker_fork` hook, which allows to mimic Unicorn's behavior
* Add shutdown_debug config option
* 4 bug fixes:
* Fix the Config constants not being available in the DSL. Fixes#683
* Ignore multiple port declarations
* Proper 'Connection' header handling compatible with HTTP 1.[01] protocols
* Use "Puma" instead of "puma" to reporting to New Relic
* 1 doc fixes:
* Add Gitter badge.
* 6 PRs merged:
* Merge pull request #657 from schneems/schneems/puma-once-port
* Merge pull request #658 from Tomohiro/newrelic-dispatcher-default-update
* Merge pull request #662 from basecrm/connection-compatibility
* Merge pull request #664 from fxposter/on-worker-fork
* Merge pull request #667 from JuanitoFatas/doc/gemspec
* Merge pull request #672 from chulkilee/refactor
pkgsrc change:
* Add support for pkg_alternatives.
* Allow build on Ruby 2.2.
Version 3.3.1
* Include the Redcarpet::CLI's file in the gemspec to make it available when
downloading.
Version 3.3.0
* Fix the stripping of surrounding characters that should be removed during
anchor generation.
* Provide a Redcarpet::CLI class to create custom binary files.
* Relying on Ruby's OptionParser, it's now straightforward to add new options,
rely on custom render objects or handle differently the rendering of the
provided files.
* Undeprecate the compatibility layer for the old RedCloth API.
* This layer actually ease the support of libraries supporting different
Markdown processors.
* Strip out style tags at the HTML-block rendering level when the :no_styles
options is enabled ; previously they were only removed inside paragraphs.
* Avoid parsing images when the given URL isn't safe and the :safe_links_only
option is enabled.
Alex Serban
* Avoid parsing references inside fenced code blocks so they are now kept in
the code snippet.
David Waller
* Avoid escaping table-of-contents' headers by default. A new :escape_html
option is now available for the HTML_TOC object if there are security
concerns.
* Add the lang- prefix in front of the language's name when using :prettify
along with :fenced_code_blocks.
* Non-alphanumeric chars are now stripped out from generated anchors (along
the lines of Active Support's #parameterize method).
kramdown 1.7.0 released Published on Monday, 27 April 2015
This release brings among other things support for the ‘minted’ syntax
highlighter for LaTeX and a new math engine based on MathJax-Node that outputs
to MathML.
Changes
* 4 minor changes:
- The syntax highlighter ‘minted’ for the LaTeX converter is now available
(fixes issue #93, initial patch #242 by l3kn)
- A new math engine based on MathJax-Node that outputs to MathML is now
available (patch #240 by Tom Thorogood)
- Fixed#244, #246: Fenced code blocks now allow a dash in the code language
name (requested and patched by Dennis Günnewig)
- The option list in the man page as well in the output of kramdown --help
is now sorted.
* 2 bug fixes:
- Fixed#230: Warning message for method in
lib/kramdown/utils/configurable.rb will not show anymore (reported by
Robert A. Heiler)
- Fixed#239: Handling of single/double quotes in reference style links now
follows the same rules as with inline links (reported by Josh Davis)
kramdown 1.6.0 released Published on Saturday, 28 February 2015
This release contains many fixes and minor enhancements as well as one major
goodie that comes with a small caveat: block IALs can now be applied to link
and abbreviation definitions!
It may not sound like much but allowing block IALs to be applied to link
definitions alleviates the problem that additional attributes could only be
specified via span IALs. Now such attributes can be stored together with the
URL and title at the link definition, for example:
This is a ![resized image].
[resized image]: some_image.jpg "with a title"
{: height="36px" width="36px" style="border: 1px solid green"}
There is one small caveat, though. Regard the following construct:
[linkdef]: http://example.com
{:.block-ial}
block element, e.g. a paragraph
The block IAL would have been applied to the paragraph in previous versions
but now it is applied to the link definition. However, such a construct is not
very likely encountered in the real world.
Changes
* 7 minor changes:
- Block IALs can now be applied to link and abbreviation definitions
(inspired by issue #194 from cabo)
- The syntax highlighting engine for Rouge now allows custom formatter
classes to be used (issue #214, requested by BackOrder)
- The MathJax math engine now allows adding previews (issue #225, requested
by jethrogb)
- The “toc_levels” option can now also take a Range object (pull request
#210 by Jens Krämer)
- The generated table of contents of the HTML converter now contains ID
attributes on the links so that back-references can be used (issue #195,
requested by Ciro Santilli)
- A warning is now generated when duplicate HTML attributes are detected
(issue #201, requested by winniehell)
- Updated used version of prawn to 2.0.0
8 bug fixes:
- Fixed#192: Emphasis by using underscore sometimes wrongly worked within a
word (reported by Michael Franzl)
- Fixed#198: Empty alt attributes on <img> tags are now correctly handled
by the kramdown converter (reported by winniehell)
- Fixed#200: Trailing whitespace is now really removed in paragraphs
(reported by winniehell)
- Fixed#220: HTML blocks with attributes weren’t correctly detected when
directly after another block (reported by Bill Tozier)
- Fixed#199: Empty title attributes are now ignored for images when using
the kramdown converter (reported by and pull request #206 from winniehell)
- Leading and trailing white space from math statements is now stripped as
the whitespace sometimes lead to LaTeX conversion errors
- Fixed#226: Class names may now start with a dash in IALs/ALDs (reported
by Adam Hardwick)
- Multiple consecutive block IALs before an element are now correctly
processed