Skip to content

Commit 13c5519

Browse files
committed
Reduce and update dependencies. Run CI using GitHub Actions.
1 parent 4802a06 commit 13c5519

5 files changed

Lines changed: 61 additions & 17 deletions

File tree

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This workflow runs continuous CI across different versions of ruby on all branches and pull requests to develop.
2+
3+
name: CI
4+
on:
5+
push:
6+
branches: [ '**' ]
7+
pull_request:
8+
branches: [ develop ]
9+
workflow_dispatch:
10+
11+
jobs:
12+
tests:
13+
name: Ruby ${{ matrix.ruby }}
14+
if: "contains(github.event.commits[0].message, '[ci skip]') == false"
15+
runs-on: ubuntu-latest
16+
env:
17+
CI: true
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
ruby:
22+
- 2.4
23+
- 2.5
24+
- 2.6
25+
- 2.7
26+
#- ruby-head # Commented out until net-http-persistent is updaated
27+
- jruby
28+
steps:
29+
- name: Clone repository
30+
uses: actions/checkout@v2
31+
- name: Set up Ruby
32+
uses: ruby/setup-ruby@v1
33+
with:
34+
ruby-version: ${{ matrix.ruby }}
35+
- name: Install dependencies
36+
run: bundle install --jobs 4 --retry 3
37+
- name: Run tests
38+
run: bundle exec rspec spec
39+

Gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,4 @@ group :development, :test do
2525
gem 'simplecov', platforms: :mri
2626
gem 'coveralls', '~> 0.8', platforms: :mri
2727
gem 'awesome_print', github: 'akshaymohite/awesome_print'
28-
gem 'psych', platforms: [:mri, :rbx]
2928
end

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
This is a [Ruby][] implementation of [LD Patch][] for [RDF.rb][].
44

5-
[![Gem Version](https://badge.fury.io/rb/ld-patch.png)](http://badge.fury.io/rb/ld-patch)
6-
[![Build Status](https://travis-ci.org/ruby-rdf/ld-patch.png?branch=master)](http://travis-ci.org/ruby-rdf/ld-patch)
7-
[![Coverage Status](https://coveralls.io/repos/ruby-rdf/ld-patch/badge.svg)](https://coveralls.io/r/ruby-rdf/ld-patch)
5+
[![Gem Version](https://badge.fury.io/rb/ld-patch.png)](https://badge.fury.io/rb/ld-patch)
6+
[![Build Status](https://github.com/ruby-rdf/ld-patch/workflows/CI/badge.svg?branch=develop)](https://github.com/ruby-rdf/ld-patch/actions?query=workflow%3ACI)
7+
[![Coverage Status](https://coveralls.io/repos/ruby-rdf/ld-patch/badge.svg)](https://coveralls.io/github/ruby-rdf/ld-patch)
8+
[![Gitter chat](https://badges.gitter.im/ruby-rdf/rdf.png)](https://gitter.im/ruby-rdf/rdf)
89

910
## Description
1011

ld-patch.gemspec

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ Gem::Specification.new do |gem|
2323
gem.required_ruby_version = '>= 2.4'
2424
gem.requirements = []
2525
gem.add_runtime_dependency 'rdf', '~> 3.1'
26-
gem.add_runtime_dependency 'ebnf', '~> 2.0'
26+
gem.add_runtime_dependency 'ebnf', '~> 2.1'
2727
gem.add_runtime_dependency 'sparql', '~> 3.1'
2828
gem.add_runtime_dependency 'sxp', '~> 1.1'
2929
gem.add_runtime_dependency 'rdf-xsd', '~> 3.1'
3030

3131
gem.add_development_dependency 'json-ld', '~> 3.1'
32-
gem.add_development_dependency 'rack', '~> 2.0'
32+
gem.add_development_dependency 'rack', '~> 2.2'
3333
gem.add_development_dependency 'rdf-spec', '~> 3.1'
3434
gem.add_development_dependency 'open-uri-cached', '~> 0.0', '>= 0.0.5'
35-
gem.add_development_dependency 'rspec', '~> 3.9'
35+
gem.add_development_dependency 'rspec', '~> 3.10'
3636
gem.add_development_dependency 'rspec-its', '~> 1.3'
37-
gem.add_development_dependency 'yard' , '~> 0.9.20'
38-
gem.add_development_dependency 'webmock', '~> 3.7'
37+
gem.add_development_dependency 'yard' , '~> 0.9'
38+
gem.add_development_dependency 'webmock', '~> 3.11'
3939

4040
gem.post_install_message = nil
4141
end

spec/spec_helper.rb

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,19 @@
55
require 'matchers'
66
require 'webmock/rspec'
77
require 'rdf/turtle'
8-
require 'simplecov'
9-
require 'coveralls'
10-
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
11-
SimpleCov::Formatter::HTMLFormatter,
12-
Coveralls::SimpleCov::Formatter
13-
])
14-
SimpleCov.start do
15-
add_filter "/spec/"
8+
9+
begin
10+
require 'simplecov'
11+
require 'coveralls'
12+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
13+
SimpleCov::Formatter::HTMLFormatter,
14+
Coveralls::SimpleCov::Formatter
15+
])
16+
SimpleCov.start do
17+
add_filter "/spec/"
18+
end
19+
rescue LoadError
20+
# Not coverage
1621
end
1722

1823
require 'ld/patch'

0 commit comments

Comments
 (0)