Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Atualiza o repositório para a versão 2.4.0 #2

Draft
wants to merge 142 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
f437550
Remove release schedule we haven't been keeping.
packetmonkey Jul 20, 2016
cd4d630
Add code of conduct.
packetmonkey Jul 20, 2016
07d3ad2
Fix typo
packetmonkey Jul 20, 2016
af6baef
Update contributing.md
packetmonkey Jul 20, 2016
e0c3293
fix typo in description for Prawn::Images#image
eitoball Aug 24, 2016
ec9531b
Merge pull request #977 from eitoball/fix-typo-in-prawn-images-image-…
pointlessone Aug 24, 2016
940afd3
resolves #984 don't raise CannotFit if first fragment is a zero-width…
mojavelinux Sep 19, 2016
921f398
Merge pull request #985 from mojavelinux/issue-984
packetmonkey Sep 21, 2016
3cb1920
Mark myself as an inactive maintainer
packetmonkey Nov 9, 2016
55e342d
Fix dash implementation to conform to spec
gettalong Dec 8, 2016
7018a1b
Merge pull request #1001 from prawnpdf/dash-fix
pointlessone Dec 8, 2016
72eaa92
Use consistent color serialization
pointlessone Oct 15, 2016
7d26478
Fix Gradients manual layout
pointlessone Oct 15, 2016
cd40dcb
Fix handling of NBSP in Win-1252 encoded strings
pointlessone Oct 23, 2016
5ae2a54
Raise exception for unrecognized join styles
midpackrunner Oct 13, 2016
368d122
Fix manual
pointlessone Dec 21, 2016
5add84c
Update build matrix
pointlessone Dec 24, 2016
8309626
Fix code style
pointlessone Jan 22, 2017
00620b6
Fix rainbow installation issue
pointlessone Jan 23, 2017
c5b30f7
Bump JRuby to 9.1.7
pointlessone Jan 23, 2017
de2e5d4
Drop code_statistic dependency
pointlessone Jan 23, 2017
8e62173
Bump Rake
pointlessone Jan 23, 2017
d88e501
Bump Rubocop
pointlessone Jan 26, 2017
935555f
Add RuboCop RSpec
pointlessone Jan 30, 2017
811b094
remove unnecessary color methods
Feb 8, 2017
fe007ca
Merge pull request #1008 from brendanthomas1/remove-unnecessary-methods
pointlessone Feb 12, 2017
61d4679
Remove some dead code
pointlessone Feb 12, 2017
409dd39
Validate colors passed in as strings are valid hex
tomprats May 5, 2015
790dd4e
Do not try to print text if no more text is available
maerch Dec 7, 2015
0712aeb
Fix manual
pointlessone Feb 13, 2017
294daec
Bump TTFunk dependency
pointlessone Dec 24, 2016
d7facca
Switch to a simpler serialization for gradient names
pointlessone May 28, 2016
1444f4d
Fail build on unexpected manual change
pointlessone Feb 13, 2016
631331f
Add support for TTC files
jamis Feb 8, 2017
4c7e913
Fix misspelled word
stevensona Feb 23, 2017
b7c5bc2
Fix manual spec
pointlessone Mar 1, 2017
172ddc6
Remove Template specs remnants
pointlessone Mar 1, 2017
9f3bc7a
Remove non-existent encodings dir from gemspec
pointlessone Mar 1, 2017
782f57e
Remove deprecated test_files
pointlessone Mar 1, 2017
dee225d
Sync required Ruby version in gemspec
pointlessone Mar 1, 2017
4aa0f6c
Update homepage URL
pointlessone Mar 1, 2017
e342773
Remove Rubyforge project name for gemspec
pointlessone Mar 1, 2017
4e61ca4
Set up gem signing
pointlessone Mar 1, 2017
c8ddd07
Typo fix
giuseb Feb 21, 2017
57fba12
example of a document method added to the view.rb manual page
Feb 3, 2015
6a03f04
length of comment lines reduced
giuseb Feb 13, 2017
105d087
Prawn::View manual fixes
giuseb Feb 21, 2017
b7273e5
manual hash updated to pass manual_spec
giuseb Feb 21, 2017
a2edad1
Bump pdf-reader to 2.4-compatible version
pointlessone Jan 1, 2017
c109d28
Bump pdf-core dependency
pointlessone Mar 11, 2017
b89230c
Update Change Log
pointlessone Dec 24, 2016
19478f2
Prawn 2.2.0
pointlessone Dec 24, 2016
34537ab
Fix specific document margin options
stormsilver Dec 22, 2016
a2f9407
Updated Change Log
pointlessone Mar 15, 2017
c77e859
2.2.1
pointlessone Mar 15, 2017
b8159f8
Relax pdf-inspector depspec
pointlessone Mar 17, 2017
f5e4ad5
2.2.2
pointlessone Mar 17, 2017
dc08857
README: Use SVG badges
olleolleolle Mar 24, 2017
ad1676e
Fix reported Rubocop warnings
fidothe Jul 5, 2017
8e753d6
Remove superfluous pdf-core requires
fidothe Jul 5, 2017
9250c86
Merge pull request #1032 from fidothe/sidestep-double-load-ruby-bug
Jul 6, 2017
a7eef4d
resolves #1022 provide more information about missing font
mojavelinux Nov 8, 2017
50e1175
Merge pull request #1045 from mojavelinux/issue-1022
mojavelinux Nov 14, 2017
05590a8
resolves #1048 flaw in generating gradient pattern key
jacksop Nov 23, 2017
4d23ab8
Update hashes used in prawn manual spec
jacksop Nov 24, 2017
ef8fd77
add spec to check for unique pattern IDs
jacksop Nov 25, 2017
c522786
fix rubocop regex style violation
jacksop Nov 25, 2017
5b5ffe5
Drop Ruby 2.2 and older
pointlessone Apr 27, 2018
37303f5
Update code style
pointlessone Apr 27, 2018
f541b89
Updated supported Rubies in README
pointlessone Apr 27, 2018
215e21b
Update CI build matrix
pointlessone Apr 27, 2018
833fce6
Update manual builder
pointlessone Apr 27, 2018
c504ae4
Bump PDF:Core to 0.8.1
pointlessone Apr 28, 2018
e615f00
Fixing Prawn::View#respond_to_missing? method signature
May 24, 2018
2cdd2e7
raise an exception when align value is invalid
Mar 15, 2018
e401c91
Update some of the rubocop cop names
chills42 Oct 11, 2018
798af4f
Address a minor performance issue.
chills42 Oct 11, 2018
ba6aba2
Fix incorrect address in GPLv2
snecklifter Nov 8, 2018
ddbcb43
Change pathname handling by closing opened files after reading
haslo Nov 23, 2018
ea75d2a
Add method to delete pages of the document by index
davidsilveira Nov 30, 2018
6637218
Fixed instance variable @italic_angle not initialized
rsvoboda Dec 27, 2018
fdf0445
Test on Ruby 2.6 on Travis CI
aried3r Feb 7, 2019
a8b0cea
Update RuboCop
pointlessone Apr 27, 2019
74ccd85
Fix manual spec
pointlessone Apr 28, 2019
0ca1061
Update Rubocop
pointlessone Apr 30, 2019
b3f04e1
Fix RuboCop requires
pointlessone May 2, 2019
c61c5d4
Fix character_spacing effect on text width calculation.
mtyaka May 13, 2019
c5842a2
Add documentation about document configuration
sowenjub Apr 23, 2019
61c61f4
Set up GitHub Actions CI
pointlessone Nov 16, 2019
831f190
Fix code style
pointlessone Nov 17, 2019
f7d3079
Use current Prawn for manual instead of any installed versions
pointlessone Nov 17, 2019
5ab29cb
Don't depend on git in CI
pointlessone Nov 17, 2019
9cf0955
Update manual hashes
pointlessone Nov 17, 2019
0012890
Fix code style
pointlessone Dec 6, 2019
bdfff50
Update CHANGELOG
pointlessone Dec 7, 2019
85b648a
Improve color regex
brendanthomas1 Apr 6, 2017
7b35d88
Updated Changelog
pointlessone Dec 7, 2019
d980247
Fix code style
pointlessone Dec 21, 2019
4b02b01
Update supported Rubies
pointlessone Jul 25, 2020
41403fe
Use module namespace for fonts
pointlessone Dec 6, 2019
8ff67ad
Add OpenType Fonts support
pointlessone Dec 6, 2019
f9cc560
Add checksum task
pointlessone Aug 1, 2020
1232b28
Update certificate
pointlessone Aug 1, 2020
62f5f4a
v2.3.0
pointlessone Aug 1, 2020
c86b902
Remove left-over TravisCI config
pointlessone Sep 5, 2020
7647e30
More CI
pointlessone Sep 5, 2020
dcf6da7
Remove duplicate CI runs
pointlessone Sep 6, 2020
23521eb
Fix Lint/NestedPercentLiteral violations
pointlessone Oct 19, 2020
95b3723
Fix RSpec/MultipleMemoizedHelpers violations
pointlessone Oct 19, 2020
625df78
Fix Layout/EmptyLinesAroundAttributeAccessor violations
pointlessone Oct 19, 2020
cae0529
Fix Lint/MissingSuper violations
pointlessone Oct 19, 2020
2b160e8
Fix Style/HashAsLastArrayItem violations
pointlessone Oct 19, 2020
21fc2f6
Fix Style/StringConcatenation violations
pointlessone Oct 19, 2020
162d2e1
Fix Style/CaseLikeIf violations
pointlessone Oct 19, 2020
ee47e5b
Fix Style/ExplicitBlockArgument violations
pointlessone Oct 19, 2020
afc14b8
Fix Style/RedundantRegexpEscape violations
pointlessone Oct 19, 2020
7247b86
Fix Performance/Sum violations
pointlessone Oct 19, 2020
dbd7f14
Fix Lint/UnreachableLoop violations
pointlessone Oct 19, 2020
5e2c10f
Fix Layout/FirstMethodParameterLineBreak violations
pointlessone Oct 19, 2020
4815df5
Fix Layout/MultilineAssignmentLayout violations
pointlessone Oct 19, 2020
e9339f9
Fix Layout/MultilineHashKeyLineBreaks violations
pointlessone Oct 19, 2020
d2cb028
Fix Layout/MultilineMethodArgumentLineBreaks violations
pointlessone Oct 20, 2020
3b4c9f8
Fix Style/AutoResourceCleanup violations
pointlessone Oct 21, 2020
9313bae
Fix Style/CollectionMethods violations
pointlessone Oct 21, 2020
25c1f72
Fix Style/ImplicitRuntimeError violations
pointlessone Oct 21, 2020
ff40c56
Fix Style/Send violations
pointlessone Oct 21, 2020
5a40a39
Bump Rubocop to 0.89
pointlessone Oct 21, 2020
71cb6b0
Fix Lint/ConstantDefinitionInBlock violations
pointlessone Oct 21, 2020
500e76c
Fix Style/SoleNestedConditional violations
pointlessone Oct 21, 2020
9668b0f
Bump Rubocop gems
pointlessone Oct 21, 2020
844190e
Bump pdf-core to 0.9
pointlessone Oct 24, 2020
1dd1169
Fix transformation matrix serialization
pointlessone Oct 24, 2020
56a2ac1
Fix typo in documentation for bounding box nesting
clinejj Dec 23, 2020
5f21d99
Update ruby_version requirement to allow ruby 3.0
byroot Sep 1, 2020
7f17308
Use prawn-dev
pointlessone Dec 27, 2020
cd7df28
Update CI workflow
pointlessone Dec 28, 2020
098ef66
Bump TTFunk
pointlessone Dec 29, 2020
692ecb5
Update Changelog
pointlessone Dec 29, 2020
46ac696
2.4.0
pointlessone Dec 29, 2020
604a010
Merge branch 'master' into update-to-2.4.0
AnaPerola Nov 8, 2024
36316fc
Remove versões do ruby não compativel com o i-Diário
AnaPerola Nov 8, 2024
3271f94
Determina versão de bundler e ruby para evitar conflitos
AnaPerola Nov 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on:
push:
pull_request_target:
schedule:
- cron: "6 20 * * 6"

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- "2.6.6"
steps:
- uses: actions/checkout@v1
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Gems cache
uses: actions/cache@v2
with:
path: ~/gems
key: gems-${{ matrix.ruby }}-${{ hashFiles('*.gemspec', 'Gemfile') }}-${{ github.sha }}
restore-keys: |
gems-${{ matrix.ruby }}-${{ hashFiles('*.gemspec', 'Gemfile') }}-
gems-${{ matrix.ruby }}-
- name: Install dependencies
run: |
gem install bundler -v 2.4.22
bundle config path ~/gems
bundle install --jobs 4 --retry 3
- name: Run tests
run: bundle exec rake
249 changes: 36 additions & 213 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,229 +1,52 @@
Encoding:
# To be safe we are leaving these files encoded ASCII-8BIT as
# discussed at https://github.com/prawnpdf/prawn/pull/705
Exclude:
- lib/prawn/images/jpg.rb
- lib/prawn/images/png.rb
- lib/prawn/images.rb
- spec/png_spec.rb
inherit_gem:
prawn-dev: rubocop.yml

