authpwn_rails 0.21.1 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +2 -4
  3. data/Gemfile +6 -6
  4. data/Gemfile.lock +69 -65
  5. data/{Gemfile.rails4 → Gemfile.rails5} +7 -6
  6. data/{README.rdoc → README.md} +21 -13
  7. data/Rakefile +1 -1
  8. data/VERSION +1 -1
  9. data/app/models/tokens/email_verification.rb +2 -2
  10. data/app/models/tokens/password_reset.rb +1 -1
  11. data/authpwn_rails.gemspec +26 -28
  12. data/lib/authpwn_rails/generators/templates/001_create_users.rb +1 -1
  13. data/lib/authpwn_rails/generators/templates/003_create_credentials.rb +2 -2
  14. data/lib/authpwn_rails/generators/templates/session/forbidden.html.erb +1 -1
  15. data/lib/authpwn_rails/generators/templates/session/home.html.erb +3 -2
  16. data/lib/authpwn_rails/generators/templates/session_controller_test.rb +11 -11
  17. data/lib/authpwn_rails/generators/templates/session_mailer_test.rb +2 -10
  18. data/lib/authpwn_rails/http_basic.rb +4 -4
  19. data/lib/authpwn_rails/http_token.rb +1 -1
  20. data/lib/authpwn_rails/session.rb +4 -4
  21. data/lib/authpwn_rails/session_controller.rb +6 -10
  22. data/test/{test_extensions_test.rb → action_controller_test_extensions_test.rb} +4 -5
  23. data/test/cookie_controller_test.rb +52 -42
  24. data/test/credentials/api_token_test.rb +2 -2
  25. data/test/credentials/email_verification_token_test.rb +2 -2
  26. data/test/credentials/omni_auth_uid_credential_test.rb +3 -4
  27. data/test/credentials/one_time_token_credential_test.rb +6 -6
  28. data/test/credentials/password_reset_token_test.rb +3 -3
  29. data/test/credentials/session_uid_token_test.rb +2 -2
  30. data/test/credentials/token_crendential_test.rb +3 -3
  31. data/test/fixtures/bare_session/forbidden.html.erb +1 -1
  32. data/test/fixtures/bare_session/home.html.erb +3 -2
  33. data/test/fixtures/bare_session/welcome.html.erb +1 -1
  34. data/test/helpers/db_setup.rb +2 -2
  35. data/test/helpers/test_order.rb +1 -3
  36. data/test/http_basic_controller_test.rb +24 -12
  37. data/test/http_token_controller_test.rb +24 -12
  38. data/test/session_controller_api_test.rb +140 -164
  39. data/test/session_mailer_api_test.rb +2 -10
  40. metadata +19 -27
  41. data/Gemfile.rails41 +0 -18
  42. data/Gemfile.rails42 +0 -18
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 79347acf991659271a428bfb677c3cee133139a0
4
- data.tar.gz: 589da4ac9e17ef7b4991615066a2c145fcb14a95
3
+ metadata.gz: b4d2ef2f022f0291e7f6907421c3fa9e97c7927a
4
+ data.tar.gz: b7e5855908c7f21b066de25fa94c718551d93ec5
5
5
  SHA512:
6
- metadata.gz: 74e5f7e2bc4418a0da94ead6d3300a7896294f27752f958863611d2412e2770149fb1afa1e9d0578afc6ab0073f2053336e24cd5e7fb5e992de08a27fad9b220
7
- data.tar.gz: ea7df2b177956b08482bf5c11ab3e503e88f46777e8412798bef4307d617a6bba83ecc96ada668a4daa4ed9be83de59f60a83753988bf6bf435526b513bfdde9
6
+ metadata.gz: 8644d47e59cc1741668b00e7fd8481e83746df0f4a3b91d5a334365d4e07cee4c4caa8dfef9fccb730781aa782ab0c549ecfa0ed1f43db3f6fcc50b16c7175fc
7
+ data.tar.gz: d9336b5c8e5e901d85311a8ac1c79a7e99c363c4dbd3cae4f556425e4cbdb1ee4598ffd39dd902e6b6e11deb23a45395fcd3117f3b224d1cd25e397e92b6f145
@@ -10,9 +10,7 @@ env:
10
10
  - DB=pg DB_USER=postgres
