omniauth 2.1.3 → 2.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/CHANGELOG.md +726 -0
- data/LICENSE.md +1 -1
- data/README.md +141 -29
- data/SECURITY.md +4 -3
- data/lib/omniauth/auth_hash.rb +32 -6
- data/lib/omniauth/authenticity_token_protection.rb +6 -4
- data/lib/omniauth/builder.rb +13 -6
- data/lib/omniauth/failure_endpoint.rb +4 -4
- data/lib/omniauth/form.rb +5 -7
- data/lib/omniauth/key_store.rb +2 -10
- data/lib/omniauth/strategies/developer.rb +3 -5
- data/lib/omniauth/strategy/class_methods.rb +118 -0
- data/lib/omniauth/strategy/fetchers.rb +57 -0
- data/lib/omniauth/strategy/hosts.rb +48 -0
- data/lib/omniauth/strategy/paths.rb +140 -0
- data/lib/omniauth/strategy/test_mode.rb +53 -0
- data/lib/omniauth/strategy.rb +145 -354
- data/lib/omniauth/test/phony_session.rb +1 -1
- data/lib/omniauth/test/strategy_test_case.rb +8 -9
- data/lib/omniauth/version.rb +1 -1
- data/lib/omniauth.rb +38 -26
- data/sig/manifest.yaml +5 -0
- data/sig/omniauth.rbs +638 -0
- metadata +33 -51
- data/.github/FUNDING.yml +0 -2
- data/.github/ISSUE_TEMPLATE.md +0 -20
- data/.github/dependabot.yml +0 -18
- data/.github/workflows/jruby.yml +0 -28
- data/.github/workflows/main.yml +0 -64
- data/.github/workflows/truffle_ruby.yml +0 -24
- data/.gitignore +0 -14
- data/.rspec +0 -2
- data/.rubocop.yml +0 -69
- data/.yardopts +0 -4
- data/Gemfile +0 -23
- data/Rakefile +0 -53
- data/omniauth.gemspec +0 -25
metadata
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
+
- Erik Berlin
|
|
7
8
|
- Michael Bleigh
|
|
8
|
-
-
|
|
9
|
+
- Bobby McDonald
|
|
9
10
|
- Tom Milewski
|
|
10
|
-
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date:
|
|
13
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: hashie
|
|
@@ -18,93 +18,69 @@ dependencies:
|
|
|
18
18
|
requirements:
|
|
19
19
|
- - ">="
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: 3.
|
|
21
|
+
version: 3.5.2
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
25
|
requirements:
|
|
26
26
|
- - ">="
|
|
27
27
|
- !ruby/object:Gem::Version
|
|
28
|
-
version: 3.
|
|
28
|
+
version: 3.5.2
|
|
29
29
|
- !ruby/object:Gem::Dependency
|
|
30
|
-
name:
|
|
30
|
+
name: logger
|
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
|
32
32
|
requirements:
|
|
33
33
|
- - ">="
|
|
34
34
|
- !ruby/object:Gem::Version
|
|
35
|
-
version:
|
|
35
|
+
version: '0'
|
|
36
36
|
type: :runtime
|
|
37
37
|
prerelease: false
|
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
|
39
39
|
requirements:
|
|
40
40
|
- - ">="
|
|
41
41
|
- !ruby/object:Gem::Version
|
|
42
|
-
version:
|
|
42
|
+
version: '0'
|
|
43
43
|
- !ruby/object:Gem::Dependency
|
|
44
|
-
name:
|
|
44
|
+
name: rack
|
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
|
46
46
|
requirements:
|
|
47
|
-
- - "
|
|
47
|
+
- - ">="
|
|
48
48
|
- !ruby/object:Gem::Version
|
|
49
|
-
version:
|
|
50
|
-
type: :
|
|
49
|
+
version: 2.2.8
|
|
50
|
+
type: :runtime
|
|
51
51
|
prerelease: false
|
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
|
53
53
|
requirements:
|
|
54
|
-
- - "
|
|
54
|
+
- - ">="
|
|
55
55
|
- !ruby/object:Gem::Version
|
|
56
|
-
version:
|
|
56
|
+
version: 2.2.8
|
|
57
57
|
- !ruby/object:Gem::Dependency
|
|
58
58
|
name: rack-protection
|
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
|
60
60
|
requirements:
|
|
61
61
|
- - ">="
|
|
62
62
|
- !ruby/object:Gem::Version
|
|
63
|
-
version:
|
|
63
|
+
version: 2.2.0
|
|
64
64
|
type: :runtime
|
|
65
65
|
prerelease: false
|
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
|
67
67
|
requirements:
|
|
68
68
|
- - ">="
|
|
69
69
|
- !ruby/object:Gem::Version
|
|
70
|
-
version:
|
|
71
|
-
- !ruby/object:Gem::Dependency
|
|
72
|
-
name: rake
|
|
73
|
-
requirement: !ruby/object:Gem::Requirement
|
|
74
|
-
requirements:
|
|
75
|
-
- - "~>"
|
|
76
|
-
- !ruby/object:Gem::Version
|
|
77
|
-
version: '12.0'
|
|
78
|
-
type: :development
|
|
79
|
-
prerelease: false
|
|
80
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
81
|
-
requirements:
|
|
82
|
-
- - "~>"
|
|
83
|
-
- !ruby/object:Gem::Version
|
|
84
|
-
version: '12.0'
|
|
70
|
+
version: 2.2.0
|
|
85
71
|
description: A generalized Rack framework for multiple-provider authentication.
|
|
86
72
|
email:
|
|
87
|
-
- michael@intridea.com
|
|
88
73
|
- sferik@gmail.com
|
|
74
|
+
- michael@intridea.com
|
|
75
|
+
- bobbymcwho@gmail.com
|
|
89
76
|
- tmilewski@gmail.com
|
|
90
77
|
executables: []
|
|
91
78
|
extensions: []
|
|
92
79
|
extra_rdoc_files: []
|
|
93
80
|
files:
|
|
94
|
-
-
|
|
95
|
-
- ".github/ISSUE_TEMPLATE.md"
|
|
96
|
-
- ".github/dependabot.yml"
|
|
97
|
-
- ".github/workflows/jruby.yml"
|
|
98
|
-
- ".github/workflows/main.yml"
|
|
99
|
-
- ".github/workflows/truffle_ruby.yml"
|
|
100
|
-
- ".gitignore"
|
|
101
|
-
- ".rspec"
|
|
102
|
-
- ".rubocop.yml"
|
|
103
|
-
- ".yardopts"
|
|
104
|
-
- Gemfile
|
|
81
|
+
- CHANGELOG.md
|
|
105
82
|
- LICENSE.md
|
|
106
83
|
- README.md
|
|
107
|
-
- Rakefile
|
|
108
84
|
- SECURITY.md
|
|
109
85
|
- lib/omniauth.rb
|
|
110
86
|
- lib/omniauth/auth_hash.rb
|
|
@@ -116,17 +92,24 @@ files:
|
|
|
116
92
|
- lib/omniauth/key_store.rb
|
|
117
93
|
- lib/omniauth/strategies/developer.rb
|
|
118
94
|
- lib/omniauth/strategy.rb
|
|
95
|
+
- lib/omniauth/strategy/class_methods.rb
|
|
96
|
+
- lib/omniauth/strategy/fetchers.rb
|
|
97
|
+
- lib/omniauth/strategy/hosts.rb
|
|
98
|
+
- lib/omniauth/strategy/paths.rb
|
|
99
|
+
- lib/omniauth/strategy/test_mode.rb
|
|
119
100
|
- lib/omniauth/test.rb
|
|
120
101
|
- lib/omniauth/test/phony_session.rb
|
|
121
102
|
- lib/omniauth/test/strategy_macros.rb
|
|
122
103
|
- lib/omniauth/test/strategy_test_case.rb
|
|
123
104
|
- lib/omniauth/version.rb
|
|
124
|
-
-
|
|
105
|
+
- sig/manifest.yaml
|
|
106
|
+
- sig/omniauth.rbs
|
|
125
107
|
homepage: https://github.com/omniauth/omniauth
|
|
126
108
|
licenses:
|
|
127
109
|
- MIT
|
|
128
|
-
metadata:
|
|
129
|
-
|
|
110
|
+
metadata:
|
|
111
|
+
changelog_uri: https://github.com/omniauth/omniauth/blob/master/CHANGELOG.md
|
|
112
|
+
rubygems_mfa_required: 'true'
|
|
130
113
|
rdoc_options: []
|
|
131
114
|
require_paths:
|
|
132
115
|
- lib
|
|
@@ -134,15 +117,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
134
117
|
requirements:
|
|
135
118
|
- - ">="
|
|
136
119
|
- !ruby/object:Gem::Version
|
|
137
|
-
version: '2.
|
|
120
|
+
version: '2.5'
|
|
138
121
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
122
|
requirements:
|
|
140
123
|
- - ">="
|
|
141
124
|
- !ruby/object:Gem::Version
|
|
142
|
-
version:
|
|
125
|
+
version: '0'
|
|
143
126
|
requirements: []
|
|
144
|
-
rubygems_version:
|
|
145
|
-
signing_key:
|
|
127
|
+
rubygems_version: 4.0.20
|
|
146
128
|
specification_version: 4
|
|
147
129
|
summary: A generalized Rack framework for multiple-provider authentication.
|
|
148
130
|
test_files: []
|
data/.github/FUNDING.yml
DELETED
data/.github/ISSUE_TEMPLATE.md
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
Please complete all sections.
|
|
2
|
-
|
|
3
|
-
### Configuration
|
|
4
|
-
|
|
5
|
-
- Provider Gem: `omniauth-*`
|
|
6
|
-
- Ruby Version: ``
|
|
7
|
-
- Framework: ``
|
|
8
|
-
- Platform: ``
|
|
9
|
-
|
|
10
|
-
### Expected Behavior
|
|
11
|
-
|
|
12
|
-
Tell us what should happen.
|
|
13
|
-
|
|
14
|
-
### Actual Behavior
|
|
15
|
-
|
|
16
|
-
Tell us what happens instead.
|
|
17
|
-
|
|
18
|
-
### Steps to Reproduce
|
|
19
|
-
|
|
20
|
-
Please list all steps to reproduce the issue.
|
data/.github/dependabot.yml
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# To get started with Dependabot version updates, you'll need to specify which
|
|
2
|
-
# package ecosystems to update and where the package manifests are located.
|
|
3
|
-
# Please see the documentation for all configuration options:
|
|
4
|
-
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
|
5
|
-
|
|
6
|
-
version: 2
|
|
7
|
-
updates:
|
|
8
|
-
- package-ecosystem: bundler
|
|
9
|
-
directory: '/'
|
|
10
|
-
schedule:
|
|
11
|
-
interval: weekly
|
|
12
|
-
open-pull-requests-limit: 99
|
|
13
|
-
|
|
14
|
-
- package-ecosystem: github-actions
|
|
15
|
-
directory: '/'
|
|
16
|
-
schedule:
|
|
17
|
-
interval: daily
|
|
18
|
-
open-pull-requests-limit: 99
|
data/.github/workflows/jruby.yml
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
name: JRuby
|
|
2
|
-
on:
|
|
3
|
-
push:
|
|
4
|
-
branches: [ master ]
|
|
5
|
-
pull_request:
|
|
6
|
-
branches: [ master ]
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
test:
|
|
10
|
-
runs-on: ${{ matrix.os }}-latest
|
|
11
|
-
strategy:
|
|
12
|
-
fail-fast: false
|
|
13
|
-
matrix:
|
|
14
|
-
os: [ubuntu, macos]
|
|
15
|
-
jruby: [jruby, jruby-head]
|
|
16
|
-
steps:
|
|
17
|
-
- uses: actions/checkout@v3
|
|
18
|
-
- name: Set up Ruby
|
|
19
|
-
uses: ruby/setup-ruby@v1
|
|
20
|
-
with:
|
|
21
|
-
ruby-version: ${{ matrix.jruby }}
|
|
22
|
-
bundler-cache: true
|
|
23
|
-
env:
|
|
24
|
-
JRUBY_OPTS: --debug
|
|
25
|
-
- name: Run tests
|
|
26
|
-
env:
|
|
27
|
-
JRUBY_OPTS: --debug
|
|
28
|
-
run: bundle exec rake
|
data/.github/workflows/main.yml
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
# This workflow uses actions that are not certified by GitHub.
|
|
2
|
-
# They are provided by a third-party and are governed by
|
|
3
|
-
# separate terms of service, privacy policy, and support
|
|
4
|
-
# documentation.
|
|
5
|
-
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
|
6
|
-
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
|
7
|
-
|
|
8
|
-
name: Ruby
|
|
9
|
-
|
|
10
|
-
on:
|
|
11
|
-
push:
|
|
12
|
-
branches: [ master ]
|
|
13
|
-
pull_request:
|
|
14
|
-
branches: [ master ]
|
|
15
|
-
|
|
16
|
-
jobs:
|
|
17
|
-
test:
|
|
18
|
-
runs-on: ${{ matrix.os }}-latest
|
|
19
|
-
strategy:
|
|
20
|
-
fail-fast: false
|
|
21
|
-
matrix:
|
|
22
|
-
os: [ubuntu, macos]
|
|
23
|
-
ruby: [2.5, 2.6, 2.7, '3.0', 3.1, 3.2, 3.3, head, debug]
|
|
24
|
-
exclude:
|
|
25
|
-
- os: macos
|
|
26
|
-
ruby: 2.5
|
|
27
|
-
steps:
|
|
28
|
-
- uses: actions/checkout@v3
|
|
29
|
-
- name: Set up Ruby
|
|
30
|
-
uses: ruby/setup-ruby@v1
|
|
31
|
-
with:
|
|
32
|
-
ruby-version: ${{ matrix.ruby }}
|
|
33
|
-
bundler-cache: true
|
|
34
|
-
- name: Run tests
|
|
35
|
-
run: bundle exec rake
|
|
36
|
-
frozen-string-compat:
|
|
37
|
-
runs-on: ubuntu-latest
|
|
38
|
-
steps:
|
|
39
|
-
- uses: actions/checkout@v3
|
|
40
|
-
- name: Set up Ruby
|
|
41
|
-
uses: ruby/setup-ruby@v1
|
|
42
|
-
with:
|
|
43
|
-
ruby-version: 2.6
|
|
44
|
-
bundler-cache: true
|
|
45
|
-
- name: Run tests
|
|
46
|
-
env:
|
|
47
|
-
RUBYOPT: "--enable-frozen-string-literal"
|
|
48
|
-
run: bundle exec rake
|
|
49
|
-
coveralls:
|
|
50
|
-
runs-on: ubuntu-latest
|
|
51
|
-
steps:
|
|
52
|
-
- uses: actions/checkout@v3
|
|
53
|
-
- name: Set up Ruby
|
|
54
|
-
uses: ruby/setup-ruby@v1
|
|
55
|
-
with:
|
|
56
|
-
ruby-version: 2.6
|
|
57
|
-
bundler-cache: true
|
|
58
|
-
- name: Run tests
|
|
59
|
-
run: bundle exec rake
|
|
60
|
-
- name: Coveralls GitHub Action
|
|
61
|
-
uses: coverallsapp/github-action@v2
|
|
62
|
-
with:
|
|
63
|
-
github-token: ${{ secrets.github_token }}
|
|
64
|
-
path-to-lcov: './coverage/lcov/omniauth.lcov'
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
name: TruffleRuby
|
|
2
|
-
on:
|
|
3
|
-
push:
|
|
4
|
-
branches: [ master ]
|
|
5
|
-
pull_request:
|
|
6
|
-
branches: [ master ]
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
test:
|
|
10
|
-
runs-on: ${{ matrix.os }}-latest
|
|
11
|
-
strategy:
|
|
12
|
-
fail-fast: false
|
|
13
|
-
matrix:
|
|
14
|
-
os: [ubuntu, macos]
|
|
15
|
-
ruby: [truffleruby, truffleruby-head]
|
|
16
|
-
steps:
|
|
17
|
-
- uses: actions/checkout@v3
|
|
18
|
-
- name: Set up Ruby
|
|
19
|
-
uses: ruby/setup-ruby@v1
|
|
20
|
-
with:
|
|
21
|
-
ruby-version: ${{ matrix.ruby }}
|
|
22
|
-
bundler-cache: true
|
|
23
|
-
- name: Run tests
|
|
24
|
-
run: bundle exec rake
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.rubocop.yml
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
AllCops:
|
|
2
|
-
TargetRubyVersion: 2.2
|
|
3
|
-
|
|
4
|
-
Layout/AccessModifierIndentation:
|
|
5
|
-
EnforcedStyle: outdent
|
|
6
|
-
|
|
7
|
-
Layout/AlignHash:
|
|
8
|
-
Enabled: false
|
|
9
|
-
|
|
10
|
-
Layout/DotPosition:
|
|
11
|
-
EnforcedStyle: trailing
|
|
12
|
-
|
|
13
|
-
Layout/SpaceInsideHashLiteralBraces:
|
|
14
|
-
EnforcedStyle: no_space
|
|
15
|
-
|
|
16
|
-
Lint/HandleExceptions:
|
|
17
|
-
Enabled: false
|
|
18
|
-
|
|
19
|
-
Metrics/BlockLength:
|
|
20
|
-
Enabled: false
|
|
21
|
-
|
|
22
|
-
Metrics/BlockNesting:
|
|
23
|
-
Max: 2
|
|
24
|
-
|
|
25
|
-
Metrics/LineLength:
|
|
26
|
-
AllowURI: true
|
|
27
|
-
Enabled: false
|
|
28
|
-
|
|
29
|
-
Metrics/MethodLength:
|
|
30
|
-
CountComments: false
|
|
31
|
-
Max: 15
|
|
32
|
-
|
|
33
|
-
Metrics/ParameterLists:
|
|
34
|
-
Max: 4
|
|
35
|
-
CountKeywordArgs: true
|
|
36
|
-
|
|
37
|
-
Metrics/AbcSize:
|
|
38
|
-
Enabled: false
|
|
39
|
-
|
|
40
|
-
Style/CollectionMethods:
|
|
41
|
-
PreferredMethods:
|
|
42
|
-
map: 'collect'
|
|
43
|
-
reduce: 'inject'
|
|
44
|
-
find: 'detect'
|
|
45
|
-
find_all: 'select'
|
|
46
|
-
|
|
47
|
-
Style/Documentation:
|
|
48
|
-
Enabled: false
|
|
49
|
-
|
|
50
|
-
Style/DoubleNegation:
|
|
51
|
-
Enabled: false
|
|
52
|
-
|
|
53
|
-
Style/EachWithObject:
|
|
54
|
-
Enabled: false
|
|
55
|
-
|
|
56
|
-
Style/Encoding:
|
|
57
|
-
Enabled: false
|
|
58
|
-
|
|
59
|
-
Style/ExpandPathArguments:
|
|
60
|
-
Enabled: false
|
|
61
|
-
|
|
62
|
-
Style/HashSyntax:
|
|
63
|
-
EnforcedStyle: hash_rockets
|
|
64
|
-
|
|
65
|
-
Style/Lambda:
|
|
66
|
-
Enabled: false
|
|
67
|
-
|
|
68
|
-
Style/RaiseArgs:
|
|
69
|
-
EnforcedStyle: compact
|
data/.yardopts
DELETED
data/Gemfile
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
source 'https://rubygems.org'
|
|
2
|
-
|
|
3
|
-
gem 'jruby-openssl', '~> 0.10.5', platforms: :jruby
|
|
4
|
-
gem 'rake', '>= 12.0'
|
|
5
|
-
gem 'yard', '>= 0.9.11'
|
|
6
|
-
|
|
7
|
-
group :development do
|
|
8
|
-
gem 'benchmark-ips'
|
|
9
|
-
gem 'kramdown'
|
|
10
|
-
gem 'memory_profiler'
|
|
11
|
-
gem 'pry'
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
group :test do
|
|
15
|
-
gem 'coveralls_reborn', '~> 0.19.0', require: false
|
|
16
|
-
gem 'rack-test'
|
|
17
|
-
gem 'rspec', '~> 3.5'
|
|
18
|
-
gem 'rack-freeze'
|
|
19
|
-
gem 'rubocop', '>= 0.58.2', '< 0.69.0', platforms: %i[ruby_22 ruby_23 ruby_24]
|
|
20
|
-
gem 'simplecov-lcov'
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
gemspec
|
data/Rakefile
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
require 'bundler'
|
|
2
|
-
Bundler::GemHelper.install_tasks
|
|
3
|
-
|
|
4
|
-
require 'rspec/core/rake_task'
|
|
5
|
-
RSpec::Core::RakeTask.new(:spec)
|
|
6
|
-
task :test => :spec
|
|
7
|
-
|
|
8
|
-
begin
|
|
9
|
-
require 'rubocop/rake_task'
|
|
10
|
-
RuboCop::RakeTask.new
|
|
11
|
-
rescue LoadError
|
|
12
|
-
task :rubocop do
|
|
13
|
-
warn 'RuboCop is disabled'
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
task :default => %i[spec rubocop]
|
|
18
|
-
|
|
19
|
-
namespace :perf do
|
|
20
|
-
task :setup do
|
|
21
|
-
require 'omniauth'
|
|
22
|
-
require 'rack/test'
|
|
23
|
-
app = Rack::Builder.new do |b|
|
|
24
|
-
b.use Rack::Session::Cookie, :secret => 'abc123'
|
|
25
|
-
b.use OmniAuth::Strategies::Developer
|
|
26
|
-
b.run lambda { |_env| [200, {}, ['Not Found']] }
|
|
27
|
-
end.to_app
|
|
28
|
-
@app = Rack::MockRequest.new(app)
|
|
29
|
-
|
|
30
|
-
def call_app(path = ENV['GET_PATH'] || '/')
|
|
31
|
-
result = @app.get(path)
|
|
32
|
-
raise "Did not succeed #{result.body}" unless result.status == 200
|
|
33
|
-
|
|
34
|
-
result
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
task :ips => :setup do
|
|
39
|
-
require 'benchmark/ips'
|
|
40
|
-
Benchmark.ips do |x|
|
|
41
|
-
x.report('ips') { call_app }
|
|
42
|
-
end
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
task :mem => :setup do
|
|
46
|
-
require 'memory_profiler'
|
|
47
|
-
num = Integer(ENV['CNT'] || 1)
|
|
48
|
-
report = MemoryProfiler.report do
|
|
49
|
-
num.times { call_app }
|
|
50
|
-
end
|
|
51
|
-
report.pretty_print
|
|
52
|
-
end
|
|
53
|
-
end
|
data/omniauth.gemspec
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
lib = File.expand_path('../lib', __FILE__)
|
|
4
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
|
-
require 'omniauth/version'
|
|
6
|
-
|
|
7
|
-
Gem::Specification.new do |spec|
|
|
8
|
-
spec.add_dependency 'hashie', ['>= 3.4.6']
|
|
9
|
-
spec.add_dependency 'rack', '>= 2.2.3'
|
|
10
|
-
spec.add_development_dependency 'bundler', '~> 2.0'
|
|
11
|
-
spec.add_dependency 'rack-protection'
|
|
12
|
-
spec.add_development_dependency 'rake', '~> 12.0'
|
|
13
|
-
spec.authors = ['Michael Bleigh', 'Erik Michaels-Ober', 'Tom Milewski']
|
|
14
|
-
spec.description = 'A generalized Rack framework for multiple-provider authentication.'
|
|
15
|
-
spec.email = ['michael@intridea.com', 'sferik@gmail.com', 'tmilewski@gmail.com']
|
|
16
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.start_with?('spec/') }
|
|
17
|
-
spec.homepage = 'https://github.com/omniauth/omniauth'
|
|
18
|
-
spec.licenses = %w[MIT]
|
|
19
|
-
spec.name = 'omniauth'
|
|
20
|
-
spec.require_paths = %w[lib]
|
|
21
|
-
spec.required_rubygems_version = '>= 1.3.5'
|
|
22
|
-
spec.required_ruby_version = '>= 2.2'
|
|
23
|
-
spec.summary = spec.description
|
|
24
|
-
spec.version = OmniAuth::VERSION
|
|
25
|
-
end
|