Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Change the Hash.to_xml with a lamda example | Justin | 2016-04-19 | 1 | -1/+1 |
| | | | | Update 'foo'.to_xml(lambda { |options, key| options[:builder].b(key) }) to {foo: lambda { |options, key| options[:builder].b(key) }}.to_xml | ||||
* | Fix nodoc to internal class error document some of them | Vipul A M | 2016-01-25 | 1 | -0/+2 |
| | | | | | | | [ci skip] Fixes #20808 [Vipul A M & Julio Lopez] | ||||
* | Added documentation about passing custom disallowed types to Hash#from_xml ↵ | Prathamesh Sonpatki | 2015-06-18 | 1 | -1/+19 |
| | | | | [ci skip] | ||||
* | Revert "remove unnecssary require of `to_param`, as `to_query` is already ↵ | Rafael Mendonça França | 2014-06-11 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | | require `to_param`" Revert "No need to require to_param, it is already required in to_query.rb" This reverts commits ccdd97662e1fb00c23c90d59f65c091904959561 and d697ee14264a90a39cdbe87857656d8b314ac9b7. Reason by @jeremy: These requires are not for implementation dependency. They ensure that requiring array conversions provides to_query, to_param, and other array conversion behaviors. The fact that to_query is implemented in terms of to_param is just a coincidence. If to_query removed its to_param require, then someone requiring array conversions would no longer have to_param available. This change removes these intentional dependencies on to_param in favor of implementation side effects—an undesirable move that's susceptible to regression. | ||||
* | remove unnecssary require of `to_param`, as `to_query` is already require ↵ | Kuldeep Aggarwal | 2014-06-12 | 1 | -1/+0 |
| | | | | `to_param` | ||||
* | Change 'a' to 'an' [ci skip] | Santosh Wadghule | 2014-05-09 | 1 | -1/+1 |
| | |||||
* | Minor grammer, code conventions fix [ci skip] | Zoltan Kiss | 2014-03-15 | 1 | -2/+1 |
| | | | | | Conflicts: activesupport/lib/active_support/core_ext/hash/conversions.rb | ||||
* | [ci skip] Grammar correction | Akshay Vishnoi | 2014-01-14 | 1 | -1/+1 |
| | |||||
* | documentation updated for Hashes [ci skip] | KD | 2013-11-11 | 1 | -3/+6 |
| | |||||
* | Revert "Merge branch 'master' of github.com:rails/docrails" | Vijay Dev | 2013-08-17 | 1 | -0/+1 |
| | | | | | | | This reverts commit 70d6e16fbad75b89dd1798ed697e7732b8606fa3, reversing changes made to ea4db3bc078fb3093ecdddffdf4f2f4ff3e1e8f9. Seems to be a code merge done by mistake. | ||||
* | Minor refactor - Uses Enumerable#to_a instead of iterate and add to an | Pablo Cantero | 2013-07-27 | 1 | -1/+0 |
| | | | | array | ||||
* | CVE-2013-0156: Safe XML params parsing. Doesn't allow symbols or yaml. | Jeremy Kemper | 2013-01-08 | 1 | -4/+23 |
| | |||||
* | Revert "Merge branch 'master-sec'" | Jeremy Kemper | 2013-01-08 | 1 | -23/+4 |
| | | | | | This reverts commit 88cc1688d0cb828c17706b41a8bd27870f2a2beb, reversing changes made to f049016cd348627bf8db0d72382d7580bf802a79. | ||||
* | CVE-2013-0156: Safe XML params parsing. Doesn't allow symbols or yaml. | Jeremy Kemper | 2013-01-08 | 1 | -4/+23 |
| | |||||
* | Refactor Hash.from_xml. | Steve Klabnik + Katrina Owen | 2012-12-21 | 1 | -50/+100 |
| | | | | | | | | | | | | Three basic refactors in this PR: * We extracted the logic into a method object. We now don't define a tone of extraneous methods on Hash, even if they were private. * Extracted blocks of the case statement into methods that do the work. This makes the logic more clear. * Extracted complicated if clauses into their own query methods. They often have two or three terms, this makes it much easier to see what they _do_. We took care not to refactor too much as to not break anything, and put comments where we suspect tests are missing. We think ActiveSupport::XMLMini might be a good candidate to move to a plugin in the future. | ||||
* | Add documentation for Hash.from_xml [ci skip] | HPNeo | 2012-12-01 | 1 | -0/+13 |
| | |||||
* | Match classes without to_s conversions. | Nikita Afanasenko | 2012-11-11 | 1 | -10/+10 |
| | | | | There is no need in `value_under_case.class.to_s` conversion since case already matches classes with `Class === value_under_case`. | ||||
* | Use `tag!` instead of `method_missing` in `to_xml` conversions. | Nikita Afanasenko | 2012-11-04 | 1 | -2/+2 |
| | | | | Since version `3.0.x` `Builder` caches method passed to `method_missing` each time. This commit replaces `method_missing` call with `tag!` call to prevent method redefinition on each `to_xml` call with the same builder. | ||||
* | Hash Syntax changes to 1.9 format | AvnerCohen | 2012-10-20 | 1 | -1/+1 |
| | |||||
* | let (array|hash)/conversions.rb load the extensions in ↵ | Xavier Noria | 2012-10-09 | 1 | -1/+3 |
| | | | | object/to_(param|query).rb | ||||
* | update AS/core_ext docs [ci skip] | Francesco Rodriguez | 2012-09-12 | 1 | -1/+1 |
| | |||||
* | Fix unbalanced braces in Hash#typecast_xml_value internal comment | Alexey Vakhov | 2012-05-25 | 1 | -1/+1 |
| | |||||
* | changed xml type datetime to dateTime, fixes #6328 | Angelo capilleri | 2012-05-23 | 1 | -2/+2 |
| | | | | | | | | | XmlMini define the xml 'datatime', but according to http://www.w3.org/TR/xmlschema-2/#dateTime could be better change this to 'dateTime' with upper case letter 'T. So 'DateTime' and 'Time' are redefined from 'datetime' to 'dateTime' add the changing to the changelog | ||||
* | String quotes and trailing spaces | Alexey Gaziev | 2012-04-29 | 1 | -18/+18 |
| | |||||
* | Issue #636 - Parsing an xml file with multiple records and extra attributes ↵ | Sidu Ponnappa | 2011-07-11 | 1 | -1/+1 |
| | | | | (besides type) fails | ||||
* | Fix bug with empty CDATA not being handled in Hash.from_xml | Bradley Harris | 2011-04-29 | 1 | -1/+2 |
| | |||||
* | files are a special case and need whitespace to be significant | Andre Arko | 2011-04-14 | 1 | -1/+1 |
| | |||||
* | gsub is not needed (thanks @fxn!) | Andre Arko | 2011-04-14 | 1 | -1/+1 |
| | |||||
* | attributes no longer disappear if a tag contains whitespace | Andre Arko | 2011-04-14 | 1 | -1/+1 |
| | | | | | | | | | | old: Hash.from_xml("<tag foo='bar'>\n</tag>") => {"tag"=>"\n"} new: Hash.from_xml("<tag foo='bar'>\n</tag>") => {"tag"=>{"foo"=>"bar", "__content__"=>"\n"} | ||||
* | corrected docs for Hash#to_xml and added examples. | Nick Sutterer | 2011-01-06 | 1 | -2/+14 |
| | |||||
* | Refactor inject use in hash conversions. | Emilio Tagua | 2010-09-22 | 1 | -8/+2 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 1 | -11/+11 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | make a throwaway value equals to _ to avoid warnings | Santiago Pastorino | 2010-07-24 | 1 | -1/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Unforce builder from AS | Santiago Pastorino | 2010-06-01 | 1 | -1/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Move several configuration values from Hash to ActiveSupport::XmlMini, which ↵ | José Valim | 2010-04-29 | 1 | -100/+16 |
| | | | | | | both Hash and Array depends on. Also, refactored ActiveModel serializers to just use ActiveSupport::XmlMini.to_tag. As consequence, if a serialized attribute is an array or a hash, it's not encoded as yaml, but as a hash or array. | ||||
* | array.to_xml should be able to handle all types of data elements [#4490 ↵ | Neeraj Singh | 2010-04-29 | 1 | -47/+8 |
| | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Add support for a type=binary with an optional encoding=base64. If the ↵ | Josh Franklin | 2010-03-26 | 1 | -0/+9 |
| | | | | | | encoding attribute is absent, the data is considered unencoded. [#2966 state:resolved] | ||||
* | Merge docrails | Pratik Naik | 2010-01-17 | 1 | -0/+48 |
| | |||||
* | hash/conversions.rb needs active_support/core_ext/string/inflections because ↵ | Xavier Noria | 2010-01-01 | 1 | -0/+1 |
| | | | | it uses singularize and a few others | ||||
* | hash/conversions.rb needs active_support/core_ext/object/blank because it ↵ | Xavier Noria | 2010-01-01 | 1 | -0/+1 |
| | | | | uses blank? | ||||
* | Ruby 1.9.2: work around changes to flatten and nil.to_str | Jeremy Kemper | 2009-11-08 | 1 | -1/+2 |
| | |||||
* | Consolidate Object#to_param and #to_query core extensions | Jeremy Kemper | 2009-11-02 | 1 | -17/+0 |
| | |||||
* | Restore split between require-time and runtime load path mungery. Simplifies ↵ | Jeremy Kemper | 2009-09-24 | 1 | -1/+1 |
| | | | | vendor requires. | ||||
* | Rollback AS bundler work and improve activation of vendored dependencies | Joshua Peek | 2009-09-13 | 1 | -1/+1 |
| | |||||
* | Fix that Hash#to_xml and Array#to_xml shouldn't modify their options hashes ↵ | David Burger | 2009-08-09 | 1 | -0/+1 |
| | | | | | | [#672 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Remove 'core' fluff. Hookable ActiveSupport.load_all! | Jeremy Kemper | 2009-05-20 | 1 | -2/+1 |
| | |||||
* | Fixed Hash#from_xml with keys that are all caps. | codebrulee | 2009-05-04 | 1 | -1/+1 |
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | Fix dependencies revealed by testing in isolation | Jeremy Kemper | 2009-04-22 | 1 | -0/+2 |
| | |||||
* | Merge branch 'master' into cherry | Jeremy Kemper | 2009-04-20 | 1 | -2/+1 |
|\ | | | | | | | | | | | | | | | | | | | | | 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 | ||||
| * | Hash::XML_TYPE_NAMES: no longer a need for a TimeWithZone entry; this class ↵ | Geoff Buesing | 2009-04-05 | 1 | -2/+1 |
| | | | | | | | | will now match "Time" |