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

Add frozen_string_literal magic header #1128

Merged
merged 1 commit into from
Oct 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions lib/wicked_pdf.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# wkhtml2pdf Ruby interface
# http://wkhtmltopdf.org/

Expand Down
4 changes: 3 additions & 1 deletion lib/wicked_pdf/binary.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# frozen_string_literal: true

class WickedPdf
class Binary
EXE_NAME = 'wkhtmltopdf'.freeze
EXE_NAME = 'wkhtmltopdf'

attr_reader :path, :default_version

Expand Down
2 changes: 2 additions & 0 deletions lib/wicked_pdf/middleware.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class WickedPdf
class Middleware
def initialize(app, options = {}, conditions = {})
Expand Down
2 changes: 2 additions & 0 deletions lib/wicked_pdf/option_parser.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class WickedPdf
class OptionParser
BINARY_VERSION_WITHOUT_DASHES = Gem::Version.new('0.12.0')
Expand Down
2 changes: 2 additions & 0 deletions lib/wicked_pdf/pdf_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class WickedPdf
module PdfHelper
def self.prepended(base)
Expand Down
2 changes: 2 additions & 0 deletions lib/wicked_pdf/progress.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class WickedPdf
module Progress
require 'pty' if RbConfig::CONFIG['target_os'] !~ /mswin|mingw/ && RUBY_ENGINE != 'truffleruby' # no support for windows and truffleruby
Expand Down
2 changes: 2 additions & 0 deletions lib/wicked_pdf/railtie.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'wicked_pdf/pdf_helper'
require 'wicked_pdf/wicked_pdf_helper'
require 'wicked_pdf/wicked_pdf_helper/assets'
Expand Down
2 changes: 2 additions & 0 deletions lib/wicked_pdf/tempfile.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'tempfile'
require 'stringio'

Expand Down
4 changes: 3 additions & 1 deletion lib/wicked_pdf/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class WickedPdf
VERSION = '2.8.2'.freeze
VERSION = '2.8.1'
end
2 changes: 2 additions & 0 deletions lib/wicked_pdf/wicked_pdf_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class WickedPdf
module WickedPdfHelper
def self.root_path
Expand Down
2 changes: 2 additions & 0 deletions lib/wicked_pdf/wicked_pdf_helper/assets.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'net/http'
require 'delegate'
require 'stringio'
Expand Down
Loading