rick
01db5ded54
Merge branch 'state_machine'
...
Some big changes:
* Added some redundant requires so active_support/inflecto can be loaded
without the rest of ActiveSupport.
* Disabled callbacks and validations until they are added and tested.
* Converted specs back to tests, using ActiveSupport::TestCase and the new
#test helper.
* As an experiment, I imported Scott Barron's awesome AASM gem into
ActiveModel. I added multiple state machine support and vastly improved
the API (no more aasm_* prefixes). All the old tests pass. If this bothers
people, I have no problems removing this and contributing the changes back to
AASM. I just feel like AMo is a better spot for all these 'modelish' features.
2008-06-29 12:13:58 -07:00
Ernie Miller
d0092dc44d
Added support for regexp matching of priority zones in time_zone_select [ #195 state:resolved]
2008-06-29 13:37:07 -05:00
rick
aec3c7aa72
add special requires for ActiveSupport::Inflector so you can load it individually
2008-06-27 23:29:25 -07:00
Jeremy Kemper
582bff71c4
Fix typo in apparently-dead will_unload? method.
2008-06-27 17:21:57 -07:00
Jeremy Kemper
24c7f41b4f
Freeze ModelName cache_key also
2008-06-25 18:55:55 -07:00
Jeremy Kemper
071fe79279
Include cache key in ModelName
2008-06-24 22:07:09 -07:00
Jeremy Kemper
6874caa407
Performance: minor Array#to_param and #to_query speedups
2008-06-24 21:49:49 -07:00
Jeremy Kemper
d7462ea365
Revert "Check for mocha gem without requiring the lib. [ #403 state:resolved]"
...
This reverts commit 4d5ac3f3d2 .
2008-06-23 00:31:49 -07:00
Jeremy Kemper
4d5ac3f3d2
Check for mocha gem without requiring the lib. [ #403 state:resolved]
2008-06-22 20:52:29 -07:00
Jeremy Kemper
9a0e443719
Everything responds to #to_param
2008-06-21 04:19:30 -07:00
Jeremy Kemper
8d24a029df
Don't assume RubyProf constants are defined
2008-06-20 10:42:36 -07:00
David Heinemeier Hansson
161ab28b7c
Added block-handling to Enumerable#many? (Damian Janowski) [ #452 state:resolved]
2008-06-20 11:31:06 -05:00
Jeremy Kemper
00ba4c0cf3
true#to_param => true, so be sure to #to_s expanded cache keys
2008-06-20 00:46:00 -07:00
Jeremy Kemper
879245de1c
Tired of seeing <foo>/run
2008-06-20 00:36:59 -07:00
Jeremy Kemper
83c3e9903d
Don't profile GC runs/time by default
2008-06-20 00:35:11 -07:00
Jeremy Kemper
f47c81ff37
Fall back to #to_s for cache key expansion
2008-06-20 00:25:41 -07:00
Jeremy Kemper
1e0d2e36cc
Performance: add GC metrics for # of runs and total runtime
2008-06-18 19:19:22 -07:00
Jeremy Kemper
2541f7ac47
Oops, include metric name in csv filename
2008-06-18 18:36:04 -07:00
Jeremy Kemper
616bc42fd7
Performance: tweak unsupported metric error message
2008-06-18 18:34:25 -07:00
Jeremy Kemper
90a9a7013c
Write benchmark output to separate files per test+metric. Support Lloyd Hilaiel's GC.heap_info patch for current heap size.
2008-06-18 16:02:27 -07:00
David Heinemeier Hansson
22af62cf48
Added Array#second through Array#tenth as aliases for Array#[1] through Array#[9] [DHH]
2008-06-17 17:37:29 -05:00
Jeremy Kemper
899d63b997
process time for benchmarks (quicker), wall time for profiling (lower overhead)
2008-06-16 03:45:20 -07:00
Jeremy Kemper
e433bb16a6
Merge branch 'master' of git@github.com:rails/rails
2008-06-16 03:05:24 -07:00
Jeremy Kemper
fa2a255352
missed . joining rails version and git revision
2008-06-16 00:16:43 -07:00
Jeremy Kemper
ed67d90a98
Metrics::Memory measures in fractional KB also
2008-06-16 00:10:30 -07:00
Jeremy Kemper
49d19515b7
Extract environment. Hardcode some git info so I can start working with it now.
2008-06-16 00:08:39 -07:00
Jeremy Kemper
e8f78998b2
Force runs to be an integer. Start and stop RubyProf in same scope. Expect memory measurements in fractional KB now instead of bytes. Convert object allocation measurements to integer. Wrap up measure_mode in Metric instance method.
2008-06-15 21:47:28 -07:00
Jeremy Kemper
f93a6d99e6
Delegate run_test to @harness
2008-06-15 16:26:51 -07:00
Jeremy Kemper
59b2daba4f
Metrics::[] escues NameError only. Fix MODE typo.
2008-06-15 14:48:15 -07:00
Jeremy Kemper
f7866cdac1
Extract Metric and Performer. Simplify and refactor.
2008-06-15 14:41:18 -07:00
Joshua Peek
b415538b5d
Updated bundled TZInfo gem to version 0.3.9 for Ruby 1.9 compat
2008-06-14 15:18:55 -05:00
Jeremy Kemper
01a4af4a74
Pass printer class to output_filename
2008-06-14 03:29:30 -07:00
Jeremy Kemper
eab71208db
Performance: integration test benchmarking and profiling. [Jeremy Kemper]
2008-06-14 02:04:38 -07:00
David Heinemeier Hansson
ba0f38f89e
Change Enumberal#several? to Enumberal#many?
2008-06-13 17:34:17 -05:00
Jeremy Kemper
d62382afa3
Ruby 1.9 compat: instance_methods are symbols instead of strings. Use the quicker instance_method(sym) rescue false check.
2008-06-12 18:22:30 -07:00
David Heinemeier Hansson
f74ba37f4e
Added test/do declaration style testing to ActiveSupport::TestCase [DHH via Jay Fields]
2008-06-12 20:10:38 -05:00
David Heinemeier Hansson
048ac3604c
Revert "Ensure MemCacheStore is required when using CompressedMemCacheStore since they are lazy load now."
...
This reverts commit dd4181f47d .
2008-06-12 19:52:44 -05:00
David Heinemeier Hansson
6573f6a4bc
Revert "Lazy load cache and session stores"
...
This reverts commit 19895f087c .
2008-06-12 19:52:33 -05:00
David Heinemeier Hansson
a3caf28da3
Added Object#present? which is equivalent to !Object#blank? [DHH]
2008-06-12 18:30:56 -05:00
David Heinemeier Hansson
ea3a7e1bb1
Merge branch 'master' of git@github.com:rails/rails
2008-06-12 17:48:30 -05:00
David Heinemeier Hansson
556204abaf
Added Enumberable#several? to encapsulate collection.size > 1 [DHH]
2008-06-12 17:46:15 -05:00
Joshua Peek
dd4181f47d
Ensure MemCacheStore is required when using CompressedMemCacheStore since they are lazy load now.
2008-06-12 14:20:30 -05:00
Grant Hollingworth
634e462a0b
Performance: speed up Hash#except. [ #382 state:resolved]
2008-06-11 00:47:02 -07:00
Jeremy Kemper
34c51c9e8f
Rubinious: setup/teardown override for miniunit
2008-06-10 14:01:16 -07:00
Jeremy Kemper
f5cbad21ac
Rubinious: work around h[k] ||= v returning []= result instead of v
2008-06-10 14:01:16 -07:00
Pratik Naik
19895f087c
Lazy load cache and session stores
2008-06-10 10:29:25 +01:00
Jeremy Kemper
6c970d79a0
Performance: faster Object.subclasses_of
2008-06-08 00:35:36 -07:00
Jeremy Kemper
67e4f16fc5
No need to build a Set since we're iterating instead of checking for inclusion now
2008-06-07 18:06:45 -07:00
Jeremy Kemper
84fb971c2f
Remove 1.9's String#chars also
2008-06-06 21:34:36 -07:00
Jeremy Kemper
e79d47847a
Qualify Inflector in rdoc examples also. [ #356 state:resolved]
2008-06-06 13:03:59 -07:00