1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport
Xavier Noria 126dc47665 blank? and present? commit to return singletons [Xavier Noria & Pavel Pravosud]
The contract of blank? and present? was in principle to return Object, as we
generally do, the test suite and description was consistent with that, but some
examples had comments like "# => true".

This cannot be unclear, we either fix the examples, or update the contract.

Since users may be already assuming singletons due to the examples and the fact
that they were returned before 30ba7ee, the safest option seems to be to revise
the contract and the implementation of String#blank?

The motivation for 30ba7ee was to improve the performance of the predicate, the
refactor based on === is on par regarding speed.

With this commit we start documenting return types using YARD conventions. We
plan to document return types gradually.
2013-12-28 20:03:38 +01:00
..
bin Initializing Codepoint object with default values 2013-09-20 12:50:15 +05:30
lib blank? and present? commit to return singletons [Xavier Noria & Pavel Pravosud] 2013-12-28 20:03:38 +01:00
test blank? and present? commit to return singletons [Xavier Noria & Pavel Pravosud] 2013-12-28 20:03:38 +01:00
activesupport.gemspec Require I18n >= 0.6.9 2013-12-17 09:06:57 -02:00
CHANGELOG.md blank? and present? commit to return singletons [Xavier Noria & Pavel Pravosud] 2013-12-28 20:03:38 +01:00
MIT-LICENSE
Rakefile grab executable from rubygems 2013-07-26 11:07:25 +02:00
README.rdoc Corrected link anchor and added colons for continuity 2013-02-19 11:11:42 -05: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