Skip to content

Commit

Permalink
Updates for Ruby 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Dec 10, 2024
1 parent 92dd4d5 commit 1f47cfa
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ jobs:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.1"
ruby-version: "3.2"
bundler-cache: true
- run: bundle exec rake lint
2 changes: 1 addition & 1 deletion .github/workflows/mutant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ jobs:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.1"
ruby-version: "3.2"
bundler-cache: true
- run: bundle exec rake mutant
2 changes: 1 addition & 1 deletion .github/workflows/steep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ jobs:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.1"
ruby-version: "3.2"
bundler-cache: true
- run: bundle exec rake steep
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
build:
strategy:
matrix:
ruby: ["3.1", "3.2", "3.3"]
ruby: ["3.2", "3.3", "3.4"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require:

AllCops:
NewCops: enable
TargetRubyVersion: 3.1
TargetRubyVersion: 3.2

Layout/ArgumentAlignment:
EnforcedStyle: with_fixed_indentation
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ gemspec

gem "base64", ">= 0.2"
gem "fiddle", ">= 1.1.2"
gem "irb", ">= 1.14.1"
gem "minitest", ">= 5.19"
gem "mutant", ">= 0.12"
gem "mutant-minitest", ">= 0.11.24"
Expand Down
2 changes: 1 addition & 1 deletion lib/x/oauth_authenticator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def parse_query_params(query_string)
end

def uri_without_query(uri)
uri.to_s.chomp("?#{uri.query}")
"#{uri.scheme}://#{uri.host}#{uri.path}"
end

def build_oauth_header(method, url, query_params)
Expand Down
2 changes: 1 addition & 1 deletion x.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
spec.summary = "A Ruby interface to the X API."
spec.homepage = "https://sferik.github.io/x-ruby"
spec.license = "MIT"
spec.required_ruby_version = ">= 3.1.3"
spec.required_ruby_version = ">= 3.2"
spec.platform = Gem::Platform::RUBY

spec.metadata = {
Expand Down

0 comments on commit 1f47cfa

Please sign in to comment.