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
25 changes: 16 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,30 @@ on:
jobs:
test:
runs-on: ubuntu-latest
continue-on-error: ${{matrix.experimental}}

strategy:
matrix:
experimental: [false]

ruby:
- 1.9.3
- 2.6
#- 2.7
- 3.2
- 3.3
- 3.4
rails-version:
- 71
- 72
- 80
include:
- ruby: 2.7
rails-version: 71
- ruby: 3.0
rails-version: 71
- ruby: 3.1
rails-version: 71
- ruby: 3.1
rails-version: 72

#include:
# - experimental: true
# ruby: head

env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails_${{ matrix.rails-version }}.gemfile
BUNDLE_WITHOUT: lint
steps:
- uses: actions/checkout@v3
Expand Down
13 changes: 13 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# frozen_string_literal: true

appraise 'rails_71' do
gem 'activesupport', '~>7.1.4'
end

appraise 'rails_72' do
gem 'activesupport', '~>7.2.1'
end

appraise 'rails_80' do
gem 'activesupport', '~>8.0.0'
end
15 changes: 15 additions & 0 deletions gemfiles/rails_71.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "activesupport", "~>7.1.4"

group :lint do
gem "rubocop"
gem "rubocop-performance"
gem "rubocop-rails"
gem "rubocop-rake"
gem "rubocop-rspec"
end

gemspec path: "../"
15 changes: 15 additions & 0 deletions gemfiles/rails_72.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "activesupport", "~>7.2.1"

group :lint do
gem "rubocop"
gem "rubocop-performance"
gem "rubocop-rails"
gem "rubocop-rake"
gem "rubocop-rspec"
end

gemspec path: "../"
15 changes: 15 additions & 0 deletions gemfiles/rails_80.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "activesupport", "~>8.0.0"

group :lint do
gem "rubocop"
gem "rubocop-performance"
gem "rubocop-rails"
gem "rubocop-rake"
gem "rubocop-rspec"
end

gemspec path: "../"
7 changes: 4 additions & 3 deletions insales_api.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Gem::Specification.new do |s|
s.metadata["changelog_uri"] = "https://github.com/insales/insales_api/blob/master/CHANGELOG.md"
end

s.required_ruby_version = '>= 1.9'
s.required_ruby_version = '>= 2.3'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ой, 2.3 -- это я забыла поправить. Спасибо! 2.7 теперь у нас

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

#54


s.files = `git ls-files`.split("\n").reject do |f|
f.match(Regexp.union(
Expand All @@ -32,8 +32,9 @@ Gem::Specification.new do |s|
))
end

s.add_dependency('activeresource', ['>= 3.0.0'])
s.add_dependency('activesupport', ['>= 3.0.0'])
s.add_dependency('activeresource', ['>= 6.0.0'])

s.add_development_dependency 'rake', '>= 10.3'
s.add_development_dependency 'rspec', '~> 3.12'
s.add_development_dependency "appraisal", '~> 2.5'
end