11
11
  - DB=sqlite
12
12
  gemfile:
13
- - Gemfile.rails4
14
- - Gemfile.rails41
15
- - Gemfile.rails42
13
+ - Gemfile.rails5
16
14
  rvm:
17
- - 2.1.9
18
15
  - 2.2.5
16
+ - 2.3.1
data/Gemfile CHANGED
@@ -1,18 +1,18 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem 'base32', '>= 0.3.2'
4
- gem 'rails', ['~> 4.0', '>= 4.0.13']
4
+ gem 'rails', '>= 5.0.0.1'
5
5
 
6
6
  group :development do
7
7
  gem 'bundler', '>= 1.6.6'
8
8
  gem 'mocha', '>= 1.1.0'
9
- gem 'jeweler', '>= 2.0.1'
9
+ gem 'jeweler', '>= 2.1.1'
10
10
  gem 'simplecov', '>= 0'
11
- gem 'mysql2', '>= 0.3.20'
11
+ gem 'mysql2', '>= 0.4.4'
12
12
  gem 'omniauth', '>= 1.3.1'
13
- gem 'pg', '>= 0.18.4'
14
- gem 'rake', '>= 11.1.1'
15
- gem 'sqlite3', '>= 1.3.11'
13
+ gem 'pg', '>= 0.19.0'
14
+ gem 'rake', '>= 11.3.0'
15
+ gem 'sqlite3', '>= 1.3.12'
16
16
  gem 'rubysl', platforms: [:rbx]
17
17
  gem 'rubysl-bundler', platforms: [:rbx]
18
18
  gem 'rubysl-rake', platforms: [:rbx]
@@ -1,43 +1,45 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- actionmailer (4.2.7.1)
5
- actionpack (= 4.2.7.1)
6
- actionview (= 4.2.7.1)
7
- activejob (= 4.2.7.1)
4
+ actioncable (5.0.0.1)
5
+ actionpack (= 5.0.0.1)
6
+ nio4r (~> 1.2)
7
+ websocket-driver (~> 0.6.1)
8
+ actionmailer (5.0.0.1)
9
+ actionpack (= 5.0.0.1)
10
+ actionview (= 5.0.0.1)
11
+ activejob (= 5.0.0.1)
8
12
  mail (~> 2.5, >= 2.5.4)
9
- rails-dom-testing (~> 1.0, >= 1.0.5)
10
- actionpack (4.2.7.1)
11
- actionview (= 4.2.7.1)
12
- activesupport (= 4.2.7.1)
13
- rack (~> 1.6)
14
- rack-test (~> 0.6.2)
15
- rails-dom-testing (~> 1.0, >= 1.0.5)
13
+ rails-dom-testing (~> 2.0)
14
+ actionpack (5.0.0.1)
15
+ actionview (= 5.0.0.1)
16
+ activesupport (= 5.0.0.1)
17
+ rack (~> 2.0)
18
+ rack-test (~> 0.6.3)
19
+ rails-dom-testing (~> 2.0)
16
20
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
17
- actionview (4.2.7.1)
18
- activesupport (= 4.2.7.1)
21
+ actionview (5.0.0.1)
22
+ activesupport (= 5.0.0.1)
19
23
  builder (~> 3.1)
20
24
  erubis (~> 2.7.0)
21
- rails-dom-testing (~> 1.0, >= 1.0.5)
25
+ rails-dom-testing (~> 2.0)
22
26
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
23
- activejob (4.2.7.1)
24
- activesupport (= 4.2.7.1)
25
- globalid (>= 0.3.0)
26
- activemodel (4.2.7.1)
27
- activesupport (= 4.2.7.1)
28
- builder (~> 3.1)
29
- activerecord (4.2.7.1)
30
- activemodel (= 4.2.7.1)
31
- activesupport (= 4.2.7.1)
32
- arel (~> 6.0)
33
- activesupport (4.2.7.1)
27
+ activejob (5.0.0.1)
28
+ activesupport (= 5.0.0.1)
29
+ globalid (>= 0.3.6)
30
+ activemodel (5.0.0.1)
31
+ activesupport (= 5.0.0.1)
32
+ activerecord (5.0.0.1)
33
+ activemodel (= 5.0.0.1)
34
+ activesupport (= 5.0.0.1)
35
+ arel (~> 7.0)
36
+ activesupport (5.0.0.1)
37
+ concurrent-ruby (~> 1.0, >= 1.0.2)
34
38
  i18n (~> 0.7)
