Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Switch to on-by-default XSS escaping for rails. | Michael Koziarski | 2009-10-08 | 1 | -0/+86 |
| | | | | | | | | | | | | This consists of: * String#html_safe! a method to mark a string as 'safe' * ActionView::SafeBuffer a string subclass which escapes anything unsafe which is concatenated to it * Calls to String#html_safe! throughout the rails helpers * a 'raw' helper which lets you concatenate trusted HTML from non-safety-aware sources (e.g. presantized strings in the DB) * New ERB implementation based on erubis which uses a SafeBuffer instead of a String Hat tip to Django for the inspiration. | ||||
* | Shush interpolation warnings | Joshua Peek | 2009-09-13 | 1 | -2/+6 |
| | |||||
* | Fix failing AS isolated tests | Joshua Peek | 2009-09-05 | 4 | -3/+14 |
| | |||||
* | Duplicating the options hash in Date#advance to prevent modification of the ↵ | Jay Pignata | 2009-08-31 | 1 | -0/+6 |
| | | | | | | original [#1133 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Eliminate warnings from Regexp multiline extension tests | Jeffrey Hardy | 2009-08-26 | 1 | -3/+3 |
| | | | | | | [#3103 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Correct Regexp#un/optionalize assertions and fix uncovered failures | Jeffrey Hardy | 2009-08-26 | 1 | -6/+6 |
| | | | | | | [#3102 state:incomplete] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Allow delegating to nil, because the method might actually exist on it | Bryan Helmkamp | 2009-08-10 | 1 | -1/+12 |
| | |||||
* | Support deep-merging HashWithIndifferentAccess. | Andrew Moreland | 2009-08-09 | 1 | -0/+12 |
| | | | | | | [#2732 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Improving test coverage for Range#sum [#2489] | José Valim | 2009-08-09 | 1 | -1/+1 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Fix that Hash#to_xml and Array#to_xml shouldn't modify their options hashes ↵ | David Burger | 2009-08-09 | 2 | -0/+14 |
| | | | | | | [#672 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Remove unnecessary &block from Range#sum and add tests for (num..float).sum | Pratik Naik | 2009-08-09 | 1 | -0/+1 |
| | |||||
* | Make enumerable test run stand alone | Pratik Naik | 2009-08-09 | 1 | -0/+1 |
| | |||||
* | Optimize Range#sum only for integers [#2489] | José Valim | 2009-08-09 | 1 | -0/+1 |
| | |||||
* | Setting usec (and nsec for Ruby 1.9) on Time#end_of_* methods [#1255 ↵ | Hugo Peixoto | 2009-08-09 | 2 | -24/+24 |
| | | | | | | status:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Optimize Range#sum to use arithmetic progression when a block is not given ↵ | José Valim | 2009-08-09 | 1 | -0/+2 |
| | | | | | | [#2489]. Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Enumerable#sum now works will all enumerables, even if they don't respond to ↵ | Marc-Andre Lafortune | 2009-08-08 | 1 | -0/+4 |
| | | | | | | | | :size [#2489 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Extract String#bytesize shim | Jeremy Kemper | 2009-08-01 | 1 | -0/+7 |
| | |||||
* | * don't include String#% for Ruby 1.9 | Sven Fuchs | 2009-07-18 | 1 | -5/+8 |
| | | | | | | | | | | * 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> | ||||
* | Ruby 1.9 style String interpolation support for lower ruby versions. Thanks ↵ | Lawrence Pit | 2009-07-07 | 1 | -0/+62 |
| | | | | | | to code from Masao Mutoh's GetText gem. [#2870 state:resolved] Signed-off-by: Yehuda Katz <wycats@yehuda-katzs-macbookpro41.local> | ||||
* | make #inspect if zero length duration return '0 seconds' instead of empty ↵ | Levin Alexander | 2009-07-02 | 1 | -0/+1 |
| | | | | | | string [#2838 state:resolved] Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | ||||
* | Friendlier runtime exception if delegatee is nil | Jeremy Kemper | 2009-06-18 | 1 | -1/+1 |
| | |||||
* | Move model naming into ActiveModel | Joshua Peek | 2009-06-17 | 1 | -28/+0 |
| | |||||
* | moves reopening of core classes to add generic stuff from Action Pack to ↵ | Xavier Noria | 2009-06-13 | 4 | -0/+46 |
| | | | | | | | | AS/core_ext and adds tests [#2798 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Add #element and #collection to ModelName | Jeremy Kemper | 2009-06-08 | 1 | -0/+8 |
| | |||||
* | String #to_time and #to_datetime: handle fractional seconds [#864 ↵ | Jason Frey (Fryguy) | 2009-06-07 | 1 | -0/+3 |
| | | | | state:resolved] | ||||
* | Pull in time extensions also | Jeremy Kemper | 2009-06-05 | 1 | -1/+1 |
| | |||||
* | Remove 'core' fluff. Hookable ActiveSupport.load_all! | Jeremy Kemper | 2009-05-20 | 4 | -4/+4 |
| | |||||
* | Make module dependency DSL opt in | Joshua Peek | 2009-05-07 | 1 | -74/+0 |
| | |||||
* | Add test coverage to module setup extensions | Joshua Peek | 2009-05-07 | 1 | -0/+74 |
| | |||||
* | Fixed Hash#from_xml with keys that are all caps. | codebrulee | 2009-05-04 | 1 | -0/+16 |
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | Work around Float faux precision | Jeremy Kemper | 2009-04-30 | 3 | -15/+15 |
| | |||||
* | * Add pluggable JSON backends with support for the JSON gem. [rick] | rick | 2009-04-23 | 1 | -2/+2 |
| | | | | | | | | | | | | | | 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 | ||||
* | Fix dependencies revealed by testing in isolation | Jeremy Kemper | 2009-04-22 | 21 | -5/+31 |
| | |||||
* | Opt in to Dependencies | Jeremy Kemper | 2009-04-22 | 1 | -0/+1 |
| | |||||
* | Merge branch 'master' into cherry | Jeremy Kemper | 2009-04-20 | 4 | -16/+75 |
|\ | | | | | | | | | | | | | | | | | | | | | 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 | ||||
| * | Clearer String#first and #last edge cases. Fix that foo.first(0) == instead ↵ | Jeremy Kemper | 2009-04-17 | 1 | -0/+2 |
| | | | | | | | | of foo. | ||||
| * | Test cleanup | Geoff Buesing | 2009-04-05 | 1 | -3/+3 |
| | | |||||
| * | TimeWithZone.name returns 'Time', to further thwart type checking | Geoff Buesing | 2009-04-05 | 1 | -0/+4 |
| | | |||||
| * | Enhance Time #since and #ago DST tests. | Geoff Buesing | 2009-03-29 | 1 | -16/+57 |
| | | |||||
| * | Time.local instances: Adding 24.hours across the DST boundary adds 24 hours ↵ | Michael Curtis | 2009-03-29 | 2 | -16/+28 |
| | | | | | | | | instead of one day [#2066 state:resolved] | ||||
* | | Eliminate Pathname extensions | Jeremy Kemper | 2009-04-17 | 1 | -10/+0 |
| | | |||||
* | | Explicit test dependencies | Jeremy Kemper | 2009-03-29 | 1 | -0/+1 |
| | | |||||
* | | Explicit BigDecimal extension dependency | Jeremy Kemper | 2009-03-29 | 1 | -1/+1 |
| | | |||||
* | | Explicit test dependencies | Jeremy Kemper | 2009-03-29 | 5 | -2/+5 |
| | | |||||
* | | Explicit test dependencies | Jeremy Kemper | 2009-03-28 | 14 | -11/+36 |
| | | |||||
* | | Explicitly require core extension under test | Jeremy Kemper | 2009-03-24 | 1 | -0/+1 |
| | | |||||
* | | Move Numeric#to_utc_offset_s to TimeZone.seconds_to_utc_offset | Jeremy Kemper | 2009-03-23 | 1 | -15/+0 |
| | | |||||
* | | Only require builder at startup if we need to monkey with its String#to_xs ↵ | Jeremy Kemper | 2009-03-21 | 1 | -1/+0 |
| | | | | | | | | demands | ||||
* | | * Introduce ActiveSupport.core_ext Integer, %w(conversions time etc) | Jeremy Kemper | 2009-03-21 | 2 | -20/+1 |
|/ | | | | | | * 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 | ||||
* | Use xmlschema when serializing TimeWithZones to xml [#2223 state:resolved] | Jonathan del Strother | 2009-03-12 | 1 | -0/+9 |
| | | | | | | 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> |