has_uuid 0.0.5 → 0.0.6
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.
- data/README.markdown +7 -0
- data/lib/has_uuid/version.rb +1 -1
- metadata +4 -4
data/README.markdown
CHANGED
|
@@ -6,10 +6,15 @@ has_uuid
|
|
|
6
6
|
It depends on the [uuidtools](http://uuidtools.rubyforge.org/) gem.
|
|
7
7
|
|
|
8
8
|
This is a fork - full credits for the source code go to [has_uuid](http://github.com/norbert/has_uuid).
|
|
9
|
+
|
|
9
10
|
What I changed:
|
|
11
|
+
|
|
10
12
|
a) Made it rails 3.1 compatible.
|
|
13
|
+
|
|
11
14
|
b) Bundler'ized it - you can now use and manage it as a gem, not as a rails plugin.
|
|
12
15
|
|
|
16
|
+
c) Added generate_uuid as a class method
|
|
17
|
+
|
|
13
18
|
Installation
|
|
14
19
|
------------
|
|
15
20
|
|
|
@@ -51,6 +56,8 @@ Usage
|
|
|
51
56
|
# check if the current UUID is valid
|
|
52
57
|
@post.uuid_valid?
|
|
53
58
|
|
|
59
|
+
# Generate a UUID to use it later
|
|
60
|
+
Post.generate_uuid
|
|
54
61
|
|
|
55
62
|
Credits
|
|
56
63
|
-------
|
data/lib/has_uuid/version.rb
CHANGED
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: has_uuid
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 0.0.
|
|
5
|
+
version: 0.0.6
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- "Timo R\xC3\xB6\xC3\x9Fner"
|
|
@@ -10,7 +10,7 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date: 2011-08-
|
|
13
|
+
date: 2011-08-11 00:00:00 +02:00
|
|
14
14
|
default_executable:
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
@@ -92,7 +92,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
92
92
|
requirements:
|
|
93
93
|
- - ">="
|
|
94
94
|
- !ruby/object:Gem::Version
|
|
95
|
-
hash:
|
|
95
|
+
hash: 1063335265
|
|
96
96
|
segments:
|
|
97
97
|
- 0
|
|
98
98
|
version: "0"
|
|
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
101
101
|
requirements:
|
|
102
102
|
- - ">="
|
|
103
103
|
- !ruby/object:Gem::Version
|
|
104
|
-
hash:
|
|
104
|
+
hash: 1063335265
|
|
105
105
|
segments:
|
|
106
106
|
- 0
|
|
107
107
|
version: "0"
|