35
- json (~> 1.7, >= 1.7.7)
36
39
  minitest (~> 5.1)
37
- thread_safe (~> 0.3, >= 0.3.4)
38
40
  tzinfo (~> 1.1)
39
41
  addressable (2.4.0)
40
- arel (6.0.3)
42
+ arel (7.1.4)
41
43
  base32 (0.3.2)
42
44
  builder (3.2.2)
43
45
  concurrent-ruby (1.0.2)
@@ -57,7 +59,7 @@ GEM
57
59
  oauth2 (~> 1.0)
58
60
  globalid (0.3.7)
59
61
  activesupport (>= 4.1.0)
60
- hashie (3.4.4)
62
+ hashie (3.4.6)
61
63
  highline (1.7.8)
62
64
  i18n (0.7.0)
63
65
  jeweler (2.1.1)
@@ -71,26 +73,27 @@ GEM
71
73
  rdoc
72
74
  semver
73
75
  json (1.8.3)
74
- jwt (1.5.4)
76
+ jwt (1.5.6)
75
77
  loofah (2.0.3)
76
78
  nokogiri (>= 1.5.9)
77
79
  mail (2.6.4)
78
80
  mime-types (>= 1.16, < 4)
79
81
  metaclass (0.0.4)
82
+ method_source (0.8.2)
80
83
  mime-types (3.1)
81
84
  mime-types-data (~> 3.2015)
82
85
  mime-types-data (3.2016.0521)
83
86
  mini_portile2 (2.1.0)
84
- minitest (5.9.0)
85
- mocha (1.1.0)
87
+ minitest (5.9.1)
88
+ mocha (1.2.1)
86
89
  metaclass (~> 0.0.1)
87
90
  multi_json (1.12.1)
88
91
  multi_xml (0.5.5)
89
92
  multipart-post (2.0.0)
90
93
  mysql2 (0.4.4)
91
- nokogiri (1.6.8)
94
+ nio4r (1.2.1)
95
+ nokogiri (1.6.8.1)
92
96
  mini_portile2 (~> 2.1.0)
93
- pkg-config (~> 1.1.7)
94
97
  oauth2 (1.2.0)
95
98
  faraday (>= 0.8, < 0.10)
96
99
  jwt (~> 1.0)
@@ -100,36 +103,34 @@ GEM
100
103
  omniauth (1.3.1)
101
104
  hashie (>= 1.2, < 4)
102
105
  rack (>= 1.0, < 3)
103
- pg (0.18.4)
104
- pkg-config (1.1.7)
105
- rack (1.6.4)
106
+ pg (0.19.0)
107
+ rack (2.0.1)
106
108
  rack-test (0.6.3)
107
109
  rack (>= 1.0)
108
- rails (4.2.7.1)
109
- actionmailer (= 4.2.7.1)
110
- actionpack (= 4.2.7.1)
111
- actionview (= 4.2.7.1)
112
- activejob (= 4.2.7.1)
113
- activemodel (= 4.2.7.1)
114
- activerecord (= 4.2.7.1)
115
- activesupport (= 4.2.7.1)
110
+ rails (5.0.0.1)
111
+ actioncable (= 5.0.0.1)
112
+ actionmailer (= 5.0.0.1)
113
+ actionpack (= 5.0.0.1)
114
+ actionview (= 5.0.0.1)
115
+ activejob (= 5.0.0.1)
116
+ activemodel (= 5.0.0.1)
117
+ activerecord (= 5.0.0.1)
118
+ activesupport (= 5.0.0.1)
116
119
  bundler (>= 1.3.0, < 2.0)
