omniauth-linear 2.0.1 → 2.0.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
  SHA256:
3
- metadata.gz: 8039a1be3a9d160e1e6d90aaa459765c1beb91fc2a3ad6939712362a1d9caf6f
4
- data.tar.gz: 66ffa7e0ebb1d403f8568fee3c01cca0314bc8ffc53dbf55a684404282d88ea3
3
+ metadata.gz: c7966a948a82efb4533c121008afbc5b2fdd53d0530ec81c8f6f81f684458554
4
+ data.tar.gz: 4b13d3c12c5838a371a8c24af0fec6d4d00c520cbef570c88538bfe598f91421
5
5
  SHA512:
6
- metadata.gz: 8fba8c1f878db96b4e0c052c72f79e9849e8e18c25f1c2f8dd82e432f019a744389a5a15e909930d430ef5c7ceb5d94db3d68871928f19dd83674ed2e0c4c5af
7
- data.tar.gz: e976cba17b313796430a632972b8430342cf32c2e3e773320705af579b014be0b24386ffb27c16c7dc76517af2bc51dfd11964c1dd933e8fb1c9703ab53d0a82
6
+ metadata.gz: b0d71debc099dd3099a569041ef6e28e3e1fb7dd9872dc257ca3c73702f40a056b483260592faf4c97f75e7e3e9f77c3de31190e9433f93ab681d9d7351b9b83
7
+ data.tar.gz: da83269bbca480d47fa897397605414f0f966f9c219a1a1d7e2dc9eff998210e7a15fd8535105c776aaf508fe27231ab9672becec9f3a426589191e3dcfcfc56
@@ -10,7 +10,7 @@ jobs:
10
10
  ruby-version: ["3.0", "3.1", "3.2", "3.3"]
11
11
 
12
12
  steps:
13
- - uses: actions/checkout@v3
13
+ - uses: actions/checkout@v4
14
14
  - name: Set up Ruby ${{ matrix.ruby-version }}
15
15
  uses: ruby/setup-ruby@v1
16
16
  with:
data/README.md CHANGED
@@ -16,7 +16,7 @@ gem 'omniauth-linear'
16
16
 
17
17
  ```ruby
18
18
  use OmniAuth::Builder do
19
- provider :linear, ENV['LINEARAPP_CLIENT_ID'], ENV['LINEARAPP_CLIENT_SECRET'], { scope: 'read,issues:create' }
19
+ provider :linear, ENV['LINEARAPP_CLIENT_ID'], ENV['LINEARAPP_CLIENT_SECRET'], { scope: 'read,issues:create', actor: 'application' }
20
20
  end
21
21
  ```
22
22
 
@@ -26,7 +26,7 @@ In `config/initializers/linear.rb`
26
26
 
27
27
  ```ruby
28
28
  Rails.application.config.middleware.use OmniAuth::Builder do
29
- provider :linear, ENV['LINEARAPP_CLIENT_ID'], ENV['LINEARAPP_CLIENT_SECRET'], { scope: 'read,issues:create' }
29
+ provider :linear, ENV['LINEARAPP_CLIENT_ID'], ENV['LINEARAPP_CLIENT_SECRET'], { scope: 'read,issues:create', actor: 'application' }
30
30
  end
31
31
  ```
32
32
 
@@ -16,6 +16,8 @@ module OmniAuth
16
16
  grant_type: 'authorization_code',
17
17
  }
18
18
 
19
+ option :actor, 'user'
20
+
19
21
  def request_phase
20
22
  super
21
23
  end
@@ -27,6 +29,7 @@ module OmniAuth
27
29
  params[v.to_sym] = request.params[v]
28
30
  end
29
31
  end
32
+ params[:actor] = options[:actor]
30
33
  end
31
34
  end
32
35
 
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Linear
3
- VERSION = "2.0.1"
3
+ VERSION = "2.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-linear
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Quentin Rousseau
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-29 00:00:00.000000000 Z
11
+ date: 2024-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth