devise_google_authenticator 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -1,6 +1,18 @@
1
- = devise_google_authenticator
1
+ = Devise Google Authenticator
2
+
3
+ This is a devise[https://github.com/plataformatec/devise] extension to allow your app to utilise Google Authenticator[http://code.google.com/p/google-authenticator/] for Time-based One Time Passwords (TOTP).
4
+
5
+ == Changes
6
+ * Version 0.1 - initial release, just to push it up, is still very early and requires a bit work
7
+
8
+ == Usage
9
+ * After getting devise working with your rails app, add a 'require devise_google_authenticator' line.
10
+ * Modify your user model (through a migration) and add t.gauth_secret and t.gauth_enabled
11
+ * Modify your user model (through its model file) and include :google_authenticatable to your 'devise' line
12
+ * Modify your user model (through its model file) and include :gauth_enabled into your model's attr_accessible
13
+ * Ensure you've installed devise's views, and modify the sessions .. #CF TODO
14
+ * Migrate your db
2
15
 
3
- Description goes here.
4
16
 
5
17
  == Contributing to devise_google_authenticator
6
18
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "devise_google_authenticator"
8
- s.version = "0.1.0"
8
+ s.version = "0.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Christian Frichot"]
12
- s.date = "2011-11-21"
12
+ s.date = "2011-11-22"
13
13
  s.description = "Devise Google Authenticator Extension, for adding Google's OTP to your Rails apps!"
14
14
  s.email = "xntrik@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -39,11 +39,9 @@ Gem::Specification.new do |s|
39
39
  "lib/devise_google_authenticatable/rails.rb",
40
40
  "lib/devise_google_authenticatable/routes.rb",
41
41
  "lib/devise_google_authenticatable/schema.rb",
42
- "lib/devise_google_authenticator.rb",
43
- "test/helper.rb",
44
- "test/test_devise_google_authenticator.rb"
42
+ "lib/devise_google_authenticator.rb"
45
43
  ]
46
- s.homepage = "http://github.com/xntrik/devise_google_authenticator"
44
+ s.homepage = "http://github.com/AsteriskLabs/devise_google_authenticator"
47
45
  s.licenses = ["MIT"]
48
46
  s.require_paths = ["lib"]
49
47
  s.rubygems_version = "1.8.10"
@@ -56,7 +54,7 @@ Gem::Specification.new do |s|
56
54
  s.add_runtime_dependency(%q<rails>, [">= 0"])
57
55
  s.add_runtime_dependency(%q<devise>, [">= 0"])
58
56
  s.add_runtime_dependency(%q<rotp>, [">= 0"])
59
- s.add_development_dependency(%q<shoulda>, [">= 0"])
57
+ s.add_development_dependency(%q<shoulda>, ["~> 2.11.3"])
60
58
  s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
61
59
  s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
62
60
  s.add_development_dependency(%q<rcov>, [">= 0"])
@@ -64,7 +62,7 @@ Gem::Specification.new do |s|
64
62
  s.add_dependency(%q<rails>, [">= 0"])
65
63
  s.add_dependency(%q<devise>, [">= 0"])
66
64
  s.add_dependency(%q<rotp>, [">= 0"])
67
- s.add_dependency(%q<shoulda>, [">= 0"])
65
+ s.add_dependency(%q<shoulda>, ["~> 2.11.3"])
68
66
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
69
67
  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
70
68
  s.add_dependency(%q<rcov>, [">= 0"])
@@ -73,7 +71,7 @@ Gem::Specification.new do |s|
73
71
  s.add_dependency(%q<rails>, [">= 0"])
74
72
  s.add_dependency(%q<devise>, [">= 0"])
75
73
  s.add_dependency(%q<rotp>, [">= 0"])
76
- s.add_dependency(%q<shoulda>, [">= 0"])
74
+ s.add_dependency(%q<shoulda>, ["~> 2.11.3"])
77
75
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
78
76
  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
79
77
  s.add_dependency(%q<rcov>, [">= 0"])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_google_authenticator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-21 00:00:00.000000000Z
12
+ date: 2011-11-22 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70249517217040 !ruby/object:Gem::Requirement
16
+ requirement: &70110996098120 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70249517217040
24
+ version_requirements: *70110996098120
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: devise
27
- requirement: &70249517216520 !ruby/object:Gem::Requirement
27
+ requirement: &70110996096960 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70249517216520
35
+ version_requirements: *70110996096960
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rotp
38
- requirement: &70249517215940 !ruby/object:Gem::Requirement
38
+ requirement: &70110996095860 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,21 +43,21 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70249517215940
46
+ version_requirements: *70110996095860
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: shoulda
49
- requirement: &70249517215320 !ruby/object:Gem::Requirement
49
+ requirement: &70110996094140 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
- - - ! '>='
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 2.11.3
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70249517215320
57
+ version_requirements: *70110996094140
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: bundler
60
- requirement: &70249517214560 !ruby/object:Gem::Requirement
60
+ requirement: &70110996093400 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 1.0.0
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70249517214560
68
+ version_requirements: *70110996093400
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: jeweler
71
- requirement: &70249517213420 !ruby/object:Gem::Requirement
71
+ requirement: &70110996092680 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 1.6.4
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70249517213420
79
+ version_requirements: *70110996092680
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: rcov
82
- requirement: &70249517212620 !ruby/object:Gem::Requirement
82
+ requirement: &70110996091360 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70249517212620
90
+ version_requirements: *70110996091360
91
91
  description: Devise Google Authenticator Extension, for adding Google's OTP to your
92
92
  Rails apps!
93
93
  email: xntrik@gmail.com
@@ -120,9 +120,7 @@ files:
120
120
  - lib/devise_google_authenticatable/routes.rb
121
121
  - lib/devise_google_authenticatable/schema.rb
122
122
  - lib/devise_google_authenticator.rb
123
- - test/helper.rb
124
- - test/test_devise_google_authenticator.rb
125
- homepage: http://github.com/xntrik/devise_google_authenticator
123
+ homepage: http://github.com/AsteriskLabs/devise_google_authenticator
126
124
  licenses:
127
125
  - MIT
128
126
  post_install_message:
@@ -137,7 +135,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
137
135
  version: '0'
138
136
  segments:
139
137
  - 0
140
- hash: -1606279146511615943
138
+ hash: 157752787018540220
141
139
  required_rubygems_version: !ruby/object:Gem::Requirement
142
140
  none: false
143
141
  requirements:
data/test/helper.rb DELETED
@@ -1,18 +0,0 @@
1
- require 'rubygems'
2
- require 'bundler'
3
- begin
4
- Bundler.setup(:default, :development)
5
- rescue Bundler::BundlerError => e
6
- $stderr.puts e.message
7
- $stderr.puts "Run `bundle install` to install missing gems"
8
- exit e.status_code
9
- end
10
- require 'test/unit'
11
- require 'shoulda'
12
-
13
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
14
- $LOAD_PATH.unshift(File.dirname(__FILE__))
15
- require 'devise_google_authenticator'
16
-
17
- class Test::Unit::TestCase
18
- end
@@ -1,7 +0,0 @@
1
- require 'helper'
2
-
3
- class TestDeviseGoogleAuthenticator < Test::Unit::TestCase
4
- should "probably rename this file and start testing for real" do
5
- flunk "hey buddy, you should probably rename this file and start testing for real"
6
- end
7
- end