diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1c1b36a..a9ba22f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 diff --git a/.github/workflows/mutant.yml b/.github/workflows/mutant.yml index 0ec5fe8..1caa6d7 100644 --- a/.github/workflows/mutant.yml +++ b/.github/workflows/mutant.yml @@ -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 diff --git a/.github/workflows/steep.yml b/.github/workflows/steep.yml index f1ebed7..1df3c5d 100644 --- a/.github/workflows/steep.yml +++ b/.github/workflows/steep.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 76b9a5a..bcdabbe 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/.rubocop.yml b/.rubocop.yml index 94874db..6e931b0 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -7,7 +7,7 @@ require: AllCops: NewCops: enable - TargetRubyVersion: 3.1 + TargetRubyVersion: 3.2 Layout/ArgumentAlignment: EnforcedStyle: with_fixed_indentation diff --git a/Gemfile b/Gemfile index b91a874..887f037 100644 --- a/Gemfile +++ b/Gemfile @@ -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" diff --git a/lib/x/oauth_authenticator.rb b/lib/x/oauth_authenticator.rb index d0a0512..a40f29a 100644 --- a/lib/x/oauth_authenticator.rb +++ b/lib/x/oauth_authenticator.rb @@ -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) diff --git a/x.gemspec b/x.gemspec index 25487af..1d2a0cc 100644 --- a/x.gemspec +++ b/x.gemspec @@ -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 = {