Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade local dependencies #2

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 for Abstractifier

on:
push:
branches:
- '**'

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
ruby-version: ['2.7', '3.0', '3.1', '3.2', '3.3', 'jruby-9.4']

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true

- name: Install dependencies
run: bundle install

- name: Run tests
run: bundle exec rake

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Gemfile.lock
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

9 changes: 9 additions & 0 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM ruby:2.7.8

WORKDIR /app
COPY . /app

RUN gem install bundler -v 2.4.22
RUN bundle install

CMD ["docker/entrypoint.sh"]
5 changes: 0 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
source 'https://rubygems.org'

gemspec

group :test do
gem 'rake', '~> 10.4'
gem 'rubocop', '~> 0.30', platforms: [:ruby_20, :ruby_21]
end
46 changes: 0 additions & 46 deletions Gemfile.lock

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015 Altmetric LLP
Copyright (c) 2015-2024 Altmetric LLP

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Abstractifier [![Build Status](https://travis-ci.org/altmetric/abstractifier.svg?branch=master)](https://travis-ci.org/altmetric/abstractifier)
# Abstractifier

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

## License

Copyright © 2015 Altmetric LLP
Copyright © 2015-2024 Altmetric LLP

Distributed under the MIT License.
3 changes: 2 additions & 1 deletion abstractifier.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ Gem::Specification.new do |s|
s.test_files = Dir['spec/**/*.rb']
s.require_paths = ['lib']

s.add_development_dependency('rspec', '~> 3.2')
s.add_development_dependency('rake')
s.add_development_dependency('rspec')
end
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
services:
app:
build:
context: .
dockerfile: Dockerfile.dev
stdin_open: true
tty: true
volumes:
- .:/app
4 changes: 4 additions & 0 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

# Start an interactive shell to keep the container running
exec bash
Loading