Jeremy Kemper
d0bcf51191
Extract repetitive method
2009-08-09 12:14:25 -07:00
Jeremy Kemper
635f68dca9
Uses &:foo
2009-08-09 12:11:50 -07:00
Pratik Naik
60bed59fbf
Remove unnecessary &block from Range#sum and add tests for (num..float).sum
2009-08-09 18:15:20 +01:00
Pratik Naik
97a5c7a516
Make enumerable test run stand alone
2009-08-09 18:13:03 +01:00
José Valim
e0adfa82c0
Optimize Range#sum only for integers [ #2489 ]
2009-08-09 18:05:58 +01:00
Hugo Peixoto
3545d6b0b2
Setting usec (and nsec for Ruby 1.9) on Time#end_of_* methods [ #1255 status:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2009-08-09 15:56:37 +01:00
José Valim
1bd4d1c674
Optimize Range#sum to use arithmetic progression when a block is not given [ #2489 ].
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2009-08-09 15:56:10 +01:00
Michael Siebert
d811864e88
Fix deprecating =-methods by using send [ #2431 status:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2009-08-09 15:54:56 +01:00
Yehuda Katz
b05c951907
Temporary fix to get our LoadError monkey-patch working with newer JRuby. We should probably remove MissingSourceFile and just monkey-patch LoadError instead of overriding LoadError.new.
2009-08-09 04:12:09 -03:00
Marc-Andre Lafortune
29096268cc
Enumerable#sum now works will all enumerables, even if they don't respond to :size
...
[#2489 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-08-08 17:51:09 -07:00
Bas Van Klinkenberg
0fbeaa98e4
Fixed a bug in JSON decoding with Yaml backend, where a combination of dates, escaped or unicode encoded data and arrays would make the parser fail with a ParseError exception. [ #2831 state:resolved]
...
Signed-off-by: Yehuda Katz <wycats@gmail.com>
2009-08-08 12:44:41 -03:00
Jeremy Kemper
a606727606
Extract String#bytesize shim
2009-08-01 18:34:41 -07:00
José Valim
d9aae2b56e
Merge branch 'master' of git://github.com/rails/rails
2009-07-28 09:00:33 +02:00
Pratik Naik
e033b5d037
Merge docrails
2009-07-25 16:03:58 +01:00
José Valim
33048b6e27
Solving merge conflicts.
2009-07-21 12:51:53 +02:00
Akira Matsuda
9d7aae7103
Ruby 1.9.2 compat: name method was renamed to __name__ since MiniTest 1.4.x [ #2922 state:resolved]
...
Signed-off-by: Yehuda Katz <wycats@gmail.com>
2009-07-21 01:15:51 -07:00
Sven Fuchs
17d5cc12b9
* don't include String#% for Ruby 1.9
...
* raise a KeyError exception for missing named interpolation args (like Ruby 1.9 does)
* raise an ArgumentError when mixing named and unnamed placeholders (like Ruby 1.9 does)
* improve docs and comply a bit more w/ Rails names/conventions
[#2870 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-07-18 11:27:27 -07:00
José Valim
fa5f7f7087
Merge branch 'master' of git://github.com/rails/rails
2009-07-16 00:28:33 +02:00
Lourens Naude
0920e69244
ActiveSupport Hash optimizations [ #2902 state:resolved]
...
Signed-off-by: Carl Lerche <carllerche@mac.com>
2009-07-15 13:23:05 -07:00
José Valim
c07746cbdf
Merge branch 'master' of git://github.com/rails/rails
2009-07-08 12:53:13 +02:00
Lawrence Pit
579250ea46
Use the i18n gem if present instead of vendor code. [ #2871 state:resolved]
...
Signed-off-by: Yehuda Katz <wycats@gmail.com>
2009-07-07 18:36:42 -07:00
Lawrence Pit
da635394c1
Ruby 1.9 style String interpolation support for lower ruby versions. Thanks to code from Masao Mutoh's GetText gem. [ #2870 state:resolved]
...
Signed-off-by: Yehuda Katz <wycats@yehuda-katzs-macbookpro41.local>
2009-07-07 16:21:57 -07:00
Yehuda Katz + Carl Lerche
61604feec0
Get Initializer tests running without requiring parts of Rails being loaded first
2009-07-06 12:25:34 -07:00
José Valim
dd7ee082be
Use active_support/mini since we just need inflections.
2009-07-06 18:38:27 +02:00
José Valim
3bf45890b3
Merge branch 'master' of git://github.com/rails/rails
2009-07-03 14:56:19 +02:00
Yehuda Katz + Carl Lerche
1d280e21a1
Adds support for def self.setup in isolation tests for setup that should be run only once in the parent
2009-07-02 16:03:41 -07:00
Brian Abreu
d036899717
Fixed ActiveSupport::OrderedHash::[] work identically to ::Hash::[] in ruby 1.8.7 [ #2832 state:resolved]
...
Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>
2009-07-02 12:01:05 -07:00
Aaron Patterson
49bdbebca6
wycats forgot a +1, so I added it [ #2749 state:resolved]
...
Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>
2009-07-02 11:39:06 -07:00
Levin Alexander
ab2d6abb55
make #inspect if zero length duration return '0 seconds' instead of empty string [ #2838 state:resolved]
...
Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>
2009-07-02 11:22:25 -07:00
José Valim
1c265da1db
Merge branch 'master' of git://github.com/rails/rails
2009-07-02 10:25:18 +02:00
Yehuda Katz + Carl Lerche
ee7d4c47e7
Fixes bug where Memcached connections get corrupted when an invalid expire is passed in [ #2854 state:resolved]
2009-07-01 16:56:43 -07:00
Jeremy Kemper
49824e8ad6
JSON.escape returns UTF-8 strings
...
[#2849 state:resolved]
2009-07-01 16:22:19 -07:00
Jeremy Kemper
f37a2ea84c
uses Hash#except/slice
2009-07-01 16:01:20 -07:00
Yehuda Katz + Carl Lerche
8e3e362aed
Forgot to commit the new file. This is slightly embarrassing.
2009-07-01 15:26:14 -07:00
Yehuda Katz + Carl Lerche
1a6f4d424a
Apparently stdlib isn't std enough
2009-07-01 15:20:02 -07:00
Yehuda Katz + Carl Lerche
3990c128ef
Modify isolation test to require a file not in use anywhere in Rails
2009-07-01 15:06:11 -07:00
Jeremy Kemper
e7312105c7
Merge branch 'master' of git@github.com:rails/rails
2009-07-01 12:55:19 -07:00
Yehuda Katz + Carl Lerche
1026d7706f
Original cache objects should not be immutable [ #2860 state:resolved]
...
Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>
2009-07-01 12:16:55 -07:00
Yehuda Katz + Carl Lerche
882dd4e605
ensure Inflector.camelize works with symbols [ #2856 state:resolved]
...
Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>
2009-07-01 12:14:34 -07:00
Yehuda Katz + Carl Lerche
7583a24ee0
Move mocha down below initial T::U require and bump version to 0.9.7 [ #2858 state:resolved]
2009-07-01 11:53:17 -07:00
Yehuda Katz + Carl Lerche
eea7b5db1d
Crazy hacks to get the Isolation testing module to work on non forking environments
2009-06-30 17:39:32 -07:00
Carl Lerche
db3de78a83
Bump up the version to 3.0.pre
2009-06-30 14:37:12 -07:00
Yehuda Katz + Carl Lerche
575b95ea0b
Created AS::Testing::Isolation which runs each test case in a separate process.
...
This allows for testing rails bootup (files are required, correct constants are
set, etc...). Currently, this is implemented via forking only, but we will add
support for jruby and windows shortly.
2009-06-30 12:00:50 -07:00
Carl Lerche
4954379283
Remove stray checks for Rspec in the testing setup.
2009-06-30 08:41:17 -07:00
José Valim
915f108d6a
Merge branch 'master' of git://github.com/rails/rails
2009-06-26 11:58:02 +02:00
Yehuda Katz + Carl Lerche
8ee60660ce
Try speeding up rails booting
2009-06-25 14:32:15 -07:00
José Valim
0744900861
Merge branch 'master' of git://github.com/rails/rails
2009-06-23 16:52:39 +02:00
Pratik Naik
66eb05821b
Use stubbing instead of sleep() in File store cache tests
2009-06-21 15:25:28 +01:00
Pratik Naik
b5775c2b3e
Add expiry support File cache store [ #1693 state:resolved] [Roman Shterenzon, Pratik Naik]
2009-06-21 15:25:28 +01:00
José Valim
8037fee9ff
Merge branch 'master' of git://github.com/rails/rails
2009-06-19 16:10:24 +02:00
Jeremy Kemper
63cc6b7242
Friendlier runtime exception if delegatee is nil
2009-06-18 20:00:35 -04:00
Jeremy Kemper
50fe928c15
Delegated methods report the expected file/line in backtraces
2009-06-18 18:07:55 -04:00
Joshua Peek
fbdf706fff
Add basic JSON serializer to AMo
2009-06-17 21:27:54 -05:00
Joshua Peek
1c4d28ba31
Move model naming into ActiveModel
2009-06-17 10:37:39 -05:00
José Valim
908b5305d4
Convert line breaks.
2009-06-17 11:26:32 +02:00
Yehuda Katz + Carl Lerche
614374b3e5
Require missing file in AS
2009-06-15 11:31:52 -07:00
Yehuda Katz + Carl Lerche
64ae5b56ff
Fix failing tests in new callbacks
2009-06-15 11:26:47 -07:00
Xavier Noria
b56169c262
moves reopening of core classes to add generic stuff from Action Pack to AS/core_ext and adds tests
...
[#2798 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-06-13 15:01:14 -07:00
Luca Guidi
9eeb5fed2f
Bytes calculation speed up
...
[#2800 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-06-13 14:03:45 -07:00
Xavier Noria
d32965399c
uses Object#metaclass and Object#class_eval in a few spots
...
[#2797 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-06-12 16:14:06 -07:00
Yehuda Katz + Carl Lerche
4fc0778123
Simplify helper use of ActiveSupport::Dependencies, and use super better for in #helpers
2009-06-10 12:15:30 -07:00
Brian Lopez
69bc2043f9
enable *real* IO parsing for the libxml, nokogiri and rexml backends [ #2659 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2009-06-09 09:01:50 -05:00
Yehuda Katz
114e25e735
Further cleanup of callbacks
2009-06-09 19:47:53 +12:00
Yehuda Katz
8cae3cd0cf
More pruning of NewCallbacks
2009-06-09 19:47:53 +12:00
Jeremy Kemper
e1f679a020
Simplify json decoder backend lazy load
2009-06-08 19:37:51 -07:00
Jeremy Kemper
99cf77be27
Add #element and #collection to ModelName
2009-06-08 19:37:50 -07:00
Jeremy Kemper
30a3b6b4fc
Ruby 1.9: fix json encoding
2009-06-08 15:16:47 -07:00
Jeremy Kemper
00ee990443
JSON: split encoding and coercion
2009-06-08 13:21:30 -07:00
Jeremy Kemper
5e1b46d4c2
Don't rely on Rails.logger
2009-06-08 01:40:14 -07:00
Geoff Buesing
7fe8b630ce
Add notes to TZInfo bundling task
2009-06-07 22:09:21 -05:00
Geoff Buesing
71b1a4b39d
Kathmandu TimeZone: reference Asia/Kathmandu zone directly instead of through linked timezone
2009-06-07 21:43:44 -05:00
Geoff Buesing
184986067a
Load correct version of TZInfo
2009-06-07 21:36:09 -05:00
Jason Frey (Fryguy)
1d9346428b
String #to_time and #to_datetime: handle fractional seconds [ #864 state:resolved]
2009-06-07 20:16:08 -05:00
Geoff Buesing
04eb2b72b4
Update bundled TZInfo to v0.3.13
2009-06-07 20:00:25 -05:00
Jeremy Kemper
ccf70b9570
Pull in time extensions also
2009-06-05 18:27:27 -07:00
Yehuda Katz
d6e4113c83
YAGNI Method references. Deprecated
2009-06-02 22:06:21 -07:00
Yehuda Katz
1126a85aed
Further cleaning up new callbacks
2009-06-02 21:41:31 -07:00
Yehuda Katz
971e2438d9
Simplify callbacks to use less metaprogramming
2009-06-02 19:00:59 -07:00
Yehuda Katz + Carl Lerche
196f780e30
Get all the callback tests to work on new base
2009-06-01 15:40:40 -07:00
Pratik Naik
63992e8f3a
Support Object#filter method for before/after filters
2009-05-30 15:14:23 +01:00
Joshua Peek
669fd84910
AS::Concern redefines "include" to lazy include modules as dependencies
2009-05-29 17:03:23 -05:00
Joshua Peek
c7c35be8fe
AS::Concern includes InstanceMethods module if it exists
2009-05-29 16:28:54 -05:00
Joshua Peek
4e50a35fa2
Break up DependencyModule's dual function of providing a "depend_on" DSL and "included" block DSL into separate modules. But, unify both approaches under AS::Concern.
2009-05-28 11:35:36 -05:00
Yehuda Katz + Carl Lerche
f2f58f5355
Fix failing ActionCacheFilter tests due to around filter changes.
2009-05-27 17:31:48 -07:00
Yehuda Katz + Carl Lerche
1e2628431a
Added support to new callbacks for around filter object that respond to :before & :after used in before|after callbacks
2009-05-27 16:50:40 -07:00
Yehuda Katz + Carl Lerche
2b166d306c
Added support to new callbacks for around filter object that respond to :before & :after
2009-05-27 16:49:23 -07:00
Carl Lerche
a5688fa907
Add the ability to prepend filters to new callbacks
2009-05-27 16:15:53 -07:00
Joshua Peek
6ef329d325
Ensure Memcache local cache returns duplicated values [ #2302 state:resolved]
2009-05-27 14:54:58 -05:00
Pratik Naik
2f59066470
Support Method callbacks
2009-05-26 13:09:33 +02:00
Pratik Naik
10085114ce
Make Filter#filter work with around filters
2009-05-25 18:09:12 +02:00
Jeremy Kemper
e9a7545123
Avoid uninitialized instance variable warning
2009-05-20 18:12:45 -07:00
Jeremy Kemper
428829fc38
Single-require forward compatibility with new Ruby features like Object#tap, Enumerable#group_by, and Process.daemon. Code with the latest but run anywhere.
2009-05-20 18:12:45 -07:00
Jeremy Kemper
886aa2f0e1
Extract autoloads
2009-05-20 18:12:45 -07:00
Jeremy Kemper
5f222c524e
Remove 'core' fluff. Hookable ActiveSupport.load_all!
2009-05-20 18:12:44 -07:00
Jeremy Kemper
3694227f24
Break out Symbol#to_proc as a future-ruby extension
2009-05-20 18:12:44 -07:00
Jeremy Kemper
6839883854
Break up misc Object extensions
2009-05-20 18:12:44 -07:00
Jeremy Kemper
429a00f225
Remove bad add
2009-05-20 18:12:44 -07:00
Pratik Naik
5a03645762
Allow Module#depends_on to accept multiple modules
2009-05-21 03:04:17 +02:00
Yehuda Katz + Carl Lerche
c4a6109286
Got controller/mime_responds_test.rb running on the new base
2009-05-20 16:54:21 -07:00
Yehuda Katz + Carl Lerche
67247ca8ee
Corrected new callbacks semantics with regards to using objects for around filters.
2009-05-19 18:11:44 -07:00
Bryan Helmkamp
36058f4504
Use duck typing to also allow MemCache-like object when initializing a MemCacheStore
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-05-19 16:58:04 -07:00
Bryan Helmkamp
e2ed1a1ca4
Allow MemCacheStore to be initialized with a MemCache object instead of addresses and options
2009-05-19 10:54:56 -07:00
Jeremy Kemper
41e9414b60
Include acts_as_string?
2009-05-18 15:01:13 -07:00
Joe Van Dyk
29550cc91f
Add ability to get multiple memcached keys at the same time (via MemCacheStore#read_multi).
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-05-18 13:43:56 -07:00
rick
e89241c92f
load the JSON Backend lazily. If the JSON gem is already loaded, use the JSONGem backend by default.
2009-05-17 19:18:00 -07:00
Brian Lopez
53dda29f8b
Add support for parsing XML and JSON from an IO as well as a string [ #2659 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2009-05-17 10:37:52 -05:00
Jeremy Kemper
5dd29c466c
Cherry-picking Active Support extensions
2009-05-14 02:01:08 -07:00
Jeremy Kemper
e8550ee032
Cherry-pick core extensions
2009-05-13 12:00:15 -07:00
Yehuda Katz + Carl Lerche
00a9d4b91c
Merge branch 'master' into wip_abstract_controller
...
Conflicts:
actionpack/lib/action_controller/abstract/callbacks.rb
actionpack/lib/action_controller/abstract/renderer.rb
actionpack/lib/action_controller/base/base.rb
actionpack/lib/action_controller/dispatch/dispatcher.rb
actionpack/lib/action_controller/routing/route_set.rb
actionpack/lib/action_controller/testing/process.rb
actionpack/test/abstract_controller/layouts_test.rb
actionpack/test/controller/filters_test.rb
actionpack/test/controller/helper_test.rb
actionpack/test/controller/render_test.rb
actionpack/test/new_base/test_helper.rb
2009-05-11 17:07:05 -07:00
Yehuda Katz + Carl Lerche
c1d120a71e
Don't run the action if callbacks are halted.
...
In AbstractController, this means that response_body is not empty
2009-05-11 11:48:38 -07:00
Douglas F Shearer
e1854e0b19
ActiveSupport::OrderedHash[1,2,3,4] creates an OrderedHash instead of a Hash.
...
[#2615 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-05-11 11:45:57 -07:00
Jeremy Kemper
d45d0a1864
Merge branch 'master' of git@github.com:rails/rails
2009-05-11 11:43:30 -07:00
Alexander Dymo
2e7409f035
Change spelling of Kyev timezone to Kyiv [ #2613 state:resolved]
2009-05-10 11:59:03 -05:00
Ken Collins
9e0cfdb7f9
ActiveSupport::OrderedHash#to_a method returns an ordered set of arrays. Matches ruby1.9's Hash#to_a.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#2629 state:committed]
2009-05-10 13:04:46 +12:00
Jeremy Kemper
4817bf94d1
Check for date/time methods that moved upstream in 1.9
2009-05-07 18:39:03 -07:00
Joshua Peek
af40fa6d03
Prefer "included" language over "setup"
2009-05-07 10:38:57 -05:00
Joshua Peek
2854535b02
Make module dependency DSL opt in
2009-05-07 10:29:22 -05:00
Joshua Peek
783deae99a
Add test coverage to module setup extensions
2009-05-07 10:03:39 -05:00
codebrulee
eb201e64c0
Fixed Hash#from_xml with keys that are all caps.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
2009-05-04 10:01:01 -07:00
Yehuda Katz + Carl Lerche
059afb3a3a
Removed a stray method_missing in the new callbacks system
2009-05-01 17:31:01 -07:00
Yehuda Katz + Carl Lerche
34509777fd
Makes new callbacks support keys with special characters
2009-05-01 17:31:01 -07:00
Jeremy Kemper
79420e71e0
Work around Float faux precision
2009-04-30 01:33:07 -07:00
Jeremy Kemper
091965c0fc
Prefer behavior check to RUBY_VERSION to catch 1.8 backports
2009-04-29 23:12:34 -07:00
Yehuda Katz + Carl Lerche
cecafc52ee
Refactor ActionView::Template
...
ActionView::Template is now completely independent from template
storage, which allows different back ends such as the database.
ActionView::Template's only responsibility is to take in the
template source (passed in from ActionView::Path), compile it,
and render it.
2009-04-27 11:49:11 -07:00
Jeremy Kemper
f58c322e7e
Use __send__ for BasicObject friendliness
2009-04-26 20:05:17 -07:00
Jeremy Kemper
ee46ffedb8
Now that we have a separate internal rails_to_json, use a separate circular reference stack instead of sticking it in the options hash
2009-04-26 20:04:47 -07:00
Jeremy Kemper
8aaed3d456
Convert encoding before escaping
2009-04-26 16:21:57 -07:00
Stephen Bannasch
1d71a34afa
add JRuby-JDOM backend for XmlMini
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-04-26 16:13:55 -07:00
Jeremy Kemper
ea712364e2
Don't undefine object_id
2009-04-26 15:56:08 -07:00
Jeremy Kemper
3bd32754e2
Privatize rails_to_json
2009-04-26 15:54:28 -07:00
Jeremy Kemper
4a8d2ef0a5
Extract json string escaping
2009-04-26 15:53:59 -07:00
Jeremy Kemper
8d64085138
Only Object to_json alias is needed. Prefer nil options.
2009-04-26 15:18:33 -07:00
Jeremy Kemper
da3a80dd4f
Track object ids so the objects needn't respond to ==
2009-04-26 15:04:02 -07:00
rick
3c4c6bd0df
* Add pluggable JSON backends with support for the JSON gem. [rick]
...
Example: ActiveSupport::JSON.backend = "JSONGem"
All internal Rails JSON encoding is now handled by ActiveSupport::JSON.encode(). Use of #to_json is not recommended, as it may clash with other libraries that overwrite it. However, you can recover Rails specific functionality
if you really want to use #to_json.
gem 'json'
ActiveSupport::JSON.backend = "JSONGem"
class ActiveRecord::Base
alias to_json rails_to_json
end
2009-04-23 00:08:40 -07:00
Jeremy Kemper
f28bd9557c
Fix dependencies revealed by testing in isolation
2009-04-22 18:54:13 -07:00
Jeremy Kemper
5c4ba6e3fc
new_callbacks core extensions
2009-04-22 17:17:31 -07:00
Jeremy Kemper
b2d6fdae35
Fix tests on 1.9
2009-04-22 17:07:04 -07:00
Jeremy Kemper
7f6779c1d5
Merge branch 'master' into cherry
...
Conflicts:
activesupport/lib/active_support.rb
2009-04-22 16:53:58 -07:00
Jeremy Kemper
6fee981fa4
Opt in to JSON
2009-04-22 16:48:58 -07:00
Jeremy Kemper
f5d720fb96
Opt in to Dependencies
2009-04-22 16:42:14 -07:00
Jeremy Kemper
ab321268f8
No more free lunch
2009-04-22 16:10:49 -07:00
Jeremy Kemper
42a06d2d62
stdlib autoloads were hanging on 1.9.1
2009-04-22 09:10:48 -07:00
Jeremy Kemper
a27192f49a
Divert CoreExtensions mention in docs
2009-04-22 00:47:25 -07:00
Jeremy Kemper
b70239b0cf
Convert string extension modules to class reopens
2009-04-22 00:45:39 -07:00
Jeremy Kemper
35afad620b
ActiveSupport.core_ext bridge util no longer used
2009-04-22 00:34:24 -07:00
Jeremy Kemper
e6eb941d1b
Switch last module core extension to class reopen
2009-04-22 00:33:00 -07:00
Jeremy Kemper
685a53a360
Merge branch 'master' into cherry
...
Conflicts:
activesupport/CHANGELOG
activesupport/lib/active_support/core_ext/class/delegating_attributes.rb
activesupport/lib/active_support/core_ext/hash/conversions.rb
activesupport/lib/active_support/core_ext/module/attribute_accessors.rb
activesupport/lib/active_support/core_ext/string/multibyte.rb
activesupport/lib/active_support/core_ext/time/calculations.rb
activesupport/lib/active_support/deprecation.rb
2009-04-20 18:31:40 -07:00
Jeremy Kemper
db05c73fb6
Move AS::Duration autoload to core/time/autoload
2009-04-20 18:14:39 -07:00
Jeremy Kemper
164a94d0bc
Clearer String#first and #last edge cases. Fix that 'foo'.first(0) == 'foo' instead of ''
2009-04-20 00:40:15 -07:00
Jeremy Kemper
5d84c732ee
Treating strings as enumerable is deprecated
2009-04-20 00:32:14 -07:00
Jeremy Kemper
4f63e84843
Autoload I18n simple backend
2009-04-17 22:24:36 -07:00
Jeremy Kemper
f40eb52566
Autoload YAML and StringScanner for JSON decoding
2009-04-17 22:24:08 -07:00
Jeremy Kemper
2c5c2717cb
Autoload StringScanner for pre-1.9 String#each_char
2009-04-17 21:58:18 -07:00
Jeremy Kemper
595e03336f
Remove rarely-used DRb cache store
2009-04-17 21:53:17 -07:00
Jeremy Kemper
bd84b82018
Eliminate Pathname extensions
2009-04-17 21:49:57 -07:00
Jeremy Kemper
727e9dc18a
Dice up ActiveSupport::Deprecation
2009-04-17 21:29:30 -07:00
Jeremy Kemper
3202671dc9
Fix core/all require of adjacent core features
2009-04-17 21:20:57 -07:00
Jeremy Kemper
151348824e
Fix core/time require of DateTime core extensions
2009-04-17 21:17:55 -07:00
Jeremy Kemper
60896ca6f4
Clearer String#first and #last edge cases. Fix that foo.first(0) == instead of foo.
2009-04-17 13:44:59 -05:00
Carl Lerche & Yehuda Katz
647b83d50c
Resurrecting 1.9 compatibility.
2009-04-13 16:56:04 -07:00
Carl Lerche & Yehuda Katz
906aebceed
Bring abstract_controller up to date with rails/master
...
Resolved all the conflicts since 2.3.0 -> HEAD. Following is a list
of commits that could not be applied cleanly or are obviated with the
abstract_controller refactor. They all need to be revisited to ensure
that fixes made in 2.3 do not reappear in 3.0:
2259ecf368e6a6715966f69216e3ee86bf1a82a7
AR not available
* This will be reimplemented with ActionORM or equivalent
06182ea02e92afad579998aa80144588e8865ac3
implicitly rendering a js response should not use the default layout
[#1844 state:resolved]
* This will be handled generically
893e9eb99504705419ad6edac14d00e71cef5f12
Improve view rendering performance in development mode and reinstate
template recompiling in production [#1909 state:resolved]
* We will need to reimplement rails-dev-boost on top of the refactor;
the changes here are very implementation specific and cannot be
cleanly applied. The following commits are implicated:
199e750d46c04970b5e7684998d09405648ecbd4
3942cb406e1d5db0ac00e03153809cc8dc4cc4db
f8ea9f85d4f1e3e6f3b5d895bef6b013aa4b0690
e3b166aab37ddc2fbab030b146eb61713b91bf55
ae9f258e03c9fd5088da12c1c6cd216cc89a01f7
44423126c6f6133a1d9cf1d0832b527e8711d40f
0cb020b4d6d838025859bd60fb8151c8e21b8e84
workaround for picking layouts based on wrong view_paths
[#1974 state:resolved]
* The specifics of this commit no longer apply. Since it is a two-line
commit, we will reimplement this change.
8c5cc66a831aadb159f3daaffa4208064c30af0e
make action_controller/layouts pick templates from the current instance's
view_paths instead of the class view_paths [#1974 state:resolved]
* This does not apply at all. It should be trivial to apply the feature
to the reimplemented ActionController::Base.
87e8b162463f13bd50d27398f020769460a770e3
fix HTML fallback for explicit templates [#2052 state:resolved]
* There were a number of patches related to this that simply compounded
each other. Basically none of them apply cleanly, and the underlying
issue needs to be revisited. After discussing the underlying problem
with Koz, we will defer these fixes for further discussion.
2009-04-13 15:18:45 -07:00
Carl Lerche & Yehuda Katz
2036d3ba75
Revert rspec-runner change. TODO: Add back support for the rspec T::U runner.
2009-04-09 12:33:39 -07:00
Yehuda Katz and Carl Lerche
1aadafda8d
Updated old AC::Base for small changes to AV
2009-04-08 17:33:41 -07:00
Jeremy Kemper
9cc8a75d84
Insert in sorted order to avoid TimeZone sort
2009-04-07 21:03:40 -07:00
Jeremy Kemper
f093088433
autoload Pathname
2009-04-07 20:52:57 -07:00
Jeremy Kemper
4a5f89fa64
Unneeded require
2009-04-07 20:18:09 -07:00
Yehuda Katz and Carl Lerche
95c9718118
Layouts work in AbstractController. Add support for the rspec runner for T::U
2009-04-07 15:54:02 -07:00
Yehuda Katz and Carl Lerche
c1aa5b0e14
Add depends_on, use, and setup to abstract up ideas about module inheritance.
2009-04-07 14:57:18 -07:00
Yehuda Katz and Carl Lerche
4d3cd9b43f
Changes necessary to run the T::U tests with the rspec runner
2009-04-06 12:35:24 -07:00
Geoff Buesing
660fc93942
Test cleanup
2009-04-05 10:19:03 -05:00
Geoff Buesing
7685ea20b4
Hash::XML_TYPE_NAMES: no longer a need for a TimeWithZone entry; this class will now match "Time"
2009-04-05 10:15:54 -05:00
Geoff Buesing
c00f2d25de
TimeWithZone.name returns 'Time', to further thwart type checking
2009-04-05 10:08:54 -05:00
Joshua Peek
0e9efae474
Nicer name for anonymous local cache middleware class
2009-04-02 12:05:21 -05:00
Jeremy Kemper
d848b7817f
Encapsulate date/time core extensions and constant autoloads in active_support/core/time
2009-03-31 10:03:35 -07:00
Geoff Buesing
ea8077c642
Enhance Time #since and #ago DST tests.
2009-03-29 16:43:26 -05:00
Michael Curtis
5a8b481f71
Time.local instances: Adding 24.hours across the DST boundary adds 24 hours instead of one day [ #2066 state:resolved]
2009-03-29 16:15:44 -05:00
Jeremy Kemper
48068bc1a4
Feature detection for Range#step extension
2009-03-29 02:43:13 -07:00
Jeremy Kemper
da8ade36b3
Convert Range step and include extension modules to class reopen
2009-03-29 02:31:08 -07:00
Jeremy Kemper
fe34d10f0c
JRuby doesn't have UnboundMethod#name
2009-03-29 00:24:18 -07:00
Jeremy Kemper
d8bdc4ed92
Explicit test dependencies
2009-03-29 00:12:17 -07:00
Jeremy Kemper
b90f7757ce
Explicit BigDecimal extension dependency
2009-03-29 00:11:20 -07:00
Jeremy Kemper
36e934a5ce
Fix require
2009-03-29 00:10:32 -07:00
Jeremy Kemper
2e4db78e6f
Explicit test dependencies
2009-03-29 00:08:35 -07:00
Jeremy Kemper
db214a1b5a
Explicit File#atomic_write dependency
2009-03-29 00:08:22 -07:00
Jeremy Kemper
7bcfff4457
Explicit test dependencies
2009-03-28 23:56:14 -07:00
Jeremy Kemper
e0f56fc96d
Distinguish missing memcache from missing memcache server
2009-03-28 23:55:43 -07:00
Jeremy Kemper
96af8b69a4
Avoid need for Enumerable#sum extension
2009-03-28 23:55:18 -07:00
Jeremy Kemper
fa5d5e0d16
Explicit dependency on Duration, numeric times, and date/time to_s extensions
2009-03-28 23:54:46 -07:00
Jeremy Kemper
148da357f0
Explicit dependency on Proc#bind extension
2009-03-28 23:54:00 -07:00
Jeremy Kemper
7269842080
Explicit dependency on OrderedHash
2009-03-28 23:53:04 -07:00
Jeremy Kemper
6f08440538
Explicit dependency on Hash#deep_merge extension
2009-03-28 23:52:46 -07:00
Jeremy Kemper
cb5b2ca5c1
Explicit dependency on Object#instance_values extension
2009-03-28 23:52:15 -07:00
Jeremy Kemper
b4af87317b
Explicit dependency on Array#wrap extension
2009-03-28 23:51:37 -07:00
Jeremy Kemper
d41387fde7
Explicit dependency on String#start_with? extension
2009-03-28 23:51:20 -07:00
Jeremy Kemper
4d46455244
Explicit dependency on multibyte String extension
2009-03-28 23:50:50 -07:00
Jeremy Kemper
e70a9b8cd9
Explicit dependency on Module extensions
2009-03-28 23:50:31 -07:00
Jeremy Kemper
9231e32a07
Convert Time conversions extension module to class reopen
2009-03-28 23:50:06 -07:00
Jeremy Kemper
f8bc0bcff1
Explicit dependency on Date calculations extensions
2009-03-28 23:49:47 -07:00
Jeremy Kemper
83a89b8e85
Convert String conversions, filters, starts/ends_with, and multibyte extension modules to class reopen
2009-03-28 23:49:05 -07:00
Jeremy Kemper
fce68161a4
Convert Range conversions extension module to class reopen
2009-03-28 23:48:27 -07:00
Jeremy Kemper
5d5cde4b02
Convert Numeric bytes and time extension modules to class reopen
2009-03-28 23:48:02 -07:00
Jeremy Kemper
dc0c91656f
Convert Module aliasing and introspection extension modules to class reopen
2009-03-28 23:47:42 -07:00
Jeremy Kemper
a1a040d3c8
Convert Integer time extension module to class reopen
2009-03-28 23:47:21 -07:00
Jeremy Kemper
9130c3147a
Convert Hash conversions extension module to class reopen
2009-03-28 23:46:54 -07:00
Jeremy Kemper
dad8dabd31
Convert DateTime extensions to class reopens
2009-03-28 23:46:23 -07:00
Jeremy Kemper
092b5d125c
Convert Date calculations and conversions extension modules to class reopens
2009-03-28 23:45:34 -07:00
Jeremy Kemper
609c1988d2
Tease out Object#acts_like? behaviors
2009-03-28 23:43:26 -07:00
Jeremy Kemper
389b081e37
Unneeded util require
2009-03-28 23:38:21 -07:00
Jeremy Kemper
699d2146fc
Explicit class attribute accessor, benchmark, and NameError extension dependencies
2009-03-28 23:37:56 -07:00
Jeremy Kemper
1321b37212
Explict class attribute accessor dependency
2009-03-28 23:37:32 -07:00
Jeremy Kemper
47c7177ef5
Explicit Time/DateTime dependencies
2009-03-26 19:10:37 -07:00
Jeremy Kemper
4b921a5bdf
Hack in env variable setting for Dependencies.mechanism
2009-03-26 19:10:13 -07:00
Jeremy Kemper
f3f5f40e44
Narrow dependencies
2009-03-26 19:08:40 -07:00
Jeremy Kemper
cf95f75695
Explicit NameError dependency
2009-03-26 19:08:13 -07:00
Jeremy Kemper
1c5a6944d3
Convert Time extension modules to class reopens
2009-03-26 19:07:44 -07:00
Jeremy Kemper
7985298948
Convert DateTime extension modules to class reopens
2009-03-26 19:03:37 -07:00
Jeremy Kemper
34929fed22
Fix timezone test
2009-03-26 19:02:11 -07:00
Jeremy Kemper
2a1ae9e8a1
Extract time fixes into separate extensions
2009-03-24 23:03:36 -07:00
Jeremy Kemper
af4c2375a2
Remove core ext dependency from test
2009-03-24 23:02:23 -07:00
Jeremy Kemper
9ea840f568
Explicitly require core extension under test
2009-03-24 23:01:52 -07:00
Jeremy Kemper
cecac31170
Explicit dependency on Inflector and Object#blank?
2009-03-24 19:47:11 -07:00
Jeremy Kemper
f8dbd416b6
Explicit dependency on class_inheritable_accessor
2009-03-24 19:46:42 -07:00
Jeremy Kemper
712baccef5
Remove unnecessary use of Kernel#silence_warnings
2009-03-24 19:46:07 -07:00
Jeremy Kemper
a27ee86c38
Explicit dependency on Array#extract_options!
2009-03-24 19:45:35 -07:00
Jeremy Kemper
3f7130aed8
Document NameError extensions
2009-03-24 17:04:27 -07:00
Jeremy Kemper
614fccd8c4
Don't require out of load path
2009-03-24 17:03:47 -07:00
Jeremy Kemper
1e72610e76
Condense to Kernel#with_warnings
2009-03-24 17:03:27 -07:00
Jeremy Kemper
fe7d3dbb02
Indentation, superfluous self
2009-03-24 17:02:58 -07:00
Jeremy Kemper
e094940c2b
Move Numeric#to_utc_offset_s to TimeZone.seconds_to_utc_offset
2009-03-23 22:01:51 -07:00
Jeremy Kemper
0bd668fd88
Namespace HashWithIndifferentAccess
2009-03-21 18:45:09 -07:00
Jeremy Kemper
2133044fec
Hide XmlMini backend details from rdoc
2009-03-21 18:44:00 -07:00
Jeremy Kemper
bca510cec2
try is an object extension
2009-03-21 04:39:54 -07:00
Jeremy Kemper
baf73e19a6
Convert Range extension module to a class reopen
2009-03-21 04:39:53 -07:00
Jeremy Kemper
b8d59b7f84
Convert Numeric extension module to a class reopen
2009-03-21 04:39:53 -07:00
Jeremy Kemper
d8cb94c75c
Fix dangling Inflector reference
2009-03-21 04:39:53 -07:00
Jeremy Kemper
21de164f8a
Convert LoadError extension modules to class reopens
2009-03-21 04:39:53 -07:00
Jeremy Kemper
54cf0fc476
Convert integer extension modules to class reopens
2009-03-21 04:39:53 -07:00
Jeremy Kemper
b4a1718832
Convert hash extension modules to class reopens
2009-03-21 04:39:53 -07:00
Jeremy Kemper
bc4e2aa931
Explicitly require set
2009-03-21 04:35:16 -07:00
Jeremy Kemper
8d1d813b66
Simplify Enumerable#each_with_object
2009-03-21 04:35:16 -07:00
Jeremy Kemper
051bab5bd2
Explicitly require pathname core extension
2009-03-21 04:35:16 -07:00
Jeremy Kemper
c43dec888a
Convert date extension modules to class reopens
2009-03-21 04:35:16 -07:00
Jeremy Kemper
bd28c7b1b8
blank? and duplicable? are Object extensions
2009-03-21 04:35:16 -07:00
Jeremy Kemper
005b40194e
Convert bigdecimal extension modules to class reopens
2009-03-21 04:35:16 -07:00
Jeremy Kemper
83fd1ae122
Convert array extension modules to class reopens
2009-03-21 04:35:16 -07:00
Jeremy Kemper
d5e87e3be0
Simple singleton. We don't need the full monty.
2009-03-21 04:35:16 -07:00
Jeremy Kemper
a970e32c91
Only require builder at startup if we need to monkey with its String#to_xs demands
2009-03-21 04:35:16 -07:00
Jeremy Kemper
dd15a3fee0
Prefer a less intrusive BlankSlate-alike that doesn't hook Object# and Kernel#method_added to remove future methods
2009-03-21 04:35:15 -07:00
Jeremy Kemper
a4e3aac40a
* Introduce ActiveSupport.core_ext Integer, %w(conversions time etc)
...
* Convert some extension modules to simply reopening the class
* Remove deprecated Float time extensions
* Fold Base64 extension into ActiveSupport::Base64 since stdlib Base64 is gone
2009-03-21 04:35:15 -07:00
Yehuda Katz
fb626ee390
Rework NewCallbacks to not require method_missing
2009-03-17 18:05:08 -07:00
Pratik Naik
18eb80ccc7
Merge docrails
2009-03-16 11:28:36 +00:00
David Heinemeier Hansson
73fc42cc0b
Prepare for final 2.3 release
2009-03-15 22:06:50 -05:00
Yehuda Katz
67f9b39bd0
Use extlib accessor for new callbacks
2009-03-12 13:18:31 -06:00
Jonathan del Strother
9230678104
Use xmlschema when serializing TimeWithZones to xml [ #2223 state:resolved]
...
When using Hash#to_xml, any TimeWithZone objects now use xmlschema (iso8601), rather than a simple TimeWithZone#to_s.
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2009-03-12 18:35:49 +00:00
Bradford Folkens
aa57e66fec
Ensure HWIA#reverse_merge! retrurns HWIA [ #421 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2009-03-12 15:03:01 +00:00
Ubiratan Pires Alberton
7b382cb9e5
Reverted affe50105f7027a44eb6e9cfb56f5b3fc070b19b and added more JSON decoding tests.
...
Works on Ruby 1.8 and 1.9
[#1100 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-03-11 14:36:14 -07:00
Aaron Patterson
b9e021df97
adding more nokogiri tests and making the main rails tests pass
...
[#2190 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-03-10 22:11:15 -07:00
Henrik N
ea0e41d8fa
Make Inflector#parameterize correctly squeeze multi-character separators [ #1489 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2009-03-10 21:36:46 +00:00
Ken Collins
4b4e7caffa
The latest trunk of Mocha > 0.9.5 which addresses issue with MiniUnit compatibility uses namespaced integration classes.
...
[#2060 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-03-10 14:07:40 -07:00
Jeremy Kemper
37cf224fdb
Make it easier to swap XmlMini backends. Require Nokogiri >= 1.1.1 for XmlMini backend tests.
2009-03-10 12:08:42 -07:00
Aaron Patterson
694998ee4f
Nokogiri backend for XmlMini
...
[#2190 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-03-10 11:56:19 -07:00
Jeremy Kemper
d4091d3bc7
Properly set up libxml includes. Don't include LibXML in toplevel.
...
[#2084 state:resolved]
2009-03-10 11:37:23 -07:00
Pratik Naik
affe50105f
Remove untested part from 9b9b2937ce3bef3bca9d22821e76c40cc74fa689
2009-03-10 18:16:10 +00:00
Tim Pope
9b9b2937ce
Properly decode \u escape sequences in JSON [ #1100 state:resolved] [Tim Pope, Philip Hallstrom]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2009-03-10 17:05:17 +00:00
Jeremy Kemper
4458edc882
Use the REXML parser by default. XmlMini.backend = 'LibXML' to use libxml-ruby.
2009-03-09 13:42:42 -07:00
Jeremy Kemper
87d82ef76e
Require libxml-ruby 0.9.4 or 0.9.7 pending a segfault bugfix for 1.0.
...
Delegate parsing to a switchable backend.
2009-03-09 13:00:57 -07:00
Jeremy Kemper
146511e018
Revert "Revert "XmlMini supports different backend parsers, starting with libxml""
...
Will change to require a known-working libxml-ruby.
This reverts commit a995a738ca10f9bef023689df70d26aad8931b9a.
2009-03-09 12:39:20 -07:00
David Heinemeier Hansson
a995a738ca
Revert "XmlMini supports different backend parsers, starting with libxml"
...
Spews a ton undefined method `default_keep_blanks=' for XML:Module errors.
This reverts commit 822c41d69d9228c9912d29ac45155d3a16bb5c50.
2009-03-09 19:00:21 +01:00
Bart ten Brinke
822c41d69d
XmlMini supports different backend parsers, starting with libxml
...
[#2084 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-03-08 13:41:25 -07:00
Jeremy Kemper
1c36172c13
Ruby 1.9 compat: rename deprecated assert_raises to assert_raise.
...
[#1617 state:resolved]
2009-03-08 13:11:58 -07:00
George Ogata
7438788481
Make Chars#slice! behave more like String#slice! [ #1243 state:resolved]
...
- Chars#slice! now returns the slice instead of itself
- Chars#slice! now removes the slice from itself
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2009-03-07 22:41:11 +00:00
Sam Granieri
20d3892f46
Allow String#parameterize to accept a separator [ #2157 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2009-03-07 10:54:27 +00:00
Niels Ganser
c67d25e3c4
Ensure ActiveSupport::Memoizable respects private methods. [ #2138 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2009-03-06 14:41:13 +00:00
David Heinemeier Hansson
dfef3d8b14
Release RC2 today
2009-03-05 11:00:04 +01:00
Jeremy Kemper
9d13b9eed8
Fix OrderedHash#inspect recursion
2009-03-04 16:21:44 -08:00
Jeremy Kemper
cb53452438
Fix OrderedHash#to_hash to return self instead of a new hash with self as default value
2009-03-03 19:10:33 -08:00
Jeremy Kemper
a242abbad8
Skip backtrace filters if BACKTRACE environment variable is set
2009-03-03 19:10:12 -08:00
Yehuda Katz
6001cea5d7
Helpers with an initial test
2009-03-03 16:42:20 -08:00
David Heinemeier Hansson
7058c1366e
So it didnt happen yesterday, but very soon! Just need the final details ironed out
2009-02-28 10:30:49 +01:00
Yehuda Katz
9510070f78
Fixes multiple conditions
2009-02-27 19:37:09 -08:00
Yehuda Katz
c16c7a8de4
Add support for callbacks
2009-02-27 19:25:45 -08:00
Sven Fuchs
943d64b1c8
Vendorize i18n 0.1.3 gem (fixes issues with incompatible character encodings in Ruby 1.9) (Akira Matsuda) [ #2038 state:committed]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
2009-02-27 17:15:15 +01:00
David Heinemeier Hansson
77b0994c78
Prep for RC2 later today
2009-02-27 14:46:23 +01:00
David Heinemeier Hansson
6de83562f9
Force all internal calls to Array#to_sentence to use English [ #2010 state:resolved]
2009-02-27 14:22:39 +01:00
Yehuda Katz
b1f078bddf
First, very early, AbstractController code. More to come
2009-02-24 17:25:21 -08:00
Jeremy Kemper
e56b3e4c0b
Update bundled memcache-client from 1.5.0.5 to 1.6.4.99.
...
See http://www.mikeperham.com/2009/02/15/memcache-client-performance/
2009-02-23 19:28:01 -08:00
Guillermo Álvarez
ff1afbd650
Deprecated warnings for :skip_last_command and :connector of to_sentence [ #1847 state:committed]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
2009-02-22 16:11:40 +01:00
Jeremy Kemper
f4391c362d
Update changelog for URI.unescape fix
...
[#2033 state:committed]
2009-02-20 18:41:42 -08:00
Jeremy Kemper
69bbbe9068
Broaden URI.unescape fix to all affected 1.9.x by checking for broken behavior instead of specific patchlevel
2009-02-20 18:38:18 -08:00
Jeremy Kemper
98ddc64782
URI.unescape fix removes the old unescape method
2009-02-20 18:25:02 -08:00
moro
3b3dbd7973
Ruby 1.9.1p0's URI.decode() bug fix
...
backport to fix Ruby 1.9.1p0 bug on [ruby-dev:38005].
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-02-20 18:18:39 -08:00
Bruno Duyé
3668a64170
Make atomic_write() puts the check_file in the cache dir, not in application
...
root [#1962 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2009-02-19 21:01:18 -06:00
Akira Matsuda
7c0e008973
Ruby 1.9 compat: fix JSON decoding to work properly with multibyte values
...
[#1969 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-02-17 11:58:53 -08:00
Levin Alexander
b91d98011c
Remove obsolete silence_warnings wrappers from TZInfo-dependent tests in ActiveSupport [ #1914 state:resolved]
2009-02-14 12:22:39 -06:00
Joshua Sierles
11b4a6d74d
Allow memcache-client versions > 1.5.x to override bundled version
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2009-02-12 13:16:27 -06:00
Jiri Zajpt
7ed2e6c463
Adding inflection of databases (usually we wouldn't amend the current defaults, but this seems to obvious) [ #1942 state:committed]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
2009-02-12 14:31:27 +01:00
Will Bryant
1a2a71333f
Array#wrap should use #to_ary so association collections and named scopes are not re-wrapped
...
[#1935 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-02-10 18:03:33 -08:00
Geoff Buesing
3c6bf82115
TimeWithZone#advance: leverage Hash#values_at and non-block form of #any? for a little less line noise, and a slight speedup (thanks raggi and Roman2K)
2009-02-09 23:12:47 -06:00
Geoff Buesing
16cc69af6f
Changelog update for previous commit
2009-02-09 23:11:21 -06:00
Zachary Zolton
73c91429a1
Time#to_s(:rfc822) uses #formatted_offset instead of unreliable and non-standard %z directive [ #1899 state:resolved]
2009-02-09 22:38:43 -06:00
Geoff Buesing
5120429c31
TimeWithZone#advance: use #any? instead of #detect
2009-02-08 23:40:42 -06:00
Geoff Buesing
887434f75f
TimeWithZone: eliminate unnecessary flatten
2009-02-08 23:32:54 -06:00
Geoff Buesing
5394fcb19a
TimeWithZone: use Array#any? instead of detect, since we don't care about the block return value
2009-02-08 22:19:46 -06:00
Levin Alexander
18d6369344
Make TimeWithZone#to_formatted_s an alias to TimeWithZone#to_s [ #1796 state:resolved]
2009-02-08 11:36:57 -06:00
Jeremy Kemper
24ac1d6bdc
Oops, don't yield per expression
2009-02-06 17:01:34 -08:00
Jeremy Kemper
95dfcc4f3c
Remove dummy Object#try before aliasing it
2009-02-06 11:49:34 -08:00
Jeremy Kemper
468231ee50
Avoid circular require
2009-02-06 11:48:54 -08:00
Jeremy Kemper
5f56d90085
Use Array.wrap, remove unneeded returning block
2009-02-06 10:05:16 -08:00
Jeremy Kemper
676b0c8764
Introduce Array.wrap(foo) to wrap the argument in an array unless it's already an array. Wraps nil as an empty array. Use instead of Array(foo) and foo.to_a since they treat String as Enumerable.
2009-02-06 10:04:43 -08:00
Jeremy Kemper
7564d98929
Include failed difference expression in assert message
2009-02-06 09:55:32 -08:00
Jeremy Kemper
8746f7cac2
Remove dead testing core_ext
2009-02-06 09:54:13 -08:00
Jeremy Kemper
86dcfdc1fb
Work around enumerable string deprecation warnings
2009-02-06 09:18:41 -08:00
Matthias Hennemeyer
86dd2f841d
Tightening the condition for including ActiveSupport::Testing::SetupAndTeardown::ForMiniTest.
...
[#1871 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-02-06 08:59:02 -08:00
Michael Koziarski
4e4f961c11
Handle every error that can come out of the Iconv branch by rescuing and returning nil
...
[#1195 state:committed]
2009-02-06 13:32:47 +13:00
David Heinemeier Hansson
9b4aa9bcd9
Revert "created unit tests and fixed bug that failed tests"
...
This reverts commit be1dbf321aba03c2e9bec423f753308e9bba3ef5.
2009-02-05 21:00:44 +01:00
Thijs de Vries
be1dbf321a
created unit tests and fixed bug that failed tests
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
2009-02-05 20:59:05 +01:00
Jeremy Kemper
bdaf3348de
Ruby 1.9: force ascii encoding for comparison with utf8 regexp
2009-02-03 18:41:06 -08:00
Jeremy Kemper
278186534c
Bump mocha requirement for Ruby 1.9 compat. Remove uses_mocha.
2009-02-03 18:40:22 -08:00
Yehuda Katz
d4a817c066
Make tests pass
2009-02-02 14:01:29 -08:00
Yehuda Katz
ff68430077
Whoops.
2009-02-02 12:03:35 -08:00
Yehuda Katz
9744f687cc
Add support for pending
2009-02-02 11:49:32 -08:00
Yehuda Katz
6faff0223b
Merge commit 'rails/3-0-unstable'
2009-02-02 09:54:27 -08:00
Yehuda Katz
44cdf0c5fe
Some merge cleanup
2009-02-02 09:54:23 -08:00
David Heinemeier Hansson
ed5fa2fe33
Mark CHANGELOGs for release
2009-02-01 22:06:40 +01:00
Pratik Naik
886124e688
Merge docrails
2009-02-01 18:25:03 +00:00
Jeremy Kemper
8da52b13b5
Remove duplicate ConcurrentHash
2009-01-31 14:44:04 -08:00
Luca Guidi
75b2e7e9c9
Make sure XmlMini is being correctly autoloaded by Ruby 1.9.1
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-01-31 10:26:24 -08:00
Yehuda Katz
3030bc90c9
Merge commit 'rails/3-0-unstable'
...
Conflicts:
actionpack/lib/action_controller/base.rb
actionpack/lib/action_dispatch/http/mime_type.rb
actionpack/lib/action_dispatch/http/request.rb
actionpack/lib/action_view/base.rb
actionpack/lib/action_view/paths.rb
actionpack/test/controller/session/cookie_store_test.rb
actionpack/test/dispatch/rack_test.rb
actionpack/test/dispatch/request_test.rb
2009-01-30 11:30:27 -08:00
Yehuda Katz
da10673e32
Sync 'rails/rails/master'
2009-01-30 10:53:19 -08:00
Charles Nutter
ed0e564087
Ensure constant_watch_stack is protected by a mutex, so concurrent requires do not corrupt it.
...
[#1816 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-01-30 08:27:03 -08:00
Joshua Peek
2e69db18ce
Only dup local cache values if duplicable [ #1653 state:resolved]
2009-01-28 21:20:46 -06:00
Joshua Peek
a0f2b1d95d
Reorganize ActionController folder structure
2009-01-27 18:17:39 -06:00
Sven Fuchs
5c062bf100
add #available_locales to I18n and I18n::SimpleBackend, flatten translations load_path when loading translations [ #1714 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2009-01-25 22:51:21 -06:00
Greg Borenstein
f4bf318db0
add an inspect method to OrderedHash to make it clear that it is not a species of Array
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#1782 state:committed]
2009-01-26 16:26:37 +13:00
Yehuda Katz
eb9af20b7c
Begin unifying the interface between ActionController and ActionView
2009-01-22 16:18:10 -06:00
Pratik Naik
39e1ac658e
Merge docrails
2009-01-18 18:10:58 +00:00
Pratik Naik
085991891e
Bump up the year in MIT license files
2009-01-18 05:28:21 +00:00
Josh Susser
78f2c19ae7
Refactor Object#try to use inheritance. [ #1774 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2009-01-18 00:47:38 +00:00
Lourens Naude
b08c968875
Decouple the local cache strategy from MemCacheStore for reuse with other remote stores [ #1653 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2009-01-17 18:05:48 -06:00
Brandon Keepers
452cd74d81
Dup keys in OrderedHash to prevent them from being modified [ #1676 state:resolved]
...
Signed-off-by: Frederick Cheung <frederick.cheung@gmail.com>
2009-01-16 17:23:43 +00:00
Michael Koziarski
0bed5bdb21
Properly quote json keys.
...
According to the RFC and the json.org site all json keys must be strings, and those strings must be quoted with double quotes.
[#1755 state:committed]
2009-01-16 17:40:04 +13:00
Nahum Wild
a53ad5bba3
Added in a local per request cache to MemCacheStore. It acts as a buffer to stop unneccessary requests being sent through to memcache [ #1653 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2009-01-15 21:29:32 -06:00
Yehuda Katz
0932b012fa
Sync 'rails/rails/master'
2009-01-13 13:28:28 -08:00
Pratik Naik
5339f813be
Change Object#try to raise NoMethodError on private methods and always return nil when Object is nil [Pratik Naik, Lawrence Pit]
2009-01-13 03:28:32 +00:00
Yehuda Katz
6fe739ad75
Sync 'rails/rails/master'
2009-01-11 13:02:44 -08:00
Nicholas Dainty
296ca4da17
TimeWithZone#xmlschema accepts optional fraction_digits argument [ #1725 state:resolved]
2009-01-11 13:56:07 -06:00
Yehuda Katz
e8980ad278
Sync 'rails/rails/master'
2009-01-09 18:58:47 -08:00
Pratik Naik
e0fa041fce
Process time should be wall time when benchmarking
2009-01-09 16:46:24 +00:00
Jeremy Kemper
c2d23affad
Object#tap for Ruby < 1.8.7
2009-01-09 00:14:27 -08:00
Pratik Naik
b1530545d2
Fix JSON decoder date-converter regexp [ #1662 state:resolved] [Jonathan del Strother]
2009-01-09 00:14:27 -08:00