Commit Graph

27413 Commits

Author SHA1 Message Date
juan david pastas
dbf78b0c85 deleted duplicated line 2012-01-05 11:33:13 -05:00
juan david pastas
f2378d91a5 Update activerecord/lib/active_record/base.rb 2012-01-05 11:31:16 -05:00
Vishnu Atrai
f04af7cf01 ActiveSupport::Testing::Pending support for MiniTest only 2012-01-05 21:33:45 +05:30
Vishnu Atrai
46761b88f0 support only MiniTest run with Isolation test 2012-01-05 21:19:24 +05:30
Vishnu Atrai
c776075add parse only minitest results in isolation test 2012-01-05 21:05:13 +05:30
Sergey Nartimov
7301aa2e0d refactor AS::Multibyte::Chars 2012-01-05 18:25:27 +03:00
Norman Clarke
c4b522d3c8 Make return value from bang methods match Ruby docs
The docs for the String class indicate that methods like `rstrip!` and
others should return nil when they do not have an effect on the string.
2012-01-05 11:51:10 -03:00
Santiago Pastorino
44951c8d44 Revert "active record base class test case should not be public"
People use this!
This reverts commit 071c8bf62ac7ffdb587268a6789fd825d0dae2a6.
2012-01-05 12:44:05 -02:00
Norman Clarke
4387f97242 Override #slice! to ensure proper return value.
The default pass-through to `method_missing` makes `#slice!` return
`self` rather than the string that was sliced off.
2012-01-05 11:42:03 -03:00
Norman Clarke
5fb5ced0cb Remove overidden slice and slice! methods. 2012-01-05 11:39:45 -03:00
Norman Clarke
963c36004c Fix incorrect behavior specified in test.
This test was actually specifying the opposite of what it should.
2012-01-05 10:50:25 -03:00
Pawel Pierzchala
c766f3e4b0 Nano seconds fraction of time is copied properly in Time#advance
When day, month or year was passed, advance created a new time
ignoring previous nsec fraction. Now nsec is passed through
usec as a Rational number.
2012-01-05 13:23:13 +01:00
Lars Kanis
92a3c487bb Postgresql: restore previous behaviour regarding to nil values in connection specification Hash 2012-01-05 12:58:51 +01:00
Aaron Patterson
f306f9a170 call super from setup 2012-01-04 17:11:15 -08:00
Aaron Patterson
fb8b17c720 just use the list of formatting keys we care about 2012-01-04 17:10:13 -08:00
Aaron Patterson
e96b3e8d8c call super 2012-01-04 16:21:16 -08:00
Aaron Patterson
39489d138f clear the sql counter on teardown so the GC can do it's thing 2012-01-04 16:18:38 -08:00
Aaron Patterson
1b276d53fb fix some formatting 2012-01-04 16:14:41 -08:00
Aaron Patterson
8e051a180e use regular expression or statement. loltargetrichenvironment 2012-01-04 16:11:43 -08:00
Aaron Patterson
071c8bf62a active record base class test case should not be public 2012-01-04 16:07:27 -08:00
Aaron Patterson
da4fef8155 use logger.warn for warnings 2012-01-04 13:37:47 -08:00
Aaron Patterson
07c192a705 push exception message formatting to the exception class 2012-01-04 13:25:33 -08:00
Aaron Patterson
fd2d78dbc8 push target down to the classes that care about it 2012-01-04 13:15:59 -08:00
Aaron Patterson
54b4e8e8d6 just implement the delegate method 2012-01-04 13:15:59 -08:00
Aaron Patterson
b899b7be51 Array.wrap no longer needed 2012-01-04 13:15:59 -08:00
José Valim
f28fc9349b Revert "AS::Callbacks: remove __define_runner"
Runners are used internally.

This reverts commit 40c8aa706adbb60ff9d289016fb9020d48969fea.
2012-01-04 21:26:50 +01:00
Santiago Pastorino
91c1f01e2e Remove more references to postgres on the release notes 2012-01-04 17:48:23 -02:00
Santiago Pastorino
1dfac553c7 Postgres is on travis right now, don't need an special mention here 2012-01-04 17:41:34 -02:00
Sergey Nartimov
5a7513593f refactor String#truncate not to use mb_chars 2012-01-04 22:30:07 +03:00
Xavier Noria
33386b065c Merge pull request #4302 from lest/simplify-descendants
simplify Class#descendants using singleton_class method
2012-01-04 10:59:38 -08:00
Sergey Nartimov
ce2c4c977c simplify Class#descendants using singleton_class method 2012-01-04 21:51:39 +03:00
Karunakar (Ruby)
ca0718c164 removed unnecessary +1 from assert_difference because default difference is 1 2012-01-05 00:03:30 +05:30
Aaron Patterson
34551bf31e Merge pull request #4282 from edgecase/order_after_reorder
correctly handle order calls after a reorder
2012-01-04 10:12:40 -08:00
Aaron Patterson
5708648a77 Merge pull request #4296 from kuroda/negative_format
Infer currency negative format from positive one.
2012-01-04 09:39:38 -08:00
Aaron Patterson
cf32a59ed6 Merge pull request #4298 from rafaelfranca/patch-2
Remove rescue block to require psych gem
2012-01-04 09:35:20 -08:00
Aaron Patterson
e094b8d251 Merge pull request #4299 from Karunakar/logger
using the active support logger
2012-01-04 09:34:19 -08:00
Rafael Mendonça França
7d26fad384 No need to require psych since require yaml does that. 2012-01-04 14:29:13 -03:00
Rafael Mendonça França
bdc49dcb4e No need to override to_yaml and yaml_initialize methods in ActiveRecord::Core 2012-01-04 14:28:01 -03:00
Rafael Mendonça França
b65bdb1527 No need to override to_yaml method in ActiveSupport::TimeWithZone 2012-01-04 14:16:48 -03:00
Rafael Mendonça França
25c76ec8e2 No need to override to_yaml method in ActiveSupport::OrderedHash 2012-01-04 14:15:11 -03:00
Rafael Mendonça França
ae7dcb4bec No need to override the to_yaml method in ActiveSupporte::SafeBuffer 2012-01-04 14:14:16 -03:00
Rafael Mendonça França
d8ed247c7f No need to override the to_yaml method in BigDecimal 2012-01-04 14:10:55 -03:00
Karunakar (Ruby)
a19f8b5ca0 using the active support logger 2012-01-04 22:12:25 +05:30
Rafael Mendonça França
761b049b2e No need to use rescue block to require psych 2012-01-04 13:30:57 -03:00
Rafael Mendonça França
0bf51e9805 No need to check if YAML::ENGINE is defined since ruby 1.9 does that 2012-01-04 13:21:54 -03:00
Santiago Pastorino
e2e4216d64 Merge pull request #4289 from rafaelfranca/patch-1
No need of html_safe here
2012-01-04 08:08:19 -08:00
Rafael Mendonça França
38b9fbf1d9 Whitespaces ✂️ 2012-01-04 12:39:28 -03:00
Rafael Mendonça França
8752223fe6 Make sure that check_box helper return a safe buffer 2012-01-04 12:38:58 -03:00
Rafael Mendonça França
73a0f9df47 Add test to make sure that add two safe buffers always return a safe buffer 2012-01-04 12:37:20 -03:00
Tsutomu Kuroda
6724c8c887 Infer currency negative format from positive one.
When a locale file sets the format of the positive
currency value as '%n %u', the default negative
currency format should be '-%n %u'.
2012-01-05 00:23:10 +09:00