forked from stas/jsonapi.rb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add art19 revision number and publishing instructions
- Loading branch information
Tate Thurston
committed
Jul 16, 2024
1 parent
f04e84b
commit a480771
Showing
10 changed files
with
87 additions
and
43 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,39 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
ruby_rails_test_matrix: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: ['3.0', '3.1', '3.2', '3.3'] | ||
rails: ['6.1', '7.0', '7.1'] | ||
exclude: | ||
- ruby: 3.2 | ||
rails: 6 | ||
ruby: ["3.0", "3.1", "3.2", "3.3"] | ||
rails: ["61", "70", "71"] | ||
env: | ||
# $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps | ||
# See https://github.com/ruby/setup-ruby/blob/master/README.md#matrix-of-gemfiles | ||
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/Gemfile.rails${{ matrix.rails }} | ||
|
||
name: Ruby ${{ matrix.ruby }} / Rails ${{ matrix.rails }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
|
||
- name: Runs code QA and tests | ||
env: | ||
RAILS_VERSION: ~> ${{ matrix.rails }} | ||
run: | | ||
rm -rf Gemfile.lock | ||
sudo apt-get update | ||
sudo apt-get install libsqlite3-dev | ||
echo $RAILS_VERSION | grep -q '5' && export SQLITE3_VERSION='~> 1.3.6' | ||
bundle | ||
bundle exec rake | ||
- run: | | ||
sudo apt-get update | ||
sudo apt-get install libsqlite3-dev | ||
bundle exec rake spec | ||
env: | ||
RAILS_ENV: test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
source "https://rubygems.org" | ||
|
||
gem "railties", "~> 6.0.6" | ||
gem "activerecord", "~> 6.0.6" | ||
|
||
gemspec :path => "../" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
source "https://rubygems.org" | ||
|
||
gem "railties", "~> 6.1" | ||
gem "activerecord", "~> 6.1" | ||
|
||
gemspec :path => "../" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
source "https://rubygems.org" | ||
|
||
gem "railties", "~> 7.0" | ||
gem "activerecord", "~> 7.0" | ||
|
||
gemspec :path => "../" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
source "https://rubygems.org" | ||
|
||
gem "railties", "~> 7.1" | ||
gem "activerecord", "~> 7.1" | ||
|
||
gemspec :path => "../" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,10 +4,11 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | |
require 'jsonapi/version' | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = 'jsonapi.rb' | ||
spec.version = JSONAPI::VERSION | ||
spec.authors = ['Stas Suscov'] | ||
spec.email = ['[email protected]'] | ||
spec.name = 'jsonapi.rb' | ||
spec.version = JSONAPI::VERSION | ||
spec.metadata["allowed_push_host"] = 'https://rubygems.pkg.github.com/art19' | ||
spec.authors = ['Stas Suscov'] | ||
spec.email = ['[email protected]'] | ||
|
||
spec.summary = 'So you say you need JSON:API support in your API...' | ||
spec.description = ( | ||
|
@@ -29,16 +30,16 @@ Gem::Specification.new do |spec| | |
|
||
spec.add_development_dependency 'bundler' | ||
spec.add_development_dependency 'ransack' | ||
spec.add_development_dependency 'railties', ENV['RAILS_VERSION'] | ||
spec.add_development_dependency 'activerecord', ENV['RAILS_VERSION'] | ||
spec.add_development_dependency 'sqlite3', ENV['SQLITE3_VERSION'] | ||
spec.add_development_dependency 'railties' | ||
spec.add_development_dependency 'activerecord' | ||
spec.add_development_dependency 'sqlite3', '~> 1.3' | ||
spec.add_development_dependency 'ffaker' | ||
spec.add_development_dependency 'rspec', '~> 3.0' | ||
spec.add_development_dependency 'rspec-rails' | ||
spec.add_development_dependency 'jsonapi-rspec' | ||
spec.add_development_dependency 'yardstick' | ||
spec.add_development_dependency 'rubocop-rails_config' | ||
spec.add_development_dependency 'rubocop', ENV['RUBOCOP_VERSION'] | ||
spec.add_development_dependency 'rubocop' | ||
spec.add_development_dependency 'simplecov' | ||
spec.add_development_dependency 'rubocop-performance' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
module JSONAPI | ||
VERSION = '2.0.1' | ||
## | ||
# ART19 maintains a fork with patches applied on top of the upstream gem. | ||
# We publish our fork with a revision number appended to the upstream version. | ||
# | ||
# @return [String] the ART19 revision number | ||
ART19_REVISION = '1'.freeze | ||
VERSION = "2.0.1.#{ART19_REVISION}".freeze | ||
end |