king_tokens 1.0.0 → 1.0.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.
data/Rakefile CHANGED
@@ -11,8 +11,7 @@ begin
11
11
  gem.description = %Q{Tokens are a usefull way to give users access to an application. This can be for a limited time or just once. Just think of password resets, changing email, protected rss feed urls, timed out private links}
12
12
  gem.email = "gl@salesking.eu"
13
13
  gem.homepage = "http://github.com/schorsch/king_tokens"
14
- gem.authors = ["Georg Leciejewski"]
15
- gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
14
+ gem.authors = ["Georg Leciejewski", "Michael Bumann"]
16
15
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
17
16
  end
18
17
  Jeweler::GemcutterTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
@@ -0,0 +1,59 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{king_tokens}
8
+ s.version = "1.0.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Georg Leciejewski", "Michael Bumann"]
12
+ s.date = %q{2010-05-04}
13
+ s.description = %q{Tokens are a usefull way to give users access to an application. This can be for a limited time or just once. Just think of password resets, changing email, protected rss feed urls, timed out private links}
14
+ s.email = %q{gl@salesking.eu}
15
+ s.extra_rdoc_files = [
16
+ "README.rdoc"
17
+ ]
18
+ s.files = [
19
+ ".document",
20
+ ".gitignore",
21
+ "MIT-LICENSE",
22
+ "README.rdoc",
23
+ "Rakefile",
24
+ "VERSION",
25
+ "coverage/index.html",
26
+ "coverage/lib-token_code_rb.html",
27
+ "coverage/lib-tokenizer_rb.html",
28
+ "init.rb",
29
+ "king_tokens.gemspec",
30
+ "lib/king_tokens.rb",
31
+ "lib/king_tokens/token_code.rb",
32
+ "lib/king_tokens/tokenizer.rb",
33
+ "tasks/tokenizer_tasks.rake",
34
+ "test/schema.rb",
35
+ "test/test_helper.rb",
36
+ "test/tokenizer_test.rb"
37
+ ]
38
+ s.homepage = %q{http://github.com/schorsch/king_tokens}
39
+ s.rdoc_options = ["--charset=UTF-8"]
40
+ s.require_paths = ["lib"]
41
+ s.rubygems_version = %q{1.3.6}
42
+ s.summary = %q{Access tokens for any active record object}
43
+ s.test_files = [
44
+ "test/schema.rb",
45
+ "test/test_helper.rb",
46
+ "test/tokenizer_test.rb"
47
+ ]
48
+
49
+ if s.respond_to? :specification_version then
50
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
51
+ s.specification_version = 3
52
+
53
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
54
+ else
55
+ end
56
+ else
57
+ end
58
+ end
59
+
@@ -3,9 +3,6 @@ require "digest/sha1"
3
3
  # Class to handle polymorphic tokens
4
4
  class TokenCode < ActiveRecord::Base
5
5
 
6
- #In case someone is using uuids
7
- usesguid if defined?(usesguid)
8
-
9
6
  belongs_to :object, :polymorphic => true
10
7
  before_create :set_token
11
8
 
metadata CHANGED
@@ -5,30 +5,20 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 0
9
- version: 1.0.0
8
+ - 1
9
+ version: 1.0.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Georg Leciejewski
13
+ - Michael Bumann
13
14
  autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-03-09 00:00:00 +01:00
18
+ date: 2010-05-04 00:00:00 +02:00
18
19
  default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- name: thoughtbot-shoulda
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 0
29
- version: "0"
30
- type: :development
31
- version_requirements: *id001
20
+ dependencies: []
21
+
32
22
  description: Tokens are a usefull way to give users access to an application. This can be for a limited time or just once. Just think of password resets, changing email, protected rss feed urls, timed out private links
33
23
  email: gl@salesking.eu
34
24
  executables: []
@@ -48,6 +38,7 @@ files:
48
38
  - coverage/lib-token_code_rb.html
49
39
  - coverage/lib-tokenizer_rb.html
50
40
  - init.rb
41
+ - king_tokens.gemspec
51
42
  - lib/king_tokens.rb
52
43
  - lib/king_tokens/token_code.rb
53
44
  - lib/king_tokens/tokenizer.rb