- 29 6月, 2017 1 次提交
-
-
由 Koichi ITO 提交于
-
- 28 6月, 2017 3 次提交
-
-
由 Grey Baker 提交于
-
由 yuuji.yaginuma 提交于
-
由 fatkodima 提交于
-
- 23 6月, 2017 1 次提交
-
-
由 Sage Ross 提交于
This deprecation warning message will be more useful if it indicates what the string was doing — being eval'd — and what the non-deprecated options for callback conditionals are.
-
- 20 6月, 2017 2 次提交
-
-
由 utilum 提交于
-
由 Pat Allan 提交于
The ActiveSupport test suite only passes currently if it uses the latest unreleased commits for dalli, and a patch for Builder: https://github.com/tenderlove/builder/pull/6 Beyond that, all external dependencies (at least, to the extent they’re used by ActiveSupport) are happy, including Nokogiri as of 1.8.0.
-
- 14 6月, 2017 1 次提交
-
-
由 bogdanvlviv 提交于
-
- 12 6月, 2017 3 次提交
-
-
由 yuuji.yaginuma 提交于
Follow up of #29263
-
由 Kasper Timm Hansen 提交于
[ Assain Jaleel & Kasper Timm Hansen ]
-
由 Assain 提交于
- Introduce a method to select default cipher, and maintain backward compatibility
-
- 11 6月, 2017 2 次提交
-
-
由 Eugene Kenny 提交于
No need to pass `#cleanup` options through to `LocalCache#clear`. Fixes #29081. References #25628.
-
由 Jeremy Daer 提交于
See https://github.com/rails/rails/issues/29067#issuecomment-301342084 for rationale. This reverts commit b76f82d7. Fixes #29067. Fixes #29081.
-
- 10 6月, 2017 1 次提交
-
-
由 Jeremy Daer 提交于
Split up the caching tests as prep for adding a new cache store. Slices the mega test/caching_test.rb into behavior modules, concrete store tests, and cross-cutting store tests. Considering moving cache store behavior modules into lib/ so they may be used for acceptance testing by third parties.
-
- 08 6月, 2017 1 次提交
-
-
由 yuuji.yaginuma 提交于
`Time.find_zone!` raise `ArgumentError` if invalid value is specified. https://github.com/rails/rails/blob/379a0b42daf0d8e14130db7fd886d05d8d88e3f2/activesupport/lib/active_support/core_ext/time/zones.rb#L97..L99 Therefore, the return value never becomes nil.
-
- 07 6月, 2017 1 次提交
-
-
由 Jeremy Daer 提交于
Rails.cache.write_multi foo: 'bar', baz: 'qux' Plus faster `fetch_multi` with stores that implement `write_multi_entries`. Keys that aren't found may be written to the cache store in one shot instead of separate writes. The default implementation simply calls `write_entry` for each entry. Stores may override if they're capable of one-shot bulk writes, like Redis `MSET`.
-
- 06 6月, 2017 1 次提交
-
-
由 Ryuta Kamizono 提交于
-
- 04 6月, 2017 1 次提交
-
-
由 Vipul A M 提交于
-
- 03 6月, 2017 2 次提交
-
-
由 Genadi Samokovarov 提交于
-
由 Genadi Samokovarov 提交于
-
- 30 5月, 2017 5 次提交
-
-
由 Shota Iguchi 提交于
-
由 Jon Moss 提交于
[ci skip]
-
由 Jon Moss 提交于
[ci skip]
-
由 Ryuta Kamizono 提交于
-
由 David Heinemeier Hansson 提交于
* Allow a default value to be declared for class_attribute * Convert to using class_attribute default rather than explicit setter * Removed instance_accessor option by mistake * False is a valid default value * Documentation
-
- 28 5月, 2017 2 次提交
-
-
由 Kasper Timm Hansen 提交于
If users added an attribute or otherwise changed a CurrentAttributes subclass they'd see exceptions on the next page load. Because `ActiveSupport::CurrentAttributes.current_instances` would keep references to the old instances from the previous request. We can fix this by clearing out the `current_attributes` before we unload constants. Then any change to the model can be autoloaded again since its slot isn't taken by an old instance. We'll still have to call reset before we clear so external collaborators, like Time.zone, won't linger with their current value throughout other code.
-
由 Kasper Timm Hansen 提交于
Since we're generating a key through the class name we can combine the two Thread.current calls into a single hash version.
-
- 27 5月, 2017 3 次提交
-
-
由 Kasper Timm Hansen 提交于
`find` raises when it can't find a record, so we'll never reach the else. Switch to `find_by` which returns nil when no record can be found.
-
由 Kasper Timm Hansen 提交于
-
由 David Heinemeier Hansson 提交于
* Add ActiveSupport::CurrentAttributes to provide a thread-isolated attributes singleton * Need to require first * Move stubs into test namespace. Thus they won't conflict with other Current and Person stubs. * End of the line for you, whitespace! * Support super in attribute methods. Define instance level accessors in an included module such that `super` in an overriden accessor works, akin to Active Model. * Spare users the manual require. Follow the example of concerns, autoload in the top level Active Support file. * Add bidelegation support * Rename #expose to #set. Simpler, clearer * Automatically reset every instance. Skips the need for users to actively embed something that resets their CurrentAttributes instances. * Fix test name; add tangible name value when blank. * Try to ensure we run after a request as well. * Delegate all missing methods to the instance This allows regular `delegate` to serve, so we don't need bidelegate. * Properly test resetting after execution cycle. Also remove the stale puts debugging. * Update documentation to match new autoreset
-
- 26 5月, 2017 1 次提交
-
-
由 yuuji.yaginuma 提交于
`AlsoDoingNothingTest` was added in cf9be897. It seems that it added to confirm that the test works in the child class of `ActiveSupport::TestCase`. But now basically use `ActiveSupport::TestCase` in test, so I think it is unnecessary.
-
- 25 5月, 2017 2 次提交
- 24 5月, 2017 1 次提交
-
-
由 Koichi ITO 提交于
-
- 23 5月, 2017 1 次提交
-
-
由 bogdanvlviv 提交于
".. with __dir__ we can restore order in the Universe." - by @fxn Related to 5b8738c2
-
- 20 5月, 2017 2 次提交
-
-
由 Andrew White 提交于
Previously calculations where the scalar is first would be converted to a duration of seconds but this causes issues with dates being converted to times, e.g: Time.zone = "Beijing" # => Asia/Shanghai date = Date.civil(2017, 5, 20) # => Mon, 20 May 2017 2 * 1.day # => 172800 seconds date + 2 * 1.day # => Mon, 22 May 2017 00:00:00 CST +08:00 Now the `ActiveSupport::Duration::Scalar` calculation methods will try to maintain the part structure of the duration where possible, e.g: Time.zone = "Beijing" # => Asia/Shanghai date = Date.civil(2017, 5, 20) # => Mon, 20 May 2017 2 * 1.day # => 2 days date + 2 * 1.day # => Mon, 22 May 2017 Fixes #29160, #28970.
-
由 David Heinemeier Hansson 提交于
-
- 19 5月, 2017 3 次提交
-
-
由 David Heinemeier Hansson 提交于
This retains the existing behavior of ActiveSupport::Cache.expand_cache_key (as used by etaging) where the cache key includes the version.
-
由 Eilis Hamilton 提交于
Previously apply_inflections would only use the :en uncountables rather then the ones for the locale that was passed to pluralize or singularize. This changes apply_inflections to take a locale which it will use to find the uncountables.
-
由 Ryuta Kamizono 提交于
* Fix indentation. * Add backticks.
-