Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Call `YAML.load` correctly | eileencodes | 2018-02-21 | 1 | -1/+1 |
| | | | | | We should call methods with `.method_name` not `::method_name`. Fix two instances of `YAML::load` I found in favor of `YAML.load`. | ||||
* | Rails 6 requires Ruby 2.4.1+ | Jeremy Daer | 2018-02-17 | 1 | -4/+0 |
| | | | | | | Skipping over 2.4.0 to sidestep the `"symbol_from_string".to_sym.dup` bug. References #32028 | ||||
* | [Active Support] require_relative => require | Akira Matsuda | 2017-10-21 | 1 | -4/+4 |
| | | | | This basically reverts 8da30ad6be34339124ba4cb4e36aea260dda12bc | ||||
* | [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment` | Koichi ITO | 2017-07-11 | 1 | -0/+1 |
| | |||||
* | Use frozen-string-literal in ActiveSupport | Kir Shatrov | 2017-07-09 | 1 | -0/+1 |
| | |||||
* | [Active Support] require => require_relative | Akira Matsuda | 2017-07-01 | 1 | -4/+4 |
| | |||||
* | Fix Rubocop violations and fix documentation visibility | Rafael Mendonça França | 2016-12-28 | 1 | -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 Support | Akira Matsuda | 2016-12-24 | 1 | -4/+2 |
| | |||||
* | Keep AS::XmlMini::PARSING["decimal"].call('') returning 0 | Akira Matsuda | 2016-12-13 | 1 | -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 whitespaces | Rafael Mendonça França | 2016-10-29 | 1 | -1/+1 |
| | |||||
* | Fixnum and Bignum are deprecated in Ruby trunk | Matthew Draper | 2016-10-08 | 1 | -2/+2 |
| | | | | https://bugs.ruby-lang.org/issues/12739 | ||||
* | Fix broken comments indentation caused by rubocop auto-correct [ci skip] | Ryuta Kamizono | 2016-09-14 | 1 | -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 rules | Rafael Mendonça França | 2016-08-16 | 1 | -1/+1 |
| | | | | | | | | Style/SpaceBeforeBlockBraces Style/SpaceInsideBlockBraces Style/SpaceInsideHashLiteralBraces Fix all violations in the repository. | ||||
* | normalizes indentation and whitespace across the project | Xavier Noria | 2016-08-06 | 1 | -19/+19 |
| | |||||
* | modernizes hash syntax in activesupport | Xavier Noria | 2016-08-06 | 1 | -3/+3 |
| | |||||
* | applies new string literal convention in activesupport/lib | Xavier Noria | 2016-08-06 | 1 | -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 Daer | 2016-05-18 | 1 | -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 documents | Aaron Patterson | 2015-06-16 | 1 | -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 XmlMini | Birkir A. Barkarson | 2013-12-23 | 1 | -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 threads | Nikita Afanasenko | 2012-11-15 | 1 | -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.9 | Akira Matsuda | 2012-06-06 | 1 | -1/+1 |
| | |||||
* | changed xml type datetime to dateTime, fixes #6328 | Angelo capilleri | 2012-05-23 | 1 | -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 ::Base64 | Sergey Nartimov | 2012-01-02 | 1 | -4/+5 |
| | |||||
* | require 'time' | Vishnu Atrai | 2011-05-22 | 1 | -1/+2 |
| | |||||
* | Fix todo Time.xmlschema used instead of Time.parse | Vishnu Atrai | 2011-05-22 | 1 | -3/+2 |
| | |||||
* | Fix failing test. | José Valim | 2011-05-09 | 1 | -1/+1 |
| | |||||
* | xml_mini.rb:_dasherize() replacement 20 to 25% faster | Mike Howard | 2011-05-09 | 1 | -4/+3 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Fix failing xml mini test. | José Valim | 2011-05-08 | 1 | -1/+4 |
| | |||||
* | xml_mini_test.rb now runs. | José Valim | 2011-05-07 | 1 | -0/+1 |
| | |||||
* | add more tests surrounding camlize in xmlmini, refactor rename_key() | Aaron Patterson | 2010-11-03 | 1 | -6/+2 |
| | |||||
* | Allowing to_xml :camelize option to be set to :lower to enable ↵ | Jeremy Holland | 2010-11-03 | 1 | -1/+7 |
| | | | | lower-camelcase tags [#5903 state:resolved] | ||||
* | Fix copy/paste bug | Erik Michaels-Ober | 2010-10-06 | 1 | -1/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | XmlMini.rename_key emits valid xml with dasherize | Bernerd Schaefer | 2010-07-26 | 1 | -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 sentence | Neeraj Singh | 2010-07-23 | 1 | -1/+1 |
| | |||||
* | Move several configuration values from Hash to ActiveSupport::XmlMini, which ↵ | José Valim | 2010-04-29 | 1 | -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 isolation | Jeremy Kemper | 2009-04-22 | 1 | -0/+2 |
| | |||||
* | Make it easier to swap XmlMini backends. Require Nokogiri >= 1.1.1 for ↵ | Jeremy Kemper | 2009-03-10 | 1 | -6/+15 |
| | | | | XmlMini backend tests. | ||||
* | Nokogiri backend for XmlMini | Aaron Patterson | 2009-03-10 | 1 | -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 Kemper | 2009-03-09 | 1 | -6/+5 |
| | |||||
* | Require libxml-ruby 0.9.4 or 0.9.7 pending a segfault bugfix for 1.0. | Jeremy Kemper | 2009-03-09 | 1 | -14/+12 |
| | | | | Delegate parsing to a switchable backend. | ||||
* | Revert "Revert "XmlMini supports different backend parsers, starting with ↵ | Jeremy Kemper | 2009-03-09 | 1 | -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 Hansson | 2009-03-09 | 1 | -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 libxml | Bart ten Brinke | 2009-03-08 | 1 | -101/+9 |
| | | | | | | [#2084 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Make sure XmlMini is being correctly autoloaded by Ruby 1.9.1 | Luca Guidi | 2009-01-31 | 1 | -90/+92 |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Don't re-require 'rexml/document' | Pratik Naik | 2008-11-26 | 1 | -1/+1 |
| | |||||
* | Extract XmlMini. Namespace FileLike extension. | Jeremy Kemper | 2008-11-25 | 1 | -0/+111 |