devise_uid 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: aefa7aba60374ca36357323f196ad27b8d671bab
4
+ data.tar.gz: e462e4f9f5c49e33892d9fb2b4ed0acd58fd9d3b
5
+ SHA512:
6
+ metadata.gz: 7585b39011dac23d1d673444cd75e94b70b77decd6a3ac9d2a08f57f953473f1f5951005b5088d317b35e930229e10d37d1da51e68151277987e7eca83931c0c
7
+ data.tar.gz: cf288d6fc02290846d3eb33c7d74986e9e74da94bf17d8814e54387fbd9a4ece35b5510680323abbea88d5b3b62c94e8e6543e822580716ca783819d1920458e
data/.travis.yml CHANGED
@@ -1,12 +1,9 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - 2.0.0
3
4
  - 1.9.3
4
- - 1.8.7
5
- - jruby-18mode
6
5
  - jruby-19mode
7
- - rbx-18mode
8
6
  - rbx-19mode
9
- - ree
10
7
  notifications:
11
8
  recipients:
12
9
  - jingweno@gmail.com
data/devise_uid.gemspec CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
19
 
20
- gem.add_dependency("devise", ">= 2.1.2")
20
+ gem.add_dependency("devise", ">= 3.0.0")
21
21
  gem.add_dependency("railties", ">= 3.0")
22
22
 
23
23
  gem.add_development_dependency "rspec", "~> 2.12"
@@ -9,7 +9,10 @@ module Devise
9
9
 
10
10
  module ClassMethods
11
11
  def uid
12
- generate_token(:uid)
12
+ loop do
13
+ token = Devise.friendly_token
14
+ break token unless to_adapter.find_first({ :uid => token })
15
+ end
13
16
  end
14
17
  end
15
18
 
@@ -1,3 +1,3 @@
1
1
  module DeviseUid
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,52 +1,46 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_uid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
5
- prerelease:
4
+ version: 0.0.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jingwen Owen Ou
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-06-30 00:00:00.000000000 Z
11
+ date: 2013-10-13 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: devise
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
- version: 2.1.2
19
+ version: 3.0.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
- version: 2.1.2
26
+ version: 3.0.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: railties
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '3.0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '3.0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rspec
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ~>
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
@@ -84,27 +77,26 @@ files:
84
77
  - spec/spec_helper.rb
85
78
  homepage: https://github.com/jingweno/devise_uid
86
79
  licenses: []
80
+ metadata: {}
87
81
  post_install_message:
88
82
  rdoc_options: []
89
83
  require_paths:
90
84
  - lib
91
85
  required_ruby_version: !ruby/object:Gem::Requirement
92
- none: false
93
86
  requirements:
94
- - - ! '>='
87
+ - - '>='
95
88
  - !ruby/object:Gem::Version
96
89
  version: '0'
97
90
  required_rubygems_version: !ruby/object:Gem::Requirement
98
- none: false
99
91
  requirements:
100
- - - ! '>='
92
+ - - '>='
101
93
  - !ruby/object:Gem::Version
102
94
  version: '0'
103
95
  requirements: []
104
96
  rubyforge_project:
105
- rubygems_version: 1.8.24
97
+ rubygems_version: 2.0.3
106
98
  signing_key:
107
- specification_version: 3
99
+ specification_version: 4
108
100
  summary: Add UID support to Devise
109
101
  test_files:
110
102
  - spec/db/migrate/20100401102949_create_tables.rb