google-authenticator-rails 0.0.11 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZTQ3NzQ5NzFlZDQ3MjEzMzgwMDU0Y2MyNjIwNmI5ODE2Y2U0OTgwNQ==
5
- data.tar.gz: !binary |-
6
- MzZkZTAyMzg4ZjU1MjE2NTQzZTVhMzYyNjQ5OTI1ZjU5N2IxZmJmNw==
2
+ SHA1:
3
+ metadata.gz: 6def8934e47eae7221182c75a4da87dbbd83ab4b
4
+ data.tar.gz: eff3167f67aa78e5c48a5666333a767a5e6a4e95
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- NzJkYzdiMzNiYTc5YWFlZGJmNDllOTU0MzU2ZTIzY2QzY2JiZDcyODFjNzEw
10
- MTAxODA0ZjU3MzA5NWIzM2FiYzhhMjFlNDFmNTg1NzEwNjU3MjJkMzMxNGEw
11
- OTkzNjE1YWY3NTU1ZTk1MzhkZDRlMzc2ZTEyYmYyZDE2NGM4YmY=
12
- data.tar.gz: !binary |-
13
- OWI4MTU4MjQ2NTEwZGNhZDBjZmMyMTYwMDZlNTVkOTExYjljZDI4ZDU3N2Jk
14
- M2Q5YWRiN2UwMmU0MDExNjQ3ZWZjMGE4ZjAzMzg0ZTlmYjlmN2NlZmVhMWVh
15
- YmMwZDIyYjUzMjgzOWZkYWNmYmM1MTRiYjk0ZTc3M2QyNTE4ZWQ=
6
+ metadata.gz: a5c4d4532c13fa333b384d35004b955a49322d9309df3cab6370b1270c621f44227fe570f5145d1819422d3c6346d1220076000d1259e2a43667baa2038aa059
7
+ data.tar.gz: 15c6a5c57b5da5e2628aaa4a660c2228e358164dd65f26c4e3d1a5da2af5cac0ecea09cde2228006f892794da4b3b90d796a6409c113f5e7df5bef8e4dedcf19
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-1.9.3-p484
1
+ ruby-2.1.5
data/.travis.yml CHANGED
@@ -1,6 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.8.7
4
3
  - 1.9.3
5
4
  - 2.0.0
6
5
  - 2.1.0
data/Appraisals CHANGED
@@ -4,12 +4,6 @@ major = version_info.first.to_i
4
4
  minor = version_info[1].to_i
5
5
  hotfix = version_info.last.to_i
6
6
 
7
- if major < 2
8
- appraise "rails2.3" do
9
- gem "activerecord", "~> 2.3.8"
10
- end
11
- end
12
-
13
7
  appraise "rails3.0" do
14
8
  gem "activerecord", "~> 3.0.0"
15
9
  end
@@ -21,3 +15,13 @@ end
21
15
  appraise "rails3.2." do
22
16
  gem "activerecord", "~> 3.2.0"
23
17
  end
18
+
19
+ appraise "rails4.0" do
20
+ gem "activerecord", "~> 4.0.0"
21
+ gem "protected_attributes"
22
+ end
23
+
24
+ appraise "rails4.1" do
25
+ gem "activerecord", "~> 4.1.0"
26
+ gem "protected_attributes"
27
+ end
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- google-authenticator-rails (0.0.9)
4
+ google-authenticator-rails (0.0.11)
5
5
  actionpack
6
- activerecord (< 4.0.0)
6
+ activerecord
7
7
  google-qr
8
8
  rotp (= 1.6.1)
9
9
 
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- google-authenticator-rails (0.0.9)
4
+ google-authenticator-rails (0.0.11)
5
5
  actionpack
6
- activerecord (< 4.0.0)
6
+ activerecord
7
7
  google-qr
8
8
  rotp (= 1.6.1)
9
9
 
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- google-authenticator-rails (0.0.9)
4
+ google-authenticator-rails (0.0.11)
5
5
  actionpack
6
- activerecord (< 4.0.0)
6
+ activerecord
7
7
  google-qr
8
8
  rotp (= 1.6.1)
9
9
 
@@ -60,7 +60,7 @@ GEM
60
60
  rspec-expectations (2.8.0)
61
61
  diff-lcs (~> 1.1.2)
62
62
  rspec-mocks (2.8.0)
63
- sprockets (2.0.4)
63
+ sprockets (2.0.5)
64
64
  hike (~> 1.2)
