rails/activesupport
Steve Klabnik + Katrina Owen b02ebe73cf Refactor Hash.from_xml.
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.
2012-12-21 23:49:43 +00:00
..
bin Update Unicode database to recently-released 6.1. 2012-02-03 10:09:26 -03:00
lib Refactor Hash.from_xml. 2012-12-21 23:49:43 +00:00
test Refactor Hash.from_xml. 2012-12-21 23:49:43 +00:00
activesupport.gemspec Omit directories from gemspec.files for RubyGems 2 compat. 2012-12-08 17:18:46 -07:00
CHANGELOG.md Rename ActiveSupport::BasicObject to ActiveSupport::ProxyObject 2012-12-07 14:13:56 -05:00
MIT-LICENSE Updated copyright notices for 2012 2011-12-31 20:30:08 +00:00
Rakefile Rakefile executable attributes and shebang lines has been removed 2012-05-02 13:38:13 +03:00
README.rdoc Finished implementation of MIT license linking. 2011-12-23 13:03:21 -08:00

= Active Support -- Utility classes and Ruby extensions from Rails

Active Support is a collection of utility classes and standard library
extensions that were found useful for the Rails framework. These additions
reside in this package so they can be loaded as needed in Ruby projects
outside of Rails.


== Download and installation

The latest version of Active Support can be installed with RubyGems:

  % [sudo] gem install activesupport

Source code can be downloaded as part of the Rails project on GitHub

* https://github.com/rails/rails/tree/master/activesupport


== License

Active Support is released under the MIT license:

* http://www.opensource.org/licenses/MIT


== Support

API documentation is at

* http://api.rubyonrails.org

Bug reports and feature requests can be filed with the rest for the Ruby on Rails project here:

* https://github.com/rails/rails/issues