uunique_ids 0.1 → 0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/uunique_ids/uunique_ids.rb +7 -0
  2. metadata +2 -2
@@ -18,6 +18,13 @@ class UUniqueIds
18
18
 
19
19
  end
20
20
 
21
+ def random_dns_uuid_create
22
+ bytes = SecureRandom.random_bytes(16)
23
+ random_int = ::UUIDTools::UUID.convert_byte_string_to_int(bytes)
24
+ sha1_dns = UUIDTools::UUID.sha1_create(UUIDTools::UUID_DNS_NAMESPACE, "www.helium.com".dup + random_int.to_s)
25
+ return sha1_dns.to_s
26
+ end
27
+
21
28
  end
22
29
 
23
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uunique_ids
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.1"
4
+ version: "0.2"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tracy Flynn
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-23 00:00:00 -04:00
12
+ date: 2009-11-01 01:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency