Skip to content

Commit

Permalink
RVM and Debian 12
Browse files Browse the repository at this point in the history
Updating version

Signed-off-by: Rodrigo Nardi <[email protected]>
  • Loading branch information
RodrigoMNardi committed Sep 10, 2024
1 parent fe213e9 commit 97e9b77
Show file tree
Hide file tree
Showing 5 changed files with 112 additions and 107 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0.0
ruby-version: 3.3.1

- name: rubocop
uses: reviewdog/[email protected]
Expand Down Expand Up @@ -59,11 +59,11 @@ jobs:
with:
fetch-depth: 0

- name: Set up Ruby 3.0.2
- name: Set up Ruby 3.3.1
id: ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0.2
ruby-version: 3.3.1
bundler-cache: true

- name: Install required package
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

source 'https://rubygems.org'

ruby '3.2.5'
ruby '3.3.1'

# Token
gem 'jwt'
Expand Down
159 changes: 89 additions & 70 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,104 +1,119 @@
GEM
remote: https://rubygems.org/
specs:
activemodel (7.0.7.2)
activesupport (= 7.0.7.2)
activerecord (7.0.7.2)
activemodel (= 7.0.7.2)
activesupport (= 7.0.7.2)
activesupport (7.0.7.2)
concurrent-ruby (~> 1.0, >= 1.0.2)
activemodel (7.2.1)
activesupport (= 7.2.1)
activerecord (7.2.1)
activemodel (= 7.2.1)
activesupport (= 7.2.1)
timeout (>= 0.4.0)
activesupport (7.2.1)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
logger (>= 1.4.2)
minitest (>= 5.1)
tzinfo (~> 2.0)
addressable (2.8.5)
public_suffix (>= 2.0.2, < 6.0)
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
ast (2.4.2)
base64 (0.1.1)
concurrent-ruby (1.2.2)
crack (0.4.5)
bigdecimal (3.1.8)
concurrent-ruby (1.3.4)
connection_pool (2.4.1)
crack (1.0.0)
bigdecimal
rexml
database_cleaner (2.0.2)
database_cleaner-active_record (>= 2, < 3)
database_cleaner-active_record (2.1.0)
database_cleaner-active_record (2.2.0)
activerecord (>= 5.a)
database_cleaner-core (~> 2.0.0)
database_cleaner-core (2.0.1)
delayed_job (4.1.11)
delayed_job (4.1.12)
activesupport (>= 3.0, < 8.0)
delayed_job_active_record (4.1.8)
delayed_job_active_record (4.1.10)
activerecord (>= 3.0, < 8.0)
delayed_job (>= 3.0, < 5)
diff-lcs (1.5.0)
docile (1.4.0)
factory_bot (6.2.1)
diff-lcs (1.5.1)
docile (1.4.1)
drb (2.2.1)
factory_bot (6.4.6)
activesupport (>= 5.0.0)
faker (3.2.1)
faker (3.4.2)
i18n (>= 1.8.11, < 2)
faraday (2.10.1)
faraday-net_http (>= 2.0, < 3.2)
faraday (2.11.0)
faraday-net_http (>= 2.0, < 3.4)
logger
faraday-multipart (1.0.4)
multipart-post (~> 2)
faraday-net_http (3.1.1)
faraday-net_http (3.3.0)
net-http
faraday-retry (2.2.1)
faraday (~> 2.0)
hashdiff (1.0.1)
hashdiff (1.1.1)
hashie (5.0.0)
hashie-forbidden_attributes (0.1.1)
hashie (>= 3.0)
i18n (1.14.1)
i18n (1.14.5)
concurrent-ruby (~> 1.0)
json (2.6.3)
jwt (2.2.2)
json (2.7.2)
jwt (2.8.2)
base64
language_server-protocol (3.17.0.3)
logger (1.6.0)
minitest (5.19.0)
logger (1.6.1)
minitest (5.25.1)
multipart-post (2.4.1)
mustermann (1.1.2)
mustermann (3.0.3)
ruby2_keywords (~> 0.0.1)
net-http (0.4.1)
uri
netrc (0.11.0)
nio4r (2.5.9)
nio4r (2.7.3)
octokit (9.1.0)
faraday (>= 1, < 3)
sawyer (~> 0.9)
otr-activerecord (2.3.0)
activerecord (>= 6.0, < 7.2)
otr-activerecord (2.4.0)
activerecord (>= 6.0, < 7.3)
hashie-forbidden_attributes (~> 0.1)
parallel (1.23.0)
parser (3.2.2.3)
parallel (1.26.3)
parser (3.3.5.0)
ast (~> 2.4.1)
racc
pg (1.5.6)
public_suffix (5.0.3)
puma (5.5.2)
pg (1.5.7)
public_suffix (6.0.1)
puma (6.4.2)
nio4r (~> 2.0)
racc (1.7.1)
rack (2.1.4)
rack-protection (2.0.8.1)
rack
racc (1.8.1)
rack (3.1.7)
rack-protection (4.0.0)
base64 (>= 0.1.0)
rack (>= 3.0.0, < 4)
rack-session (2.0.0)
rack (>= 3.0.0)
rack-test (2.1.0)
rack (>= 1.3)
rainbow (3.1.1)
rake (13.0.6)
regexp_parser (2.8.1)
rexml (3.2.6)
rspec (3.12.0)
rspec-core (~> 3.12.0)
rspec-expectations (~> 3.12.0)
rspec-mocks (~> 3.12.0)
rspec-core (3.12.2)
rspec-support (~> 3.12.0)
rspec-expectations (3.12.3)
rake (13.2.1)
regexp_parser (2.9.2)
rexml (3.3.7)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.1)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-mocks (3.12.6)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-support (3.12.1)
rspec-support (~> 3.13.0)
rspec-support (3.13.1)
rubocop (1.56.1)
base64 (~> 0.1.1)
json (~> 2.3)
Expand All @@ -111,38 +126,42 @@ GEM
rubocop-ast (>= 1.28.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.29.0)
parser (>= 3.2.1.0)
rubocop-performance (1.19.0)
rubocop (>= 1.7.0, < 2.0)
rubocop-ast (>= 0.4.0)
rubocop-ast (1.32.3)
parser (>= 3.3.1.0)
rubocop-performance (1.21.1)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
sawyer (0.9.2)
addressable (>= 2.3.5)
faraday (>= 0.17.3, < 3)
securerandom (0.3.1)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.4)
sinatra (2.0.8.1)
mustermann (~> 1.0)
rack (~> 2.0)
rack-protection (= 2.0.8.1)
sinatra (4.0.0)
mustermann (~> 3.0)
rack (>= 3.0.0, < 4)
rack-protection (= 4.0.0)
rack-session (>= 2.0.0, < 3)
tilt (~> 2.0)
tilt (2.2.0)
tilt (2.4.0)
timeout (0.4.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.4.2)
uri (0.13.0)
webmock (3.19.0)
unicode-display_width (2.5.0)
uri (0.13.1)
webmock (3.23.1)
addressable (>= 2.8.0)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)

