sixarm_ruby_to_id 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/test/sixarm_ruby_to_id_test/hash_test.rb +6 -6
- data/test/sixarm_ruby_to_id_test/string_test.rb +4 -4
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67faa8388f1710621a2fef915a5350046bcbb883
|
4
|
+
data.tar.gz: 8f12f955a0ee99bcc13f4f8c6bd4c53e86e993f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
25
|
-
" 2000-12-30 2000-12-31 ".to_stint_id.
|
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.
|
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
metadata.gz.sig
CHANGED
Binary file
|