Commit c64ffad 1 parent dee7aa9 commit c64ffad Copy full SHA for c64ffad
File tree 6 files changed +20
-14
lines changed
6 files changed +20
-14
lines changed Original file line number Diff line number Diff line change 7
7
push :
8
8
branches : ["master", "main"]
9
9
10
+ concurrency :
11
+ group : ${{ github.ref }}-CI
12
+ cancel-in-progress : true
13
+
10
14
jobs :
11
15
linters :
12
16
runs-on : ubuntu-latest
18
22
- name : Set up Ruby
19
23
uses : ruby/setup-ruby@v1
20
24
with :
21
- ruby-version : 2.7
25
+ ruby-version : 3.0
22
26
bundler-cache : true
23
27
24
28
- name : Run linters
@@ -30,11 +34,11 @@ jobs:
30
34
fail-fast : false
31
35
matrix :
32
36
include :
33
- - ruby : ruby:2.5
34
- - ruby : ruby:2.6
35
- - ruby : ruby:2.7
36
37
- ruby : ruby:3.0
37
38
coverage : true
39
+ - ruby : ruby:3.1
40
+ - ruby : ruby:3.2
41
+ - ruby : ruby:3.3
38
42
name : test/ruby ${{ matrix.ruby }}
39
43
steps :
40
44
- name : Checkout repository
Original file line number Diff line number Diff line change @@ -53,7 +53,6 @@ detectors:
53
53
enabled : true
54
54
exclude : []
55
55
max_allowed_nesting : 2
56
- ignore_iterators : []
57
56
NilCheck :
58
57
enabled : false
59
58
exclude : []
@@ -127,4 +126,3 @@ detectors:
127
126
exclude_paths :
128
127
- config
129
128
- lib/generators/apple_auth/apple_auth_controller/templates
130
-
Original file line number Diff line number Diff line change 1
1
AllCops :
2
- TargetRubyVersion : 2.5
2
+ TargetRubyVersion : 3.0
3
+ SuggestExtensions : false
4
+ NewCops : disable
3
5
Exclude :
4
6
- lib/generators/apple_auth/apple_auth_controller/templates/**
5
7
@@ -22,10 +24,10 @@ Metrics/BlockLength:
22
24
CountComments : false
23
25
Max : 25
24
26
Exclude :
25
- - ' *.gemspec'
27
+ - " *.gemspec"
26
28
- config/**/*
27
29
- spec/**/*
28
- ExcludedMethods :
30
+ AllowedMethods :
29
31
- class_methods
30
32
31
33
Metrics/BlockNesting :
Original file line number Diff line number Diff line change @@ -35,10 +35,10 @@ Gem::Specification.new do |spec|
35
35
spec . add_development_dependency 'byebug' , '~> 11.1'
36
36
spec . add_development_dependency 'railties' , '~> 6.0'
37
37
spec . add_development_dependency 'rake' , '~> 13.0'
38
- spec . add_development_dependency 'reek' , '~> 5.6 '
38
+ spec . add_development_dependency 'reek' , '~> 6.0 '
39
39
spec . add_development_dependency 'rspec' , '~> 3.9'
40
- spec . add_development_dependency 'rubocop' , '~> 0.80 '
41
- spec . add_development_dependency 'parser' , '~> 2.7.1.1 '
40
+ spec . add_development_dependency 'rubocop' , '~> 1.66 '
41
+ spec . add_development_dependency 'parser' , '~> 3.3.0 '
42
42
spec . add_development_dependency 'simplecov' , '~> 0.17.1'
43
43
spec . add_development_dependency 'webmock' , '~> 3.8'
44
44
end
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ def request_header
63
63
64
64
def gen_private_key
65
65
key = AppleAuth . config . apple_private_key
66
- key = OpenSSL ::PKey ::EC . new ( key ) unless key . class == OpenSSL ::PKey ::EC
66
+ key = OpenSSL ::PKey ::EC . new ( key ) unless key . instance_of? ( OpenSSL ::PKey ::EC )
67
67
key
68
68
end
69
69
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
+ require 'ostruct'
4
+
3
5
RSpec . describe AppleAuth ::Token do
4
6
subject ( :token_service ) { described_class . new ( code ) }
5
7
9
11
10
12
before do
11
13
AppleAuth . config . apple_client_id = 'client_id'
12
- AppleAuth . config . apple_private_key = OpenSSL ::PKey ::EC . new ( 'prime256v1' ) . generate_key!
14
+ AppleAuth . config . apple_private_key = OpenSSL ::PKey ::EC . generate ( 'prime256v1' )
13
15
AppleAuth . config . apple_key_id = 'apple_kid'
14
16
AppleAuth . config . apple_team_id = 'team_id'
15
17
AppleAuth . config . redirect_uri = 'www.example.com'
You can’t perform that action at this time.
0 commit comments