Skip to content

Commit

Permalink
Merge pull request #2 from altmetric/upgrade-dependencies
Browse files Browse the repository at this point in the history
Upgrade local dependencies
  • Loading branch information
jbilbo authored Dec 2, 2024
2 parents 7236416 + aa1fb52 commit da2e24a
Show file tree
Hide file tree
Showing 10 changed files with 58 additions and 17 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 for AmazonBook

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

2 changes: 0 additions & 2 deletions .rubocop.yml

This file was deleted.

5 changes: 0 additions & 5 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'

# Specify your gem's dependencies in amazon_book.gemspec
gemspec

group :test do
gem 'rubocop', '~> 0.30', platforms: %i[ruby_20 ruby_21]
end
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) 2017 Altmetric LLP
Copyright (c) 2017-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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/altmet

## License

Copyright © 2017 Altmetric LLP
Copyright © 2017-2024 Altmetric LLP

Distributed under the MIT License.
6 changes: 3 additions & 3 deletions amazon_book.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']

spec.add_development_dependency 'bundler', '~> 1.15'
spec.add_development_dependency 'rake', '~> 10.0'
spec.add_development_dependency 'rspec', '~> 3.0'
spec.add_dependency 'identifiers', '~> 0.9'

spec.add_development_dependency 'rake'
spec.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

0 comments on commit da2e24a

Please sign in to comment.