65
65
  rack (~> 1.0)
66
66
  tilt (~> 1.1, != 1.3.0)
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- google-authenticator-rails (0.0.9)
4
+ google-authenticator-rails (0.0.11)
5
5
  actionpack
6
- activerecord (< 4.0.0)
6
+ activerecord
7
7
  google-qr
8
8
  rotp (= 1.6.1)
9
9
 
@@ -58,7 +58,7 @@ GEM
58
58
  rspec-expectations (2.8.0)
59
59
  diff-lcs (~> 1.1.2)
60
60
  rspec-mocks (2.8.0)
61
- sprockets (2.2.2)
61
+ sprockets (2.2.3)
62
62
  hike (~> 1.2)
63
63
  multi_json (~> 1.0)
64
64
  rack (~> 1.0)
@@ -3,5 +3,6 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "activerecord", "~> 4.0.0"
6
+ gem "protected_attributes"
6
7
 
7
8
  gemspec :path=>"../"
@@ -1,11 +1,11 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- google-authenticator-rails (0.0.6)
4
+ google-authenticator-rails (0.0.11)
5
5
  actionpack
6
6
  activerecord
7
7
  google-qr
8
- rotp (= 1.4.1)
8
+ rotp (= 1.6.1)
9
9
 
10
10
  GEM
11
11
  remote: https://rubygems.org/
@@ -43,11 +43,13 @@ GEM
43
43
  i18n (0.6.9)
44
44
  minitest (4.7.5)
45
45
  multi_json (1.8.4)
46
+ protected_attributes (1.0.8)
47
+ activemodel (>= 4.0.1, < 5.0)
46
48
  rack (1.5.2)
47
49
  rack-test (0.6.2)
48
50
  rack (>= 1.0)
49
51
  rake (10.1.1)
50
- rotp (1.4.1)
52
+ rotp (1.6.1)
51
53
  rspec (2.8.0)
52
54
  rspec-core (~> 2.8.0)
53
55
  rspec-expectations (~> 2.8.0)
@@ -68,5 +70,6 @@ DEPENDENCIES
68
70
  activerecord (~> 4.0.0)
69
71
  appraisal (~> 0.5.1)
70
72
  google-authenticator-rails!
73
+ protected_attributes
71
74
  rspec (~> 2.8.0)
72
75
  sqlite3
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "~> 4.1.0"
6
+ gem "protected_attributes"
7
+
8
+ gemspec :path=>"../"
@@ -0,0 +1,75 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ google-authenticator-rails (0.0.11)
5
+ actionpack
6
+ activerecord
7
+ google-qr
8
+ rotp (= 1.6.1)
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ actionpack (4.1.7)
14
+ actionview (= 4.1.7)
15
+ activesupport (= 4.1.7)
16
+ rack (~> 1.5.2)
17
+ rack-test (~> 0.6.2)
18
+ actionview (4.1.7)
19
+ activesupport (= 4.1.7)
20
+ builder (~> 3.1)
21
+ erubis (~> 2.7.0)
22
+ activemodel (4.1.7)
23
+ activesupport (= 4.1.7)
24
+ builder (~> 3.1)
25
+ activerecord (4.1.7)
26
+ activemodel (= 4.1.7)
27
+ activesupport (= 4.1.7)
28
+ arel (~> 5.0.0)
29
+ activesupport (4.1.7)
30
+ i18n (~> 0.6, >= 0.6.9)
31
+ json (~> 1.7, >= 1.7.7)
32
+ minitest (~> 5.1)
33
+ thread_safe (~> 0.1)
34
+ tzinfo (~> 1.1)
35
+ appraisal (0.5.2)
36
+ bundler
37
+ rake
38
+ arel (5.0.1.20140414130214)
39
+ builder (3.2.2)
40
+ diff-lcs (1.1.3)
41
+ erubis (2.7.0)
42
+ google-qr (0.2.2)
43
+ i18n (0.6.11)
44
+ json (1.8.1)
45
+ minitest (5.4.3)
46
+ protected_attributes (1.0.8)
47
+ activemodel (>= 4.0.1, < 5.0)
48
+ rack (1.5.2)
49
+ rack-test (0.6.2)
50
+ rack (>= 1.0)
51
+ rake (10.3.2)
52
+ rotp (1.6.1)
53
+ rspec (2.8.0)
54
+ rspec-core (~> 2.8.0)
55
+ rspec-expectations (~> 2.8.0)
56
+ rspec-mocks (~> 2.8.0)
57
+ rspec-core (2.8.0)
58
+ rspec-expectations (2.8.0)
59
+ diff-lcs (~> 1.1.2)
60
+ rspec-mocks (2.8.0)
61
+ sqlite3 (1.3.10)
62
+ thread_safe (0.3.4)
63
+ tzinfo (1.2.2)
64
+ thread_safe (~> 0.1)
65
+
66
+ PLATFORMS
67
+ ruby
68
+
69
+ DEPENDENCIES
70
+ activerecord (~> 4.1.0)
71
+ appraisal (~> 0.5.1)
72
+ google-authenticator-rails!
73
+ protected_attributes
74
+ rspec (~> 2.8.0)
75
+ sqlite3
@@ -22,7 +22,7 @@ Gem::Specification.new do |gem|
22
22
  gem.version = Google::Authenticator::Rails::VERSION
