Skip to content

Commit 1c4ab10

Browse files
authored
Update ruby dependencies (#2)
* Update ruby dependencies * Update GitHub actions * Disable MD024 * Disable problematic linters
1 parent 83fb0e7 commit 1c4ab10

7 files changed

Lines changed: 177 additions & 66 deletions

File tree

.github/linters/.markdown-lint.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
###########################
3+
###########################
4+
## Markdown Linter rules ##
5+
###########################
6+
###########################
7+
8+
# Linter rules doc:
9+
# - https://github.com/DavidAnson/markdownlint
10+
#
11+
# Note:
12+
# To comment out a single error:
13+
# <!-- markdownlint-disable -->
14+
# any violations you want
15+
# <!-- markdownlint-restore -->
16+
#
17+
18+
###############
19+
# Rules by id #
20+
###############
21+
MD004: false # Unordered list style
22+
MD007:
23+
indent: 2 # Unordered list indentation
24+
MD013:
25+
line_length: 400 # Line length 80 is far too short
26+
MD024: false # Multiple headers with the same content
27+
MD026:
28+
punctuation: ".,;:!。,;:" # List of not allowed
29+
MD029: false # Ordered list item prefix
30+
MD033: false # Allow inline HTML
31+
MD036: false # Emphasis used instead of a heading
32+
33+
#################
34+
# Rules by tags #
35+
#################
36+
blank_lines: false # Error on blank lines

.github/workflows/linter.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ name: Lint Code Base
1717
on:
1818
pull_request
1919

20+
permissions:
21+
contents: read
22+
pull-requests: read
23+
2024
###############
2125
# Set the Job #
2226
###############
@@ -33,7 +37,7 @@ jobs:
3337
# Checkout the code base #
3438
##########################
3539
- name: Checkout Code
36-
uses: actions/checkout@v4
40+
uses: actions/checkout@v5
3741
with:
3842
# Full git history is needed to get a proper list of changed files within `super-linter`
3943
fetch-depth: 0
@@ -42,9 +46,12 @@ jobs:
4246
# Run Linter against code base #
4347
################################
4448
- name: Lint Code Base
45-
uses: github/super-linter/slim@v5
49+
uses: github/super-linter/slim@v7
4650
env:
4751
DEFAULT_BRANCH: main
4852
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4953
VALIDATE_ALL_CODEBASE: false
5054
VALIDATE_GITLEAKS: false
55+
VALIDATE_MARKDOWN_PRETTIER: false
56+
VALIDATE_NATURAL_LANGUAGE: false
57+
VALIDATE_YAML_PRETTIER: false

.github/workflows/tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
name: Test the code
22
on: [pull_request]
3+
permissions:
4+
contents: read
5+
pull-requests: read
36
jobs:
47
test:
58
runs-on: ubuntu-latest
69
steps:
7-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v5
811
- uses: ruby/setup-ruby@v1
912
with:
1013
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

CHANGELOG.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,60 @@
11
# Changelog
22

3+
## 1.2.0
4+
5+
Maintenance:
6+
7+
- Upgraded octokit dependency from ~> 8.0 to ~> 10.0
8+
- Upgraded cucumber dependency from ~> 9.1 to ~> 10.1
9+
- Updated all dependencies to their latest compatible versions
10+
11+
## 1.0.1
12+
13+
Fixes:
14+
15+
- Fixed bug with missing whatsnew in enterprise repos
16+
17+
## 1.0.0
18+
19+
### General
20+
21+
- Major version release with significant updates
22+
- Updated gemspec dependencies
23+
- Updated Ruby requirement to >= 2.7.0
24+
- Updated octokit to ~> 6.0
25+
- Updated thor to ~> 1.2
26+
27+
### CLI improvements
28+
29+
- Added version CLI option
30+
- Removed default option to make 'help' option default
31+
32+
### Testing
33+
34+
- Added test for 'version' CLI option
35+
- Updated tests to run with rake by default
36+
- Added code testing workflow
37+
- Removed Travis CI workflow
38+
39+
### Bug fixes
40+
41+
- Fixed GitHub API query requirement to include 'is:pull-request'
42+
- Updated search query as required by GitHub API
43+
44+
## 0.5.0
45+
46+
Fixes:
47+
48+
- Fixed bug "422 - Query must include 'is:issue' or 'is:pull-request'"
49+
50+
Maintenance:
51+
52+
- Updated gemspec dependencies
53+
- Updated Ruby requirement to >= 2.7.0
54+
- Updated octokit to ~> 6.0
55+
- Updated thor to ~> 1.2
56+
- Updated development dependencies (aruba, bundler, cucumber, rspec, fileutils, faraday-retry)
57+
358
## 0.4.2
459

560
Fixes:

Gemfile.lock

Lines changed: 70 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,97 @@
11
PATH
22
remote: .
33
specs:
4-
whatsup_github (1.1.0)
4+
whatsup_github (1.2.0)
55
netrc (~> 0.11)
6-
octokit (~> 8.0)
6+
octokit (~> 10.0)
77
thor (~> 1.3)
88

99
GEM
1010
remote: https://rubygems.org/
1111
specs:
12-
addressable (2.8.6)
13-
public_suffix (>= 2.0.2, < 6.0)
14-
aruba (2.2.0)
12+
addressable (2.8.7)
13+
public_suffix (>= 2.0.2, < 7.0)
14+
aruba (2.3.1)
1515
bundler (>= 1.17, < 3.0)
1616
contracts (>= 0.16.0, < 0.18.0)
17-
cucumber (>= 8.0, < 10.0)
17+
cucumber (>= 8.0, < 11.0)
1818
rspec-expectations (~> 3.4)
1919
thor (~> 1.0)
20-
base64 (0.2.0)
21-
builder (3.2.4)
22-
contracts (0.17)
23-
cucumber (9.1.0)
24-
builder (~> 3.2, >= 3.2.4)
25-
cucumber-ci-environment (~> 9.2, >= 9.2.0)
26-
cucumber-core (~> 12.0)
27-
cucumber-cucumber-expressions (~> 17.0)
28-
cucumber-gherkin (>= 24, < 27)
29-
cucumber-html-formatter (~> 20.4, >= 20.4.0)
30-
cucumber-messages (>= 19, < 23)
31-
diff-lcs (~> 1.5, >= 1.5.0)
32-
mini_mime (~> 1.1, >= 1.1.5)
33-
multi_test (~> 1.1, >= 1.1.0)
34-
sys-uname (~> 1.2, >= 1.2.3)
35-
cucumber-ci-environment (9.2.0)
36-
cucumber-core (12.0.0)
37-
cucumber-gherkin (>= 25, < 27)
38-
cucumber-messages (>= 20, < 23)
39-
cucumber-tag-expressions (~> 5.0, >= 5.0.4)
40-
cucumber-cucumber-expressions (17.0.1)
41-
cucumber-gherkin (26.2.0)
42-
cucumber-messages (>= 19.1.4, < 22.1)
43-
cucumber-html-formatter (20.4.0)
44-
cucumber-messages (>= 18.0, < 22.1)
45-
cucumber-messages (22.0.0)
46-
cucumber-tag-expressions (5.0.6)
47-
diff-lcs (1.5.0)
48-
faraday (2.8.1)
49-
base64
50-
faraday-net_http (>= 2.0, < 3.1)
51-
ruby2_keywords (>= 0.0.4)
52-
faraday-net_http (3.0.2)
53-
faraday-retry (2.2.0)
20+
base64 (0.3.0)
21+
bigdecimal (3.2.2)
22+
builder (3.3.0)
23+
contracts (0.17.2)
24+
cucumber (10.1.0)
25+
base64 (~> 0.2)
26+
builder (~> 3.2)
27+
cucumber-ci-environment (> 9, < 11)
28+
cucumber-core (> 15, < 17)
29+
cucumber-cucumber-expressions (> 17, < 19)
30+
cucumber-html-formatter (> 20.3, < 22)
31+
diff-lcs (~> 1.5)
32+
logger (~> 1.6)
33+
mini_mime (~> 1.1)
34+
multi_test (~> 1.1)
35+
sys-uname (~> 1.3)
36+
cucumber-ci-environment (10.0.1)
37+
cucumber-core (15.2.1)
38+
cucumber-gherkin (> 27, < 33)
39+
cucumber-messages (> 26, < 30)
40+
cucumber-tag-expressions (> 5, < 7)
41+
cucumber-cucumber-expressions (18.0.1)
42+
bigdecimal
43+
cucumber-gherkin (32.2.0)
44+
cucumber-messages (> 25, < 28)
45+
cucumber-html-formatter (21.14.0)
46+
cucumber-messages (> 19, < 28)
47+
cucumber-messages (27.2.0)
48+
cucumber-tag-expressions (6.1.2)
49+
diff-lcs (1.6.2)
50+
faraday (2.13.4)
51+
faraday-net_http (>= 2.0, < 3.5)
52+
json
53+
logger
54+
faraday-net_http (3.4.1)
55+
net-http (>= 0.5.0)
56+
faraday-retry (2.3.2)
5457
faraday (~> 2.0)
55-
ffi (1.16.3)
56-
fileutils (1.7.2)
58+
ffi (1.17.2)
59+
ffi (1.17.2-arm64-darwin)
60+
fileutils (1.7.3)
61+
json (2.13.2)
62+
logger (1.7.0)
63+
memoist3 (1.0.0)
5764
mini_mime (1.1.5)
5865
multi_test (1.1.0)
66+
net-http (0.6.0)
67+
uri
5968
netrc (0.11.0)
60-
octokit (8.0.0)
69+
octokit (10.0.0)
6170
faraday (>= 1, < 3)
6271
sawyer (~> 0.9)
63-
public_suffix (5.0.4)
64-
rake (13.1.0)
65-
rspec (3.12.0)
66-
rspec-core (~> 3.12.0)
67-
rspec-expectations (~> 3.12.0)
68-
rspec-mocks (~> 3.12.0)
69-
rspec-core (3.12.2)
70-
rspec-support (~> 3.12.0)
71-
rspec-expectations (3.12.3)
72+
public_suffix (6.0.2)
73+
rake (13.3.0)
74+
rspec (3.13.1)
75+
rspec-core (~> 3.13.0)
76+
rspec-expectations (~> 3.13.0)
77+
rspec-mocks (~> 3.13.0)
78+
rspec-core (3.13.5)
79+
rspec-support (~> 3.13.0)
80+
rspec-expectations (3.13.5)
7281
diff-lcs (>= 1.2.0, < 2.0)
73-
rspec-support (~> 3.12.0)
74-
rspec-mocks (3.12.6)
82+
rspec-support (~> 3.13.0)
83+
rspec-mocks (3.13.5)
7584
diff-lcs (>= 1.2.0, < 2.0)
76-
rspec-support (~> 3.12.0)
77-
rspec-support (3.12.1)
78-
ruby2_keywords (0.0.5)
85+
rspec-support (~> 3.13.0)
86+
rspec-support (3.13.5)
7987
sawyer (0.9.2)
8088
addressable (>= 2.3.5)
8189
faraday (>= 0.17.3, < 3)
82-
sys-uname (1.2.3)
90+
sys-uname (1.4.1)
8391
ffi (~> 1.1)
84-
thor (1.3.0)
92+
memoist3 (~> 1.0.0)
93+
thor (1.4.0)
94+
uri (1.0.3)
8595

8696
PLATFORMS
8797
arm64-darwin-22
@@ -90,7 +100,7 @@ PLATFORMS
90100
DEPENDENCIES
91101
aruba (~> 2.2)
92102
bundler (~> 2.5)
93-
cucumber (~> 9.1)
103+
cucumber (~> 10.1)
94104
faraday-retry (~> 2.2)
95105
fileutils (~> 1.7)
96106
rake (~> 13.1)

lib/whatsup_github/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module WhatsupGithub
4-
VERSION = '1.1.0'
4+
VERSION = '1.2.0'
55
end

whatsup_github.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ Gem::Specification.new do |spec|
3737
spec.required_ruby_version = '>= 3.0'
3838

3939
spec.add_dependency 'netrc', '~> 0.11'
40-
spec.add_dependency 'octokit', '~> 8.0'
40+
spec.add_dependency 'octokit', '~> 10.0'
4141
spec.add_dependency 'thor', '~> 1.3'
4242

4343
spec.add_development_dependency 'aruba', '~> 2.2'
4444
spec.add_development_dependency 'bundler', '~> 2.5'
45-
spec.add_development_dependency 'cucumber', '~> 9.1'
45+
spec.add_development_dependency 'cucumber', '~> 10.1'
4646
spec.add_development_dependency 'rake', '~> 13.1'
4747
spec.add_development_dependency 'rspec', '~> 3.12'
4848
spec.add_development_dependency 'fileutils', '~> 1.7'

0 commit comments

Comments
 (0)