117
- railties (= 4.2.7.1)
118
- sprockets-rails
119
- rails-deprecated_sanitizer (1.0.3)
120
- activesupport (>= 4.2.0.alpha)
121
- rails-dom-testing (1.0.7)
122
- activesupport (>= 4.2.0.beta, < 5.0)
120
+ railties (= 5.0.0.1)
121
+ sprockets-rails (>= 2.0.0)
122
+ rails-dom-testing (2.0.1)
123
+ activesupport (>= 4.2.0, < 6.0)
123
124
  nokogiri (~> 1.6.0)
124
- rails-deprecated_sanitizer (>= 1.0.1)
125
125
  rails-html-sanitizer (1.0.3)
126
126
  loofah (~> 2.0)
127
- railties (4.2.7.1)
128
- actionpack (= 4.2.7.1)
129
- activesupport (= 4.2.7.1)
127
+ railties (5.0.0.1)
128
+ actionpack (= 5.0.0.1)
129
+ activesupport (= 5.0.0.1)
130
+ method_source
130
131
  rake (>= 0.8.7)
131
132
  thor (>= 0.18.1, < 2.0)
132
- rake (11.2.2)
133
+ rake (11.3.0)
133
134
  rdoc (4.2.2)
134
135
  json (~> 1.4)
135
136
  rubysl (2.2.0)
@@ -332,7 +333,7 @@ GEM
332
333
  rubysl-set (2.0.1)
333
334
  rubysl-shellwords (2.0.0)
334
335
  rubysl-singleton (2.0.0)
335
- rubysl-socket (2.1.2)
336
+ rubysl-socket (2.2)
336
337
  rubysl-fcntl (~> 2.0)
337
338
  rubysl-stringio (2.1.0)
338
339
  rubysl-strscan (2.0.0)
@@ -369,11 +370,14 @@ GEM
369
370
  actionpack (>= 4.0)
370
371
  activesupport (>= 4.0)
371
372
  sprockets (>= 3.0.0)
372
- sqlite3 (1.3.11)
373
+ sqlite3 (1.3.12)
373
374
  thor (0.19.1)
374
375
  thread_safe (0.3.5)
375
376
  tzinfo (1.2.2)
376
377
  thread_safe (~> 0.1)
378
+ websocket-driver (0.6.4)
379
+ websocket-extensions (>= 0.1.0)
380
+ websocket-extensions (0.1.2)
377
381
 
378
382
  PLATFORMS
379
383
  ruby
@@ -381,18 +385,18 @@ PLATFORMS
381
385
  DEPENDENCIES
382
386
  base32 (>= 0.3.2)
383
387
  bundler (>= 1.6.6)
384
- jeweler (>= 2.0.1)
388
+ jeweler (>= 2.1.1)
385
389
  mocha (>= 1.1.0)
386
- mysql2 (>= 0.3.20)
390
+ mysql2 (>= 0.4.4)
387
391
  omniauth (>= 1.3.1)
388
- pg (>= 0.18.4)
389
- rails (~> 4.0, >= 4.0.13)
390
- rake (>= 11.1.1)
392
+ pg (>= 0.19.0)
393
+ rails (>= 5.0.0.1)
394
+ rake (>= 11.3.0)
391
395
  rubysl
392
396
  rubysl-bundler
393
397
  rubysl-rake
394
398
  simplecov
395
- sqlite3 (>= 1.3.11)
399
+ sqlite3 (>= 1.3.12)
396
400
 
397
401
  BUNDLED WITH
398
- 1.11.2
402
+ 1.13.5
@@ -1,17 +1,18 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem 'base32', '>= 0.3.2'
4
- gem 'rails', '~> 4.0.13'
4
+ gem 'rails', '>= 5.0.0.1'
5
5
 
6
6
  group :development do
7
7
  gem 'bundler', '>= 1.6.6'
8
- gem 'mocha', '>= 1.1.0'
9
- gem 'jeweler', '>= 2.0.1'
8
+ gem 'mocha', '>= 1.2.1'
9
+ gem 'jeweler', '>= 2.1.1'
10
10
  gem 'simplecov', '>= 0'
