aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/xml_mini.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add more rubocop rules about whitespacesRafael Mendonça França2016-10-291-1/+1
|
* Fixnum and Bignum are deprecated in Ruby trunkMatthew Draper2016-10-081-2/+2
| | | | https://bugs.ruby-lang.org/issues/12739
* Fix broken comments indentation caused by rubocop auto-correct [ci skip]Ryuta Kamizono2016-09-141-1/+1
| | | | | | All indentation was normalized by rubocop auto-correct at 80e66cc4d90bf8c15d1a5f6e3152e90147f00772. But comments was still kept absolute position. This commit aligns comments with method definitions for consistency.
* Add three new rubocop rulesRafael Mendonça França2016-08-161-1/+1
| | | | | | | | Style/SpaceBeforeBlockBraces Style/SpaceInsideBlockBraces Style/SpaceInsideHashLiteralBraces Fix all violations in the repository.
* normalizes indentation and whitespace across the projectXavier Noria2016-08-061-19/+19
|
* modernizes hash syntax in activesupportXavier Noria2016-08-061-3/+3
|
* applies new string literal convention in activesupport/libXavier Noria2016-08-061-13/+13
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Support for unified Integer class in Ruby 2.4+Jeremy Daer2016-05-181-14/+19
| | | | | | | | Ruby 2.4 unifies Fixnum and Bignum into Integer: https://bugs.ruby-lang.org/issues/12005 * Forward compat with new unified Integer class in Ruby 2.4+. * Backward compat with separate Fixnum/Bignum in Ruby 2.2 & 2.3. * Drops needless Fixnum distinction in docs, preferring Integer.
* enforce a depth limit on XML documentsAaron Patterson2015-06-161-0/+3
| | | | | | | XML documents that are too deep can cause an stack overflow, which in turn will cause a potential DoS attack. CVE-2015-3227
* Fix breakage in XmlMiniBirkir A. Barkarson2013-12-231-2/+4
| | | | | | | - Boolean parsing breaks on non strings (i.e. integer 1|0) - Symbol parsing breaks on non strings. - BigDecimal parsing breaks due to missing require. - Update changelog.
* Make XmlMini.with_backend usable with threadsNikita Afanasenko2012-11-151-9/+29
| | | | | | | | | | | | | `XmlMini.with_backend` now may be safely used with threads: Thread.new do XmlMini.with_backend("REXML") { rexml_power } end Thread.new do XmlMini.with_backend("LibXML") { libxml_power } end Each thread will use it's own backend.
* Symbol responds_to :upcase & :downcase in Ruby >= 1.9Akira Matsuda2012-06-061-1/+1
|
* changed xml type datetime to dateTime, fixes #6328Angelo capilleri2012-05-231-4/+5
| | | | | | | | | 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
* remove ActiveSupport::Base64 in favor of ::Base64Sergey Nartimov2012-01-021-4/+5
|
* require 'time' Vishnu Atrai2011-05-221-1/+2
|
* Fix todo Time.xmlschema used instead of Time.parseVishnu Atrai2011-05-221-3/+2
|
* Fix failing test.José Valim2011-05-091-1/+1
|
* xml_mini.rb:_dasherize() replacement 20 to 25% fasterMike Howard2011-05-091-4/+3
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Fix failing xml mini test.José Valim2011-05-081-1/+4
|
* xml_mini_test.rb now runs.José Valim2011-05-071-0/+1
|
* add more tests surrounding camlize in xmlmini, refactor rename_key()Aaron Patterson2010-11-031-6/+2
|
* Allowing to_xml :camelize option to be set to :lower to enable ↵Jeremy Holland2010-11-031-1/+7
| | | | lower-camelcase tags [#5903 state:resolved]
* Fix copy/paste bugErik Michaels-Ober2010-10-061-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* XmlMini.rename_key emits valid xml with dasherizeBernerd Schaefer2010-07-261-1/+5
| | | | | | | | This resolves issues for libraries which use '_' prefixed keys in their attributes hash, such as Mongoid. A key like "_id" or "_type" will no longer be converted to "<-id>" and "<-type>". Signed-off-by: wycats <wycats@gmail.com>
* reformatting sentenceNeeraj Singh2010-07-231-1/+1
|
* Move several configuration values from Hash to ActiveSupport::XmlMini, which ↵José Valim2010-04-291-1/+126
| | | | | | 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.
* Fix dependencies revealed by testing in isolationJeremy Kemper2009-04-221-0/+2
|
* Make it easier to swap XmlMini backends. Require Nokogiri >= 1.1.1 for ↵Jeremy Kemper2009-03-101-6/+15
| | | | XmlMini backend tests.
* Nokogiri backend for XmlMiniAaron Patterson2009-03-101-0/+4
| | | | | | [#2190 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Use the REXML parser by default. XmlMini.backend = 'LibXML' to use libxml-ruby.Jeremy Kemper2009-03-091-6/+5
|
* Require libxml-ruby 0.9.4 or 0.9.7 pending a segfault bugfix for 1.0.Jeremy Kemper2009-03-091-14/+12
| | | | Delegate parsing to a switchable backend.
* Revert "Revert "XmlMini supports different backend parsers, starting with ↵Jeremy Kemper2009-03-091-101/+9
| | | | | | | | libxml"" Will change to require a known-working libxml-ruby. This reverts commit a995a738ca10f9bef023689df70d26aad8931b9a.
* Revert "XmlMini supports different backend parsers, starting with libxml"David Heinemeier Hansson2009-03-091-9/+101
| | | | | | Spews a ton undefined method `default_keep_blanks=' for XML:Module errors. This reverts commit 822c41d69d9228c9912d29ac45155d3a16bb5c50.
* XmlMini supports different backend parsers, starting with libxmlBart ten Brinke2009-03-081-101/+9
| | | | | | [#2084 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Make sure XmlMini is being correctly autoloaded by Ruby 1.9.1Luca Guidi2009-01-311-90/+92
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Don't re-require 'rexml/document'Pratik Naik2008-11-261-1/+1
|
* Extract XmlMini. Namespace FileLike extension.Jeremy Kemper2008-11-251-0/+111