Skip to content

Commit

Permalink
Merge pull request #1128 from n-rodriguez/wip/frozen_strings
Browse files Browse the repository at this point in the history
Add frozen_string_literal magic header
  • Loading branch information
unixmonkey authored Oct 27, 2024
2 parents bff9f20 + fb27087 commit 5a4c76a
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 2 deletions.
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

0 comments on commit 5a4c76a

Please sign in to comment.