1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport
Gaurish Sharma ab5e99ed63 Avoid calling define_method with non-english chars in InflectorTest
When we call define_method with non-english chars like ¿por qué? it
errors out on JRuby as of 1.7.4 & would leave out the following error

invalid byte sequence in US-ASCII

To work around this issue, I have switched to define_test method call
define method with fixed string & the index of the hash. the index was
added because otherwise, ruby will raise method redefined warning.

As far as I can see there are no side-effect of this change for
other implementations. For readbility I have added a message to
asssert_equal informing for which word/phase the test has passed.

Before this Change:
JRuby:
Tests terminated suddenly with an error. no reported of Failues
or errors
MRI:
All Green.

After this Change,
JRuby:
the `ActiveSupport` TestsSuite gracefully fails with report at the end which test failed & why.
MRI:
All Green(no change)
2013-08-03 18:21:17 +05:30
..
bin Update Unicode database to recently-released 6.1. 2012-02-03 10:09:26 -03:00
lib Fix jruby warning when capture calls unlink on an open tempfile 2013-08-02 18:02:38 -04:00
test Avoid calling define_method with non-english chars in InflectorTest 2013-08-03 18:21:17 +05:30
activesupport.gemspec Merge pull request #10527 from zenspider/squishy_minitest5 2013-05-16 13:41:54 -07:00
CHANGELOG.md Add CHANGELOG entry for inflection removal 2013-07-30 12:00:40 +01:00
MIT-LICENSE Updated copyright notices for 2013 2012-12-31 20:35:29 +00:00
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