From f23b579417de4d656ff2b1dc2dfc1caeb9862f73 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Sun, 8 Jun 2025 10:37:37 -0700 Subject: [PATCH] Update gems --- .rubocop.yml | 3 +++ Gemfile | 1 + instapaper.gemspec | 2 +- lib/instapaper/api/folders.rb | 2 +- lib/instapaper/api/highlights.rb | 2 +- 5 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index eb6f492..8b76fd4 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -7,6 +7,9 @@ AllCops: DisplayCopNames: true NewCops: enable +Gemspec/RequireMFA: + Enabled: false + Metrics/BlockLength: Max: 36 Exclude: diff --git a/Gemfile b/Gemfile index 621ba6f..f69d498 100644 --- a/Gemfile +++ b/Gemfile @@ -7,6 +7,7 @@ gem 'jruby-openssl', platforms: :jruby gem 'json', platforms: :mri_19 group :development do + gem 'bundler' gem 'kramdown' end diff --git a/instapaper.gemspec b/instapaper.gemspec index 1eb28b4..671489a 100644 --- a/instapaper.gemspec +++ b/instapaper.gemspec @@ -7,7 +7,7 @@ Gem::Specification.new do |spec| spec.add_dependency 'http', '>= 2', '< 6' spec.add_dependency 'multi_json', '~> 1' spec.add_dependency 'simple_oauth', '~> 0.3' - spec.add_dependency 'virtus', '~> 2' + spec.add_dependency 'virtus', '~> 1' spec.author = 'Steve Agalloco' spec.description = "Ruby Client for Instapaper's Full API" spec.email = 'steve.agalloco@gmail.com' diff --git a/lib/instapaper/api/folders.rb b/lib/instapaper/api/folders.rb index 394c540..a2dc63a 100644 --- a/lib/instapaper/api/folders.rb +++ b/lib/instapaper/api/folders.rb @@ -18,7 +18,7 @@ module Instapaper # Deletes the folder and moves any articles in it to the Archive. # @param folder_id [String] The id of the folder. - def delete_folder(folder_id) + def delete_folder(folder_id) # rubocop:disable Naming/PredicateMethod perform_post_with_unparsed_response('/api/1.1/folders/delete', folder_id: folder_id) true end diff --git a/lib/instapaper/api/highlights.rb b/lib/instapaper/api/highlights.rb index b39e94c..d6e1b5a 100644 --- a/lib/instapaper/api/highlights.rb +++ b/lib/instapaper/api/highlights.rb @@ -24,7 +24,7 @@ module Instapaper # Delete a highlight # @param highlight_id [String, Integer] # @return [Boolean] - def delete_highlight(highlight_id, options = {}) + def delete_highlight(highlight_id, options = {}) # rubocop:disable Naming/PredicateMethod perform_post_with_unparsed_response("/api/1.1/highlights/#{highlight_id}/delete", options) true end