23
23
 
24
24
  gem.add_dependency "rotp", "= 1.6.1"
25
- gem.add_dependency "activerecord", "< 4.0.0"
25
+ gem.add_dependency "activerecord"
26
26
  gem.add_dependency "google-qr"
27
27
  gem.add_dependency "actionpack"
28
28
 
@@ -1,7 +1,7 @@
1
1
  module Google
2
2
  module Authenticator
3
3
  module Rails
4
- VERSION = "0.0.11"
4
+ VERSION = "1.0.0"
5
5
  end
6
6
  end
7
7
  end
data/spec/spec_helper.rb CHANGED
@@ -74,7 +74,13 @@ ActiveRecord::Schema.define do
74
74
  end
75
75
 
76
76
  class BaseUser < ActiveRecord::Base
77
- attr_accessible :email, :user_name, :password
77
+ # Older versions of ActiveRecord allow attr_accessible, but newer
78
+ # ones do not
79
+ begin
80
+ attr_accessible :email, :user_name, :password
81
+ rescue
82
+ attr_accessor :email, :user_name, :password
83
+ end
78
84
 
79
85
  self.table_name = "users"
80
86
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-authenticator-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jared McFarland
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-13 00:00:00.000000000 Z
11
+ date: 2014-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rotp
@@ -28,84 +28,84 @@ dependencies:
28
28
  name: activerecord
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - <
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 4.0.0
33
+ version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - <
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 4.0.0
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: google-qr
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: actionpack
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ! '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ! '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: 2.8.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: 2.8.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: appraisal
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: 0.5.1
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: 0.5.1
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: sqlite3
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ! '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ! '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  description: Add the ability to use the Google Authenticator with ActiveRecord.
@@ -115,11 +115,11 @@ executables: []
115
115
  extensions: []
116
116
  extra_rdoc_files: []
117
117
  files:
118
- - .gitignore
119
- - .rspec
120
- - .ruby-gemset
121
- - .ruby-version
122
- - .travis.yml
118
+ - ".gitignore"
119
+ - ".rspec"
120
+ - ".ruby-gemset"
121
+ - ".ruby-version"
122
+ - ".travis.yml"
123
123
  - Appraisals
124
124
  - CONTRIBUTING.md
125
125
  - Gemfile
@@ -136,6 +136,8 @@ files:
136
136
  - gemfiles/rails3.2..gemfile.lock
137
137
  - gemfiles/rails4.0.gemfile
138
138
  - gemfiles/rails4.0.gemfile.lock
139
+ - gemfiles/rails4.1.gemfile
140
+ - gemfiles/rails4.1.gemfile.lock
139
141
  - google-authenticator.gemspec
140
142
  - lib/google-authenticator-rails.rb
141
143
  - lib/google-authenticator-rails/action_controller.rb
@@ -163,17 +165,17 @@ require_paths:
163
165
  - lib
164
166
  required_ruby_version: !ruby/object:Gem::Requirement
165
167
  requirements:
166
- - - ! '>='
168
+ - - ">="
167
169
  - !ruby/object:Gem::Version
168
170
  version: '0'
169
171
  required_rubygems_version: !ruby/object:Gem::Requirement
170
172
  requirements:
171
- - - ! '>='
173
+ - - ">="
172
174
  - !ruby/object:Gem::Version
173
175
  version: '0'
174
176
  requirements: []
175
177
  rubyforge_project:
176
- rubygems_version: 2.2.1
178
+ rubygems_version: 2.4.3
177
179
  signing_key:
178
180
  specification_version: 4
179
181
  summary: Add the ability to use the Google Authenticator with ActiveRecord.