@@ -13,7 +13,7 @@ def test_constants
13
13
14
14
def test_v3_uuids_with_rfc4122_namespaced_uuids_enabled
15
15
with_use_rfc4122_namespaced_uuids_set do
16
- assert_not_deprecated do
16
+ assert_not_deprecated ( ActiveSupport . deprecator ) do
17
17
assert_equal "3d813cbb-47fb-32ba-91df-831e1593ac29" , Digest ::UUID . uuid_v3 ( "6BA7B810-9DAD-11D1-80B4-00C04FD430C8" , "www.widgets.com" )
18
18
assert_equal "3d813cbb-47fb-32ba-91df-831e1593ac29" , Digest ::UUID . uuid_v3 ( "6ba7b810-9dad-11d1-80b4-00c04fd430c8" , "www.widgets.com" )
19
19
assert_equal "3d813cbb-47fb-32ba-91df-831e1593ac29" , Digest ::UUID . uuid_v3 ( Digest ::UUID ::DNS_NAMESPACE , "www.widgets.com" )
@@ -46,7 +46,7 @@ def test_v3_uuids_with_rfc4122_namespaced_uuids_disabled
46
46
assert_equal "fe5a52d1-703f-3326-b919-2d96003288f3" , Digest ::UUID . uuid_v3 ( "6ba7b810-9dad-11d1-80b4-00c04fd430c8" , "www.widgets.com" )
47
47
end
48
48
49
- assert_not_deprecated do
49
+ assert_not_deprecated ( ActiveSupport . deprecator ) do
50
50
assert_equal "3d813cbb-47fb-32ba-91df-831e1593ac29" , Digest ::UUID . uuid_v3 ( Digest ::UUID ::DNS_NAMESPACE , "www.widgets.com" )
51
51
end
52
52
@@ -58,7 +58,7 @@ def test_v3_uuids_with_rfc4122_namespaced_uuids_disabled
58
58
assert_equal "2676127a-9073-36e3-b9db-14bc16b7c083" , Digest ::UUID . uuid_v3 ( "6ba7b811-9dad-11d1-80b4-00c04fd430c8" , "http://www.widgets.com" )
59
59
end
60
60
61
- assert_not_deprecated do
61
+ assert_not_deprecated ( ActiveSupport . deprecator ) do
62
62
assert_equal "86df55fb-428e-3843-8583-ba3c05f290bc" , Digest ::UUID . uuid_v3 ( Digest ::UUID ::URL_NAMESPACE , "http://www.widgets.com" )
63
63
end
64
64
@@ -70,7 +70,7 @@ def test_v3_uuids_with_rfc4122_namespaced_uuids_disabled
70
70
assert_equal "719357e1-54f1-3930-8113-a1faffde48fa" , Digest ::UUID . uuid_v3 ( "6ba7b812-9dad-11d1-80b4-00c04fd430c8" , "1.2.3" )
71
71
end
72
72
73
- assert_not_deprecated do
73
+ assert_not_deprecated ( ActiveSupport . deprecator ) do
74
74
assert_equal "8c29ab0e-a2dc-3482-b5eb-20cb2e2387a1" , Digest ::UUID . uuid_v3 ( Digest ::UUID ::OID_NAMESPACE , "1.2.3" )
75
75
end
76
76
@@ -82,7 +82,7 @@ def test_v3_uuids_with_rfc4122_namespaced_uuids_disabled
82
82
assert_equal "32560c4a-c9f1-3974-9c1c-5e52761e091f" , Digest ::UUID . uuid_v3 ( "6ba7b814-9dad-11d1-80b4-00c04fd430c8" , "cn=John Doe, ou=People, o=Acme, Inc., c=US" )
83
83
end
84
84
85
- assert_not_deprecated do
85
+ assert_not_deprecated ( ActiveSupport . deprecator ) do
86
86
assert_equal "ee49149d-53a4-304a-890b-468229f6afc3" , Digest ::UUID . uuid_v3 ( Digest ::UUID ::X500_NAMESPACE , "cn=John Doe, ou=People, o=Acme, Inc., c=US" )
87
87
end
88
88
@@ -93,7 +93,7 @@ def test_v3_uuids_with_rfc4122_namespaced_uuids_disabled
93
93
94
94
def test_v5_uuids_with_rfc4122_namespaced_uuids_enabled
95
95
with_use_rfc4122_namespaced_uuids_set do
96
- assert_not_deprecated do
96
+ assert_not_deprecated ( ActiveSupport . deprecator ) do
97
97
assert_equal "21f7f8de-8051-5b89-8680-0195ef798b6a" , Digest ::UUID . uuid_v5 ( "6BA7B810-9DAD-11D1-80B4-00C04FD430C8" , "www.widgets.com" )
98
98
assert_equal "21f7f8de-8051-5b89-8680-0195ef798b6a" , Digest ::UUID . uuid_v5 ( "6ba7b810-9dad-11d1-80b4-00c04fd430c8" , "www.widgets.com" )
99
99
assert_equal "21f7f8de-8051-5b89-8680-0195ef798b6a" , Digest ::UUID . uuid_v5 ( Digest ::UUID ::DNS_NAMESPACE , "www.widgets.com" )
@@ -126,7 +126,7 @@ def test_v5_uuids_with_rfc4122_namespaced_uuids_disabled
126
126
assert_equal "027963ef-431c-5670-ab2c-820168da74e9" , Digest ::UUID . uuid_v5 ( "6ba7b810-9dad-11d1-80b4-00c04fd430c8" , "www.widgets.com" )
127
127
end
128
128
129
- assert_not_deprecated do
129
+ assert_not_deprecated ( ActiveSupport . deprecator ) do
130
130
assert_equal "21f7f8de-8051-5b89-8680-0195ef798b6a" , Digest ::UUID . uuid_v5 ( Digest ::UUID ::DNS_NAMESPACE , "www.widgets.com" )
131
131
end
132
132
@@ -138,7 +138,7 @@ def test_v5_uuids_with_rfc4122_namespaced_uuids_disabled
138
138
assert_equal "d8e1e518-2337-58e5-bf52-6c563631db90" , Digest ::UUID . uuid_v5 ( "6ba7b811-9dad-11d1-80b4-00c04fd430c8" , "http://www.widgets.com" )
139
139
end
140
140
141
- assert_not_deprecated do
141
+ assert_not_deprecated ( ActiveSupport . deprecator ) do
142
142
assert_equal "4e570fd8-186d-5a74-90f0-4d28e34673a1" , Digest ::UUID . uuid_v5 ( Digest ::UUID ::URL_NAMESPACE , "http://www.widgets.com" )
143
143
end
144
144
@@ -150,7 +150,7 @@ def test_v5_uuids_with_rfc4122_namespaced_uuids_disabled
150
150
assert_equal "b9b86653-48bb-5059-861a-2c72974b5c8d" , Digest ::UUID . uuid_v5 ( "6ba7b812-9dad-11d1-80b4-00c04fd430c8" , "1.2.3" )
151
151
end
152
152
153
- assert_not_deprecated do
153
+ assert_not_deprecated ( ActiveSupport . deprecator ) do
154
154
assert_equal "42d5e23b-3a02-5135-85c6-52d1102f1f00" , Digest ::UUID . uuid_v5 ( Digest ::UUID ::OID_NAMESPACE , "1.2.3" )
155
155
end
156
156
@@ -162,7 +162,7 @@ def test_v5_uuids_with_rfc4122_namespaced_uuids_disabled
162
162
assert_equal "e84a8a4e-a5c7-55b8-ad09-020c0b5662a7" , Digest ::UUID . uuid_v5 ( "6ba7b814-9dad-11d1-80b4-00c04fd430c8" , "cn=John Doe, ou=People, o=Acme, Inc., c=US" )
163
163
end
164
164
165
- assert_not_deprecated do
165
+ assert_not_deprecated ( ActiveSupport . deprecator ) do
166
166
assert_equal "fd5b2ddf-bcfe-58b6-90d6-db50f74db527" , Digest ::UUID . uuid_v5 ( Digest ::UUID ::X500_NAMESPACE , "cn=John Doe, ou=People, o=Acme, Inc., c=US" )
167
167
end
168
168
0 commit comments