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
2 changes: 1 addition & 1 deletion gems/rqrcode/2.2/_test/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

require "rqrcode"

qr = RQRCode::QRCode.new("https://kyan.com")
qr = RQRCode::QRCode.new("https://kyan.com", level: :h)

puts qr.to_s

Expand Down
2 changes: 1 addition & 1 deletion gems/rqrcode/2.2/rqrcode.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module RQRCode
type mode = :number | :alphanumeric | :byte_8bit | :kanji
type segment = { data: String, mode: mode }

def initialize: (String) -> void
def initialize: (String, *untyped) -> void
def as_svg: (?offset: Integer, ?fill: String | :white | :currentColor, ?color: String | :black | :currentColor, ?module_size: Integer, ?shape_rendering: "auto" | "optimizeSpeed" | "crispEdges" | "geometricPrecision", ?standalone: bool, ?use_path: bool, ?viewbox: bool, ?svg_attributes: Hash[untyped, untyped]) -> String
def as_png: (?fill: untyped, ?color: untyped, ?size: Integer, ?border_modules: Integer, ?module_px_size: Integer, ?border: Integer, ?resize_exactly_to: bool, ?resize_gte_to: bool) -> ChunkyPNG::Image
| (file: untyped, ?fill: untyped, ?color: untyped, ?color_mode: Integer, ?bit_depth: Integer, ?interlace: bool, ?compression: untyped, ?size: Integer, ?border_modules: Integer, ?module_px_size: Integer, ?border: Integer, ?resize_exactly_to: bool, ?resize_gte_to: bool) -> ChunkyPNG::Image
Expand Down