PLATFORMS
ruby
x86_64-linux

DEPENDENCIES
Expand Down Expand Up @@ -170,7 +189,7 @@ DEPENDENCIES
webmock

RUBY VERSION
ruby 3.2.5p208
ruby 3.3.1p55

BUNDLED WITH
2.4.7
2.5.9
25 changes: 9 additions & 16 deletions lib/github/check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,25 +51,22 @@ def add_comment(pr_id, comment, repo)
end

def comment_reaction_thumb_up(repo, comment_id)
@app.create_issue_comment_reaction(repo, comment_id, '+1',
accept: Octokit::Preview::PREVIEW_TYPES[:reactions])
@app.create_issue_comment_reaction(repo, comment_id, '+1')
end

def comment_reaction_thumb_down(repo, comment_id)
@app.create_issue_comment_reaction(repo, comment_id, '-1',
accept: Octokit::Preview::PREVIEW_TYPES[:reactions])
@app.create_issue_comment_reaction(repo, comment_id, '-1')
end

def check_runs_for_ref(repo, sha, status: 'queued')
@app.check_runs_for_ref(repo, sha, status: status, accept: Octokit::Preview::PREVIEW_TYPES[:checks])
@app.check_runs_for_ref(repo, sha, status: status)
end

def create(name)
@app.create_check_run(
@check_suite.pull_request.repository,
name,
@check_suite.commit_sha_ref,
accept: Octokit::Preview::PREVIEW_TYPES[:checks]
@check_suite.commit_sha_ref
)
end

Expand Down Expand Up @@ -98,13 +95,11 @@ def skipped(check_ref, output = {})
end

def get_check_run(check_ref)
@app.check_run(@check_suite.pull_request.repository,
check_ref,
accept: Octokit::Preview::PREVIEW_TYPES[:checks]).to_h
@app.check_run(@check_suite.pull_request.repository, check_ref).to_h
end

def installation_id
@authenticate_app.find_app_installations(accept: 'application/vnd.github.v3+json').first['id'].to_i
@authenticate_app.find_app_installations.first['id'].to_i
end

def signature
Expand All @@ -121,8 +116,7 @@ def fetch_username(username)

def basic_status(check_ref, status, output)
opts = {
status: status,
accept: Octokit::Preview::PREVIEW_TYPES[:checks]
status: status
}

opts[:output] = output unless output.empty?
Expand All @@ -146,8 +140,7 @@ def completed(check_ref, status, conclusion, output)

opts = {
status: status,
conclusion: conclusion,
accept: 'application/vnd.github+json'
conclusion: conclusion
}

opts[:output] = output unless output.empty?
Expand Down Expand Up @@ -193,7 +186,7 @@ def authenticate(jwt)

token =
@authenticate_app
.create_app_installation_access_token(installation_id, accept: 'application/vnd.github.v3+json')[:token]
.create_app_installation_access_token(installation_id)[:token]

@app = Octokit::Client.new(bearer_token: token)
end
Expand Down
Loading

0 comments on commit 97e9b77

Please sign in to comment.