warden-github-rails 1.1.2 → 1.2.0
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 +4 -4
- data/.travis.yml +5 -6
- data/CHANGELOG.md +6 -0
- data/README.md +6 -10
- data/VERSION +1 -1
- data/lib/warden/github/rails/railtie.rb +3 -1
- data/warden-github-rails.gemspec +1 -1
- metadata +11 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e185d5a78a23adfb83fc779a6181e8e85875df64
|
4
|
+
data.tar.gz: eb41d3f118fcacae8837752c3444ae1f6e00682d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9850964cf5d91015006ceba8723fdd415c180806ac3d4239f154c0c087b454d59bff17bbc99f29765db0dbfe8db3a62c45f940178c8288f1238f2daafd761863
|
7
|
+
data.tar.gz: 7d50a810e69a6ddcf086ef0093e0d4a1328814063cba4a51ec305acc5de6fe42a27b6fc8563acaff5402a7f4aee00a8e135b746e6311820bc275ac51ba7b8447
|
data/.travis.yml
CHANGED
@@ -1,17 +1,16 @@
|
|
1
|
+
sudo: false
|
1
2
|
language: ruby
|
2
3
|
cache: bundler
|
3
4
|
script: "bundle exec rspec"
|
4
5
|
rvm:
|
5
|
-
- 2.1.0
|
6
|
-
- 2.0.0
|
7
6
|
- 1.9.3
|
7
|
+
- 2.2.2
|
8
8
|
- ruby-head
|
9
9
|
- jruby-19mode
|
10
|
-
- rbx-2
|
10
|
+
- rbx-2
|
11
11
|
env:
|
12
|
-
- "RAILS_VERSION=3.
|
13
|
-
- "RAILS_VERSION=
|
14
|
-
- "RAILS_VERSION=4.0.0"
|
12
|
+
- "RAILS_VERSION=3.2"
|
13
|
+
- "RAILS_VERSION=4.0"
|
15
14
|
- "RAILS_VERSION=master"
|
16
15
|
matrix:
|
17
16
|
allow_failures:
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -5,7 +5,6 @@
|
|
5
5
|
[![Dependency Status][deps-image]][deps-link]
|
6
6
|
[![Code Climate][gpa-image]][gpa-link]
|
7
7
|
[![Coverage Status][cov-image]][cov-link]
|
8
|
-
[![Bitdeli Badge][stats-image]][stats-link]
|
9
8
|
|
10
9
|
A gem for rails that provides easy GitHub OAuth integration.
|
11
10
|
It is built on top of [warden-github](https://github.com/atmos/warden-github), which gives you an easy to use [warden](https://github.com/hassox/warden) strategy to authenticate GitHub users.
|
@@ -241,8 +240,7 @@ This gems comes with a couple test helpers to make your life easier:
|
|
241
240
|
expect(response).to be_ok
|
242
241
|
```
|
243
242
|
|
244
|
-
In order to use the mock user and the `#github_login` method, make sure to
|
245
|
-
include `Warden::GitHub::Rails::TestHelpers` in your tests.
|
243
|
+
In order to use the mock user and the `#github_login` method, make sure to `require 'warden/github/rails/test_helpers'` and to `include Warden::GitHub::Rails::TestHelpers` in your tests.
|
246
244
|
|
247
245
|
## Using alongside Devise and other Warden Gems
|
248
246
|
|
@@ -274,18 +272,16 @@ Philipe Fatio ([@fphilipe][fphilipe twitter])
|
|
274
272
|
|
275
273
|
MIT License. Copyright 2013 Philipe Fatio
|
276
274
|
|
277
|
-
[build-image]: https://travis-ci.org/fphilipe/warden-github-rails.
|
275
|
+
[build-image]: https://travis-ci.org/fphilipe/warden-github-rails.svg
|
278
276
|
[build-link]: https://travis-ci.org/fphilipe/warden-github-rails
|
279
|
-
[gem-image]: https://badge.fury.io/rb/warden-github-rails.
|
277
|
+
[gem-image]: https://badge.fury.io/rb/warden-github-rails.svg
|
280
278
|
[gem-link]: https://rubygems.org/gems/warden-github-rails
|
281
|
-
[deps-image]: https://gemnasium.com/fphilipe/warden-github-rails.
|
279
|
+
[deps-image]: https://gemnasium.com/fphilipe/warden-github-rails.svg
|
282
280
|
[deps-link]: https://gemnasium.com/fphilipe/warden-github-rails
|
283
|
-
[gpa-image]: https://codeclimate.com/github/fphilipe/warden-github-rails.
|
281
|
+
[gpa-image]: https://codeclimate.com/github/fphilipe/warden-github-rails.svg
|
284
282
|
[gpa-link]: https://codeclimate.com/github/fphilipe/warden-github-rails
|
285
|
-
[cov-image]: https://coveralls.io/repos/fphilipe/warden-github-rails/badge.
|
283
|
+
[cov-image]: https://coveralls.io/repos/fphilipe/warden-github-rails/badge.svg
|
286
284
|
[cov-link]: https://coveralls.io/r/fphilipe/warden-github-rails
|
287
|
-
[stats-image]: https://d2weczhvl823v0.cloudfront.net/fphilipe/warden-github-rails/trend.png
|
288
|
-
[stats-link]: https://bitdeli.com/
|
289
285
|
[tip-image]: https://rawgithub.com/twolfson/gittip-badge/0.1.0/dist/gittip.png
|
290
286
|
[tip-link]: https://www.gittip.com/fphilipe/
|
291
287
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.2.0
|
@@ -13,6 +13,9 @@ module Warden
|
|
13
13
|
app.config.middleware.use Warden::Manager do |config|
|
14
14
|
setup_failure_app(config)
|
15
15
|
setup_scopes(config)
|
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) }
|
16
19
|
end
|
17
20
|
end
|
18
21
|
end
|
@@ -39,4 +42,3 @@ module Warden
|
|
39
42
|
end
|
40
43
|
end
|
41
44
|
end
|
42
|
-
|
data/warden-github-rails.gemspec
CHANGED
@@ -20,6 +20,6 @@ Gem::Specification.new do |gem|
|
|
20
20
|
gem.add_development_dependency 'addressable', '~> 2.3'
|
21
21
|
gem.add_development_dependency 'coveralls' if RUBY_ENGINE == 'ruby'
|
22
22
|
|
23
|
-
gem.add_dependency 'warden-github', '~> 1.
|
23
|
+
gem.add_dependency 'warden-github', '~> 1.1', '>= 1.1.1'
|
24
24
|
gem.add_dependency 'railties', '>= 3.1'
|
25
25
|
end
|
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.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philipe Fatio
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -86,14 +86,20 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '1.
|
89
|
+
version: '1.1'
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: 1.1.1
|
90
93
|
type: :runtime
|
91
94
|
prerelease: false
|
92
95
|
version_requirements: !ruby/object:Gem::Requirement
|
93
96
|
requirements:
|
94
97
|
- - "~>"
|
95
98
|
- !ruby/object:Gem::Version
|
96
|
-
version: '1.
|
99
|
+
version: '1.1'
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: 1.1.1
|
97
103
|
- !ruby/object:Gem::Dependency
|
98
104
|
name: railties
|
99
105
|
requirement: !ruby/object:Gem::Requirement
|
@@ -181,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
187
|
version: '0'
|
182
188
|
requirements: []
|
183
189
|
rubyforge_project:
|
184
|
-
rubygems_version: 2.
|
190
|
+
rubygems_version: 2.4.5
|
185
191
|
signing_key:
|
186
192
|
specification_version: 4
|
187
193
|
summary: An easy drop in solution for rails to use GitHub authentication.
|