From c23b81a8e378112d1a78d7b281c609ae2663fd17 Mon Sep 17 00:00:00 2001 From: Tebs Date: Thu, 11 Feb 2021 14:54:45 +0100 Subject: [PATCH 1/4] Update carrierwave dependency due to security issues [CVE-2021-21288] --- pdf_cover.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdf_cover.gemspec b/pdf_cover.gemspec index c8e3f1a..d534630 100644 --- a/pdf_cover.gemspec +++ b/pdf_cover.gemspec @@ -40,7 +40,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency "coveralls_reborn" spec.add_development_dependency "paperclip", "=6.1.0" - spec.add_development_dependency "carrierwave", "~> 0.10" + spec.add_development_dependency "carrierwave", "~> 2.1" spec.add_development_dependency "rmagick", "~> 2.13.2" From c12f248e543101c3f6a9188a6d274fb2ffffb943 Mon Sep 17 00:00:00 2001 From: Tebs Date: Thu, 11 Feb 2021 14:55:04 +0100 Subject: [PATCH 2/4] Fix typo --- lib/pdf_cover.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pdf_cover.rb b/lib/pdf_cover.rb index ada4a42..5455db3 100644 --- a/lib/pdf_cover.rb +++ b/lib/pdf_cover.rb @@ -11,7 +11,7 @@ module PdfCover module ClassMethods module CarrierWave # When called in the context of a CarrierWave::Uploader::Base subclass, - # this method will add a processor to the currenct attachment or version + # this method will add a processor to the current attachment or version # that generates a JPEG with 95 quality from the first page of the given # PDF. # From 0d1fbd3a6d68b36c84b53257f3c5d309135592b3 Mon Sep 17 00:00:00 2001 From: Tebs Date: Thu, 11 Feb 2021 16:17:16 +0100 Subject: [PATCH 3/4] Drop support for Rails 4.x --- .travis.yml | 3 ++- gemfiles/5.0.gemfile | 2 +- gemfiles/{4.2.gemfile => 6.0.gemfile} | 2 +- pdf_cover.gemspec | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) rename gemfiles/{4.2.gemfile => 6.0.gemfile} (79%) diff --git a/.travis.yml b/.travis.yml index 1862847..2c243ce 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,9 +2,10 @@ language: ruby rvm: - 2.5.8 - 2.6.6 + - 2.7.2 gemfile: - - gemfiles/4.2.gemfile - gemfiles/5.0.gemfile + - gemfiles/6.0.gemfile before_install: - gem install bundler -v 1.11.2 - sudo apt-get -qq update diff --git a/gemfiles/5.0.gemfile b/gemfiles/5.0.gemfile index 10f52e7..f647cac 100644 --- a/gemfiles/5.0.gemfile +++ b/gemfiles/5.0.gemfile @@ -2,6 +2,6 @@ source "https://rubygems.org" -gem "rails", "~> 5.0.0" +gem "rails", "~> 5.2.4" gemspec path: "../" diff --git a/gemfiles/4.2.gemfile b/gemfiles/6.0.gemfile similarity index 79% rename from gemfiles/4.2.gemfile rename to gemfiles/6.0.gemfile index 6977eb0..9b66195 100644 --- a/gemfiles/4.2.gemfile +++ b/gemfiles/6.0.gemfile @@ -2,6 +2,6 @@ source "https://rubygems.org" -gem "rails", "~> 4.2.0" +gem "rails", "~> 6.1.2" gemspec path: "../" diff --git a/pdf_cover.gemspec b/pdf_cover.gemspec index d534630..d9076fe 100644 --- a/pdf_cover.gemspec +++ b/pdf_cover.gemspec @@ -23,7 +23,7 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] - spec.add_development_dependency "activesupport", ">= 4.2", "< 6.0.3.1" + spec.add_development_dependency "activesupport", ">= 5.0" spec.add_development_dependency "appraisal" From e06240bcd5db7211cbedf90083fc3aa50f8e4f12 Mon Sep 17 00:00:00 2001 From: Tebs Date: Thu, 11 Feb 2021 14:55:17 +0100 Subject: [PATCH 4/4] Bump gem version --- CHANGELOG.md | 4 ++++ lib/pdf_cover/version.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 34b79de..124304a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## [1.0.0] - 2021-02-11 +### Breaking change +- Drop support for Rails 4.x [Pull Request](https://github.com/xing/pdf_cover/pull/12) + ## [0.3.2] - 2020-11-06 ### Changed - Update dependencies with security vulnerabilities detected [Pull Request](https://github.com/xing/pdf_cover/pull/11) diff --git a/lib/pdf_cover/version.rb b/lib/pdf_cover/version.rb index e6a08c6..46d5a50 100644 --- a/lib/pdf_cover/version.rb +++ b/lib/pdf_cover/version.rb @@ -1,3 +1,3 @@ module PdfCover - VERSION = "0.3.2".freeze + VERSION = "1.0.0".freeze end