torid 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/HISTORY.md +4 -0
- data/lib/torid.rb +1 -1
- data/lib/torid/uuid.rb +1 -1
- data/test/test_uuid.rb +0 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75b5b4431a8b596afe4c63016bde43c434de5e22
|
4
|
+
data.tar.gz: 3b90048fa36d6c4b3ae54e993c42c2055acbd794
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2815d42c3959644c9ba09ff9017f647d55efd30ee708fab08e3467c02967336b91ce432c2c225aa355a24a632a384eb20c9d34196db80c4183cf75706f569dbb
|
7
|
+
data.tar.gz: 9963cbd09d89b0d8b7feb0c59ca7addef19cbaa0ff78146a1b86b86c357bb8d09fa930996399e5497f83c907eb827ad2c7f1ea81b254271ddc0cccbb8fb3b782
|
data/HISTORY.md
CHANGED
data/lib/torid.rb
CHANGED
data/lib/torid/uuid.rb
CHANGED
@@ -22,7 +22,7 @@ module Torid
|
|
22
22
|
class UUID
|
23
23
|
|
24
24
|
# Regular expression that matches the 36 byte 8-4-4-4-12 format
|
25
|
-
REGEX = %r{(
|
25
|
+
REGEX = %r{([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})}i
|
26
26
|
|
27
27
|
# Public: Return if the given string matches the UUID regular expression
|
28
28
|
#
|
data/test/test_uuid.rb
CHANGED
@@ -25,11 +25,6 @@ module Torid
|
|
25
25
|
assert_equal( @guid, md.captures.first )
|
26
26
|
end
|
27
27
|
|
28
|
-
def test_uuid_named_captures
|
29
|
-
md = Torid::UUID::REGEX.match( @guid )
|
30
|
-
assert_equal(@guid, md[:uuid])
|
31
|
-
end
|
32
|
-
|
33
28
|
def test_uuid_no_match
|
34
29
|
assert_equal( nil, Torid::UUID::REGEX.match( "foo" ))
|
35
30
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: torid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Hinegardner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fnv
|