mongoid-uuid 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc79151091e3889ad8aae258fc42bfc97a69145c
4
- data.tar.gz: a19fc565e632bdc27d97e6dfab604eed7566954b
3
+ metadata.gz: 4c49187e9abe343acf6ff65cb872e2e4391c04d4
4
+ data.tar.gz: 0f4c6de24ec8604b53979749d289f54a3445c8a0
5
5
  SHA512:
6
- metadata.gz: 629ce700e71b8ce08c1f78669019f9dbbe85a06ef607fae2a4e815f41e5efa5a4f8de7b6351a59418aeef3e806b2aa9a8f84e0a5ed7d6f49fad12d26940fe847
7
- data.tar.gz: 3a22a78054ca630736ca36ec12e3bd37cf459fa3954c1c460d97db2f230e468d0535880c4f2bdba4b02ba98676142163f81842a1a1fdd4f28d403c38ba30499c
6
+ metadata.gz: bd4c4223f73faa4ba9492029afdff0dd896a93745f93cb42b4b3c94d8f5ef78e6788fb4eeee7523ff7fcd66ee0627862ae72b25dbc9a974b10367b72c6366b6f
7
+ data.tar.gz: 18656ef4c40903e31b017c566b8f48be787ae65a1e2323ff9653d29ed3e514506eb75714a2e5f506f7c523ea70f0f5c3aa629eca7fb2839d0e82943c773b7222
@@ -5,7 +5,7 @@ module Mongoid # :nodoc:
5
5
  extend ActiveSupport::Concern
6
6
 
7
7
  included do
8
- field :uuid
8
+ field :uuid, type: String
9
9
  index({ uuid: 1 }, unique: true)
10
10
  before_validation :generate_uuid
11
11
  validates :uuid, uniqueness: true, uuid: true
@@ -27,7 +27,7 @@ module Mongoid # :nodoc:
27
27
 
28
28
  # Sets unique UUID unless uuid is present.
29
29
  def generate_uuid
30
- self.uuid = UUID.generate if uuid.to_s.empty?
30
+ self.uuid = UUID.generate if uuid.blank?
31
31
  end
32
32
  end
33
33
  end
@@ -1,5 +1,5 @@
1
1
  module Mongoid
2
2
  module Uuid
3
- VERSION = '1.1.0'.freeze
3
+ VERSION = '1.2.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-uuid
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yury Druzkov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-17 00:00:00.000000000 Z
11
+ date: 2017-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: uuid
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '2.3'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '3'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '2.3'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '3'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: mongoid
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -33,7 +39,7 @@ dependencies:
33
39
  version: '3.0'
34
40
  - - "<"
35
41
  - !ruby/object:Gem::Version
36
- version: '6'
42
+ version: '7'
37
43
  type: :runtime
38
44
  prerelease: false
39
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -43,7 +49,7 @@ dependencies:
43
49
  version: '3.0'
44
50
  - - "<"
45
51
  - !ruby/object:Gem::Version
46
- version: '6'
52
+ version: '7'
47
53
  - !ruby/object:Gem::Dependency
48
54
  name: rake
49
55
  requirement: !ruby/object:Gem::Requirement
@@ -131,15 +137,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
137
  requirements:
132
138
  - - ">="
133
139
  - !ruby/object:Gem::Version
134
- version: 1.3.6
140
+ version: '0'
135
141
  requirements: []
136
142
  rubyforge_project: mongoid-uuid
137
- rubygems_version: 2.5.1
143
+ rubygems_version: 2.6.8
138
144
  signing_key:
139
145
  specification_version: 4
140
146
  summary: Uuid fields for mongoid
141
147
  test_files:
148
+ - spec/spec_helper.rb
142
149
  - spec/uuid_spec.rb
143
150
  - spec/model.rb
144
- - spec/spec_helper.rb
145
- has_rdoc: