aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
Commit message (Collapse)AuthorAgeFilesLines
...
| * | TaggedLogging wraps an object, not a class.Semyon Perepelitsa2012-01-211-1/+1
| | |
| * | Do not use the same Logger constant for class (from stdlib) and for instance ↵Semyon Perepelitsa2012-01-211-4/+4
| | | | | | | | | | | | (from the example)
| * | Fix indentation in code example of DelegationTomasz Zurkowski2012-01-201-19/+19
| | |
* | | Replace regexp matching with a simple string manipulation.Semyon Perepelitsa2012-01-211-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using regexp looks like overkill here and is also 2x slower. user system total real string 0.020000 0.000000 0.020000 ( 0.016256) regexp 0.030000 0.000000 0.030000 ( 0.035360) require "benchmark" names = ("a".."z").map { |c| c + "a" * rand(5..10) + "=" * rand(0..1) }.map(&:to_sym) puts names n = 1000 Benchmark.bmbm do |x| x.report "string" do n.times do names.each do |name| string_name = name.to_s string_name.chomp!('=') string_name end end end x.report "regexp" do n.times do names.each do |name| name.to_s =~ /(.*)=$/ $1 end end end end
* | | pushed broadcasting down to a moduleAaron Patterson2012-01-202-47/+40
| | |
* | | defined the actual logger signatureAaron Patterson2012-01-201-2/+2
| | |
* | | fixed test for more informative messageAaron Patterson2012-01-201-2/+2
| | |
* | | made the broadcast logger quack more like a loggerAaron Patterson2012-01-202-15/+59
| | |
* | | added the backtrace so errors can be foundAaron Patterson2012-01-201-1/+1
| | |
* | | add a broadcasting logger so we can split logsAaron Patterson2012-01-202-0/+80
| | |
* | | move tagged logging to a module, stop proxying every method callAaron Patterson2012-01-191-36/+32
| | |
* | | Convert URI.parser.parse to URI.parse, and remove ruby 1.8.x code.kennyj2012-01-192-7/+3
|/ /
* / Test::Unit::Collector::ObjectSpace is not present anymoreRafael Mendonça França2012-01-181-10/+0
|/
* simplify some TaggedLogging methodsSergey Nartimov2012-01-181-2/+2
|
* remove unused requiresSergey Nartimov2012-01-182-5/+0
|
* AS::Callbacks: Refactor :per_key optionBogdan Gusiev2012-01-171-35/+7
|
* use thread variable in TaggedLoggingSergey Nartimov2012-01-171-3/+2
| | | | previous solution can cause race conditions under GIL-free ruby implementations
* Merge pull request #4432 from lest/patch-1Santiago Pastorino2012-01-121-28/+0
|\ | | | | to_date, to_time, and to_datetime Time methods present in ruby 1.9
| * to_date, to_time, and to_datetime Time methods present in ruby 1.9Sergey Nartimov2012-01-131-28/+0
| |
* | warns against using temporary subscribersXavier Noria2012-01-121-0/+4
|/
* deprecates Module#local_constant_namesXavier Noria2012-01-124-4/+23
|
* fixes in api docsVijay Dev2012-01-132-3/+3
|
* AS::Callbacks: remove unused runnerBogdan Gusiev2012-01-121-16/+3
|
* Fix GH #3743. We must specify rdoc option's encoding.kennyj2012-01-121-0/+2
|
* Symbol#[] method presents in Ruby 1.9Sergey Nartimov2012-01-072-3/+3
|
* spec class names can possibly be nil in mt/s < 2.6.1, so work around thatAaron Patterson2012-01-061-0/+6
|
* Merge pull request #4360 from rafaelfranca/patch-1Aaron Patterson2012-01-061-7/+7
|\ | | | | Remove more references to Test::Unit
| * Whitespaces :scissors:Rafael Mendonça França2012-01-061-7/+7
| |
* | register spec subclasses for people who specAaron Patterson2012-01-061-1/+7
| |
* | require minitest rather than test/unitAaron Patterson2012-01-063-4/+4
| |
* | backport assert_not_sameAaron Patterson2012-01-061-0/+1
| |
* | require test/unit and sort test orderAaron Patterson2012-01-061-0/+6
| |
* | started converting AS::TestCase to minitestAaron Patterson2012-01-061-2/+12
| |
* | make sure the test case name is nilAaron Patterson2012-01-061-0/+8
|/
* removing unnecessary requiresAaron Patterson2012-01-065-8/+3
|
* just mix the run method in for minitestAaron Patterson2012-01-061-14/+11
|
* rescue the assertion exceptionAaron Patterson2012-01-061-13/+8
|
* add the class name to the assertion messageAaron Patterson2012-01-061-1/+1
|
* Merge pull request #4358 from castlerock/remove_plus_minus_support_for_ruby18Santiago Pastorino2012-01-061-23/+0
|\ | | | | revert "fixing some tests on ruby 1.9.3"
| * revert "fixing some tests on ruby 1.9.3 SHA 33f222b"Vishnu Atrai2012-01-071-23/+0
| |
* | Remove more references to Test::UnitRafael Mendonça França2012-01-062-20/+1
|/
* No need to check if MiniTest::Assertions is definedRafael Mendonça França2012-01-061-32/+30
|
* Remove unneeded testsRafael Mendonça França2012-01-062-180/+0
|
* Improve doc consistencyNorman Clarke2012-01-061-3/+3
|
* Implement Chars#swapcase.Norman Clarke2012-01-063-2/+29
|
* Merge pull request #4340 from rafaelfranca/patch-1José Valim2012-01-056-18/+13
|\ | | | | Remove more Array.wrap calls
| * Remove Array.wrap calls in ActiveSupportRafael Mendonça França2012-01-066-18/+13
| |
* | Require ActiveSupport::TestCase form ActiveSupport isolation testsRafael Mendonça França2012-01-061-0/+1
|/
* use AS::TestCase as the base classAaron Patterson2012-01-0565-103/+103
|
* Merge pull request #3637 from bogdan/compile_optionsJosé Valim2012-01-051-58/+62
|\ | | | | AS::Callbacks::Callback refactor