From bf8bfb3f00d0d04926c0e8105ece0a7590e3ef68 Mon Sep 17 00:00:00 2001 From: Joao Vieira Date: Thu, 29 Oct 2020 16:48:54 -0300 Subject: [PATCH 1/5] Drop Ruby 2.4 support --- video_info.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video_info.gemspec b/video_info.gemspec index a7f59ad0..61ca10fd 100644 --- a/video_info.gemspec +++ b/video_info.gemspec @@ -18,7 +18,7 @@ Gem::Specification.new do |s| s.test_files = s.files.grep(%r{^spec/}) s.require_path = 'lib' - s.required_ruby_version = '>= 2.2.0' + s.required_ruby_version = '> 2.4.0' s.add_dependency 'iso8601', '~> 0.9.1' s.add_dependency 'oga', '~> 3.0' From f898e6cc364aa4062ef72d5ed67692c8528c560d Mon Sep 17 00:00:00 2001 From: Joao Vieira Date: Thu, 29 Oct 2020 16:49:17 -0300 Subject: [PATCH 2/5] Config Github Actions for Rspec --- .github/workflows/unit_test.yml | 39 +++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/unit_test.yml diff --git a/.github/workflows/unit_test.yml b/.github/workflows/unit_test.yml new file mode 100644 index 00000000..56e2b7fb --- /dev/null +++ b/.github/workflows/unit_test.yml @@ -0,0 +1,39 @@ +name: Ruby Unit Tests + +on: + push: + branches: + - master + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + ruby: [ '2.5', '2.6', '2.7' ] + + name: Ruby ${{ matrix.ruby }} + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + - name: Cache gems + uses: actions/cache@v2 + env: + cache-name: cache-gems + with: + path: vendor/bundle + key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} + restore-keys: | + ${{ runner.os }}-gems- + - name: Set bundle config path + run: | + bundle config path vendor/bundle + - name: Install dependencies + run: | + bundle install + - name: Ruby Unit tests + run: | + bundle exec rspec From 83b97faf9b1d62034c8861ff762628979a06c910 Mon Sep 17 00:00:00 2001 From: Joao Vieira Date: Thu, 29 Oct 2020 17:56:52 -0300 Subject: [PATCH 3/5] Remove Travis config file --- .travis.yml | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e167ee51..00000000 --- a/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ -language: ruby -sudo: false -dist: trusty -cache: bundler -rvm: - - 2.2.7 - - 2.3.4 - - 2.4.1 - - jruby-head - - rbx-2 - - ruby-head -matrix: - allow_failures: - - rvm: jruby-head - - rvm: rbx-2 - - rvm: ruby-head -jdk: - - oraclejdk8 -before_install: - - gem install bundler - - gem update bundler From d9d78888d43d3d32e709f870d61b0971f9df2f73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Vieira?= Date: Fri, 30 Oct 2020 07:03:16 -0300 Subject: [PATCH 4/5] Update required_ruby_version style Co-authored-by: Thibaud Guillaume-Gentil --- video_info.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video_info.gemspec b/video_info.gemspec index 61ca10fd..48d322ef 100644 --- a/video_info.gemspec +++ b/video_info.gemspec @@ -18,7 +18,7 @@ Gem::Specification.new do |s| s.test_files = s.files.grep(%r{^spec/}) s.require_path = 'lib' - s.required_ruby_version = '> 2.4.0' + s.required_ruby_version = '>= 2.5.0' s.add_dependency 'iso8601', '~> 0.9.1' s.add_dependency 'oga', '~> 3.0' From 6b7bcc2540c48354e90710a49ca019f11d922bd2 Mon Sep 17 00:00:00 2001 From: Joao Vieira Date: Fri, 30 Oct 2020 07:13:58 -0300 Subject: [PATCH 5/5] Add Github Actions Badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 19c1f87c..775a8ba1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # VideoInfo -[![Gem Version](https://badge.fury.io/rb/video_info.svg)](http://badge.fury.io/rb/video_info) [![Build Status](https://travis-ci.org/thibaudgg/video_info.svg?branch=master)](https://travis-ci.org/thibaudgg/video_info) [![Code Climate](https://codeclimate.com/github/thibaudgg/video_info.svg)](https://codeclimate.com/github/thibaudgg/video_info) [![Coverage Status](https://coveralls.io/repos/thibaudgg/video_info/badge.svg?branch=master)](https://coveralls.io/r/thibaudgg/video_info) [![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com) +[![Gem Version](https://badge.fury.io/rb/video_info.svg)](http://badge.fury.io/rb/video_info) [![Build Status](https://github.com/thibaudgg/video_info/workflows/Ruby%20Unit%20Tests/badge.svg?branch=master)](https://github.com/thibaudgg/video_info/actions?query=workflow%3A%22Ruby+Unit+Tests%22)[![Code Climate](https://codeclimate.com/github/thibaudgg/video_info.svg)](https://codeclimate.com/github/thibaudgg/video_info) [![Coverage Status](https://coveralls.io/repos/thibaudgg/video_info/badge.svg?branch=master)](https://coveralls.io/r/thibaudgg/video_info) [![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com) :exclamation: VideoInfo is no more actively maintained, please [contact me](mailto:thibaud@thibaud.gg) if you're interested in helping.