cuid 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Cuid
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -24,7 +24,7 @@ class CuidTest < Test::Unit::TestCase
24
24
  assert Cuid::validate(c)
25
25
  end
26
26
 
27
- def test_valiate_false
27
+ def test_validate_false
28
28
  c = "d00000000000000000000"
29
29
  assert !Cuid::validate(c)
30
30
  end
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.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-15 00:00:00.000000000 Z
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: