Skip to content

Commit 43b8bbf

Browse files
authored
Merge pull request #46 from github/deprecate-ruby-2
Ruby 2.x Deprecation and Entitlements upgrades
2 parents e88cbb0 + 0f0d639 commit 43b8bbf

34 files changed

+67
-53
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: checkout
2626
uses: actions/checkout@v4
2727

28-
- uses: ruby/setup-ruby@943103cae7d3f1bb1e4951d5fcc7928b40e4b742 # pin@v1.177.1
28+
- uses: ruby/setup-ruby@78c01b705fd9d5ad960d432d3a0cfa341d50e410 # pin@v1.179.1
2929
with:
3030
bundler-cache: true
3131

.github/workflows/codeql-analysis.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ jobs:
2929

3030
# Initializes the CodeQL tools for scanning.
3131
- name: Initialize CodeQL
32-
uses: github/codeql-action/init@9fdb3e49720b44c48891d036bb502feb25684276 # pin@v2
32+
uses: github/codeql-action/init@v3
3333
with:
3434
languages: ${{ matrix.language }}
3535

3636
- name: Autobuild
37-
uses: github/codeql-action/autobuild@9fdb3e49720b44c48891d036bb502feb25684276 # pin@v2
37+
uses: github/codeql-action/autobuild@v3
3838

3939
- name: Perform CodeQL Analysis
40-
uses: github/codeql-action/analyze@9fdb3e49720b44c48891d036bb502feb25684276 # pin@v2
40+
uses: github/codeql-action/analyze@v3

.github/workflows/gem.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: checkout
2121
uses: actions/checkout@v4
2222

23-
- uses: ruby/setup-ruby@943103cae7d3f1bb1e4951d5fcc7928b40e4b742 # pin@v1.177.1
23+
- uses: ruby/setup-ruby@78c01b705fd9d5ad960d432d3a0cfa341d50e410 # pin@v1.179.1
2424
with:
2525
bundler-cache: true
2626

.github/workflows/lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: checkout
1919
uses: actions/checkout@v4
2020

21-
- uses: ruby/setup-ruby@943103cae7d3f1bb1e4951d5fcc7928b40e4b742 # pin@v1.177.1
21+
- uses: ruby/setup-ruby@78c01b705fd9d5ad960d432d3a0cfa341d50e410 # pin@v1.179.1
2222
with:
2323
bundler-cache: true
2424

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
ruby: [ '3.1.2', '3.1.4', '3.2.2', '3.2.3', '3.3.0' ]
19+
ruby: [ '3.1.2', '3.1.4', '3.2.2', '3.2.3', '3.3.0', '3.3.1' ]
2020

2121
steps:
2222
- name: checkout
2323
uses: actions/checkout@v4
2424

25-
- uses: ruby/setup-ruby@943103cae7d3f1bb1e4951d5fcc7928b40e4b742 # pin@v1.177.1
25+
- uses: ruby/setup-ruby@78c01b705fd9d5ad960d432d3a0cfa341d50e410 # pin@v1.179.1
2626
with:
2727
bundler-cache: true
2828
ruby-version: ${{ matrix.ruby }}

.rubocop.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ AllCops:
66
NewCops: disable
77
SuggestExtensions: false
88
DisplayCopNames: true
9-
TargetRubyVersion: 3.3
9+
TargetRubyVersion: 3.3.1
1010
Exclude:
1111
- 'bin/*'
1212
- 'spec/acceptance/fixtures/**/*'

.ruby-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.3.0
1+
3.3.1

Gemfile.lock

+43-29
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
PATH
22
remote: .
33
specs:
4-
entitlements-gitrepo-auditor-plugin (0.4.1)
4+
entitlements-gitrepo-auditor-plugin (1.0.0)
55
contracts (~> 0.17)
6-
entitlements-app (~> 0.3)
6+
entitlements-app (~> 1.0)
77

88
GEM
99
remote: https://rubygems.org/
@@ -23,28 +23,35 @@ GEM
2323
ast (2.4.2)
2424
base64 (0.2.0)
2525
bigdecimal (3.1.8)
26-
concurrent-ruby (1.1.9)
26+
concurrent-ruby (1.3.3)
2727
connection_pool (2.4.1)
2828
contracts (0.17)
2929
crack (1.0.0)
3030
bigdecimal
3131
rexml
32+
debug (1.8.0)
33+
irb (>= 1.5.0)
34+
reline (>= 0.3.1)
3235
diff-lcs (1.5.1)
3336
docile (1.4.0)
3437
drb (2.2.1)
35-
entitlements-app (0.3.4)
36-
concurrent-ruby (= 1.1.9)
37-
faraday (> 2.0, <= 2.7.10)
38+
entitlements-app (1.0.0)
39+
concurrent-ruby (~> 1.3, >= 1.3.1)
40+
faraday (~> 2.0)
3841
net-ldap (~> 0.19)
3942
octokit (~> 4.18)
40-
optimist (= 3.0.0)
43+
optimist (~> 3.1)
4144
faraday (2.7.10)
4245
faraday-net_http (>= 2.0, < 3.1)
4346
ruby2_keywords (>= 0.0.4)
4447
faraday-net_http (3.0.2)
4548
hashdiff (1.1.0)
4649
i18n (1.14.5)
4750
concurrent-ruby (~> 1.0)
51+
io-console (0.7.2)
52+
irb (1.13.1)
53+
rdoc (>= 4.0.0)
54+
reline (>= 0.4.2)
4855
json (2.7.2)
4956
language_server-protocol (3.17.0.3)
5057
minitest (5.23.1)
@@ -53,32 +60,38 @@ GEM
5360
octokit (4.25.1)
5461
faraday (>= 1, < 3)
5562
sawyer (~> 0.9)
56-
optimist (3.0.0)
63+
optimist (3.1.0)
5764
parallel (1.24.0)
5865
parser (3.3.1.0)
5966
ast (~> 2.4.1)
6067
racc
68+
psych (5.1.2)
69+
stringio
6170
public_suffix (5.0.5)
6271
racc (1.8.0)
6372
rack (3.0.11)
6473
rainbow (3.1.1)
6574
rake (13.2.1)
75+
rdoc (6.7.0)
76+
psych (>= 4.0.0)
6677
regexp_parser (2.9.2)
78+
reline (0.5.8)
79+
io-console (~> 0.5)
6780
rexml (3.2.8)
6881
strscan (>= 3.0.9)
69-
rspec (3.13.0)
70-
rspec-core (~> 3.13.0)
71-
rspec-expectations (~> 3.13.0)
72-
rspec-mocks (~> 3.13.0)
73-
rspec-core (3.13.0)
74-
rspec-support (~> 3.13.0)
75-
rspec-expectations (3.13.0)
82+
rspec (3.8.0)
83+
rspec-core (~> 3.8.0)
84+
rspec-expectations (~> 3.8.0)
85+
rspec-mocks (~> 3.8.0)
86+
rspec-core (3.8.2)
87+
rspec-support (~> 3.8.0)
88+
rspec-expectations (3.8.6)
7689
diff-lcs (>= 1.2.0, < 2.0)
77-
rspec-support (~> 3.13.0)
78-
rspec-mocks (3.13.1)
90+
rspec-support (~> 3.8.0)
91+
rspec-mocks (3.8.2)
7992
diff-lcs (>= 1.2.0, < 2.0)
80-
rspec-support (~> 3.13.0)
81-
rspec-support (3.13.1)
93+
rspec-support (~> 3.8.0)
94+
rspec-support (3.8.3)
8295
rubocop (1.64.0)
8396
json (~> 2.3)
8497
language_server-protocol (>= 3.17.0)
@@ -118,6 +131,7 @@ GEM
118131
simplecov (< 1.0)
119132
simplecov-html (0.12.3)
120133
simplecov_json_formatter (0.1.4)
134+
stringio (3.1.0)
121135
strscan (3.1.0)
122136
tzinfo (2.0.6)
123137
concurrent-ruby (~> 1.0)
@@ -132,18 +146,18 @@ PLATFORMS
132146
ruby
133147

134148
DEPENDENCIES
149+
debug (<= 1.8.0)
135150
entitlements-gitrepo-auditor-plugin!
136-
rake (= 13.2.1)
137-
rspec (= 3.13.0)
138-
rspec-core (= 3.13.0)
139-
rubocop (= 1.64.0)
140-
rubocop-github (= 0.20.0)
141-
rubocop-performance (= 1.21.0)
151+
rake (~> 13.2, >= 13.2.1)
152+
rspec (= 3.8.0)
153+
rubocop (~> 1.64)
154+
rubocop-github (~> 0.20)
155+
rubocop-performance (~> 1.21)
142156
rugged (~> 1.7, >= 1.7.2)
143-
simplecov (= 0.22.0)
144-
simplecov-erb (= 1.0.1)
145-
vcr (= 6.2.0)
146-
webmock (= 3.23.1)
157+
simplecov (~> 0.22.0)
158+
simplecov-erb (~> 1.0, >= 1.0.1)
159+
vcr (~> 6.2)
160+
webmock (~> 3.23, >= 3.23.1)
147161

148162
BUNDLED WITH
149163
2.5.3

entitlements-gitrepo-auditor-plugin.gemspec

+11-11
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ Gem::Specification.new do |s|
1515
s.executables = %w[]
1616

1717
s.add_dependency "contracts", "~> 0.17"
18-
s.add_dependency "entitlements-app", "~> 0.3"
18+
s.add_dependency "entitlements-app", "~> 1.0"
1919

20-
s.add_development_dependency "rake", "= 13.2.1"
21-
s.add_development_dependency "rspec", "= 3.13.0"
22-
s.add_development_dependency "rspec-core", "= 3.13.0"
23-
s.add_development_dependency "rubocop", "= 1.64.0"
24-
s.add_development_dependency "rubocop-github", "= 0.20.0"
25-
s.add_development_dependency "rubocop-performance", "= 1.21.0"
20+
s.add_development_dependency "debug", "<= 1.8.0"
21+
s.add_development_dependency "rake", "~> 13.2", ">= 13.2.1"
22+
s.add_development_dependency "rspec", "= 3.8.0"
23+
s.add_development_dependency "rubocop", "~> 1.64"
24+
s.add_development_dependency "rubocop-github", "~> 0.20"
25+
s.add_development_dependency "rubocop-performance", "~> 1.21"
2626
s.add_development_dependency "rugged", "~> 1.7", ">= 1.7.2"
27-
s.add_development_dependency "simplecov", "= 0.22.0"
28-
s.add_development_dependency "simplecov-erb", "= 1.0.1"
29-
s.add_development_dependency "vcr", "= 6.2.0"
30-
s.add_development_dependency "webmock", "3.23.1"
27+
s.add_development_dependency "simplecov", "~> 0.22.0"
28+
s.add_development_dependency "simplecov-erb", "~> 1.0", ">= 1.0.1"
29+
s.add_development_dependency "vcr", "~> 6.2"
30+
s.add_development_dependency "webmock", "~> 3.23", ">= 3.23.1"
3131
end

lib/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
module Entitlements
44
module Version
5-
VERSION = "0.4.1"
5+
VERSION = "1.0.0"
66
end
77
end

spec/acceptance/Dockerfile.entitlements-gitrepo-auditor-plugin

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:3.3-slim
1+
FROM ruby:3.3.1-slim
22
LABEL maintainer="GitHub Security Ops <[email protected]>"
33
ENV HOME /root
44
ENV RELEASE=buster
@@ -17,7 +17,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
1717
pkg-config
1818

1919
# Install bundler
20-
RUN gem install bundler -v 2.3.19
20+
RUN gem install bundler -v 2.5.3
2121

2222
# Bootstrap files and caching for speed
2323
COPY "vendor/cache/" "/data/entitlements/vendor/cache/"
-350 KB
Binary file not shown.
342 KB
Binary file not shown.

vendor/cache/debug-1.8.0.gem

95 KB
Binary file not shown.
-154 KB
Binary file not shown.
154 KB
Binary file not shown.

vendor/cache/io-console-0.7.2.gem

24 KB
Binary file not shown.

vendor/cache/irb-1.13.1.gem

92.5 KB
Binary file not shown.

vendor/cache/optimist-3.0.0.gem

-29 KB
Binary file not shown.

vendor/cache/optimist-3.1.0.gem

31 KB
Binary file not shown.

vendor/cache/psych-5.1.2.gem

37 KB
Binary file not shown.

vendor/cache/rdoc-6.7.0.gem

637 KB
Binary file not shown.

vendor/cache/reline-0.5.8.gem

56 KB
Binary file not shown.

vendor/cache/rspec-3.13.0.gem

-10.5 KB
Binary file not shown.

vendor/cache/rspec-3.8.0.gem

10.5 KB
Binary file not shown.

vendor/cache/rspec-core-3.13.0.gem

-164 KB
Binary file not shown.

vendor/cache/rspec-core-3.8.2.gem

157 KB
Binary file not shown.
-86 KB
Binary file not shown.
80.5 KB
Binary file not shown.

vendor/cache/rspec-mocks-3.13.1.gem

-80 KB
Binary file not shown.

vendor/cache/rspec-mocks-3.8.2.gem

76.5 KB
Binary file not shown.

vendor/cache/rspec-support-3.13.1.gem

-39 KB
Binary file not shown.

vendor/cache/rspec-support-3.8.3.gem

36 KB
Binary file not shown.

vendor/cache/stringio-3.1.0.gem

16 KB
Binary file not shown.

0 commit comments

Comments
 (0)