Skip to content

Commit

Permalink
Fix Rubocop warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
slonopotamus committed Jan 20, 2025
1 parent 8ba6c91 commit 3c2027c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
7 changes: 3 additions & 4 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ require:
- rubocop-rake
- rubocop-rspec
AllCops:
NewCops: enable
TargetRubyVersion: 2.7
NewCops: disable
Gemspec/RequireMFA:
Enabled: false
Layout/LineLength:
Expand Down Expand Up @@ -32,12 +31,12 @@ RSpec/DescribeClass:
Enabled: false
RSpec/ExampleLength:
Enabled: false
RSpec/FilePath:
Enabled: false
RSpec/MultipleExpectations:
Enabled: false
RSpec/NamedSubject:
Enabled: false
RSpec/SpecFilePathFormat:
Enabled: false
RSpec/VerifiedDoubleReference:
Enabled: false
Style/CommentAnnotation:
Expand Down
2 changes: 0 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# frozen_string_literal: true

source 'https://rubygems.org'

# Look in asciidoctor-epub3.gemspec for runtime and development dependencies.
gemspec
14 changes: 7 additions & 7 deletions asciidoctor-epub3.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ Gem::Specification.new do |s|

s.require_paths = ['lib']

s.add_dependency 'asciidoctor', '~> 2.0'
s.add_dependency 'gepub', '~> 1.0.0'
s.add_dependency 'mime-types', '~> 3.0'

# TODO: switch to 'sass-embedded' when we drop Ruby 2.5 support
s.add_dependency 'sass'

s.add_development_dependency 'asciidoctor-diagram', '~> 2.0'
s.add_development_dependency 'asciimath', '~> 2.0'
s.add_development_dependency 'coderay', '~> 1.1.0'
Expand All @@ -43,11 +50,4 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rubocop-rspec', '~> 3.3'
s.add_development_dependency 'slim', '~> 5.0'
s.add_development_dependency 'tilt', '~> 2.0'

s.add_runtime_dependency 'asciidoctor', '~> 2.0'
s.add_runtime_dependency 'gepub', '~> 1.0.0'
s.add_runtime_dependency 'mime-types', '~> 3.0'

# TODO: switch to 'sass-embedded' when we drop Ruby 2.5 support
s.add_runtime_dependency 'sass'
end
2 changes: 1 addition & 1 deletion spec/inline_quoted_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
describe 'Asciidoctor::Epub3::Converter - Inline Quoted' do
subject { Asciidoctor::Epub3::Converter.new('epub3').convert_inline_quoted node }

let(:parent) { instance_double('parent').as_null_object }
let(:parent) { instance_double(parent).as_null_object }
let(:node) { Asciidoctor::Inline.new parent, :bar, 'text', type: type }

it 'resolves inline quotes' do
Expand Down

0 comments on commit 3c2027c

Please sign in to comment.