uniquify-uuid 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@ module Uniquify
6
6
  module InstanceMethods
7
7
  def ensure_unique(name)
8
8
  begin
9
- self[name] = yield
9
+ self[name] = yield(self)
10
10
  end while self.class.exists?(name => self[name])
11
11
  end
12
12
  end
@@ -1,3 +1,3 @@
1
1
  module Uniquify
2
- VERSION = '0.0.2'
3
- end
2
+ VERSION = '0.0.3'
3
+ end
metadata CHANGED
@@ -1,38 +1,35 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: uniquify-uuid
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3
4
5
  prerelease:
5
- version: 0.0.2
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - rwz
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-05-24 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
12
+ date: 2011-09-12 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
16
15
  name: simple_uuid
17
- prerelease: false
18
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70125422255740 !ruby/object:Gem::Requirement
19
17
  none: false
20
- requirements:
21
- - - "="
22
- - !ruby/object:Gem::Version
18
+ requirements:
19
+ - - =
20
+ - !ruby/object:Gem::Version
23
21
  version: 0.1.2
24
22
  type: :runtime
25
- version_requirements: *id001
26
- description: The same as Ryan Bates uniquify gem, but uses UUID as default to generate tokens.
27
- email:
23
+ prerelease: false
24
+ version_requirements: *70125422255740
25
+ description: The same as Ryan Bates uniquify gem, but uses UUID as default to generate
26
+ tokens.
27
+ email:
28
28
  - rwz@duckroll.ru
29
29
  executables: []
30
-
31
30
  extensions: []
32
-
33
31
  extra_rdoc_files: []
34
-
35
- files:
32
+ files:
36
33
  - .gitignore
37
34
  - Gemfile
38
35
  - README.md
@@ -43,30 +40,26 @@ files:
43
40
  - uniquify-uuid.gemspec
44
41
  homepage: http://github.com/rwz/uniquify-uuid
45
42
  licenses: []
46
-
47
43
  post_install_message:
48
44
  rdoc_options: []
49
-
50
- require_paths:
45
+ require_paths:
51
46
  - lib
52
- required_ruby_version: !ruby/object:Gem::Requirement
47
+ required_ruby_version: !ruby/object:Gem::Requirement
53
48
  none: false
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- version: "0"
58
- required_rubygems_version: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ! '>='
51
+ - !ruby/object:Gem::Version
52
+ version: '0'
53
+ required_rubygems_version: !ruby/object:Gem::Requirement
59
54
  none: false
60
- requirements:
61
- - - ">="
62
- - !ruby/object:Gem::Version
63
- version: "0"
55
+ requirements:
56
+ - - ! '>='
57
+ - !ruby/object:Gem::Version
58
+ version: '0'
64
59
  requirements: []
65
-
66
60
  rubyforge_project: uniquify-uuid
67
- rubygems_version: 1.8.3
61
+ rubygems_version: 1.8.10
68
62
  signing_key:
69
63
  specification_version: 3
70
64
  summary: Generate a unique UUID token with Active Record.
71
65
  test_files: []
72
-