| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
(cherry picked from commit 8b35a239fb2dd9bfeed7f99f10e826a82dfb59da)
|
| |
|
|\
| |
| | |
Fix Rails 3-2-stable on Ruby 2.3.1
|
| |
| |
| |
| |
| |
| | |
Sometimes the modification time hasn't changed so the reloader
doesn't pick up the changed files. This is especially true when
booting the app and then modifying files.
|
| |
| |
| |
| |
| | |
Something changed in Bundler 1.12.0 that caused the railties tests
to start failing so lock the bundler version to 1.11.2.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The power_assert gem has a workaround for a Ruby 2.3 bug[1] which
causes method refined warnings with operator methods on Time. Work
around the workaround by loading Active Support time extensions
before loading the test-unit gem.
[1]: https://bugs.ruby-lang.org/issues/11182
|
| |
| |
| |
| |
| | |
There's no YAML::ENGINE constant in Ruby 1.8 and Ruby 2.2+ but
the former still needs to use the deprecated Syck behavior.
|
| |
| |
| |
| |
| | |
Ruby 1.9 added Hash#select! and return a hash from Hash#select
whereas Ruby 1.8 returned an array.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
Previously, flushing all logs in Ruby 2.0 and later would raise an
exception when there was no DATABASE_URL or database.yml. Whatever
was the cause of that seems to have been fixed in Ruby 2.3.
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Initializing @stale_state to nil when an association is built fixes a
marshalling error - see #5268 for more details.
|
| | |
|
| |
| |
| |
| |
| | |
The Syck engine has been removed from later versions of Ruby so
no need to override to_yaml for these versions.
|
| | |
|
| |
| |
| |
| |
| | |
Versions 3.8.2 and later of SQLite changed the formatting of the error
messages returned when a uniqueness constraint was violated.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
Ruby 2.0 and later demonstrate some inconsistencies when a helper file
is not found with the path method on LoadError. By creating a subclass
of LoadError we can cater for the inconsistencies.
|
| |
| |
| |
| |
| |
| | |
The i18n gem adds its own copies of deep_merge, except and slice if
they haven't been defined so require them early to prevent any
method redefinition warnings from appearing.
|
| |
| |
| |
| |
| |
| | |
In Ruby 2.1.1 and later select and reject return a new instance of
Hash rather than the subclass so we need to override them to return
an instance of the correct class.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
In Ruby 2.1.1 and later select and reject return a new instance of
Hash rather than the subclass so we need to override them to return
an instance of the correct class.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
Bundler gives a warning if you have a gem listed more than once in
your Gemfile. Even though they were in different platform blocks it's
better to combine them in case it causes a problem later.
|
| | |
|
|/ |
|
| |
|
|\
| |
| | |
[WIP] Fix tests for 3-2-stable
|
|/
|
|
|
|
|
|
| |
- Set sudo: false in .travis.yml which uses latest travis engine and fixes some failing specs
- Use older version of gems in Gemfile if RUBY_VERSION < '1.9.3' (no change to .gemspec)
- Fix two cases of hash rockets in tests (required for Ruby 1.8.7)
- Skip failing test "test_ensure_that_migration_tasks_work_with_mountable_option" which breaks due to Bundler no longer accepting the default generated .gemspec format.
- Skip railties specs on Ruby 1.8.7 (mark as an allowed failure.)
|
| |
|
|\
| |
| | |
Remove dead code and ensure values are strings before calling gsub
|
|/ |
|
|\
| |
| |
| |
| |
| | |
* 3-2-22-3:
bumping version
Include missing module in tag_helper
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Since 6857415187810f1289068a448268264d0cf0844f we are using #safe_join to
join the content when an Array is given, so we must include the dependent
module here to make sure it's available when this module is used alone.
This was making Simple Form tests to fail with current master due to the
missing dependency.
|
|\|
| |
| |
| |
| |
| | |
* 3-2-22-3:
bumping version
ensure tag/content_tag escapes " in attribute vals
|
| | |
|
| |
| |
| |
| |
| |
| | |
Many helpers mark content as HTML-safe without escaping double quotes -- including `sanitize`. Regardless of whether or not the attribute values are HTML-escaped, we want to be sure they don't include double quotes, as that can cause XSS issues. For example: `content_tag(:div, "foo", title: sanitize('" onmouseover="alert(1);//'))`
CVE-2016-6316
|
|\ \
| | |
| | | |
Associations do not call `.to_proc` on Hash
|