hashtrain-acts_as_random_id 1.0.2 → 1.0.3
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.rdoc +3 -3
- data/Rakefile +2 -2
- metadata +1 -1
data/README.rdoc
CHANGED
|
@@ -7,13 +7,13 @@ Generating unique random id for ActiveRecord models
|
|
|
7
7
|
class Comment < ActiveRecord::Base
|
|
8
8
|
acts_as_random_id
|
|
9
9
|
end
|
|
10
|
-
|
|
10
|
+
|
|
11
11
|
class Group < ActiveRecord::Base
|
|
12
12
|
acts_as_random_id do
|
|
13
13
|
rand(3_14159265) + 1
|
|
14
14
|
end
|
|
15
15
|
end
|
|
16
|
-
|
|
16
|
+
|
|
17
17
|
class Article < ActiveRecord::Base
|
|
18
18
|
acts_as_random_id do
|
|
19
19
|
Time.now.to_i
|
|
@@ -44,6 +44,6 @@ You can specify a range of transfer method "acts_as_random_id" block where the g
|
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
-
==License
|
|
47
|
+
==License
|
|
48
48
|
|
|
49
49
|
Copyright (c) 2009 hashtrain.com and author idea Stanislav Pogrebnyak (stanislav.pogrebnyak@gmail.com), released under the MIT license.
|
data/Rakefile
CHANGED
|
@@ -38,7 +38,7 @@ PKG_FILES = FileList[
|
|
|
38
38
|
|
|
39
39
|
spec = Gem::Specification.new do |s|
|
|
40
40
|
s.name = "acts_as_random_id"
|
|
41
|
-
s.version = "1.0.
|
|
41
|
+
s.version = "1.0.0"
|
|
42
42
|
s.author = "hashtrain.com and author idea Stanislav Pogrebnyak (stanislav.pogrebnyak@gmail.com)"
|
|
43
43
|
s.email = "mail@hashtrain.com"
|
|
44
44
|
s.homepage = "http://github.com/hashtrain/acts_as_random_id/"
|
|
@@ -47,7 +47,7 @@ spec = Gem::Specification.new do |s|
|
|
|
47
47
|
s.files = PKG_FILES.to_a
|
|
48
48
|
s.require_path = "lib"
|
|
49
49
|
s.has_rdoc = false
|
|
50
|
-
s.extra_rdoc_files = ["README
|
|
50
|
+
s.extra_rdoc_files = ["README"]
|
|
51
51
|
end
|
|
52
52
|
|
|
53
53
|
desc 'Turn this plugin into a gem.'
|