diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7b771fb5..8426e4e1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,9 +8,9 @@ jobs: fail-fast: false matrix: os: [ubuntu, macos] - ruby: [2.7, 3.0, head] - runs-on: ${{ matrix.os }}-latest - continue-on-error: ${{ endsWith(matrix.ruby, 'head') || (matrix.ruby == '3.0' && matrix.os == 'macos')}} + ruby: ['3.0', '3.1', '3.2', head] + runs-on: ${{ matrix.os }} + continue-on-error: ${{ endsWith(matrix.ruby, 'head') }} steps: - uses: actions/checkout@v2 - uses: ruby/setup-ruby@v1 diff --git a/.vscode/settings.json b/.vscode/settings.json index 86acf76e..7d0c00f9 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,5 @@ { "restructuredtext.confPath": "${workspaceFolder}\\docs", - "restructuredtext.linter.disabled": true + "restructuredtext.linter.disabled": true, + "esbonio.sphinx.confDir": "${workspaceFolder}\\docs" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index e5d16008..992626cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,12 @@ # Squib CHANGELOG Squib follows [semantic versioning](http://semver.org). -## v0.18.0 / Unreleased +## v0.19.0 / 2023-04-08 + +Chores: +* Bumping dependencies, which should fix installation issues (e.g. [#376](https://github.com/andymeneely/squib/issues/376)) + +## v0.18.0 / 2021-10-26 Features: * Placeholders! Missing images to `svg` and `png` can be replaced by a `placeholder` (#339) diff --git a/README.md b/README.md index c6eebe8d..7e16585b 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ Wanna see more? Check out the website: http://andymeneely.github.io/squib/ ## Installation -Squib requires Ruby 2.7 or later. +Squib requires Ruby 3.0 or later. Install it yourself with: diff --git a/docs/conf.py b/docs/conf.py index 4425175d..a1408880 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -55,9 +55,9 @@ # built documents. # # The short X.Y version. -version = u'v0.18' +version = u'v0.19' # The full version, including alpha/beta/rc tags. -release = u'v0.18.0' +release = u'v0.19.0' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/lib/squib/card.rb b/lib/squib/card.rb index b89e3a09..56dfd5a7 100644 --- a/lib/squib/card.rb +++ b/lib/squib/card.rb @@ -54,7 +54,7 @@ def use_cairo(&block) def finish! begin - @cairo_surface.finish + @cairo_surface.finish unless @backend.to_sym == :svg rescue Cairo::SurfaceFinishedError # do nothin - if it's already finished that's fine end diff --git a/squib.gemspec b/squib.gemspec index 6cf9d6f4..5f1c0469 100644 --- a/squib.gemspec +++ b/squib.gemspec @@ -7,7 +7,7 @@ Gem::Specification.new do |spec| spec.specification_version = 2 if spec.respond_to? :specification_version= spec.required_rubygems_version = Gem::Requirement.new('>= 0') if spec.respond_to? :required_rubygems_version= spec.rubygems_version = '2.2.2' - spec.required_ruby_version = '>= 2.7.0' + spec.required_ruby_version = '>= 3.0.0' spec.name = 'squib' spec.version = Squib::VERSION @@ -31,18 +31,18 @@ Gem::Specification.new do |spec| spec.test_files = spec.files.grep(/^(spec|samples|docs|benchmarks)\//) spec.require_paths = ['lib'] - spec.add_runtime_dependency 'cairo', '~> 1.17' - spec.add_runtime_dependency 'classy_hash', '1.0.0' - spec.add_runtime_dependency 'gio2', '~> 3.4' - spec.add_runtime_dependency 'gobject-introspection', '~> 3.4' - spec.add_runtime_dependency 'highline', '2.0.3' - spec.add_runtime_dependency 'mercenary', '0.4.0' - spec.add_runtime_dependency 'nokogiri', '~> 1.11' - spec.add_runtime_dependency 'pango', '~> 3.4' - spec.add_runtime_dependency 'rainbow', '~> 3.0' - spec.add_runtime_dependency 'roo', '~> 2.8' - spec.add_runtime_dependency 'rsvg2', '~> 3.4' - spec.add_runtime_dependency 'ruby-progressbar', '~> 1.11' + spec.add_runtime_dependency 'cairo', '~> 1.17', '>= 1.17.8' # https://rubygems.org/gems/cairo/ + spec.add_runtime_dependency 'classy_hash', '1.0.0' # https://rubygems.org/gems/classy_hash + spec.add_runtime_dependency 'gio2', '~> 4.1', '>= 4.1.2' # https://rubygems.org/gems/gio2 + spec.add_runtime_dependency 'gobject-introspection', '~> 4.1', '>= 4.1.2' # https://rubygems.org/gems/gobject-introspection + spec.add_runtime_dependency 'highline', '2.1.0' # https://rubygems.org/gems/highline + spec.add_runtime_dependency 'mercenary', '0.4.0' # https://rubygems.org/gems/mercenary + spec.add_runtime_dependency 'nokogiri', '~> 1.14', '>= 1.14.2' # https://rubygems.org/gems/nokogiri + spec.add_runtime_dependency 'pango', '~> 4.1', '>= 4.1.2' # https://rubygems.org/gems/pango + spec.add_runtime_dependency 'rainbow', '~> 3.1' # https://rubygems.org/gems/rainbow + spec.add_runtime_dependency 'roo', '~> 2.9' # https://rubygems.org/gems/roo + spec.add_runtime_dependency 'rsvg2', '~> 4.1', '>= 4.1.2' # https://rubygems.org/gems/rsvg2 + spec.add_runtime_dependency 'ruby-progressbar', '~> 1.11' # https://rubygems.org/gems/ruby-progressbar spec.add_development_dependency 'activesupport' spec.add_development_dependency 'bundler'