hoodoo 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/hoodoo/utilities/uuid.rb +3 -1
- data/lib/hoodoo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Mjc4OGM2NmE0N2Y0Zjg1ZjIzNWIyM2IzMThhYTdjNjZhYzIwNjRmZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDJjY2M3YzFhOTVkYmQ4NDNhMmM5ODFhMTVkNDU2ZjU1NTliMzE0ZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OGY0YzZiM2RkOWY2MDlhM2U2OGYzMGZjZGJhYTEyNDk3NGU0YTZhZTRmYTA3
|
10
|
+
Nzk3YmJlMzdiNDNkZTM2NDc4ZGI5MDlkOWZlMDgyODU2NDQ2MGQ1MGFmYWZh
|
11
|
+
M2Q3ZGRjNGE2YzY0ZmFlY2U3NzkxNTJmZTI4OTNjNzVlNjA2N2U=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NTE3NTdhNjAxZTA0NmI3YWQ3OTNmNDgzMTliODVmZTI0NWRmYmE0YTBiZWNm
|
14
|
+
MjEyY2FiZTRjYTY4NDQ2ZmIyZDgyYjFiYzcwMTJhNWExNmVlZWQxMDYyYjM5
|
15
|
+
ZWU0N2UwZTRkNWYzNmMxNzhkNTEwMThjMzI2Y2ZmMjY2NGE5NWY=
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'securerandom'
|
2
|
+
|
1
3
|
module Hoodoo
|
2
4
|
|
3
5
|
# Class that handles generation and validation of UUIDs. Whenever you
|
@@ -25,7 +27,7 @@ module Hoodoo
|
|
25
27
|
# Generate a unique identifier. Returns a 32 character string.
|
26
28
|
#
|
27
29
|
def self.generate
|
28
|
-
SecureRandom.uuid().gsub!( '-', '' )
|
30
|
+
::SecureRandom.uuid().gsub!( '-', '' )
|
29
31
|
end
|
30
32
|
|
31
33
|
# Checks if a UUID string is valid. Returns +true+ if so, else +false+.
|
data/lib/hoodoo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hoodoo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Loyalty New Zealand
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: kgio
|