Skip to content

Commit 135ede7

Browse files
authored
Merge pull request #168 from alexanderadam/chores/fix-spelling-error
fix spelling error: PAPEP_FORMATS => PAPER_FORMATS
2 parents 61f4949 + 8fdf8fa commit 135ede7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
- `Ferrum::Page::Screenshot::DEFAULT_PDF_OPTIONS` - pdf settings constant
3232

33-
- `Ferrum::Page::Screenshot::PAPEP_FORMATS` - available formats constant
33+
- `Ferrum::Page::Screenshot::PAPER_FORMATS` - available formats constant
3434

3535
- `Ferrum::Page::Frames` module implementation:
3636

lib/ferrum/page/screenshot.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module Screenshot
1212
scale: 1.0
1313
}.freeze
1414

15-
PAPEP_FORMATS = {
15+
PAPER_FORMATS = {
1616
letter: { width: 8.50, height: 11.00 },
1717
legal: { width: 8.50, height: 14.00 },
1818
tabloid: { width: 11.00, height: 17.00 },
@@ -114,7 +114,7 @@ def pdf_options(**opts)
114114
raise ArgumentError, "Specify :format or :paper_width, :paper_height"
115115
end
116116

117-
dimension = PAPEP_FORMATS.fetch(format)
117+
dimension = PAPER_FORMATS.fetch(format)
118118
options.merge!(paper_width: dimension[:width],
119119
paper_height: dimension[:height])
120120
end

0 commit comments

Comments
 (0)