Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/rspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ on:
jobs:
rspec:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['3.2', '3.3', '3.4']
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0.0'
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- run: gem install bundler -v '< 2.0'
- run: bundle install
- run: bundle exec rake spec
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## Unreleased

- Require Ruby 3.2.0 or higher

## v1.5.0

- Require Faraday v2
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Qiita API v2 client library and CLI tool, written in Ruby.

## Install

Note: requires Ruby 3.0.0 or higher.
Note: requires Ruby 3.2.0 or higher.

```bash
gem install qiita
Expand Down
2 changes: 2 additions & 0 deletions qiita.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]

spec.required_ruby_version = '>= 3.2.0'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Consider using a pessimistic version constraint ~> 3.2 instead of '>= 3.2.0'. This specifies compatibility as >= 3.2.0 AND < 4.0.0, preventing unintended installations on potentially incompatible future major Ruby versions.

  spec.required_ruby_version = '~> 3.2'


spec.add_dependency "activesupport"
spec.add_dependency 'faraday', '>= 2', '< 3'
spec.add_dependency "rack"
Expand Down