gen_token 0.0.2 → 0.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/Gemfile.lock +15 -0
- data/README.markdown +19 -0
- data/gen_token.gemspec +2 -2
- data/lib/gen_token/version.rb +1 -1
- metadata +8 -6
data/Gemfile.lock
ADDED
data/README.markdown
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
GenToken
|
2
|
+
--------
|
3
|
+
|
4
|
+
GenToken is an ActiveRecord specific extension that will generate a
|
5
|
+
unique value in a particular field for your model. It's useful to
|
6
|
+
adding a publicly visible key to your model when simply hashing won't do
|
7
|
+
For security purposes a hash may not be adequate since it is generated from
|
8
|
+
the
|
9
|
+
|
10
|
+
Usage
|
11
|
+
-----
|
12
|
+
|
13
|
+
class MyModel < ActiveRecord::Base
|
14
|
+
attr_accessor :token
|
15
|
+
include GenToken
|
16
|
+
gen_token :token
|
17
|
+
end
|
18
|
+
|
19
|
+
Easy.
|
data/gen_token.gemspec
CHANGED
@@ -6,8 +6,8 @@ Gem::Specification.new do |s|
|
|
6
6
|
s.version = GenToken::VERSION
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
8
|
s.authors = ["Graeme Rouse"]
|
9
|
-
s.email = ["graeme@
|
10
|
-
s.homepage = "http://www.
|
9
|
+
s.email = ["graeme@arizonabay.com"]
|
10
|
+
s.homepage = "http://www.arizonabay.com"
|
11
11
|
s.summary = "Simply generates a unique token in a database."
|
12
12
|
s.description = "Point GenToken at a database column and it will generate a random and unique key for the field. "
|
13
13
|
|
data/lib/gen_token/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gen_token
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Graeme Rouse
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-06-
|
18
|
+
date: 2011-06-17 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -36,7 +36,7 @@ dependencies:
|
|
36
36
|
version_requirements: *id001
|
37
37
|
description: "Point GenToken at a database column and it will generate a random and unique key for the field. "
|
38
38
|
email:
|
39
|
-
- graeme@
|
39
|
+
- graeme@arizonabay.com
|
40
40
|
executables: []
|
41
41
|
|
42
42
|
extensions: []
|
@@ -46,12 +46,14 @@ extra_rdoc_files: []
|
|
46
46
|
files:
|
47
47
|
- .gitignore
|
48
48
|
- Gemfile
|
49
|
+
- Gemfile.lock
|
50
|
+
- README.markdown
|
49
51
|
- Rakefile
|
50
52
|
- gen_token.gemspec
|
51
53
|
- lib/gen_token.rb
|
52
54
|
- lib/gen_token/version.rb
|
53
55
|
has_rdoc: true
|
54
|
-
homepage: http://www.
|
56
|
+
homepage: http://www.arizonabay.com
|
55
57
|
licenses: []
|
56
58
|
|
57
59
|
post_install_message:
|