aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/number_helper/number_to_human_size_converter.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add support for Petabyte and Exabyte in number to human sizeAkshay Vishnoi2015-12-221-1/+1
|
* Deprecate the :prefix option of `number_to_human_size`Jean Boussier2015-08-101-0/+4
|
* Freeze static arguments for gsubbrainopia2015-04-021-1/+1
|
* Prefer string patterns for gsubbrainopia2015-04-021-1/+1
| | | | | | | | | | | | | | | | | https://github.com/ruby/ruby/pull/579 - there is a new optimization since ruby 2.2 Previously regexp patterns were faster (since a string was converted to regexp underneath anyway). But now string patterns are faster and better reflect the purpose. Benchmark.ips do |bm| bm.report('regexp') { 'this is ::a random string'.gsub(/::/, '/') } bm.report('string') { 'this is ::a random string'.gsub('::', '/') } bm.compare! end # string: 753724.4 i/s # regexp: 501443.1 i/s - 1.50x slower
* Nodoc missing number helper classes in AS [ci skip]Carlos Antonio da Silva2013-12-111-1/+1
| | | | These classes are not meant to be public.
* Stop using local variables everywhere, make use of the readerCarlos Antonio da Silva2013-12-031-6/+6
|
* Rename variable that holds whether or not the class should validate a float ↵Carlos Antonio da Silva2013-12-031-2/+2
| | | | number
* :sicssors:Rafael Mendonça França2013-12-021-2/+0
|
* Make execute priave APIRafael Mendonça França2013-12-021-1/+1
|
* Make load of NumberHelper thread safeRafael Mendonça França2013-12-021-0/+60