11
- gem 'mysql2', '~> 0.3.20'
11
+ gem 'mysql2', '>= 0.4.4'
12
12
  gem 'omniauth', '>= 1.3.1'
13
- gem 'pg', '>= 0.18.4'
14
- gem 'sqlite3', '>= 1.3.11'
13
+ gem 'pg', '>= 0.19.0'
14
+ gem 'rake', '>= 11.3.0'
15
+ gem 'sqlite3', '>= 1.3.12'
15
16
  gem 'rubysl', platforms: [:rbx]
16
17
  gem 'rubysl-bundler', platforms: [:rbx]
17
18
  gem 'rubysl-rake', platforms: [:rbx]
@@ -1,34 +1,42 @@
1
- = authpwn_rails
1
+ # authpwn_rails
2
2
 
3
- User authentication for a Ruby on Rails 4 application. Works with Facebook.
3
+ User authentication for a Ruby on Rails 5 application.
4
4
 
5
- == Integration
5
+ ## Integration
6
6
 
7
7
  Scaffold user accounts, and session controller views.
8
- rails g authpwn:all
9
8
 
10
- Wire authentication into your ApplicationController.
11
- authenticates_using_session
9
+ ```bash
10
+ rails g authpwn:all
11
+ ```
12
+
13
+ Wire authentication into your `ApplicationController`.
14
+
15
+ ```ruby
16
+ class ApplicationController
17
+ authenticates_using_session
18
+ end
19
+ ```
12
20
 
13
21
  Note: the code inside the models and controllers is tucked away in the plug-in.
14
22
  The scaffold models and controllers are there as extension points. You will be
15
23
  able to update the plug-in without regenerating the scaffolds.
16
24
 
17
- == Migrating from authpwn 0.9 or older?
25
+ ## Migrating from older versions?
18
26
 
19
- See legacy/migrate_09_to_010.rb for a semi-automated way of migrating your
20
- database.
27
+ See the legacy/ directory a semi-automated way of migrating your database.
21
28
 
22
- == Note on Patches/Pull Requests
29
+ ## Note on Patches/Pull Requests
23
30
 
24
31
  * Fork the project.
25
32
  * Make your feature addition or bug fix.
26
33
  * Add tests for it. This is important so I don't break it in a future version
27
34
  unintentionally.
28
35
  * Commit, do not mess with rakefile, version, or history.
