Daniel Colson
|
94333a4c31
|
Use assert_predicate and assert_not_predicate
|
2018-01-25 23:32:59 -05:00 |
|
Ryuta Kamizono
|
245c1dafa8
|
Enable Layout/LeadingCommentSpace to not allow cosmetic changes in the future
Follow up of #31432.
|
2017-12-14 17:30:54 +09:00 |
|
Kir Shatrov
|
424117281e
|
Use frozen string literal in actionview/
|
2017-07-24 11:53:43 +03:00 |
|
Matthew Draper
|
87b3e226d6
|
Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"
This reverts commit 3420a14590 , reversing
changes made to afb66a5a59 .
|
2017-07-02 02:15:17 +09:30 |
|
Kir Shatrov
|
cfade1ec7e
|
Enforce frozen string in Rubocop
|
2017-07-01 02:11:03 +03:00 |
|
Akira Matsuda
|
e8ba0c0f21
|
"Use assert_nil if expecting nil. This will fail in minitest 6."
|
2016-12-25 02:29:52 +09:00 |
|
Rafael Mendonça França
|
55f9b8129a
|
Add three new rubocop rules
Style/SpaceBeforeBlockBraces
Style/SpaceInsideBlockBraces
Style/SpaceInsideHashLiteralBraces
Fix all violations in the repository.
|
2016-08-16 04:30:11 -03:00 |
|
Xavier Noria
|
63fff600ac
|
modernizes hash syntax in actionview
|
2016-08-06 19:36:34 +02:00 |
|
Xavier Noria
|
4b6c68dfb8
|
applies new string literal convention in actionview/test
The current code base is not uniform. After some discussion,
we have chosen to go with double quotes by default.
|
2016-08-06 18:50:17 +02:00 |
|
Akira Matsuda
|
dcecbb4234
|
File encoding is defaulted to utf-8 in Ruby >= 2.1
|
2015-09-18 17:05:05 +09:00 |
|
Vipul A M
|
7f23c5d524
|
- Extracted DELIMITED_REGEX to delimited_regex method and made use of user passed options[:delimited_regex] if available. Changed DELIMITED_REGEX to DEFAULT)DELIMITED_REGEX to signify what it means.
- Added tests for number to delimited and number to currency in both actionview and activesupport.
Changes
Changes
|
2015-08-28 11:34:17 +05:30 |
|
Yves Senn
|
081a3963ea
|
number_to_percentage and precision: 0 work with NAN and INFINITY .
Closes #19227.
|
2015-03-06 09:04:51 +01:00 |
|
Kuldeep Aggarwal
|
cffbceeb03
|
reload I18n as we are defining :ts locale
fix build- see https://travis-ci.org/rails/rails/jobs/27578159#L2913.
|
2014-06-15 01:11:13 +05:30 |
|
Juanjo Bazán
|
60062cf39a
|
Fix AS::NumberHelper results with rationals
:precision was incorrectly being applied to Rationals
before:
ActiveSupport::NumberHelper.number_to_rounded Rational(10, 3), precision: 2
=> "3.3"
after:
ActiveSupport::NumberHelper.number_to_rounded Rational(10, 3), precision: 2
=> "3.33"
|
2014-05-31 20:07:47 +02:00 |
|
Yves Senn
|
378c8d2c99
|
fix number_to_percentage with Float::NAN , Float::INFINITY .
Closes #14405.
This is a follow-up to 9e997e9039 to restore
the documented behavior.
|
2014-03-17 10:55:21 +01:00 |
|
Rafael Mendonça França
|
08d0a11a3f
|
Escape format, negative_format and units options of number helpers
Previously the values of these options were trusted leading to
potential XSS vulnerabilities.
Fixes: CVE-2014-0081
|
2014-02-18 15:38:50 -03:00 |
|
Michael Koziarski
|
b31a7a6f1e
|
Escape the unit value provided to number_to_currency
Previously the unit values were trusted leading to potential XSS vulnerabilities.
Fixes: CVE-2013-6415
|
2013-12-02 16:41:14 -08:00 |
|
Piotr Sarnacki
|
eb23754ebb
|
Move template tests from actionpack to actionview
|
2013-06-20 17:23:16 +02:00 |
|