dohutil 0.2.29 → 0.2.30

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 32af9da1992375cc9fc46da0595dfb74ceefc546
4
- data.tar.gz: a6799aaf66a2b2616eeeddf3d0d2f5f78f31d758
3
+ metadata.gz: a3e8c9c2dcf97be959be8751f266d68ceab961c8
4
+ data.tar.gz: 791fdcc03ef6209469a8fcea787af9e648884dd0
5
5
  SHA512:
6
- metadata.gz: b78d5e13e118ef9c7875f0b0d0e7ecc6413226ca68b18215abbbdda009b20da3893f01dd011b3cdd2129ef51d8e85d64be4a4ff5f13e39c5c881ae1b3cd64a53
7
- data.tar.gz: 0941d3293194bc2caa353ce23ce956f9c413fe96ebe1698d85e40dcbf834ddc9e8416779e55854fdf397b154fcd8f0a3fd526ec8eebf989457b46e79eab00239
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('blah').to_dig)
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('blah').to_dig(0))
25
+ assert_equal('0', BigDecimal('0').to_dig(0))
26
26
  end
27
27
 
28
28
  def test_to_dig_doesnt_modify
@@ -0,0 +1,11 @@
1
+ require 'dohutil/core_ext/empty'
2
+
3
+ module Doh
4
+
5
+ class Test_core_ext_empty < DohTest::TestGroup
6
+ def test_blank
7
+ assert_equal(true, nil.blank?)
8
+ end
9
+ end
10
+
11
+ end
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.29
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
@@ -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