Skip to content

Commit 69e9179

Browse files
authored
Allow using Grape v2 (#910)
* Allow using Grape v2 * Update CHANGELOG.md
1 parent dfc0384 commit 69e9179

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,38 @@ jobs:
8787
bundle update
8888
bundle exec rspec
8989
90+
grape-20:
91+
runs-on: ubuntu-latest
92+
needs: ['rubocop']
93+
env:
94+
GRAPE_VERSION: '2.0.0'
95+
strategy:
96+
matrix:
97+
ruby-version: ['3.1', '3.2', 'head']
98+
steps:
99+
- name: Check out branch
100+
uses: actions/checkout@v4
101+
- name: Set up Ruby
102+
uses: ruby/setup-ruby@v1
103+
with:
104+
ruby-version: ${{ matrix.ruby-version }}
105+
- name: Run rspec wo model parser
106+
run: |
107+
bundle update
108+
bundle exec rspec
109+
- name: Run rspec w entity parser
110+
env:
111+
MODEL_PARSER: grape-swagger-entity
112+
run: |
113+
bundle update
114+
bundle exec rspec
115+
- name: Run rspec w representable parser
116+
env:
117+
MODEL_PARSER: grape-swagger-representable
118+
run: |
119+
bundle update
120+
bundle exec rspec
121+
90122
grape-HEAD:
91123
runs-on: ubuntu-latest
92124
needs: ['rubocop']

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#### Features
44

5+
* [#910](https://github.com/ruby-grape/grape-swagger/pull/910): Allow using Grape v2 - [@ninoseki](https://github.com/ninoseki)
56
* Your contribution here.
67

78
#### Fixes

grape-swagger.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
1515
s.metadata['rubygems_mfa_required'] = 'true'
1616

1717
s.required_ruby_version = '>= 2.7'
18-
s.add_runtime_dependency 'grape', '~> 1.3'
18+
s.add_runtime_dependency 'grape', '>= 1.3', '< 3.0'
1919
s.add_runtime_dependency 'rack-test', '~> 2'
2020

2121
s.files = Dir['lib/**/*', '*.md', 'LICENSE.txt', 'grape-swagger.gemspec']

0 commit comments

Comments
 (0)