has_unique_identifier 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/gems.locked +1 -7
- data/lib/has_unique_identifier.rb +5 -3
- data/lib/has_unique_identifier/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a1d8b8154e9aec0b47aa346f8d8dceb4161d978715fafeb4a96261889c786947
|
|
4
|
+
data.tar.gz: 9abfe069359260a7e78dacd41feaf36c5ebd9f58e4d82cc9c0c2d84d29f9fdc6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b0a10154f16bb6e884ce148983ba2ca9afc0963ddc8daf19bb6e72b44b641bbb7ffbc0549c3cd23d7650045e015babd05f8d0f855fba2fb1a8d1f193c703cb5c
|
|
7
|
+
data.tar.gz: 4a93b611cab3d2165818888d1a232fcd4c3c2e71f8d83735b6f386e5b375630446919603ada9e00aa2c502e4e4afd5ab45c075fcae879ab69c26875cb0af8f0d
|
data/gems.locked
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
has_unique_identifier (0.2.
|
|
4
|
+
has_unique_identifier (0.2.1)
|
|
5
5
|
activemodel (>= 4.0)
|
|
6
6
|
activesupport (>= 4.0)
|
|
7
7
|
|
|
@@ -15,16 +15,11 @@ GEM
|
|
|
15
15
|
i18n (~> 0.7)
|
|
16
16
|
minitest (~> 5.1)
|
|
17
17
|
tzinfo (~> 1.1)
|
|
18
|
-
coderay (1.1.2)
|
|
19
18
|
concurrent-ruby (1.0.5)
|
|
20
19
|
diff-lcs (1.3)
|
|
21
20
|
i18n (0.9.5)
|
|
22
21
|
concurrent-ruby (~> 1.0)
|
|
23
|
-
method_source (0.9.0)
|
|
24
22
|
minitest (5.11.3)
|
|
25
|
-
pry (0.11.3)
|
|
26
|
-
coderay (~> 1.1.0)
|
|
27
|
-
method_source (~> 0.9.0)
|
|
28
23
|
rake (10.5.0)
|
|
29
24
|
rspec (3.7.0)
|
|
30
25
|
rspec-core (~> 3.7.0)
|
|
@@ -49,7 +44,6 @@ PLATFORMS
|
|
|
49
44
|
DEPENDENCIES
|
|
50
45
|
bundler (~> 1.10)
|
|
51
46
|
has_unique_identifier!
|
|
52
|
-
pry
|
|
53
47
|
rake (~> 10.0)
|
|
54
48
|
rspec
|
|
55
49
|
|
|
@@ -8,8 +8,10 @@ require 'has_unique_identifier/instance_methods'
|
|
|
8
8
|
require_relative 'has_unique_identifier/railtie' if defined? Rails
|
|
9
9
|
|
|
10
10
|
module HasUniqueIdentifier
|
|
11
|
-
def self.
|
|
12
|
-
base.
|
|
13
|
-
|
|
11
|
+
def self.setup_orm(base)
|
|
12
|
+
base.class_eval do
|
|
13
|
+
extend ClassMethods
|
|
14
|
+
include InstanceMethods
|
|
15
|
+
end
|
|
14
16
|
end
|
|
15
17
|
end
|