From 8e723c6383e40ea47b6a6aad3391e98bbd356cad Mon Sep 17 00:00:00 2001 From: peter scholz Date: Fri, 17 Nov 2023 11:51:25 +0100 Subject: [PATCH] Prepare Release 2.0.0 (#912) * Allows to use grap v2.0 in dev. * Aligns ruby and grape version with test matrix. - removes allowing untested versions * Prepare release 2.0.0 --- CHANGELOG.md | 14 +++++++++++--- Gemfile | 2 +- README.md | 1 + grape-swagger.gemspec | 4 ++-- lib/grape-swagger/version.rb | 2 +- 5 files changed, 16 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 26fc1fda..1dae029b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,15 +2,24 @@ #### Features -* [#910](https://github.com/ruby-grape/grape-swagger/pull/910): Allow using Grape v2 - [@ninoseki](https://github.com/ninoseki) * Your contribution here. #### Fixes -* [#903](https://github.com/ruby-grape/grape-swagger/pull/903): Accept `example` documentation parameter for arrays - [@VladMomotov](https://github.com/VladMomotov) * Your contribution here. +### 2.0.0 (November7, 2023) + +#### Features + +* [#910](https://github.com/ruby-grape/grape-swagger/pull/910): Allow using Grape v2 - [@ninoseki](https://github.com/ninoseki) + +#### Fixes + +* [#903](https://github.com/ruby-grape/grape-swagger/pull/903): Accept `example` documentation parameter for arrays - [@VladMomotov](https://github.com/VladMomotov) + + ### 1.6.1 (May 21, 2023) #### Fixes @@ -56,7 +65,6 @@ * [#853](https://github.com/ruby-grape/grape-swagger/pull/853): Add webrick gem so that example works in Ruby 3.x - [@takahashim](https://github.com/takahashim) * [#844](https://github.com/ruby-grape/grape-swagger/pull/844): Fixes the regexp used for parsing routes - [@senhalil](https://github.com/senhalil) * [#862](https://github.com/ruby-grape/grape-swagger/pull/862): Allow using nicknames for body definitions - [@magni-](https://github.com/magni-) -* Your contribution here. ### 1.4.2 (October 22, 2021) diff --git a/Gemfile b/Gemfile index 9ea8fb76..f352ddae 100644 --- a/Gemfile +++ b/Gemfile @@ -4,7 +4,7 @@ source 'http://rubygems.org' gemspec -gem 'grape', case version = ENV.fetch('GRAPE_VERSION', '~> 1.7') +gem 'grape', case version = ENV.fetch('GRAPE_VERSION', '< 3.0') when 'HEAD' { git: 'https://github.com/ruby-grape/grape' } else diff --git a/README.md b/README.md index 4451eddd..d53429e0 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,7 @@ The following versions of grape, grape-entity and grape-swagger can currently be | 0.32.0 | 2.0 | >= 0.16.2 | >= 0.5.0 | >= 2.4.1 | | 0.34.0 | 2.0 | >= 0.16.2 ... < 1.3.0 | >= 0.5.0 | >= 2.4.1 | | >= 1.0.0 | 2.0 | >= 1.3.0 | >= 0.5.0 | >= 2.4.1 | +| >= 2.0.0 | 2.0 | >= 1.7.0 | >= 0.5.0 | >= 2.4.1 | ## Swagger-Spec diff --git a/grape-swagger.gemspec b/grape-swagger.gemspec index f661ffd1..c4211a7a 100644 --- a/grape-swagger.gemspec +++ b/grape-swagger.gemspec @@ -14,8 +14,8 @@ Gem::Specification.new do |s| s.metadata['rubygems_mfa_required'] = 'true' - s.required_ruby_version = '>= 2.7' - s.add_runtime_dependency 'grape', '>= 1.3', '< 3.0' + s.required_ruby_version = '>= 3.1' + s.add_runtime_dependency 'grape', '>= 1.7', '< 3.0' s.add_runtime_dependency 'rack-test', '~> 2' s.files = Dir['lib/**/*', '*.md', 'LICENSE.txt', 'grape-swagger.gemspec'] diff --git a/lib/grape-swagger/version.rb b/lib/grape-swagger/version.rb index 2a88bb8e..b2ed7fd3 100644 --- a/lib/grape-swagger/version.rb +++ b/lib/grape-swagger/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module GrapeSwagger - VERSION = '1.6.1' + VERSION = '2.0.0' end