devise_g5_authenticatable 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7b68a3deae4616dbf188a936d77e442d39dd761d
4
- data.tar.gz: d615bdc6cbce1fec5ba81cdcd2a3bf5454beda29
3
+ metadata.gz: dd6b657aa8a14dd6ac504949d9588eed5c1fe731
4
+ data.tar.gz: e67909e5615386744addca7ba53c28855b115889
5
5
  SHA512:
6
- metadata.gz: c3f7e0ca76d585d91942ea3f98b285e153ed6d49e2cb26369112507d28f7e7c562b742408f224c02525c44c519e6c07399bba6b51bbf251380da5831d1729c47
7
- data.tar.gz: 43b89ca19bc3938df96be0861492767277cc1d96f2ecff341b9e2571e9a0277f8d129c1635fbbb9f0f3c116af1a436837c6a4c58aa2bac4378eb5561e51901ab
6
+ metadata.gz: 800416e1136f13aa81fee04641f7b583cbe041e58ab8b2bc5b1841a5f238bd647fd09426571c9e61a8d9235362ebe28e71098e38a78902875700b525b1b08be6
7
+ data.tar.gz: bc87c5d691055c408191262aa26baf224a9c7b48d08d401ebe293ee06a206ad063d96390599e3ec5dbd9f5830f5685162752b8f40a46d9177b2723d2a0b6cd41
@@ -0,0 +1,12 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.0.0
5
+ - 2.1
6
+ - 2.2
7
+ script:
8
+ - RAILS_ENV=test bundle exec rake app:db:setup
9
+ - bundle exec rspec spec
10
+ before_script:
11
+ - cp spec/dummy/config/database.yml.ci spec/dummy/config/database.yml
12
+ - psql -c 'create database g5_authenticatable_test;' -U postgres
@@ -1,3 +1,9 @@
1
+ ## v0.2.1 (2015-05-28)
2
+
3
+ * Fixes for compatibility with
4
+ [devise](https://github.com/plataformatec/devise) v3.5.1
5
+ ([#18](https://github.com/G5/devise_g5_authenticatable/issues/18))
6
+
1
7
  ## v0.2.0 (2015-01-08)
2
8
 
3
9
  * Add support for strict token validation, disabled by default
@@ -9,10 +15,12 @@
9
15
  ([#16](https://github.com/G5/devise_g5_authenticatable/pull/16)).
10
16
 
11
17
  ## v0.1.2 (2014-08-04)
18
+
12
19
  * Use existing user with updated password on duplicate user creation with
13
20
  duplicate email.
14
21
 
15
22
  ## v0.1.1 (2014-07-31)
23
+
16
24
  * Find a user by email when a duplicate email exception is returned from
17
25
  user creation.
18
26
 
data/README.md CHANGED
@@ -10,13 +10,13 @@ G5 users.
10
10
 
11
11
  ## Current Version
12
12
 
13
- 0.2.0
13
+ 0.2.1
14
14
 
15
15
  ## Requirements
16
16
 
17
17
  * [Ruby](https://github.com/ruby/ruby) >= 1.9.3
18
18
  * [Rails](https://github.com/rails/rails) >= 3.2
19
- * [Devise](https://github.com/plataformatec/devise) ~> 3.0
19
+ * [Devise](https://github.com/plataformatec/devise) ~> 3.5
20
20
 
21
21
  ## Installation
22
22
 
@@ -54,5 +54,9 @@ module DeviseG5Authenticatable
54
54
  def after_omniauth_failure_path_for(scope)
55
55
  main_app.root_path
56
56
  end
57
+
58
+ def translation_scope
59
+ 'devise.sessions'
60
+ end
57
61
  end
58
62
  end
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.add_dependency 'devise', '~> 3.0'
21
+ spec.add_dependency 'devise', '~> 3.5'
22
22
  spec.add_dependency 'g5_authentication_client', '~> 0.2'
23
23
  spec.add_dependency 'omniauth-g5', '~> 0.1'
24
24
  end
@@ -1,3 +1,3 @@
1
1
  module DeviseG5Authenticatable
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
@@ -276,6 +276,11 @@ describe DeviseG5Authenticatable::Helpers do
276
276
  self.resource = resource_class.new
277
277
  raise ActiveRecord::RecordNotSaved.new('my_error')
278
278
  end
279
+
280
+ # Expose protected resource helper for the purposes of this unit test
281
+ def resource
282
+ super
283
+ end
279
284
  end
280
285
 
281
286
  before { action_with_error }
@@ -2,5 +2,4 @@ test:
2
2
  adapter: postgresql
3
3
  encoding: unicode
4
4
  database: devise_g5_authenticatable_test
5
- pool: 5
6
- username: ubuntu
5
+ username: postgres
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_g5_authenticatable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maeve Revels
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-09 00:00:00.000000000 Z
11
+ date: 2015-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: devise
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.0'
19
+ version: '3.5'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '3.0'
26
+ version: '3.5'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: g5_authentication_client
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -62,6 +62,7 @@ files:
62
62
  - ".gitignore"
63
63
  - ".rspec"
64
64
  - ".ruby-version"
65
+ - ".travis.yml"
65
66
  - CHANGELOG.md
66
67
  - Gemfile
67
68
  - LICENSE