From d16c175942a9de24e0cc92b753fab565d01f1374 Mon Sep 17 00:00:00 2001 From: Chris McKnight Date: Mon, 25 Nov 2024 10:38:01 -0600 Subject: [PATCH] ci(actions): Add GitHub actions - Remove .travis.yml --- .github/workflows/ci.yml | 34 ++++++++ .travis.yml | 13 ---- Gemfile | 8 +- Gemfile.lock | 155 +++++++++++++++++++++++++++++++++++++ README.md | 3 +- jasperserver-rails.gemspec | 3 +- rails4.gemfile | 26 +++++++ 7 files changed, 225 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml create mode 100644 Gemfile.lock create mode 100644 rails4.gemfile diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..b0bdc2f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake +# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby + +name: CI + +on: + push: + pull_request: + types: [opened, reopened] + +jobs: + test: + + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + ruby-version: ['2.3', '2.4'] + + steps: + - uses: actions/checkout@v4 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + bundler: "1" + - name: Run tests + run: bundle exec rake diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c4992fc..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: ruby -sudo: false -before_install: gem install bundler -bundler_args: --without development -rvm: - - 2.2 - - 2.3 - - 2.4 - -matrix: - fast_finish: true - allow_failures: - - rvm: 2.2 diff --git a/Gemfile b/Gemfile index 13cc32b..a9b2431 100644 --- a/Gemfile +++ b/Gemfile @@ -2,6 +2,10 @@ source 'https://rubygems.org' gem 'bundler', '>= 1.8.4' +gem 'bigdecimal', '1.3.5' # Rails 4 +gem 'nokogiri', '1.8.2' # Rails 4 +gem 'rails', '4.2.10' + # Declare your gem's dependencies in jasperserver-rails.gemspec. # Bundler will treat runtime dependencies like base dependencies, and # development dependencies will be added by default to the :development group. @@ -13,11 +17,11 @@ gem 'jquery-rails' gem 'protected_attributes' group :development, :test do - gem 'thin' + # gem 'thin' end group :test do - gem 'sqlite3' + gem 'sqlite3', '~> 1.3.9' gem 'vcr', '~> 4.0' gem 'webmock', '~> 3.4' end diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..8ec246b --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,155 @@ +PATH + remote: . + specs: + jasperserver-rails (1.0.1) + rails (~> 4.0) + rest-client (~> 2.0.2) + +GEM + remote: https://rubygems.org/ + specs: + actionmailer (4.2.10) + actionpack (= 4.2.10) + actionview (= 4.2.10) + activejob (= 4.2.10) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 1.0, >= 1.0.5) + actionpack (4.2.10) + actionview (= 4.2.10) + activesupport (= 4.2.10) + rack (~> 1.6) + rack-test (~> 0.6.2) + rails-dom-testing (~> 1.0, >= 1.0.5) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (4.2.10) + activesupport (= 4.2.10) + builder (~> 3.1) + erubis (~> 2.7.0) + rails-dom-testing (~> 1.0, >= 1.0.5) + rails-html-sanitizer (~> 1.0, >= 1.0.3) + activejob (4.2.10) + activesupport (= 4.2.10) + globalid (>= 0.3.0) + activemodel (4.2.10) + activesupport (= 4.2.10) + builder (~> 3.1) + activerecord (4.2.10) + activemodel (= 4.2.10) + activesupport (= 4.2.10) + arel (~> 6.0) + activesupport (4.2.10) + i18n (~> 0.7) + minitest (~> 5.1) + thread_safe (~> 0.3, >= 0.3.4) + tzinfo (~> 1.1) + addressable (2.5.2) + public_suffix (>= 2.0.2, < 4.0) + arel (6.0.4) + bigdecimal (1.3.5) + builder (3.2.3) + concurrent-ruby (1.0.5) + crack (0.4.3) + safe_yaml (~> 1.0.0) + crass (1.0.4) + domain_name (0.5.20190701) + unf (>= 0.0.5, < 1.0.0) + erubis (2.7.0) + globalid (0.4.1) + activesupport (>= 4.2.0) + hashdiff (0.3.7) + http-cookie (1.0.7) + domain_name (~> 0.5) + i18n (0.9.5) + concurrent-ruby (~> 1.0) + jquery-rails (4.3.3) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + logger (1.5.3) + loofah (2.2.2) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mail (2.7.0) + mini_mime (>= 0.1.1) + mime-types (3.6.0) + logger + mime-types-data (~> 3.2015) + mime-types-data (3.2024.1105) + mini_mime (1.0.0) + mini_portile2 (2.3.0) + minitest (5.11.3) + netrc (0.11.0) + nokogiri (1.8.2) + mini_portile2 (~> 2.3.0) + protected_attributes (1.1.4) + activemodel (>= 4.0.1, < 5.0) + public_suffix (3.0.2) + rack (1.6.10) + rack-test (0.6.3) + rack (>= 1.0) + rails (4.2.10) + actionmailer (= 4.2.10) + actionpack (= 4.2.10) + actionview (= 4.2.10) + activejob (= 4.2.10) + activemodel (= 4.2.10) + activerecord (= 4.2.10) + activesupport (= 4.2.10) + bundler (>= 1.3.0, < 2.0) + railties (= 4.2.10) + sprockets-rails + rails-deprecated_sanitizer (1.0.3) + activesupport (>= 4.2.0.alpha) + rails-dom-testing (1.0.9) + activesupport (>= 4.2.0, < 5.0) + nokogiri (~> 1.6) + rails-deprecated_sanitizer (>= 1.0.1) + rails-html-sanitizer (1.0.4) + loofah (~> 2.2, >= 2.2.2) + railties (4.2.10) + actionpack (= 4.2.10) + activesupport (= 4.2.10) + rake (>= 0.8.7) + thor (>= 0.18.1, < 2.0) + rake (12.3.1) + rest-client (2.0.2) + http-cookie (>= 1.0.2, < 2.0) + mime-types (>= 1.16, < 4.0) + netrc (~> 0.8) + safe_yaml (1.0.4) + sprockets (3.7.1) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.2.1) + actionpack (>= 4.0) + activesupport (>= 4.0) + sprockets (>= 3.0.0) + sqlite3 (1.3.13) + thor (0.20.0) + thread_safe (0.3.6) + tzinfo (1.2.5) + thread_safe (~> 0.1) + unf (0.2.0) + vcr (4.0.0) + webmock (3.4.1) + addressable (>= 2.3.6) + crack (>= 0.3.2) + hashdiff + +PLATFORMS + ruby + +DEPENDENCIES + bigdecimal (= 1.3.5) + bundler (>= 1.8.4) + jasperserver-rails! + jquery-rails + nokogiri (= 1.8.2) + protected_attributes + rails (= 4.2.10) + sqlite3 (~> 1.3.9) + vcr (~> 4.0) + webmock (~> 3.4) + +BUNDLED WITH + 1.17.3 diff --git a/README.md b/README.md index 1bf16f2..1af335e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # JasperserverRails + [![Gem Version](https://img.shields.io/gem/v/jasperserver-rails.svg)](https://rubygems.org/gems/jasperserver-rails) -[![Travis](https://img.shields.io/travis/cmckni3/ruby-jasperserver.svg)](https://travis-ci.org/cmckni3/rails-jasperserver) +[![CI](https://img.shields.io/github/actions/workflow/status/cmckni3/ruby-jasperserver/ci.yml)](https://github.com/cmckni3/ruby-jasperserver/actions/workflows/ci.yml) [![Code Climate](https://api.codeclimate.com/v1/badges/9dfe8fd29537fc32faeb/maintainability)](https://codeclimate.com/github/cmckni3/ruby-jasperserver/maintainability) [![License](https://img.shields.io/github/license/cmckni3/ruby-jasperserver.svg)](https://github.com/cmckni3/ruby-jasperserver/blob/master/MIT-LICENSE) diff --git a/jasperserver-rails.gemspec b/jasperserver-rails.gemspec index 80a6b77..84da3c5 100644 --- a/jasperserver-rails.gemspec +++ b/jasperserver-rails.gemspec @@ -14,6 +14,7 @@ Gem::Specification.new do |s| s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.md", "CHANGELOG.md"] s.test_files = Dir["test/**/*"] - s.add_dependency 'rails', '> 3.2.0' + s.add_dependency 'rails', '~> 4.0' + # s.add_dependency 'rails', '~> 3.2.22' s.add_dependency 'rest-client', '~> 2.0.2' end diff --git a/rails4.gemfile b/rails4.gemfile new file mode 100644 index 0000000..f5e2e2c --- /dev/null +++ b/rails4.gemfile @@ -0,0 +1,26 @@ +source 'https://rubygems.org' + +gem 'bundler', '>= 1.8.4' + +gem 'bigdecimal', '1.3.5' # Rails 4 +gem 'rails', '~> 4.2' + +# Declare your gem's dependencies in jasperserver-rails.gemspec. +# Bundler will treat runtime dependencies like base dependencies, and +# development dependencies will be added by default to the :development group. +gemspec + +# jquery-rails is used by the dummy application +gem 'jquery-rails' + +gem 'protected_attributes' + +group :development, :test do + # gem 'thin' +end + +group :test do + gem 'sqlite3', '~> 1.3.9' + gem 'vcr', '~> 4.0' + gem 'webmock', '~> 3.4' +end