# These cops need to remain disabled for valid reasons on this code base
Lint/ConstantDefinitionInBlock:
Exclude:
- manual/text/formatted_callbacks.rb
- manual/text/text_box_extensions.rb

# We need to reference non-ascii characters when testing and explaining
# behavior related to win-1252, UTF-8 and UTF-16 encodings for example.
AsciiComments:
Enabled: false
Layout/MultilineOperationIndentation:
EnforcedStyle: indented
Exclude:
- prawn.gemspec

# We don't always prefer modified if statements even if they do fit on
# a line.
IfUnlessModifier:
Enabled: false
# This file shows examples on how to instantiate a document in multiple ways,
# it does not actually do the instantiation and isn't actually shadowing any
# variables.
Lint/ShadowingOuterLocalVariable:
Exclude:
- manual/basic_concepts/creation.rb

# In this case we supress Prawn::Errors::CannotFit while trying to scale
# text down to fit.
HandleExceptions:
Lint/SuppressedException:
Exclude:
- lib/prawn/text/formatted/box.rb

# %w() style arrays don't always look better.
WordArray:
Enabled: false

# Due to some layout constraints in our examples we want to allow these rule to
# be ignored in the manual.
Style/ClosingParenthesisIndentation:
Exclude:
- manual/**/*
LineEndConcatenation:
Metrics/BlockLength:
Exclude:
- manual/**/*
MultilineOperationIndentation:
Exclude:
- manual/**/*
- lib/prawn/graphics.rb
- lib/prawn/images/png.rb
- lib/prawn/text/formatted/parser.rb
- manual/**/*.rb
- prawn.gemspec
Style/SpaceInsideParens:
Exclude:
- manual/**/*
Style/SpaceBeforeFirstArg:
Exclude:
- manual/**/*
- spec/**/*.rb

