Skip to content
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
1 change: 1 addition & 0 deletions example/rails/app/controllers/example001_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-03-04
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example002_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-03-04
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example003_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-03-04
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example004_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-03-04
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example005_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-03-04
# Last Update : 2010-05-20
Expand Down
5 changes: 3 additions & 2 deletions example/rails/app/controllers/example006_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-03-04
# Last Update : 2010-05-20
Expand Down Expand Up @@ -219,8 +220,8 @@ def index
# add a page
pdf.add_page()

textcolors = '<h1>HTML Text Colors</h1>'
bgcolors = '<hr /><h1>HTML Background Colors</h1>'
textcolors = +'<h1>HTML Text Colors</h1>'
bgcolors = +'<hr /><h1>HTML Background Colors</h1>'

@@webcolor.each{|k,v|
textcolors << '<span color="#' + v + '">' + v + '</span> '
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example007_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-03-04
# Last Update : 2010-05-20
Expand Down
5 changes: 3 additions & 2 deletions example/rails/app/controllers/example008_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-03-04
# Last Update : 2010-05-20
Expand Down Expand Up @@ -57,10 +58,10 @@ def index
pdf.add_page()

# get esternal file content
utf8text=''
utf8text = +''
file = PDF_UTF8TEST_TXT
open(file,'rb') do |f|
utf8text<<f.read()
utf8text << f.read()
end

# set color for text
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example009_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-03-04
# Last Update : 2023-03-23
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example011_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-03-04
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example012_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-03-04
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example014_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-03-04
# Last Update : 2010-06-02
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example015_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-03-04
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example017_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-03-04
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example018_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-03-06
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example020_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-03-04
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example021_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-03-04
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example022_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-03-04
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example023_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-03-04
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example024_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-03-04
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example025_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-03-04
# Last Update : 2010-05-20
Expand Down
3 changes: 2 additions & 1 deletion example/rails/app/controllers/example026_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-03-04
# Last Update : 2010-05-20
Expand Down Expand Up @@ -111,7 +112,7 @@ def index


# create some HTML content with text rendering modes
html = '<span stroke="0" fill="true">HTML Fill text</span><br />'
html = +'<span stroke="0" fill="true">HTML Fill text</span><br />'
html << '<span stroke="0.2" fill="false">HTML Stroke text</span><br />'
html << '<span stroke="0.2" fill="true" strokecolor="#FF0000" color="#FFFF00">HTML Fill, then stroke text</span><br />'
html << '<span stroke="0" fill="false">HTML Neither fill nor stroke text (invisible)</span><br />'
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example028_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-03-04
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example029_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-06-09
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example030_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-06-09
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example031_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-06-09
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example033_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-06-24
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example034_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-07-18
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example035_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-07-22
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example036_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-08-08
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example038_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-09-15
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example039_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-10-16
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example040_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-10-28
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example041_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-12-07
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example042_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-12-23
# Last Update : 2023-02-23
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example043_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2009-01-02
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example044_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2009-01-02
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example045_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2008-03-04
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example047_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2009-03-19
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example048_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2009-03-20
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example051_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2009-04-16
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example054_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2009-09-07
# Last Update : 2010-06-02
Expand Down
5 changes: 3 additions & 2 deletions example/rails/app/controllers/example055_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2009-10-21
# Last Update : 2010-05-20
Expand Down Expand Up @@ -59,7 +60,7 @@ def index
# array of core font names
core_fonts = ['courier', 'helvetica', 'times', 'symbol', 'zapfdingbats']

html = '<h1>Core Fonts Dump</h1>'
html = +'<h1>Core Fonts Dump</h1>'

# create one HTML table for each core font
core_fonts.each { |font|
Expand All @@ -74,7 +75,7 @@ def index
if i != 0
chr = pdf.unichr(i)
else
chr = ''
chr = +''
end
# replace special characters
chr.gsub!('<', '&lt;')
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example057_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2010-04-03
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example059_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2010-05-06
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example060_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2010-05-17
# Last Update : 2010-05-20
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example061_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2010-05-24
# Last Update : 2010-05-25
Expand Down
1 change: 1 addition & 0 deletions example/rails/app/controllers/example_common.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: UTF-8
# frozen_string_literal: true
#============================================================+
# Begin : 2004-06-11
# Last Update : 2010-04-28
Expand Down
2 changes: 1 addition & 1 deletion lib/barcode/barcode.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

# frozen_string_literal: true
#============================================================+
# File name : barcode.rb
# Begin : 2002-07-31
Expand Down
2 changes: 1 addition & 1 deletion lib/barcode/c128aobject.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

# frozen_string_literal: true
#============================================================+
# File name : c128aobject.rb
# Begin : 2002-07-31
Expand Down
2 changes: 1 addition & 1 deletion lib/barcode/c128bobject.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

# frozen_string_literal: true
#============================================================+
# File name : c128bobject.rb
# Begin : 2002-07-31
Expand Down
2 changes: 1 addition & 1 deletion lib/barcode/c128cobject.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

# frozen_string_literal: true
#============================================================+
# File name : c128cobject.rb
# Begin : 2002-07-31
Expand Down
2 changes: 1 addition & 1 deletion lib/barcode/c39object.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

# frozen_string_literal: true
#============================================================+
# File name : c39object.rb
# Begin : 2002-07-31
Expand Down
2 changes: 1 addition & 1 deletion lib/barcode/i25object.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

# frozen_string_literal: true
#============================================================+
# File name : i25aobject.rb
# Begin : 2002-07-31
Expand Down
2 changes: 1 addition & 1 deletion lib/barcode/image.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

# frozen_string_literal: true
#============================================================+
# File name : image.rb
# Begin : 2002-07-31
Expand Down
1 change: 1 addition & 0 deletions lib/core/mini_magick.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: ASCII-8BIT
# frozen_string_literal: true
# The MIT License
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
1 change: 1 addition & 0 deletions lib/core/rmagick.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: ASCII-8BIT
# frozen_string_literal: true
# The MIT License
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
1 change: 1 addition & 0 deletions lib/htmlcolors.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
#============================================================+
# File name : htmlcolors.rb
# Begin : 2002-04-09
Expand Down
Loading