Skip to content

Commit ad39056

Browse files
authored
Merge pull request #2 from altmetric/upgrade-dependencies
Upgrade local dependencies
2 parents de48d82 + b5c77d5 commit ad39056

11 files changed

Lines changed: 59 additions & 64 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI for Abstractifier
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
ruby-version: ['2.7', '3.0', '3.1', '3.2', '3.3', 'jruby-9.4']
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Ruby
21+
uses: ruby/setup-ruby@v1
22+
with:
23+
ruby-version: ${{ matrix.ruby-version }}
24+
bundler-cache: true
25+
26+
- name: Install dependencies
27+
run: bundle install
28+
29+
- name: Run tests
30+
run: bundle exec rake
31+

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Gemfile.lock

.travis.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

Dockerfile.dev

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM ruby:2.7.8
2+
3+
WORKDIR /app
4+
COPY . /app
5+
6+
RUN gem install bundler -v 2.4.22
7+
RUN bundle install
8+
9+
CMD ["docker/entrypoint.sh"]

Gemfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
source 'https://rubygems.org'
22

33
gemspec
4-
5-
group :test do
6-
gem 'rake', '~> 10.4'
7-
gem 'rubocop', '~> 0.30', platforms: [:ruby_20, :ruby_21]
8-
end

Gemfile.lock

Lines changed: 0 additions & 46 deletions
This file was deleted.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015 Altmetric LLP
3+
Copyright (c) 2015-2024 Altmetric LLP
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Abstractifier [![Build Status](https://travis-ci.org/altmetric/abstractifier.svg?branch=master)](https://travis-ci.org/altmetric/abstractifier)
1+
# Abstractifier
22

33
Builds a short abstract of a supplied text by extracting the first couple of
44
sentences and trimming off punctuation etc.
@@ -40,6 +40,6 @@ abstractifier.abstractify("This abstract should be much shorter but long enough
4040

4141
## License
4242

43-
Copyright © 2015 Altmetric LLP
43+
Copyright © 2015-2024 Altmetric LLP
4444

4545
Distributed under the MIT License.

abstractifier.gemspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ Gem::Specification.new do |s|
1313
s.test_files = Dir['spec/**/*.rb']
1414
s.require_paths = ['lib']
1515

16-
s.add_development_dependency('rspec', '~> 3.2')
16+
s.add_development_dependency('rake')
17+
s.add_development_dependency('rspec')
1718
end

docker-compose.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
services:
2+
app:
3+
build:
4+
context: .
5+
dockerfile: Dockerfile.dev
6+
stdin_open: true
7+
tty: true
8+
volumes:
9+
- .:/app

0 commit comments

Comments
 (0)