omniauth-scalingo 1.0.0 → 2.0.0

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
- SHA1:
3
- metadata.gz: 591861fd8ed10256e73e45730c6d86a8c604a892
4
- data.tar.gz: c29d583cb2ed0445ba67f5f3d51ae2fc97adec32
2
+ SHA256:
3
+ metadata.gz: 9d4a96aa3d0b5f12d5a58c8ae4d420a3c5ec46ac029a1d53e49da20d428aa92a
4
+ data.tar.gz: 9182e414b03518a06e999ed5dedb9f251a2faade96c650f5a624aa8131703754
5
5
  SHA512:
6
- metadata.gz: ad73fca9c7fa395a02f1db4bc41b8332d426941b41e8f4d511d1333ff3d18dd01c7dbb5452651f6c598f4cddf95eaba505517c48bcd7f5f687d00ad8c7b3a407
7
- data.tar.gz: 519d7aeb2fe53bd2bb793c77d724f75066a1bafef26f1aae94775fc4f15fe01be2b44db750c03e7eda60387f182108ab7e86b27b7d5b03164bb1488fcccf86f9
6
+ metadata.gz: 4232df838bd8fd4f771b50265def26244a7ad10ffe1b7bf8b82dd4d453a5863a72a0aa441ddbd0df5a77e977a4542dceb2858e5eeec94aa87522a4b3d2d53e20
7
+ data.tar.gz: 5673499fd12c0614ae860cdf97a80fabcb05de8d71051b20c046b0f52d2470b407892249e2b52fa9c037ecfc1ac67f2bf6d0f4c9cdbad228b45cd63cb296edac
@@ -0,0 +1,8 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "github-actions"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "monthly"
7
+ reviewers:
8
+ - "ksol"
@@ -0,0 +1,28 @@
1
+ name: Publish Gem
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ release:
6
+ types: [created]
7
+
8
+ jobs:
9
+ build:
10
+ runs-on: ubuntu-latest
11
+
12
+ steps:
13
+ - uses: actions/checkout@v2
14
+ - name: Set up Ruby
15
+ uses: ruby/setup-ruby@v1
16
+ with:
17
+ ruby-version: 3.0
18
+ bundler-cache: true
19
+ - name: Publish to RubyGems
20
+ run: |
21
+ mkdir -p $HOME/.gem
22
+ touch $HOME/.gem/credentials
23
+ chmod 0600 $HOME/.gem/credentials
24
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
25
+ gem build *.gemspec
26
+ gem push *.gem
27
+ env:
28
+ GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
@@ -0,0 +1,34 @@
1
+ name: Continuous Integration
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ push:
6
+ branches: [ master ]
7
+ pull_request:
8
+ branches: [ master ]
9
+
10
+ jobs:
11
+ lint:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v2
15
+ - uses: ruby/setup-ruby@v1
16
+ with:
17
+ ruby-version: 3.0
18
+ bundler-cache: true
19
+ - name: RuboCop checks
20
+ run: bundle exec rubocop
21
+
22
+ test:
23
+ runs-on: ubuntu-latest
24
+ strategy:
25
+ matrix:
26
+ ruby-version: ['2.7', '3.0', '3.1']
27
+ steps:
28
+ - uses: actions/checkout@v2
29
+ - uses: ruby/setup-ruby@v1
30
+ with:
31
+ ruby-version: ${{ matrix.ruby-version }}
32
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
33
+ - name: Run tests
34
+ run: bundle exec rake
@@ -37,12 +37,11 @@ module OmniAuth
37
37
  end
38
38
 
39
39
  extra do
40
- {:raw_info => raw_info, :all_emails => emails}
40
+ {:raw_info => raw_info}
41
41
  end
42
42
 
43
43
  def raw_info
44
- access_token.options[:mode] = :query
45
- @raw_info ||= access_token.get('user').parsed
44
+ @raw_info ||= access_token.get('/v1/users/self').parsed['user']
46
45
  end
47
46
 
48
47
  def callback_url
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Scalingo
3
- VERSION = "1.0.0"
3
+ VERSION = "2.0.0"
4
4
  end
5
5
  end
