diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..3885c5b --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,32 @@ +# 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. + +# GitHub recommends pinning actions to a commit SHA. +# To get a newer version, you will need to update the SHA. +# You can also reference a tag or branch, but the action may change without warning. + +name: test + +on: [push, pull_request] + +jobs: + test: + + runs-on: ubuntu-latest + + strategy: + matrix: + ruby-version: ['3.1', '3.0', '2.7', '2.6', '2.5', '2.4'] + + steps: + - uses: actions/checkout@v3 + - name: Set up Ruby ${{ matrix.ruby-version }} + uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108 + with: + ruby-version: ${{ matrix.ruby-version }} + - name: Install dependencies + run: bundle install + - name: Run tests + run: bundle exec rake test \ No newline at end of file diff --git a/.rubocop.yml b/.rubocop.yml index 840f16a..2993c27 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -55,5 +55,8 @@ Style/FrozenStringLiteralComment: Style/GuardClause: Enabled: false +Style/HashSyntax: + Enabled: false + Style/MutableConstant: Enabled: false diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6b84695..0000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ ---- -sudo: false -language: ruby -cache: bundler -rvm: - - 3.0.3 -jdk: - - openjdk8 -before_install: - - gem install bundler \ No newline at end of file diff --git a/README.md b/README.md index 6ad6db9..8f1f140 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ # FillablePDF [![Gem Version](https://badge.fury.io/rb/fillable-pdf.svg)](https://rubygems.org/gems/fillable-pdf) -[![Build Status](https://app.travis-ci.com/vkononov/fillable-pdf.svg?branch=master)](http://travis-ci.org/vkononov/fillable-pdf) +[![Test Status](https://github.com/vkononov/fillable-pdf/actions/workflows/test.yml/badge.svg)](https://github.com/vkononov/fillable-pdf/actions) FillablePDF is an extremely simple and lightweight utility that bridges iText and Ruby in order to fill out fillable PDF forms or extract field values from previously filled out PDF forms. @@ -22,6 +22,8 @@ FillablePDF is an extremely simple and lightweight utility that bridges iText an 4. Read-only, write-protected or encrypted PDF files are currently not supported. +5. Adobe generated field arrays (i.e. fields with names such as `array.0` or `array.1.0`) are not supported. + ## Installation diff --git a/lib/fillable-pdf/version.rb b/lib/fillable-pdf/version.rb index d64c2f2..5200313 100644 --- a/lib/fillable-pdf/version.rb +++ b/lib/fillable-pdf/version.rb @@ -1,3 +1,3 @@ class FillablePDF - VERSION = '0.9.4' + VERSION = '0.9.5' end