Skip to content

Commit

Permalink
Merge pull request #203 from eileencodes/add-support-for-ruby-3
Browse files Browse the repository at this point in the history
Add support for ruby 3
  • Loading branch information
eileencodes authored Jun 24, 2021
2 parents ce6cbfb + ca5d623 commit b113e7c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: CI

on: [push]
on: [push, pull_request]

jobs:
test:
strategy:
matrix:
ruby_version: [2.6.x, 2.7.x]
ruby_version: [2.6.x, 2.7.x, 3.0.x]
fail-fast: false
runs-on: ubuntu-latest
name: Test on Ruby ${{ matrix.ruby_version }}
Expand All @@ -18,5 +18,9 @@ jobs:
ruby-version: ${{ matrix.ruby_version }}
- name: Install dependencies
run: bundle install
- name: Build gem
run: gem build yajl-ruby.gemspec
- name: Install gem
run: gem install yajl-ruby
- name: Run tests
run: bundle exec rake spec
2 changes: 1 addition & 1 deletion yajl-ruby.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Gem::Specification.new do |s|
s.rubygems_version = %q{1.4.2}
s.summary = %q{Ruby C bindings to the excellent Yajl JSON stream-based parser library.}
s.test_files = `git ls-files spec examples`.split("\n")
s.required_ruby_version = ">= 2.3.0"
s.required_ruby_version = ">= 2.6.0"

# tests
s.add_development_dependency 'rake-compiler'
Expand Down

0 comments on commit b113e7c

Please sign in to comment.