rails/activesupport
Vipul A M 983674667a When trying to access a character on a string buffer object via :[], if the object being accessed currently returns html_safe? as true,
we used to set  `@html_safe` variable as true on new object created. When doing something like

x = 'Hello'.html_safe
x[/a/, 1]

would throw an error on ruby 2.2, since when nothign gets matched nil is returned by the code and it tries to set   `@html_safe` value to true,
which would error since starting 2.2 nil is frozen.

This change adds a safety net to avoid setting `@html_safe = true` on frozen objects.

Fixes #18235
2014-12-29 18:31:34 +05:30
..
bin Pass symbol as an argument instead of a block 2014-11-29 11:53:24 +01:00
lib When trying to access a character on a string buffer object via :[], if the object being accessed currently returns html_safe? as true, 2014-12-29 18:31:34 +05:30
test When trying to access a character on a string buffer object via :[], if the object being accessed currently returns html_safe? as true, 2014-12-29 18:31:34 +05:30
activesupport.gemspec Require Ruby 2.2 for Rails 5.0 2014-12-26 13:53:09 +01:00
CHANGELOG.md cleanup CHANGELOGs. [ci skip] 2014-12-23 08:56:17 +01:00
MIT-LICENSE update copyright notices to 2014. [ci skip] 2014-01-01 23:59:49 +05:30
Rakefile Follow up to #16613 2014-09-28 12:04:06 +02:00
README.rdoc Feature requests should be made on the mailing list, not submitted to 2014-06-01 19:11:39 -07: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 can be filed for the Ruby on Rails project here:

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

Feature requests should be discussed on the rails-core mailing list here:

* https://groups.google.com/forum/?fromgroups#!forum/rubyonrails-core