sixarm_ruby_to_id 1.1.2 → 1.1.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7565a96fd082b63d91dd8f9debd05c5af141461d
4
- data.tar.gz: d04d642fe94445eb3a86f2e339edf52878cd0b3f
3
+ metadata.gz: 67faa8388f1710621a2fef915a5350046bcbb883
4
+ data.tar.gz: 8f12f955a0ee99bcc13f4f8c6bd4c53e86e993f9
5
5
  SHA512:
6
- metadata.gz: c3b0ab867dca70545ad0bf7ea631f4f7356eb3d77a204203747dde562e762bc90e37d4896d81539661170f4e1a13a85e1655857863db9af4f876e07659e7979a
7
- data.tar.gz: 9c9ac86e473ad14d9de701345be2daba7b32d086ee0091c567bd17e5c858e2ff77578907eaf5d81ca113b77f829abaf3f11778aba03c734cb65d275614d3f52c
6
+ metadata.gz: f2532d350264ea8f5167548134583c0978c49be2b86665ae63a05446a1fbbf44f7df806938fbab1f40ac02b5bb8d16adbbcedb05245f929a8b8189053197bd3f
7
+ data.tar.gz: 1aafc81df2763f98a0766429c73ebc6bdaf48271bbb2856aac1b2c680096dbef1c5141207ef98372cf681f4ba2ced9e3a825343ea63bae03a321b9ad1817dd0d
checksums.yaml.gz.sig CHANGED
Binary file
@@ -20,15 +20,15 @@ describe Hash do
20
20
  describe "with fields for year, month, day any of which are blank strings #=> nil" do
21
21
 
22
22
  it "year is blank #=> nil" do
23
- {year: "", month: "12", day: "31"}.to_date_id.must_equal nil
23
+ {year: "", month: "12", day: "31"}.to_date_id.must_be_nil
24
24
  end
25
25
 
26
26
  it "month is blank #=> nil" do
27
- {year: "2000", month: "", day: "31"}.to_date_id.must_equal nil
27
+ {year: "2000", month: "", day: "31"}.to_date_id.must_be_nil
28
28
  end
29
29
 
30
30
  it "day is blank #=> nil" do
31
- {year: "2000", month: "12", day: ""}.to_date_id.must_equal nil
31
+ {year: "2000", month: "12", day: ""}.to_date_id.must_be_nil
32
32
  end
33
33
 
34
34
  end
@@ -36,15 +36,15 @@ describe Hash do
36
36
  describe "without fields for year, or month, or day #=> nil" do
37
37
 
38
38
  it "missing year #=> nil" do
39
- {month: "12", day: "31"}.to_date_id.must_equal nil
39
+ {month: "12", day: "31"}.to_date_id.must_be_nil
40
40
  end
41
41
 
42
42
  it "missing month #=> nil" do
43
- {year: "2000", day: "31"}.to_date_id.must_equal nil
43
+ {year: "2000", day: "31"}.to_date_id.must_be_nil
44
44
  end
45
45
 
46
46
  it "missing day #=> nil" do
47
- {year: "2000", month: "12"}.to_date_id.must_equal nil
47
+ {year: "2000", month: "12"}.to_date_id.must_be_nil
48
48
  end
49
49
 
50
50
  end
@@ -6,7 +6,7 @@ describe String do
6
6
  describe "#to_date_id" do
7
7
  it "casts me to a date id YYYY-MM-DD" do
8
8
  " 2000-12-31 ".to_date_id.must_equal "2000-12-31"
9
- " X000-12-31 ".to_date_id.must_equal nil
9
+ " X000-12-31 ".to_date_id.must_be_nil
10
10
  end
11
11
  end
12
12
 
@@ -21,8 +21,8 @@ describe String do
21
21
  it "casts me to a stint id [YYYY-MM-DD, YYYY-MM-DD]" do
22
22
  " 2000-12-30..2000-12-31 ".to_stint_id.must_equal "2000-12-30..2000-12-31"
23
23
  " 2000-12-30...2000-12-31 ".to_stint_id.must_equal "2000-12-30...2000-12-31"
24
- " 2000-12-30-2000-12-31 ".to_stint_id.must_equal nil
25
- " 2000-12-30 2000-12-31 ".to_stint_id.must_equal nil
24
+ " 2000-12-30-2000-12-31 ".to_stint_id.must_be_nil
25
+ " 2000-12-30 2000-12-31 ".to_stint_id.must_be_nil
26
26
  end
27
27
  end
28
28
 
@@ -64,7 +64,7 @@ describe String do
64
64
  describe "#to_s_uuid" do
65
65
  it "casts me to a string uuid (by using strip and match)" do
66
66
  " 0000aaaa-00aa-00aa-00aa-000000aaaaaa ".to_s_uuid.must_equal "0000aaaa-00aa-00aa-00aa-000000aaaaaa"
67
- " X ".to_s_uuid.must_equal nil
67
+ " X ".to_s_uuid.must_be_nil
68
68
  end
69
69
  end
70
70
 
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sixarm_ruby_to_id
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - SixArm
metadata.gz.sig CHANGED
Binary file