@@ -2,13 +2,20 @@
2
2
  require File.expand_path('../lib/omniauth-scalingo/version', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |gem|
5
- gem.authors = ["Léo Unbekandt"]
6
- gem.email = ["leo@scalingo.com"]
5
+ gem.authors = ["Léo Unbekandt", "Kevin Soltysiak"]
6
+ gem.email = ["leo@scalingo.com", "kevin@scalingo.com"]
7
7
  gem.description = %q{Official OmniAuth strategy for Scalingo.}
8
8
  gem.summary = %q{Official OmniAuth strategy for Scalingo.}
9
9
  gem.homepage = "https://github.com/Scalingo/omniauth-scalingo"
10
10
  gem.license = "MIT"
11
11
 
12
+ gem.metadata = {
13
+ "bug_tracker_uri" => "https://github.com/Scalingo/omniauth-scalingo/issues",
14
+ "documentation_uri" => "https://github.com/Scalingo/omniauth-scalingo",
15
+ "homepage_uri" => "https://github.com/Scalingo/omniauth-scalingo",
16
+ "source_code_uri" => "https://github.com/Scalingo/omniauth-scalingo",
17
+ }
18
+
12
19
  gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
13
20
  gem.files = `git ls-files`.split("\n")
14
21
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
@@ -16,7 +23,7 @@ Gem::Specification.new do |gem|
16
23
  gem.require_paths = ["lib"]
17
24
  gem.version = OmniAuth::Scalingo::VERSION
18
25
 
19
- gem.add_dependency 'omniauth', '~> 1.5'
26
+ gem.add_dependency 'omniauth', '~> 2.0'
20
27
  gem.add_dependency 'omniauth-oauth2', '>= 1.4.0', '< 2.0'
21
28
  gem.add_development_dependency 'rspec', '~> 3.5'
22
29
  gem.add_development_dependency 'rack-test'
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-scalingo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Léo Unbekandt
8
+ - Kevin Soltysiak
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2018-04-19 00:00:00.000000000 Z
12
+ date: 2023-11-03 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: omniauth
@@ -16,14 +17,14 @@ dependencies:
16
17
  requirements:
17
18
  - - "~>"
18
19
  - !ruby/object:Gem::Version
19
- version: '1.5'
20
+ version: '2.0'
20
21
  type: :runtime
21
22
  prerelease: false
22
23
  version_requirements: !ruby/object:Gem::Requirement
23
24
  requirements:
24
25
  - - "~>"
25
26
  - !ruby/object:Gem::Version
26
- version: '1.5'
27
+ version: '2.0'
27
28
  - !ruby/object:Gem::Dependency
28
29
  name: omniauth-oauth2
29
30
  requirement: !ruby/object:Gem::Requirement
@@ -103,10 +104,14 @@ dependencies:
103
104
  description: Official OmniAuth strategy for Scalingo.
104
105
  email:
105
106
  - leo@scalingo.com
107
+ - kevin@scalingo.com
106
108
  executables: []
107
109
  extensions: []
108
110
  extra_rdoc_files: []
109
111
  files:
112
+ - ".github/dependabot.yml"
113
+ - ".github/workflows/publish.yml"
114
+ - ".github/workflows/tests.yml"
110
115
  - ".gitignore"
111
116
  - ".rspec"
112
117
  - Gemfile
@@ -123,7 +128,11 @@ files:
123
128
  homepage: https://github.com/Scalingo/omniauth-scalingo
124
129
  licenses:
125
130
  - MIT
126
- metadata: {}
131
+ metadata:
132
+ bug_tracker_uri: https://github.com/Scalingo/omniauth-scalingo/issues
133
+ documentation_uri: https://github.com/Scalingo/omniauth-scalingo
134
+ homepage_uri: https://github.com/Scalingo/omniauth-scalingo
135
+ source_code_uri: https://github.com/Scalingo/omniauth-scalingo
127
136
  post_install_message:
128
137
  rdoc_options: []
129
138
  require_paths:
@@ -139,11 +148,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
148
  - !ruby/object:Gem::Version
140
149
  version: '0'
141
150
  requirements: []
142
- rubyforge_project:
143
- rubygems_version: 2.6.13
151
+ rubygems_version: 3.4.10
144
152
  signing_key:
145
153
  specification_version: 4
146
154
  summary: Official OmniAuth strategy for Scalingo.
147
- test_files:
148
- - spec/omniauth/strategies/scalingo_spec.rb
149
- - spec/spec_helper.rb
155
+ test_files: []