diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 72d07e3..cd4d7f8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,17 +13,19 @@ jobs: fail-fast: false matrix: activesupport: ['6.1', '7.0'] + json_schemer: ['2.0', '2.1'] ruby: ['3.0', '3.1', '3.2'] steps: - uses: actions/checkout@v3 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: ${{ matrix.ruby }} + ruby-version: '${{ matrix.ruby }}' bundler-cache: true - cache-version: ${{ matrix.activesupport }} + cache-version: ${{ matrix.activesupport }}-${{ matrix.json_schemer }} env: - ACTIVESUPPORT: ${{ matrix.activesupport }} + ACTIVESUPPORT: '${{ matrix.activesupport }}' + JSON_SCHEMER: '${{ matrix.json_schemer }}' - name: Rspec run: bundle exec rspec diff --git a/Gemfile b/Gemfile index b414614..120159f 100644 --- a/Gemfile +++ b/Gemfile @@ -9,3 +9,6 @@ end if (version = ENV['ACTIVESUPPORT']) gem 'activesupport', "~> #{version}.0" end +if (version = ENV['JSON_SCHEMER']) + gem 'json_schemer', "~> #{version}.0" +end diff --git a/openapi_contracts.gemspec b/openapi_contracts.gemspec index 3d3a27f..54df7db 100644 --- a/openapi_contracts.gemspec +++ b/openapi_contracts.gemspec @@ -14,7 +14,7 @@ Gem::Specification.new do |s| s.files = Dir['lib/**/*', 'README.md'] s.add_dependency 'activesupport', '>= 6.1', '< 8' - s.add_dependency 'json_schemer', '~> 2.0.0' + s.add_dependency 'json_schemer', '>= 2', '< 2.2' s.add_dependency 'rack', '>= 2.0.0' s.add_development_dependency 'json_spec', '~> 1.1.5'