From 273a998706bbba6b1f728ec215c74b45066da453 Mon Sep 17 00:00:00 2001 From: "depfu[bot]" <23717796+depfu[bot]@users.noreply.github.com> Date: Fri, 24 Nov 2023 20:15:21 +0000 Subject: [PATCH 1/2] Update json_schemer to version 2.1.0 --- openapi_contracts.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi_contracts.gemspec b/openapi_contracts.gemspec index 3d3a27f..ed8bbde 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.1.0' s.add_dependency 'rack', '>= 2.0.0' s.add_development_dependency 'json_spec', '~> 1.1.5' From 7a908106ee27c1007e1cfd01378699d413a1ee36 Mon Sep 17 00:00:00 2001 From: Konstantin Munteanu Date: Thu, 30 Nov 2023 21:58:23 +0100 Subject: [PATCH 2/2] Test with multipel versions of json_schemer --- .github/workflows/main.yml | 8 +++++--- Gemfile | 3 +++ openapi_contracts.gemspec | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) 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 ed8bbde..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.1.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'