aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/xml_mini.rb
Commit message (Collapse)AuthorAgeFilesLines
* [Active Support] require_relative => requireAkira Matsuda2017-10-211-4/+4
| | | | This basically reverts 8da30ad6be34339124ba4cb4e36aea260dda12bc
* [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment`Koichi ITO2017-07-111-0/+1
|
* Use frozen-string-literal in ActiveSupportKir Shatrov2017-07-091-0/+1
|
* [Active Support] require => require_relativeAkira Matsuda2017-07-011-4/+4
|
* Fix Rubocop violations and fix documentation visibilityRafael Mendonça França2016-12-281-1/+1
| | | | | | Some methods were added to public API in 5b14129d8d4ad302b4e11df6bd5c7891b75f393c and they should be not part of the public API.
* Privatize unneededly protected methods in Active SupportAkira Matsuda2016-12-241-4/+2
|
* Keep AS::XmlMini::PARSING["decimal"].call('') returning 0Akira Matsuda2016-12-131-1/+11
| | | | | BigDecimal('an invalid string') has changed its behavior to raise an ArgumentError since 1.3.0 https://bugs.ruby-lang.org/issues/10286
* 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