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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a8a44c5913356e5021f9a2a436081489c3a9ee1b
4
- data.tar.gz: 074d86c36eb1695169ad63410903339b4426f3e0
3
+ metadata.gz: 75b5b4431a8b596afe4c63016bde43c434de5e22
4
+ data.tar.gz: 3b90048fa36d6c4b3ae54e993c42c2055acbd794
5
5
  SHA512:
6
- metadata.gz: d8803f5192ca3e835003345adac45a0db8af7880b195bd75ce2b6791e561135782d210537756d99191c57e9da0edc4e598f733cbc6a4c723486159d929915010
7
- data.tar.gz: 2d8b870db402432e01d2dd312f9fbdc3c77c698fee9b04dd34c948e08674eebf51a9efc18d4b7808f77b355a136e9d0544c213cb647c2a7a8e7a4d067802f904
6
+ metadata.gz: 2815d42c3959644c9ba09ff9017f647d55efd30ee708fab08e3467c02967336b91ce432c2c225aa355a24a632a384eb20c9d34196db80c4183cf75706f569dbb
7
+ data.tar.gz: 9963cbd09d89b0d8b7feb0c59ca7addef19cbaa0ff78146a1b86b86c357bb8d09fa930996399e5497f83c907eb827ad2c7f1ea81b254271ddc0cccbb8fb3b782
data/HISTORY.md CHANGED
@@ -1,4 +1,8 @@
1
1
  # Torid Changelog
2
+ ## Version 1.2.3 - 2014-09-13
3
+
4
+ * Use `captures` instead of named captures.
5
+
2
6
  ## Version 1.2.2 - 2014-09-13
3
7
 
4
8
  * And named captures to the uuid regex.
@@ -2,7 +2,7 @@
2
2
  # that sort lexically in time order.
3
3
  module Torid
4
4
  # Public: The Version of the Torid library as a String
5
- VERSION = "1.2.2"
5
+ VERSION = "1.2.3"
6
6
 
7
7
  # Public: return the next Torid::UUID from the default Generator
8
8
  #
@@ -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{(?<uuid>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})}i
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
  #
@@ -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.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-15 00:00:00.000000000 Z
11
+ date: 2014-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fnv