Commit Graph

4958 Commits

Author SHA1 Message Date
Brian Cardarella
748d3f38df Use symbols instead of strings
ActiveSupport::Concern is used all over Rails
This PR will only create 3 new objects as keys are never recreated and
are not subject to garbage collection.

The strings were being uniquely created and garbage collected. I don't
have any performance numbers but this should be better than all of the
GC.
2013-06-10 23:22:08 -04:00
Carlos Antonio da Silva
ebf2113a05 Merge pull request #10897 from prathamesh-sonpatki/active-support-typos
Fixed typos in activesupport [ci skip]
2013-06-10 05:01:14 -07:00
Andrew Kreiling
a548792aa0 Don't blindly call blame_file! on exceptions in ActiveSupport::Dependencies::Loadable
It is possible under some environments to receive an Exception that is
not extended with Blamable (e.g. JRuby).
ActiveSupport::Dependencies::Loadable#load_dependency blindly call
blame_file! on the exception which throws it's own NoMethodError
exception and hides the original Exception.

This commit fixes #9521
2013-06-09 18:20:10 -04:00
Prathamesh Sonpatki
442c52e815 Fixed typos in activesupport [ci skip]
- eval'ed to eval'd in accordance with https://github.com/rails/rails/pull/10889
- tried to improve statement about compiling Procs into methods using define_method
2013-06-09 14:23:45 +05:30
Andrew White
b7f9de27f0 Override Time.at to work with Time-like values
Time.at allows passing a single Time argument which is then converted
to an integer. The conversion code since 1.9.3r429 explicitly checks
for an instance of Time so we need to override it to allow DateTime
and ActiveSupport::TimeWithZone values.
2013-06-08 09:50:15 +01:00
Vipul A M
2c92f5b92f Fix some typos 2013-06-07 16:23:29 +05:30
Rafael Mendonça França
424fa92b35 Merge pull request #10784 from senny/10526_prevent_key_transformation
Prevent side effects in `Hash#with_indifferent_access`.
2013-06-03 16:46:59 -07:00
David Heinemeier Hansson
f9c2f76bea The behavior we had in place in rc1 was actually to convert to DateTime and use <=> from there. Restore that. 2013-06-03 20:09:21 +02:00
David Heinemeier Hansson
a6fe33d8a3 Allow Date to be compared with Time (like it was possible to compare Time with Date) 2013-06-03 16:47:48 +02:00
kennyj
6c2cbc6fff Remove active_support/testing/pending.rb was deprecated. 2013-06-01 21:23:19 +09:00
kennyj
f8f30c88ad Remove ActiveSupport::Benchmarkable#silence was deprecated. 2013-06-01 21:23:19 +09:00
kennyj
6f3e01e8b7 Remove active_support/json/variable was deprecated. 2013-06-01 21:23:19 +09:00
Yves Senn
c44a929f49 Prevent side effects in Hash#with_indifferent_access. 2013-05-29 08:43:35 +02:00
Arun Agrawal
5eaa30e47c Running isolated tests
These stopped running don't know when. 
But these should be running now.
2013-05-28 19:59:55 +02:00
Carlos Antonio da Silva
c3890d38cb Merge pull request #10763 from senny/10758_to_sentence_with_blank_elements
test-case for `Array#to_sentence` with `blank?` items.
2013-05-26 13:51:49 -07:00
Yves Senn
27b8a99263 add test-case for `Array#to_sentence with blank items. 2013-05-26 18:47:23 +02:00
Carlos Antonio da Silva
50e89373c5 Merge pull request #10762 from vipulnsward/change_compatibility
compatability => compatibility
2013-05-26 07:06:13 -07:00
Vipul A M
7f02cabc37 compatability => compatibility 2013-05-26 16:55:40 +05:30
Vipul A M
d745d62616 Fix some typo in method names, variables 2013-05-26 16:27:05 +05:30
dickeyxxx
21586d364b correction on cache.fetch race_condition_ttl 2013-05-23 12:40:08 -07:00
Albert Llop
921ec9b5c6 HashWithIndifferentAccess#select working as intended
Before this commit, #reject returned a HashWithIndifferentAccess,
whereas #select returned a Hash. Now #select also returns a
HashWithIndifferentAccess.
2013-05-23 15:26:00 +02:00
Rafael Mendonça França
73c6ca87a3 Require only minitest.
minitest/autorun required minitest/spec and we are avoiding to require
it.
2013-05-22 13:51:01 -03:00
Rafael Mendonça França
c86cdd1130 Merge pull request #10667 from rubys/minitest-autorun
Eliminate minitest warnings
2013-05-22 09:45:46 -07:00
Paco Guzman
74c79104b9 Compare with the parsed result from REXML backend 2013-05-22 15:35:47 +02:00
David Butler
e93e255161 Documentation: Notifications queue does not run in a thread. 2013-05-20 23:53:05 -07:00
Rafael Mendonça França
534ef88899 Merge pull request #10659 from vipulnsward/normalize_param2
"normalize_callback_params" doesn't require name param
2013-05-19 12:18:12 -07:00
Carl Lerche
e539228d08 Bug fix: Evented notification subscribers can handle published events 2013-05-17 16:27:23 -07:00
Sam Ruby
e8dd88ac81 Eliminate minitest warnings
9a57c520ce (L15R8)
2013-05-17 13:02:29 -04:00
Vipul A M
872e2a8184 "normalize_callback_params" doesn't require name param 2013-05-17 09:04:44 +05:30
Aaron Patterson
156e2e3fd8 Revert "just call the class method since we know the callbacks are stored at the"
This reverts commit 55975c71ec9c2c18b67020484959ff5c69d4d3fb.
2013-05-16 14:19:50 -07:00
Rafael Mendonça França
8f2b1a12dc Merge pull request #10652 from md5/concern-multiple-included
Raise an error when multiple included blocks are defined for a Concern
2013-05-16 14:06:00 -07:00
Aaron Patterson
9fef7c8dc9 Merge pull request #10527 from zenspider/squishy_minitest5
Squishy minitest5
2013-05-16 13:41:54 -07:00
Mike Dillon
2d7a86e179 Raise when multiple included blocks are defined 2013-05-16 11:28:31 -07:00
Rafael Mendonça França
ed738f75d2 Revert "Merge pull request #10600 from aditya-kapoor/code_refactor"
This reverts commit 8ce3c1e5dde9fb180813e4d89324db03da110b13, reversing
changes made to f93da579ce7f77dbd58b9a2165861aee265b8c93.

Reason: It slow down the running time.

require "diffbench"
load 'output_safety.rb'

N = 10000
b = ActiveSupport::SafeBuffer.new("hello world")
DiffBench.bm do
  report "capitalize in safe buffer" do
    N.times do
      b.capitalize
    end
  end
end

> git checkout  069ea45; diffbench bench.rb;
diffbench bench.rb;diffbench
bench.rb;diffbench bench.rb;diffbench
bench.rb;diffbench bench.rb;diffbench
bench.rb;

Running benchmark with current working tree
Checkout HEAD^
Running benchmark with HEAD^
Checkout to previous HEAD again

                    user     system      total
                    real
----------------------------------capitalize
in safe buffer
After patch:    0.010000   0.000000   0.010000
(  0.009733)
Before patch:   0.010000   0.000000   0.010000
(  0.007702)
Improvement: -26%

Running benchmark with current working tree
Checkout HEAD^
Running benchmark with HEAD^
Checkout to previous HEAD again

                    user     system      total
                    real
----------------------------------capitalize
in safe buffer
After patch:    0.010000   0.000000   0.010000
(  0.009768)
Before patch:   0.010000   0.000000   0.010000
(  0.007896)
Improvement: -24%

Running benchmark with current working tree
Checkout HEAD^
Running benchmark with HEAD^
Checkout to previous HEAD again

                    user     system      total
                    real
----------------------------------capitalize
in safe buffer
After patch:    0.010000   0.000000   0.010000
(  0.009938)
Before patch:   0.010000   0.000000   0.010000
(  0.007768)
Improvement: -28%

Running benchmark with current working tree
Checkout HEAD^
Running benchmark with HEAD^
Checkout to previous HEAD again

                    user     system      total
                    real
----------------------------------capitalize
in safe buffer
After patch:    0.010000   0.000000   0.010000
(  0.010001)
Before patch:   0.010000   0.000000   0.010000
(  0.007873)
Improvement: -27%

Running benchmark with current working tree
Checkout HEAD^
Running benchmark with HEAD^
Checkout to previous HEAD again

                    user     system      total
                    real
----------------------------------capitalize
in safe buffer
After patch:    0.010000   0.000000   0.010000
(  0.009670)
Before patch:   0.010000   0.000000   0.010000
(  0.007800)
Improvement: -24%

Running benchmark with current working tree
Checkout HEAD^
Running benchmark with HEAD^
Checkout to previous HEAD again

                    user     system      total
                    real
----------------------------------capitalize
in safe buffer
After patch:    0.010000   0.000000   0.010000
(  0.009949)
Before patch:   0.010000   0.000000   0.010000
(  0.007752)
Improvement: -28%
2013-05-15 14:00:58 -03:00
Aaron Patterson
55975c71ec just call the class method since we know the callbacks are stored at the
class level
2013-05-15 09:54:14 -07:00
Aaron Patterson
920753f376 this variable is used, so we don't have to use double assignments 2013-05-15 09:53:13 -07:00
Aaron Patterson
8559871cd3 remove dead code 2013-05-15 09:43:17 -07:00
Aaron Patterson
1012c3e969 remove deprecation notices 2013-05-15 09:40:58 -07:00
Aaron Patterson
db78643a17 stop keeping a reference to the options hash 2013-05-15 09:39:23 -07:00
Aaron Patterson
99f5add4be conditions are guaranteed to be arrays by initialize 2013-05-15 09:30:08 -07:00
Aaron Patterson
d10cadca0c simplify the condions lambda generation 2013-05-15 09:28:50 -07:00
Aaron Patterson
d433436271 use unless instead of if! 2013-05-15 09:18:16 -07:00
kennyj
f9c82f586c Fix HWIA#to_hash behavior with array of hashes. 2013-05-16 00:08:58 +09:00
Vipul A M
50a51e956b change to destructive deep_symbolize_keys after df24b8790f which allows to do so. This helps to avoid extra hash object creation, by symbolizing inplace 2013-05-15 10:34:41 +05:30
Aaron Patterson
dd03f10d52 only dup the options once, the Callback object does not mutate them 2013-05-14 16:22:29 -07:00
Aaron Patterson
132db318b3 make the compile method thread safe 2013-05-14 16:18:11 -07:00
Aaron Patterson
d2405a0aab use inject rather than multiple assignments 2013-05-14 16:15:57 -07:00
Aaron Patterson
ba55276434 deprecating string based terminators 2013-05-14 16:03:09 -07:00
Aaron Patterson
def815a461 halting lambda must be instance execed 2013-05-14 14:08:39 -07:00
Aaron Patterson
dbee8c3258 fixing arity2 test 2013-05-14 14:03:14 -07:00
Rafael Mendonça França
c7182563e5 Merge pull request #10266 from vipulnsward/fix_HIA_to_hash
fix HashWithIndifferentAccess#to_hash behaviour
2013-05-14 12:39:48 -07:00
Aaron Patterson
e8e7d8357c Merge branch 'polymorphic'
* polymorphic: (41 commits)
  fix shadowed variable warnings
  polymorphic around callbacks
  polymorphic after filter
  rename terminal to halting, try to keep naming consistent
  push the before filter lambdas to factory methods
  polymorphic before callbacks
  use a singleton end node
  Revert "we never pass blocks, so remove this"
  if there is nothing to compile, then do not bother compiling
  Arrays are no longer supported
  we never pass blocks, so remove this
  raise an argument error if the filter arity is greater than 1
  pass the actual filter, not a string
  do not keep a reference to the chain in the callback objects
  fix deprecation test
  push merge code to the callback itself
  dup the callback and set the chain
  remove klass because it is not used
  rename instance variables
  push duplicates? logic to the instance
  ...
2013-05-14 12:04:18 -07:00
Aaron Patterson
78202055c9 fix shadowed variable warnings 2013-05-14 12:03:33 -07:00
Aaron Patterson
87378b0b6d polymorphic around callbacks 2013-05-14 11:48:04 -07:00
Rafael Mendonça França
8ce3c1e5dd Merge pull request #10600 from aditya-kapoor/code_refactor
Removed Class Eval and used define_method instead for the SafeBuffer
2013-05-14 11:39:18 -07:00
Aaron Patterson
e8ddd4f9e5 polymorphic after filter 2013-05-14 11:37:34 -07:00
Aaron Patterson
c5953f7dba rename terminal to halting, try to keep naming consistent 2013-05-14 11:30:14 -07:00
Aaron Patterson
bd95ff84f3 push the before filter lambdas to factory methods 2013-05-14 11:27:24 -07:00
Aaron Patterson
eac50bc335 polymorphic before callbacks 2013-05-14 11:20:34 -07:00
Aaron Patterson
9dcecbb080 Merge branch 'master' into normalizecb
* master:
  private callback methods should work
  Update mail to minimum version 2.5.4
2013-05-14 10:48:43 -07:00
Aaron Patterson
f93da579ce private callback methods should work 2013-05-14 10:48:34 -07:00
aditya-kapoor
426f42c092 Added a blank space and removed to_sym 2013-05-14 19:36:35 +05:30
Aaron Patterson
73aefee3f2 use a singleton end node 2013-05-13 16:59:05 -07:00
Aaron Patterson
d2c0571bf6 Revert "we never pass blocks, so remove this"
This reverts commit 9caf0cf9c8c7b42737ae78c470a5dd2f583ada75.
2013-05-13 16:53:08 -07:00
Aaron Patterson
ccbefff684 if there is nothing to compile, then do not bother compiling 2013-05-13 16:43:27 -07:00
Aaron Patterson
877964dc61 Arrays are no longer supported 2013-05-13 16:41:43 -07:00
Aaron Patterson
9caf0cf9c8 we never pass blocks, so remove this 2013-05-13 15:54:45 -07:00
Aaron Patterson
b308f0d4f1 raise an argument error if the filter arity is greater than 1 2013-05-13 15:50:16 -07:00
Aaron Patterson
edf116a91b Merge branch 'master' into normalizecb
* master:
  adding more callback type coverage
2013-05-13 15:42:01 -07:00
Aaron Patterson
099e827f57 adding more callback type coverage 2013-05-13 15:40:39 -07:00
Aaron Patterson
1ad68e3600 Merge branch 'master' into normalizecb
* master:
  extract getting an setting callbacks to methods
  call extracted method from callback manipulation methods
  extract callback param munging
  no reason to make these defaulted, we always pass values in

Conflicts:
	activesupport/lib/active_support/callbacks.rb
2013-05-13 15:28:02 -07:00
Aaron Patterson
b93cd60949 extract getting an setting callbacks to methods 2013-05-13 14:23:03 -07:00
Aaron Patterson
72be280ffe call extracted method from callback manipulation methods 2013-05-13 14:14:50 -07:00
Aaron Patterson
35c4a2ca95 extract callback param munging 2013-05-13 14:11:09 -07:00
Aaron Patterson
0b9b132e32 no reason to make these defaulted, we always pass values in 2013-05-13 14:02:39 -07:00
aditya-kapoor
069ea45c5d Removed Class Eval and used define_method instead for the SafeBuffer 2013-05-14 01:09:03 +05:30
Aaron Patterson
19b9f7ba33 pass the actual filter, not a string 2013-05-13 12:05:22 -07:00
Aaron Patterson
d53b5f0739 Merge branch 'master' into normalizecb
* master: (61 commits)
  add tests for reset_calbacks
  Fixing build broken by this change
  Extract variable out of loop
  Updated comment to Rails 4
  Fixes NoMethodError: `alias_method_chain` when requiring just active_support/core_ext
  better error message when app name is not passed in `rails new`
  Code cleanup for ActionDispatch::Flash#call
  Fix typo: require -> requires
  Add CHANGELOG entry for #10576
  Merge pull request #10556 from Empact/deprecate-schema-statements-distinct
  Some editorial changes on the documentation.
  respond_to -> respond to in a message from AM::Lint
  specify that dom_(id|class) are deprecated in controllers, views are fine
  copy edits [ci skip]
  Fix class and method name typos
  Replace multi_json with json
  ruby -> Ruby
  Adding documentation to the automatic inverse_of finder.
  Improve CHANGELOG entry [ci kip]
  Call assume_migrated_upto_version on connection
  ...

Conflicts:
	activesupport/lib/active_support/callbacks.rb
2013-05-13 11:51:10 -07:00
Aaron Patterson
37ca5b0966 add tests for reset_calbacks 2013-05-13 11:44:15 -07:00
Andy Lindeman
b2de3f7294 Fixes NoMethodError: alias_method_chain when requiring just active_support/core_ext
* Each file that uses `alias_method_chain` brings it in explicitly
2013-05-12 22:43:48 -04:00
Rafael Mendonça França
0854ba149a Fix typo: require -> requires
[ci skip]
2013-05-12 15:16:32 -03:00
Rafael Mendonça França
bf8fa7c5c7 Add CHANGELOG entry for #10576
[ci skip]
2013-05-12 15:04:05 -03:00
Vijay Dev
d8b8c0ef87 Merge branch 'master' of github.com:lifo/docrails
Conflicts:
	activesupport/lib/active_support/callbacks.rb
2013-05-12 15:57:14 +05:30
Erik Michaels-Ober
ce4456fde6 Replace multi_json with json 2013-05-11 21:43:48 -07:00
Anton Kalyaev
947cc874be added docs for InheritedOptions class [ci skip] 2013-05-11 13:17:34 +04:00
Aaron Patterson
b97ff316ec do not keep a reference to the chain in the callback objects 2013-05-10 15:43:34 -07:00
Aaron Patterson
f0a9f814a3 fix deprecation test 2013-05-10 14:18:57 -07:00
Aaron Patterson
929658c98d push merge code to the callback itself 2013-05-10 14:12:56 -07:00
Aaron Patterson
91e002e31e dup the callback and set the chain 2013-05-10 12:00:35 -07:00
Aaron Patterson
2efe6ce538 remove klass because it is not used 2013-05-10 11:55:27 -07:00
Aaron Patterson
40bdad34a5 rename instance variables 2013-05-10 11:50:50 -07:00
Aaron Patterson
17dfee0a99 push duplicates? logic to the instance 2013-05-10 11:45:48 -07:00
Aaron Patterson
c5ed42a602 callback chain is in charge of the cache, so remove method based cache 2013-05-10 11:08:25 -07:00
Aaron Patterson
a3e9d6bb22 __define_callbacks method is not necessary anymore 2013-05-10 11:06:27 -07:00
Aaron Patterson
d1316bb128 just run compiled callbacks since they are cached 2013-05-10 11:05:47 -07:00
Aaron Patterson
ade7d365e4 cache compiled callbacks 2013-05-10 11:00:25 -07:00
Aaron Patterson
3aee9126aa use delegation over inheritance so we can figure when to cache / bust cache 2013-05-10 10:56:09 -07:00
Aaron Patterson
5bc4740dec fixing activemodel tests 2013-05-10 10:53:46 -07:00
Rafael Mendonça França
9d6a5b4432 Give credits to all the envolved people [ci skip] 2013-05-10 14:39:29 -03:00
Rafael Mendonça França
4b57bc0c2a Merge pull request #10534 from cmaruz/master
Escape of U+2028 and U+2029 in the JSON Encoder

Conflicts:
	activesupport/lib/active_support/json/encoding.rb
2013-05-10 14:38:23 -03:00
Rafael Mendonça França
9a43816928 Fix syntax error on Ruby 2.0
Since Ruby 2.0 is UTF-8 by default we need to explictly say that the
encoding of this file is US-ASCII
2013-05-10 14:36:18 -03:00
Rafael Mendonça França
5602c73eca Merge pull request #10057 from zackham/patch-1
Escape multibyte line terminators in JSON encoding
2013-05-10 14:13:28 -03:00
Aaron Patterson
3551690120 use an environment object to hold state about the filter calls 2013-05-10 10:13:22 -07:00
Aaron Patterson
95e7e56efc object based callbacks cannot be duplicated 2013-05-10 10:13:22 -07:00
Aaron Patterson
d4dcd6e41f pass the run block as a normal variable to the rest of the callbacks 2013-05-10 10:13:22 -07:00
Aaron Patterson
9b52026920 fixing more variable names 2013-05-10 10:13:22 -07:00
Aaron Patterson
2b1d7ea335 fix variable name 2013-05-10 10:13:22 -07:00
Aaron Patterson
d5fdc0d448 reduce the number of lambas 2013-05-10 10:13:22 -07:00
Aaron Patterson
a50088a4cc callback sequence is no longer used 2013-05-10 10:13:22 -07:00
Aaron Patterson
6514ee9044 no need for variable assignments, just pass the values in 2013-05-10 10:13:22 -07:00
Aaron Patterson
f5478d9263 make_lambda is never called with an Array 2013-05-10 10:13:21 -07:00
Aaron Patterson
23122ab2d4 callbacks are wrapped with lambdas 2013-05-10 10:13:21 -07:00
Aaron Patterson
cc0fd31f9e remove dead code 2013-05-10 10:13:21 -07:00
Aaron Patterson
bf6429c438 fix method names 2013-05-10 10:13:21 -07:00
Aaron Patterson
07da9603fe using lambas for the callback bodies 2013-05-10 10:13:21 -07:00
Aaron Patterson
2b1500d695 wrap all options in lambas 2013-05-10 10:13:21 -07:00
Aaron Patterson
6189e2714b conditions in callbacks return consistent lambdas 2013-05-10 10:13:21 -07:00
Waseem Ahmad
da8fa91abf Remove unnecessary require from active_support/inflector/methods.rb
`active_support/inflections` already requires
`active_support/inflector/inflections`. There's no need to require it in
`active_support/inflector/methods`.
2013-05-10 10:31:20 +05:30
aditya-kapoor
e6cebce48c changed rails -> Rails at two places 2013-05-09 23:27:15 +05:30
Carlos Antonio da Silva
4ae2309418 Merge pull request #10535 from vipulnsward/remove_var
remove redundant var
2013-05-09 08:43:03 -07:00
Vipul A M
6944dfb5d0 remove redundant var 2013-05-09 18:23:27 +05:30
Mario Caropreso
582b44175b Added escaping of U+2028 and U+2029 inside the json encoder.
U+2028 and U+2029 are allowed inside strings in JSON (as all literal
Unicode characters) but JavaScript defines them as newline
seperators. Because no literal newlines are allowed in a string, this
causes a ParseError in the browser. We work around this issue by
replacing them with the escaped version. The resulting JSON is still
valid and can be parsed in the browser.

This commit has been coauthored with Viktor Kelemen @yikulju
2013-05-09 13:41:56 +01:00
Carlos Antonio da Silva
9b77f66bcc Merge pull request #10531 from waseem/refactor_require
Require different core extensions correctly.
2013-05-09 05:40:26 -07:00
Prathamesh Sonpatki
39b8b8fdbf rails -> Rails [ci skip] 2013-05-09 17:27:58 +05:30
Ryan Davis
de4dcacc20 oops. I should have only required minitest, not minitets/autorun. muscle memory. 2013-05-09 01:50:56 -07:00
Waseem Ahmad
1a4d8736ce Require different core extensions correctly.
The begin rescue block is specifically to catch LoadError while loading
i18n gem. Other core extensions, under active support, should be
required outside of the begin rescue block.
2013-05-09 12:32:02 +05:30
Ryan Davis
0809c09c34 tweak dependencies 2013-05-08 16:44:05 -07:00
Aaron Patterson
05609f4729 use public send on the scope parameters 2013-05-08 16:25:43 -07:00
Aaron Patterson
1d6ac22462 add test for object conditional with scope 2013-05-08 15:51:45 -07:00
Aaron Patterson
fe7f4b4bba using strings as scopes is not used anywhere, so remove it 2013-05-08 15:23:54 -07:00
Aaron Patterson
7d89a9f00a adding a class conditional test 2013-05-08 15:23:39 -07:00
Aaron Patterson
ece76f3840 adding tests for lambdas as conditions 2013-05-08 14:35:43 -07:00
Aaron Patterson
9e323e7dab separate identification computation 2013-05-08 13:36:04 -07:00
Aaron Patterson
8038f7eb10 separate filters from source code 2013-05-08 12:01:55 -07:00
Aaron Patterson
6abbc4a588 if the callbacks are not the same class, they cannot be duplicates 2013-05-08 11:37:33 -07:00
Aaron Patterson
f21da67aab fix object comparison case 2013-05-08 11:37:33 -07:00
Aaron Patterson
b9903c398e polymorphic comparison operator 2013-05-08 11:37:33 -07:00
Aaron Patterson
1ff1236b07 we need to indicate the type of callback 2013-05-08 11:37:26 -07:00
Jeremy Kemper
d77c64590a Merge pull request #10355 from burke/master
Use Ruby's native Encoding functionality to implement `tidy_bytes`
2013-05-08 11:09:17 -07:00
Aaron Patterson
5d2c3a14a3 adding more tests around callback inconsistencies 2013-05-08 10:31:02 -07:00
Aaron Patterson
d32b329b7e refactor tests for more points 2013-05-08 10:08:37 -07:00
Aaron Patterson
3df92d981b adding test to demonstrate inconsistencies in the AS::Callbacks api 2013-05-08 10:07:19 -07:00
Burke Libbey
738dbc0b39 Use ruby's Encoding support for tidy_bytes
The previous implementation was quite slow. This leverages some of the
transcoding abilities built into Ruby 1.9 instead. It is roughly 96%
faster.

The roundtrip through UTF_8_MAC here is because ruby won't let you
transcode from UTF_8 to UTF_8. I chose the closest encoding I could
find as an intermediate.
2013-05-08 11:55:02 -05:00
Tomohiko Himura
4de7442f45 dependency ActiveSupport::Deprecation 2013-05-09 00:41:00 +09:00
aditya-kapoor
c3a5ea6ef6 Changed spelling of Busines to Business 2013-05-08 15:51:04 +05:30
Prathamesh Sonpatki
b5429eec60 Fix Typo existant -> existent [ci skip] 2013-05-08 09:50:46 +05:30
Sean Walbran
2ed9ab2ed6 add changelog entry for fix-10502-skip-object-filter 2013-05-07 14:11:52 -05:00
Sean Walbran
9003a422f2 fix issue #10502, do not recompute method name for already-stringified object filter 2013-05-07 13:22:52 -05:00
Rafael Mendonça França
33283c98ed Merge pull request #10234 from dasch/dasch/fetch-multi
Allow fetching multiple values from the cache at once
2013-05-06 18:52:57 -07:00
Ryan Davis
3073c53198 Updates to make rails 4 happy with minitest 5:
+ Namespace changes, overhaul of runners.
+ Internal ivar name changes
- Removed a logger globally applied to tests that spew everywhere?!?
+ Override Minitest#__run to sort tests by name.
+ Reworked testing isolation to work with the new cleaner architecture.
- Removed a bunch of tests that just test minitest straight up. I think these changes were all merged to minitest 4 a long time ago.
- Minor report output differences.
2013-05-06 17:38:45 -07:00