dohutil 0.2.29 → 0.2.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/test/core_ext/bigdecimal.dt.rb +2 -2
- data/test/core_ext/empty.dt.rb +11 -0
- metadata +4 -4
- data/test/core_ext/blank.dt.rb +0 -15
- /data/lib/dohutil/core_ext/{nil.rb → empty.rb} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3e8c9c2dcf97be959be8751f266d68ceab961c8
|
4
|
+
data.tar.gz: 791fdcc03ef6209469a8fcea787af9e648884dd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 002ec0033754850a6006c978a7acb992aca50841e3d2b0746b3c1d0fbee3e4e7cd7c2884469899c555b7d4e167296107f06254b14eca7ab47dc947d592864498
|
7
|
+
data.tar.gz: 79b3da4a1e7a92ee671fa588bfb133f892fb6274104b8f630c6116e7b91fd4a6bb59042a635a931045b65ac70aee07fe3d00c03675a958c01150888fdc43ef7e
|
@@ -19,10 +19,10 @@ class Test_core_ext_bigdecimal < DohTest::TestGroup
|
|
19
19
|
assert_raises(ArgumentError) { BigDecimal('1').to_dig(-1) }
|
20
20
|
assert_equal('0.00', BigDecimal('NaN').to_dig)
|
21
21
|
assert_equal('0.00', BigDecimal('Infinity').to_dig)
|
22
|
-
assert_equal('0.00', BigDecimal('
|
22
|
+
assert_equal('0.00', BigDecimal('0').to_dig)
|
23
23
|
assert_equal('0', BigDecimal('NaN').to_dig(0))
|
24
24
|
assert_equal('1', BigDecimal('1').to_dig(0))
|
25
|
-
assert_equal('0', BigDecimal('
|
25
|
+
assert_equal('0', BigDecimal('0').to_dig(0))
|
26
26
|
end
|
27
27
|
|
28
28
|
def test_to_dig_doesnt_modify
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dohutil
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.30
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Makani Mason
|
@@ -96,11 +96,11 @@ files:
|
|
96
96
|
- lib/dohutil/core_ext/date.rb
|
97
97
|
- lib/dohutil/core_ext/datewithtime.rb
|
98
98
|
- lib/dohutil/core_ext/dir.rb
|
99
|
+
- lib/dohutil/core_ext/empty.rb
|
99
100
|
- lib/dohutil/core_ext/enum.rb
|
100
101
|
- lib/dohutil/core_ext/force_deep_copy.rb
|
101
102
|
- lib/dohutil/core_ext/hash.rb
|
102
103
|
- lib/dohutil/core_ext/inspect.rb
|
103
|
-
- lib/dohutil/core_ext/nil.rb
|
104
104
|
- lib/dohutil/core_ext/string.rb
|
105
105
|
- lib/dohutil/current_date.rb
|
106
106
|
- lib/dohutil/disable_verbose.rb
|
@@ -111,9 +111,9 @@ files:
|
|
111
111
|
- lib/dohutil/to_display.rb
|
112
112
|
- test/core_ext/array.dt.rb
|
113
113
|
- test/core_ext/bigdecimal.dt.rb
|
114
|
-
- test/core_ext/blank.dt.rb
|
115
114
|
- test/core_ext/date.dt.rb
|
116
115
|
- test/core_ext/datewithtime.dt.rb
|
116
|
+
- test/core_ext/empty.dt.rb
|
117
117
|
- test/core_ext/force_deep_copy.dt.rb
|
118
118
|
- test/core_ext/string.dt.rb
|
119
119
|
- test/current_date.dt.rb
|
@@ -146,9 +146,9 @@ summary: assorted tiny utilities
|
|
146
146
|
test_files:
|
147
147
|
- test/core_ext/array.dt.rb
|
148
148
|
- test/core_ext/bigdecimal.dt.rb
|
149
|
-
- test/core_ext/blank.dt.rb
|
150
149
|
- test/core_ext/date.dt.rb
|
151
150
|
- test/core_ext/datewithtime.dt.rb
|
151
|
+
- test/core_ext/empty.dt.rb
|
152
152
|
- test/core_ext/force_deep_copy.dt.rb
|
153
153
|
- test/core_ext/string.dt.rb
|
154
154
|
- test/current_date.dt.rb
|
data/test/core_ext/blank.dt.rb
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'dohutil/core_ext/blank'
|
2
|
-
|
3
|
-
module Doh
|
4
|
-
|
5
|
-
class Test_core_ext_blank < DohTest::TestGroup
|
6
|
-
def test_blank
|
7
|
-
assert_equal(true, ''.blank?)
|
8
|
-
assert_equal(false, ' '.blank?)
|
9
|
-
assert_equal(true, nil.blank?)
|
10
|
-
assert_equal(true, {}.blank?)
|
11
|
-
assert_equal(true, [].blank?)
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
end
|
File without changes
|