# This file shows examples on how to instantiate a document in multiple ways,
# it does not actually do the instantiation and isn't actually shadowing any
# variables.
ShadowingOuterLocalVariable:
Naming/AccessorMethodName:
Exclude:
- manual/basic_concepts/creation.rb
- lib/prawn/graphics/color.rb

# We currently ignore usage of semicolons on this page of the manual so we
# don't have to worry about changing the content of the manual for now.
Semicolon:
Naming/PredicateName:
Exclude:
- manual/bounding_box/nesting.rb
- lib/prawn/font/ttf.rb
- lib/prawn/font/afm.rb


# This cops are candidates for enabling and doing the related cleanup and/or
# refactoring
Style/BlockDelimiters:
Enabled: false
EnforcedStyle: semantic
Void:
Enabled: false
StringLiterals:
Enabled: false
HashSyntax:
Enabled: false
UselessAssignment:
Enabled: false
Lambda:
Enabled: false
LineLength:
Enabled: false
SpaceBeforeBlockBraces:
Enabled: false
SpaceInsideBrackets:
Enabled: false
FormatString:
Enabled: false
CollectionMethods:
Enabled: false
DotPosition:
Enabled: false
SingleLineBlockParams:
Enabled: false
PercentLiteralDelimiters:
Enabled: false
Documentation:
Enabled: false
RegexpLiteral:
Enabled: false
MethodLength:
Enabled: false
VariableInterpolation:
Enabled: false
AndOr:
Enabled: false
AssignmentInCondition:
Enabled: false
ClassAndModuleChildren:
Enabled: false
NumericLiterals:
Enabled: false
DoubleNegation:
Enabled: false
SelfAssignment:
Enabled: false
ClassLength:
Enabled: false
CaseEquality:
Enabled: false
RedundantSelf:
Enabled: false
BlockNesting:
Enabled: false
NegatedWhile:
Enabled: false
MultilineIfThen:
Enabled: false
ModuleFunction:
Enabled: false
CyclomaticComplexity:
Enabled: false
UnreachableCode:
Enabled: false
AccessorMethodName:
Enabled: false
Style/SpaceAroundKeyword:
Enabled: false
PredicateName:
Enabled: false
ConstantName:
Enabled: false
MethodName:
Enabled: false
Alias:
Enabled: false
RedundantReturn:
Enabled: false
WhileUntilModifier:
Enabled: false
StringConversionInInterpolation:
Enabled: false
RedundantBegin:
Enabled: false
PerlBackrefs:
Enabled: false
ClassVars:
Enabled: false
ParameterLists:
Enabled: false
AbcSize:
Enabled: false
PerceivedComplexity:
Enabled: false
UnusedBlockArgument:
Enabled: false
UnusedMethodArgument:
Enabled: false
Next:
Enabled: false
ClassCheck:
Enabled: false
SpaceBeforeComma:
Enabled: false
StringLiteralsInInterpolation:
Enabled: false
GuardClause:
Enabled: false
BlockEndNewline:
Enabled: false
Style/MultilineMethodCallBraceLayout:
Enabled: false
Performance/StringReplacement:
Enabled: false
Style/SymbolProc:
Enabled: false
Style/ExtraSpacing:
Enabled: false
Style/SpaceAroundOperators:
Enabled: false
Style/ParallelAssignment:
Enabled: false
Style/IndentArray:
Enabled: false
Style/SignalException:
Enabled: false
Style/MultilineArrayBraceLayout:
Enabled: false
Style/MutableConstant:
Enabled: false
Style/ConditionalAssignment:
Enabled: false
Style/ZeroLengthPredicate:
Enabled: false
Metrics/ModuleLength:
Enabled: false
Style/MultilineTernaryOperator:
Enabled: false
Style/UnneededInterpolation:
Enabled: false
Style/IfInsideElse:
Enabled: false
Style/IdenticalConditionalBranches:
Enabled: false
Performance/RedundantBlockCall:
Enabled: false
Performance/RedundantMerge:
Enabled: false
Style/RedundantParentheses:
Enabled: false
Performance/RangeInclude:
Enabled: false
Lint/UselessAccessModifier:
Enabled: false
Lint/LiteralInCondition:
Enabled: false
Performance/TimesMap:
Enabled: false
Lint/LiteralInCondition:
Enabled: false
Style/Encoding:
# To be safe we are leaving these files encoded ASCII-8BIT as
# discussed at https://github.com/prawnpdf/prawn/pull/705
Exclude:
- lib/prawn/images/jpg.rb
- lib/prawn/images/png.rb
- lib/prawn/images.rb
- spec/png_spec.rb
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

Loading
Loading