Skip to content

Commit

Permalink
Merge pull request #42 from ekohl/convert-to-gha
Browse files Browse the repository at this point in the history
Drop support for Ruby < 2.5
  • Loading branch information
ares authored Aug 17, 2022
2 parents cb98c86 + e6df16d commit d560010
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 20 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: CI

on:
- pull_request
- push

concurrency:
group: ${{ github.ref_name }}
cancel-in-progress: true

jobs:
test:
name: Ruby
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- "2.5"
- "2.6"
- "2.7"
- "3.0"
- "3.1"
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

2 changes: 0 additions & 2 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
A library for safe evaluation of Ruby code based on RubyParser and
Ruby2Ruby. Provides Rails ActionView template handlers for ERB and Haml.

[![Build Status](https://travis-ci.org/svenfuchs/safemode.svg?branch=master)](https://travis-ci.org/svenfuchs/safemode)

### Word of warning

This library is still highly experimental. Only use it at your own risk for
Expand Down
3 changes: 2 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ Jeweler::Tasks.new do |gem|
"Ohad Levy",
"Dmitri Dolguikh",
]
gem.files.exclude '.travis.yml'
gem.files.exclude '.github/workflows/ci.yml'
gem.required_ruby_version = '>= 2.5', '< 4'
# dependencies defined in Gemfile
end
Jeweler::RubygemsDotOrgTasks.new
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.6
1.3.7
1 change: 1 addition & 0 deletions safemode.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Gem::Specification.new do |s|
]
s.homepage = "https://github.com/svenfuchs/safemode".freeze
s.licenses = ["MIT".freeze]
s.required_ruby_version = Gem::Requirement.new([">= 2.5".freeze, "< 4".freeze])
s.rubygems_version = "2.7.6".freeze
s.summary = "A library for safe evaluation of Ruby code based on ParseTree/RubyParser and Ruby2Ruby".freeze

Expand Down

0 comments on commit d560010

Please sign in to comment.