- 26 5月, 2014 1 次提交
-
-
由 Akshay Vishnoi 提交于
`yield` was missing in #with_dup, due to which 57 assertions were not running in real, and all tests were passing by default. Error was introduced in commit - 31ceb5e6.
-
- 24 5月, 2014 1 次提交
-
-
由 Kuldeep Aggarwal 提交于
`Array#to` is working for negative position
-
- 23 5月, 2014 2 次提交
-
-
由 Kuldeep Aggarwal 提交于
-
由 Rafael Mendonça França 提交于
We need to test if the same method defined more than once only register one subscriber for it. We can safelly remove because the method body is the same and Subscriber use method_added hook for register the subscriber.
-
- 20 5月, 2014 1 次提交
-
-
由 Vladimir Yarotsky 提交于
-
- 13 5月, 2014 4 次提交
-
-
由 wendi 提交于
Removed `FIMXE` tag to require necessary file but not the whole core_ext
-
由 wendi 提交于
- Fix `test_to_with_instruct` typo to `test_to_xml_with_instruct` - Rename `test_to_xml` to `test_to_xml_with_hash_elements` to make test name more specific. - Add `test_to_xml_with_non_hash_elements` and `test_to_xml_with_non_hash_different_type_elements` `to_xml` behaves different when containing elements are same and different types. - Add `test_to_xml_with_indent_set`
-
由 Mark J. Titorenko 提交于
Require active_support/core_ext/string/output_safety and use html_safe rather than use non-public SafeBuffer API.
-
由 Mark J. Titorenko 提交于
Use block parameter rather than `$1` during `gsub!` so `ActiveSupport::SafeBuffer` values aren't mangled. Fixes #15064
-
- 11 5月, 2014 2 次提交
-
-
由 Andrew White 提交于
-
由 Ulysse Carion 提交于
Namely, if the mday is omitted but any other upper components are, then instead of supplying the mday from the current time, it defaults to 1.
-
- 09 5月, 2014 1 次提交
-
-
由 Dennis Schoen 提交于
ActiveSupport::Subscriber no longer creates multiple subscribers when you redefine a method.
-
- 07 5月, 2014 1 次提交
-
-
由 Xavier Noria 提交于
* Strips leading underscores. * Changes some unnecessary gsub!s to sub!s. * Replaces some anchors ^, $ with \A, \z. * Documents that human inflection rules are applied. * Documents that words are downcased except acronyms. * Adds an example with an acronym. * Rewords docs.
-
- 05 5月, 2014 1 次提交
-
-
由 Kuldeep Aggarwal 提交于
-
- 03 5月, 2014 1 次提交
-
-
由 Bogdan Gusiev 提交于
Empty Hash or Array should not present in serialization result {a: []}.to_query # => "" {a: {}}.to_query # => "" For more info see #14948.
-
- 26 4月, 2014 1 次提交
-
-
由 Arun Agrawal 提交于
-
- 19 4月, 2014 4 次提交
-
-
由 Akshay Vishnoi 提交于
-
由 Akshay Vishnoi 提交于
-
由 Kuldeep Aggarwal 提交于
Before: When calling String#pluralize with count=1 then it returned same string, but with count other than 1, returned new string. After: String#pluralize always return a new string. => Prevent mutation of a string inadvertently.
-
由 Ernie Miller 提交于
While calling String#first or String#last with zero or a Fixnum < the string's length returns a new string, a Fixnum >= the string's length returns the string itself. This inconsistency can lead to inadvertent mutation of a string.
-
- 16 4月, 2014 1 次提交
-
-
由 Akshay Vishnoi 提交于
1. Improve tests 2. Remove unnecessary constant 3. Add docs for BigDecimal#duplicable?
-
- 13 4月, 2014 1 次提交
-
-
由 Akshay Vishnoi 提交于
-
- 11 4月, 2014 1 次提交
-
-
由 Akshay Vishnoi 提交于
-
- 09 4月, 2014 2 次提交
-
-
由 Emily Dobervich 提交于
This fixes: 1.second.eql?(1.second) #=> false The new `eql?` requires that `other` is an `ActiveSupport::Duration`. This requirement makes `ActiveSupport::Duration`'s behavior consistent with other numeric types in Ruby. 1.eql?(1.0) #=> false 1.0.eql?(1) #=> false 1.second.eql?(1) #=> false (was true) 1.eql?(1.second) #=> false { 1 => "foo", 1.0 => "bar" } #=> { 1 => "foo", 1.0 => "bar" } { 1 => "foo", 1.second => "bar" } # now => { 1 => "foo", 1.second => "bar" } # was => { 1 => "bar" } And though the behavior here hasn't changed, for reference: 1 == 1.0 #=> true 1.0 == 1 #=> true 1 == 1.second #=> true 1.second == 1 #=> true
-
由 David Rodríguez de Dios 提交于
-
- 04 4月, 2014 1 次提交
-
-
由 Rajarshi Das 提交于
-
- 03 4月, 2014 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
Change to require all active_support/deprecation since that's the actual entry point for the deprecation methods.
-
- 02 4月, 2014 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 01 4月, 2014 1 次提交
-
-
由 Pavel Pravosud 提交于
Make `#prepend` method modify instance in-place and return self instead of just returning modified value. That is exactly what `#prepend!` method was doing previously, so it's deprecated from now on.
-
- 28 3月, 2014 1 次提交
-
-
由 Peter Jaros 提交于
In particular, `.new`, `#update`, `#merge`, `#replace` all accept objects which respond to `#to_hash`, even if those objects are not Hashes directly.
-
- 20 3月, 2014 1 次提交
-
-
由 Akshay Vishnoi 提交于
-
- 17 3月, 2014 1 次提交
-
- 15 3月, 2014 1 次提交
-
-
由 Sammy Larbi 提交于
-
- 08 3月, 2014 1 次提交
-
-
由 Arthur Neves 提交于
On ruby 2.1.1 the behavior of .select and .reject has changed. They will return a Hash new instance, so we need to override them to keep the instance object class.
-
- 05 3月, 2014 1 次提交
-
-
由 Godfrey Chan 提交于
This reverts commit 475c9658, reversing changes made to 705915ab. We decided that this is not worth busting everyone's cache as this seems like a very unlikely problem. The problem only occurs when the user is 1) not using a namespace, or 2) using the same namesapce for different *kinds* of cache items. The recommended "fix" is to put those cache items into their own namspace: id = 1 Rails.cache.fetch(id, namespace: "user"){ User.find(id) } ids = [1] Rails.cache.fetch(ids, namespace: "users"){ User.find(ids) } See the discussion on #14269 for details.
-
- 04 3月, 2014 1 次提交
-
-
由 Arthur Neves 提交于
`cache.fetch(['foo'])` and `cache.fetch('foo')` should generate different cache keys as they are not equivalents. [related #8615] [related #8614]
-
- 03 3月, 2014 1 次提交
-
-
由 Robin Dupret 提交于
The 'cow' => 'kine' inflection has gone with c300dca9 but it should not be removed from the tested irregularities since it ensures that inflections work with words that do not begin with the same letters.
-
- 27 2月, 2014 1 次提交
-
-
由 Parker Selbert 提交于
The current implementation of `fetch_multi` returns an array and has no means to easily backtrack which names yielded which results. By changing the return value to a Hash we retain the name information. Hash#values can be used on the response if only the values are needed.
-
- 24 2月, 2014 2 次提交
-
-
由 David Heinemeier Hansson 提交于
Go with #presence_in instead of #present_in -- it doesnt sound quite as good, but the closer relationship to #presence over #present is ultimately worth it
-
由 Jeremy Kemper 提交于
-