29
- (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
36
+ (if you want to have your own version, that is fine but bump version in a
37
+ commit by itself I can ignore when I pull)
30
38
  * Send me a pull request. Bonus points for topic branches.
31
39
 
32
- == Copyright
40
+ ## Copyright
33
41
 
34
- Copyright (c) 2010-2013 Victor Costan, released under the MIT license.
42
+ Copyright 2010-2016 Victor Costan, released under the MIT license.
data/Rakefile CHANGED
@@ -16,7 +16,7 @@ Jeweler::Tasks.new do |gem|
16
16
  gem.name = "authpwn_rails"
17
17
  gem.homepage = "http://github.com/pwnall/authpwn_rails"
18
18
  gem.license = "MIT"
19
- gem.summary = %Q{User authentication for Rails 4 applications.}
19
+ gem.summary = %Q{User authentication for Rails 5 applications.}
20
20
  gem.description = %Q{Works with Facebook.}
21
21
  gem.email = "victor@costan.us"
22
22
  gem.authors = ["Victor Costan"]
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.21.1
1
+ 0.22.0
@@ -26,7 +26,7 @@ class EmailVerification < Tokens::OneTime
26
26
  # Returns the token instance.
27
27
  def spend
28
28
  self.transaction do
29
- if credential = email_credential
29
+ if credential = self.email_credential
30
30
  credential.verified = true
31
31
  credential.save!
32
32
  end
@@ -40,7 +40,7 @@ class EmailVerification < Tokens::OneTime
40
40
  # take advantage of a race condition and changes her e-mail address
41
41
  # before using the token.
42
42
  def email_credential
43
- user.credentials.find { |c| c.name == email }
43
+ user.credentials.where(name: email).first
44
44
  end
45
45
  end # class Tokens::EmailVerification
46
46
 
@@ -23,7 +23,7 @@ class PasswordReset < Tokens::OneTime
23
23
  # This method might return nil if a user initiates password recovery multiple
24
24
  # times.
25
25
  def password_credential
26
- user.credentials.find { |c| c.is_a? Credentials::Password }
26
+ user.credentials.where(type: 'Credentials::Password').first
27
27
  end
28
28
  end # class Tokens::PasswordReset
29
29
 
@@ -2,21 +2,21 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: authpwn_rails 0.21.1 ruby lib
5
+ # stub: authpwn_rails 0.22.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "authpwn_rails"
9
- s.version = "0.21.1"
9
+ s.version = "0.22.0"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Victor Costan"]
14
- s.date = "2016-09-03"
14
+ s.date = "2016-10-18"
15
15
  s.description = "Works with Facebook."
16
16
  s.email = "victor@costan.us"
17
17
  s.extra_rdoc_files = [
18
18
  "LICENSE",
19
- "README.rdoc"
19
+ "README.md"
20
20
  ]
21
21
  s.files = [
22
22
  ".document",
@@ -24,11 +24,9 @@ Gem::Specification.new do |s|
24
24
  ".travis.yml",
25
25
  "Gemfile",
26
26
  "Gemfile.lock",
27
- "Gemfile.rails4",
28
- "Gemfile.rails41",
29
- "Gemfile.rails42",
27
+ "Gemfile.rails5",
30
28
  "LICENSE",
31
- "README.rdoc",
29
+ "README.md",
32
30
  "Rakefile",
33
31
  "VERSION",
34
32
  "app/helpers/session_helper.rb",
@@ -86,6 +84,7 @@ Gem::Specification.new do |s|
86
84
  "lib/authpwn_rails/user_extensions/email_field.rb",
87
85
  "lib/authpwn_rails/user_extensions/password_field.rb",
88
86
  "lib/authpwn_rails/user_model.rb",
87
+ "test/action_controller_test_extensions_test.rb",
89
88
  "test/cookie_controller_test.rb",
90
89
  "test/credentials/api_token_test.rb",
91
90
  "test/credentials/email_credential_test.rb",
@@ -123,7 +122,6 @@ Gem::Specification.new do |s|
123
122
  "test/session_mailer_api_test.rb",
124
123
  "test/session_mailer_test.rb",
125
124
  "test/session_test.rb",
126
- "test/test_extensions_test.rb",
127
125
  "test/test_helper.rb",
128
126
  "test/user_extensions/api_token_field_test.rb",
129
127
  "test/user_extensions/email_field_test.rb",
@@ -133,54 +131,54 @@ Gem::Specification.new do |s|
133
131
  s.homepage = "http://github.com/pwnall/authpwn_rails"
134
132
  s.licenses = ["MIT"]
135
133
  s.rubygems_version = "2.5.1"
136
- s.summary = "User authentication for Rails 4 applications."
134
+ s.summary = "User authentication for Rails 5 applications."
137
135
 
138
136
  if s.respond_to? :specification_version then
139
137
  s.specification_version = 4
140
138
 
141
139
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
142
140
  s.add_runtime_dependency(%q<base32>, [">= 0.3.2"])
143
- s.add_runtime_dependency(%q<rails>, [">= 4.0.13", "~> 4.0"])
141
+ s.add_runtime_dependency(%q<rails>, [">= 5.0.0.1"])
144
142
  s.add_development_dependency(%q<bundler>, [">= 1.6.6"])
145
143
  s.add_development_dependency(%q<mocha>, [">= 1.1.0"])
146
- s.add_development_dependency(%q<jeweler>, [">= 2.0.1"])
144
+ s.add_development_dependency(%q<jeweler>, [">= 2.1.1"])
147
145
  s.add_development_dependency(%q<simplecov>, [">= 0"])
148
- s.add_development_dependency(%q<mysql2>, [">= 0.3.20"])
146
+ s.add_development_dependency(%q<mysql2>, [">= 0.4.4"])
149
147
  s.add_development_dependency(%q<omniauth>, [">= 1.3.1"])
150
- s.add_development_dependency(%q<pg>, [">= 0.18.4"])
151
- s.add_development_dependency(%q<rake>, [">= 11.1.1"])
152
- s.add_development_dependency(%q<sqlite3>, [">= 1.3.11"])
148
+ s.add_development_dependency(%q<pg>, [">= 0.19.0"])
149
+ s.add_development_dependency(%q<rake>, [">= 11.3.0"])
150
+ s.add_development_dependency(%q<sqlite3>, [">= 1.3.12"])
153
151
  s.add_development_dependency(%q<rubysl>, [">= 0"])
154
152
  s.add_development_dependency(%q<rubysl-bundler>, [">= 0"])
155
153
  s.add_development_dependency(%q<rubysl-rake>, [">= 0"])
156
154
  else
157
155
  s.add_dependency(%q<base32>, [">= 0.3.2"])
158
- s.add_dependency(%q<rails>, [">= 4.0.13", "~> 4.0"])
156
+ s.add_dependency(%q<rails>, [">= 5.0.0.1"])
159
157
  s.add_dependency(%q<bundler>, [">= 1.6.6"])
160
158
  s.add_dependency(%q<mocha>, [">= 1.1.0"])
161
- s.add_dependency(%q<jeweler>, [">= 2.0.1"])
159
+ s.add_dependency(%q<jeweler>, [">= 2.1.1"])
162
160
  s.add_dependency(%q<simplecov>, [">= 0"])
163
- s.add_dependency(%q<mysql2>, [">= 0.3.20"])
161
+ s.add_dependency(%q<mysql2>, [">= 0.4.4"])
164
162
  s.add_dependency(%q<omniauth>, [">= 1.3.1"])
165
- s.add_dependency(%q<pg>, [">= 0.18.4"])
166
- s.add_dependency(%q<rake>, [">= 11.1.1"])
167
- s.add_dependency(%q<sqlite3>, [">= 1.3.11"])
163
+ s.add_dependency(%q<pg>, [">= 0.19.0"])
164
+ s.add_dependency(%q<rake>, [">= 11.3.0"])
165
+ s.add_dependency(%q<sqlite3>, [">= 1.3.12"])
168
166
  s.add_dependency(%q<rubysl>, [">= 0"])
169
167
  s.add_dependency(%q<rubysl-bundler>, [">= 0"])
170
168
  s.add_dependency(%q<rubysl-rake>, [">= 0"])
171
169
  end
172
170
  else
173
171
  s.add_dependency(%q<base32>, [">= 0.3.2"])
174
- s.add_dependency(%q<rails>, [">= 4.0.13", "~> 4.0"])
172
+ s.add_dependency(%q<rails>, [">= 5.0.0.1"])
175
173
  s.add_dependency(%q<bundler>, [">= 1.6.6"])
176
174
  s.add_dependency(%q<mocha>, [">= 1.1.0"])
177
- s.add_dependency(%q<jeweler>, [">= 2.0.1"])
175
+ s.add_dependency(%q<jeweler>, [">= 2.1.1"])
178
176
  s.add_dependency(%q<simplecov>, [">= 0"])
179
- s.add_dependency(%q<mysql2>, [">= 0.3.20"])
177
+ s.add_dependency(%q<mysql2>, [">= 0.4.4"])
180
178
  s.add_dependency(%q<omniauth>, [">= 1.3.1"])
181
- s.add_dependency(%q<pg>, [">= 0.18.4"])
182
- s.add_dependency(%q<rake>, [">= 11.1.1"])
183
- s.add_dependency(%q<sqlite3>, [">= 1.3.11"])
179
+ s.add_dependency(%q<pg>, [">= 0.19.0"])
180
+ s.add_dependency(%q<rake>, [">= 11.3.0"])
181
+ s.add_dependency(%q<sqlite3>, [">= 1.3.12"])
184
182
  s.add_dependency(%q<rubysl>, [">= 0"])
185
183
  s.add_dependency(%q<rubysl-bundler>, [">= 0"])
186
184
  s.add_dependency(%q<rubysl-rake>, [">= 0"])