warden-github-rails 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 317b12d425b52157230b92ca9d1725fde4810b52
4
- data.tar.gz: 491cb0453238f1823d265ac03fa52c22480db28d
3
+ metadata.gz: 59b7ef20208b4fc31f37b9647b14c136e1b65294
4
+ data.tar.gz: 8a193975cdef69665791456cf3c14f803e95685a
5
5
  SHA512:
6
- metadata.gz: eb6d79bc65a7e366a59dd6eedfe5ffdbb4cec3f19b3eb89efffcc44b28321d39b3555cae9b02ab3037255a899a78ff327fc98f0ad74ade20a23c8b8aca7af159
7
- data.tar.gz: 222c43607372b2fb9a0eb282b1642cb33c20c7ad1237a498ef642fe3d1e515b9c88b2e51cabc310a9b4699b3780345339d4a3c1f30a5430cf0aa43e4790b9ece
6
+ metadata.gz: 8bb8fbfcbc533ef853b20c8f41c7d335070878f2937597df3ad7665ad2317bfc46914dc27390641ff0826386cf232bccc735abe1472346d75bfb65eb27a8899c
7
+ data.tar.gz: 77dd68fa6b1e0f99ddc6d06c9dcf2efeb891b4e0ebe51e95835a7a1caea59cb8facc4f2e2d9ff735dd7d28a8dc3cae4d5452d52d3a2785cf044f2c728eef798f
@@ -1,18 +1,21 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  cache: bundler
4
- script: "bundle exec rspec"
4
+ script: bundle exec rspec
5
5
  rvm:
6
- - 1.9.3
7
- - 2.2.2
6
+ - 2.3.0
8
7
  - ruby-head
9
- - jruby-19mode
8
+ - jruby
10
9
  - rbx-2
11
10
  env:
12
- - "RAILS_VERSION=3.2"
13
- - "RAILS_VERSION=4.0"
14
- - "RAILS_VERSION=master"
11
+ global:
12
+ - JRUBY_OPTS="--2.0"
13
+ matrix:
14
+ - RAILS_VERSION=3
15
+ - RAILS_VERSION=4
16
+ - RAILS_VERSION=master
15
17
  matrix:
18
+ fast_finish: true
16
19
  allow_failures:
17
- - env: "RAILS_VERSION=master"
20
+ - env: RAILS_VERSION=master
18
21
  - rvm: ruby-head
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.2.2
4
+
5
+ - Improve serialization and devise compatibility
6
+
3
7
  ## v1.2.1
4
8
 
5
9
  - Add support for multiple teams ([@bhuga])
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.1
1
+ 1.2.2
@@ -14,8 +14,6 @@ module Warden
14
14
  setup_failure_app(config)
15
15
  setup_scopes(config)
16
16
  config.intercept_401 = false
17
- config.serialize_from_session { |key| Warden::GitHub::Verifier.load(key) }
18
- config.serialize_into_session { |user| Warden::GitHub::Verifier.dump(user) }
19
17
  end
20
18
  end
21
19
  end
@@ -30,6 +28,8 @@ module Warden
30
28
  Rails.scopes.each do |scope, scope_config|
31
29
  config.scope_defaults scope, strategies: [:github],
32
30
  config: scope_config
31
+ config.serialize_from_session(scope) { |key| Verifier.load(key) }
32
+ config.serialize_into_session(scope) { |user| Verifier.dump(user) }
33
33
  end
34
34
  end
35
35
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: warden-github-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philipe Fatio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-23 00:00:00.000000000 Z
11
+ date: 2016-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -187,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
187
  version: '0'
188
188
  requirements: []
189
189
  rubyforge_project:
190
- rubygems_version: 2.4.5.1
190
+ rubygems_version: 2.5.1
191
191
  signing_key:
192
192
  specification_version: 4
193
193
  summary: An easy drop in solution for rails to use GitHub authentication.