noid 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/noid/minter.rb +1 -1
  3. metadata +10 -10
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.1
1
+ 0.5.2
data/lib/noid/minter.rb CHANGED
@@ -6,7 +6,6 @@ module Noid
6
6
  attr_writer :counters
7
7
 
8
8
  def initialize args = {}
9
- @seq = 0
10
9
  seed(args[:seed], args[:seq])
11
10
  @template_string = args[:template]
12
11
  @max_counters = args[:max_counters]
@@ -64,6 +63,7 @@ module Noid
64
63
  @rand = Random.new(seed) if seed
65
64
  @rand ||= Random.new
66
65
  @seed = @rand.seed
66
+ @seq = seq || 0
67
67
 
68
68
  seq.times { @rand.rand } if seq
69
69
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: noid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,12 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-07-13 00:00:00.000000000 -04:00
12
+ date: 2011-07-14 00:00:00.000000000 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: backports
17
- requirement: &2153515780 !ruby/object:Gem::Requirement
17
+ requirement: &2169181340 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2153515780
25
+ version_requirements: *2169181340
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: bundler
28
- requirement: &2153515260 !ruby/object:Gem::Requirement
28
+ requirement: &2169180820 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 1.0.0
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *2153515260
36
+ version_requirements: *2169180820
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: rspec
39
- requirement: &2153514760 !ruby/object:Gem::Requirement
39
+ requirement: &2169180320 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: '2.0'
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *2153514760
47
+ version_requirements: *2169180320
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: rcov
50
- requirement: &2153514300 !ruby/object:Gem::Requirement
50
+ requirement: &2169179860 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,7 +55,7 @@ dependencies:
55
55
  version: '0'
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *2153514300
58
+ version_requirements: *2169179860
59
59
  description: ''
60
60
  email:
61
61
  - chris@cbeer.info