diff --git a/.github/workflows/rspec.yaml b/.github/workflows/rspec.yaml index 85d6d3f..86b73c0 100644 --- a/.github/workflows/rspec.yaml +++ b/.github/workflows/rspec.yaml @@ -6,7 +6,7 @@ jobs: rspec: runs-on: ubuntu-latest container: - image: ruby:3.0.6 + image: ruby:3.1.6 env: BUNDLER_VERSION: "2.5.23" diff --git a/.gitignore b/.gitignore index 01338f7..779aec9 100644 --- a/.gitignore +++ b/.gitignore @@ -30,6 +30,7 @@ mkmf.log # tmp files and logs /log/* /tmp/* +/*.gem # various artifacts **.war diff --git a/.ruby-version b/.ruby-version index 818bd47..9cec716 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.0.6 +3.1.6 diff --git a/README.md b/README.md index 1b54e90..570b6ab 100644 --- a/README.md +++ b/README.md @@ -24,15 +24,16 @@ Or install it yourself as: ## Dependencies -Currently this gem is built & tested with Ruby 2.3.x. -Confirmed working with Ruby 2.4.x. +This gem is built and tested with Ruby 3.1.x. -Requires Ruby >= 2.3 +Requires Ruby >= 3.1.0 ```ruby -"faraday", "~> 0.13.1" -"faraday_middleware", "~> 0.12.2" -"virtus", "~> 1.0" +"activesupport", "~> 6.1" +"faraday", "~> 2" +"faraday-follow_redirects", "~> 0.3" +"faraday-multipart", "~> 1.1" +"virtus", "~> 2.0" ``` ## Usage diff --git a/qualtrics_api.gemspec b/qualtrics_api.gemspec index c30056d..a5ee7b2 100644 --- a/qualtrics_api.gemspec +++ b/qualtrics_api.gemspec @@ -1,4 +1,3 @@ -# coding: utf-8 lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) @@ -15,18 +14,18 @@ Gem::Specification.new do |spec| spec.homepage = "https://github.com/CambridgeEducation/qualtrics_api" spec.license = "MIT" - spec.files = `git ls-files -z`.split("\x0") + spec.files = `git ls-files -z`.split("\x0").reject { |file| file.end_with?(".gem") } spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] - spec.required_ruby_version = ">= 3.0.6" + spec.required_ruby_version = ">= 3.1.0" spec.add_dependency "activesupport", "~> 6.1" spec.add_dependency "faraday", "~> 2" spec.add_dependency "faraday-follow_redirects", "~> 0.3" spec.add_dependency "faraday-multipart", "~> 1.1" - spec.add_dependency "virtus", ">= 1.0" + spec.add_dependency "virtus", "~> 2.0" spec.add_development_dependency "bundler", "~> 2.5.23" spec.add_development_dependency "rake", "~> 12.3"