Skip to content

Commit

Permalink
Merge pull request #39 from blocknotes/internal-improvements
Browse files Browse the repository at this point in the history
Internal improvements
  • Loading branch information
blocknotes authored Apr 29, 2022
2 parents 54919ef + 1c61d06 commit ffc1dd2
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
ruby: ['2.6', '2.7', '3.0']
ruby: ['2.5', '2.6', '2.7', '3.0']

steps:
- name: Checkout repository
Expand Down
9 changes: 9 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,12 @@ RSpec/ExampleLength:
RSpec/MultipleMemoizedHelpers:
# default: 5
Max: 6

RSpec/SubjectStub:
Exclude:
- spec/units/prawn_html/attributes_spec.rb

Style/OpenStructUse:
Exclude:
- lib/prawn_html/attributes.rb
- spec/units/prawn_html/attributes_spec.rb
13 changes: 9 additions & 4 deletions prawn-html.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,17 @@ Gem::Specification.new do |spec|
spec.version = PrawnHtml::VERSION
spec.summary = 'Prawn PDF - HTML renderer'
spec.description = 'HTML to PDF with Prawn PDF'

spec.required_ruby_version = '>= 2.5.0'

spec.license = 'MIT'
spec.authors = ['Mattia Roccoberton']
spec.email = '[email protected]'
spec.homepage = 'https://github.com/blocknotes/prawn-html'
spec.license = 'MIT'
spec.authors = ['Mattia Roccoberton']
spec.email = '[email protected]'
spec.homepage = 'https://github.com/blocknotes/prawn-html'

spec.metadata['homepage_uri'] = spec.homepage
spec.metadata['source_code_uri'] = spec.homepage
spec.metadata['rubygems_mfa_required'] = 'true'

spec.files = Dir['lib/**/*', 'LICENSE.txt', 'README.md']
spec.require_paths = ['lib']
Expand Down
6 changes: 3 additions & 3 deletions spec/units/prawn_html/utils_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,13 @@
context 'with a nil value' do
let(:value) { nil }

it { is_expected.to eq nil }
it { is_expected.to be_nil }
end

context 'with a blank string value' do
let(:value) { '' }

it { is_expected.to eq nil }
it { is_expected.to be_nil }
end

context 'with a string value (ex. "some_string")' do
Expand Down Expand Up @@ -161,7 +161,7 @@
context 'with an invalid value (ex. "some_string")' do
let(:value) { 'some_string' }

it { is_expected.to eq nil }
it { is_expected.to be_nil }
end

context 'with a valid value (ex. " bOlD ")' do
Expand Down

0 comments on commit ffc1dd2

Please sign in to comment.