lib/field.rb in fillable-pdf-0.9.0 vs lib/field.rb in fillable-pdf-0.9.1
- old
+ new
@@ -4,12 +4,12 @@
class Field
# PdfName has a constant "A" and a constant "a". Unfortunately, RJB does not differentiate
# between these constants and tries to create the same constant ("A") for both, which causes
# an annoying warning "already initialized constant Rjb::Com_itextpdf_kernel_pdf_PdfName::A".
# As long as RJB has not fixed this issue, this warning will remain suppressed.
- suppress_warnings { PDF_NAME = Rjb.import('com.itextpdf.kernel.pdf.PdfName') }
+ suppress_warnings { PDF_NAME = Rjb.import('com.itextpdf.kernel.pdf.PdfName') } # rubocop:disable Lint/ConstantDefinitionInBlock
BUTTON = PDF_NAME.Btn.toString
CHOICE = PDF_NAME.Ch.toString
SIGNATURE = PDF_NAME.Sig.toString
TEXT = PDF_NAME.Tx.toString
-end
\ No newline at end of file
+end