cuid 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.yardopts +0 -1
- data/README.md +29 -6
- data/doc/index.html +88 -1062
- data/lib/cuid.rb +1 -0
- data/lib/cuid/version.rb +1 -1
- data/test/test_cuid.rb +1 -1
- metadata +2 -2
data/lib/cuid.rb
CHANGED
@@ -75,6 +75,7 @@ module Cuid
|
|
75
75
|
#
|
76
76
|
# @param [Integer] quantity determines number of hashes returned (must be greater than 1)
|
77
77
|
# @param [Boolean] secure_random attempts to use SecureRandom if set to True (Ruby 1.9.2 and up; reverts to Kernel#rand if SecureRandom is not supported)
|
78
|
+
# @return [Array<String>]
|
78
79
|
def generate(quantity=1,secure_random=false)
|
79
80
|
@use_secure_random = secure_random
|
80
81
|
@fingerprint = get_fingerprint # only need to get the fingerprint once because it is constant per-run
|
data/lib/cuid/version.rb
CHANGED
data/test/test_cuid.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cuid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-16 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Ruby implementation of Eric Elliot's javascript cuid
|
15
15
|
email:
|