repo
stringlengths
5
92
file_url
stringlengths
80
287
file_path
stringlengths
5
197
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:37:27
2026-01-04 17:58:21
truncated
bool
2 classes
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/add/date_time.rb
.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/add/date_time.rb
#frozen_string_literal: false unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED require 'json' end require 'date' class DateTime # Deserializes JSON string by converting year <tt>y</tt>, month <tt>m</tt>, # day <tt>d</tt>, hour <tt>H</tt>, minute <tt>M</tt>, second <tt>S</tt>, # offset <tt>of</tt> ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/add/date.rb
.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/add/date.rb
#frozen_string_literal: false unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED require 'json' end require 'date' class Date # Deserializes JSON string by converting Julian year <tt>y</tt>, month # <tt>m</tt>, day <tt>d</tt> and Day of Calendar Reform <tt>sg</tt> to Date. def self.json_create(objec...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/add/symbol.rb
.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/add/symbol.rb
#frozen_string_literal: false unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED require 'json' end class Symbol # Returns a hash, that will be turned into a JSON object and represent this # object. def as_json(*) { JSON.create_id => self.class.name, 's' => to_s, } en...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/ruby2_keywords-0.0.5/lib/ruby2_keywords.rb
.bundles_cache/ruby/2.6.0/gems/ruby2_keywords-0.0.5/lib/ruby2_keywords.rb
class Module unless private_method_defined?(:ruby2_keywords) private # call-seq: # ruby2_keywords(method_name, ...) # # Does nothing. def ruby2_keywords(name, *) # nil end end end main = TOPLEVEL_BINDING.eval('self') unless main.respond_to?(:ruby2_keywords, true) # call-seq: ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/samples/example_recursive.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/samples/example_recursive.rb
require 'zip' # This is a simple example which uses rubyzip to # recursively generate a zip file from the contents of # a specified directory. The directory itself is not # included in the archive, rather just its contents. # # Usage: # directory_to_zip = "/tmp/input" # output_file = "/tmp/out.zip" # zf = ZipFil...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/samples/qtzip.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/samples/qtzip.rb
#!/usr/bin/env ruby $VERBOSE = true $LOAD_PATH << '../lib' require 'Qt' system('rbuic -o zipdialogui.rb zipdialogui.ui') require 'zipdialogui.rb' require 'zip' a = Qt::Application.new(ARGV) class ZipDialog < ZipDialogUI def initialize super() connect(child('add_button'), SIGNAL('clicked()'), ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/samples/write_simple.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/samples/write_simple.rb
#!/usr/bin/env ruby $LOAD_PATH << '../lib' require 'zip' ::Zip::OutputStream.open('simple.zip') do |zos| zos.put_next_entry 'entry.txt' zos.puts 'Hello world' end
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/samples/example.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/samples/example.rb
#!/usr/bin/env ruby $LOAD_PATH << '../lib' system('zip example.zip example.rb gtk_ruby_zip.rb') require 'zip' ####### Using ZipInputStream alone: ####### Zip::InputStream.open('example.zip') do |zis| entry = zis.get_next_entry print "First line of '#{entry.name} (#{entry.size} bytes): " puts "'#{zis.gets.cho...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/samples/gtk_ruby_zip.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/samples/gtk_ruby_zip.rb
#!/usr/bin/env ruby $LOAD_PATH << '../lib' $VERBOSE = true require 'gtk' require 'zip' class MainApp < Gtk::Window def initialize super() set_usize(400, 256) set_title('rubyzip') signal_connect(Gtk::Window::SIGNAL_DESTROY) { Gtk.main_quit } box = Gtk::VBox.new(false, 0) add(box) @zip...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/samples/example_filesystem.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/samples/example_filesystem.rb
#!/usr/bin/env ruby $LOAD_PATH << '../lib' require 'zip/filesystem' EXAMPLE_ZIP = 'filesystem.zip' File.delete(EXAMPLE_ZIP) if File.exist?(EXAMPLE_ZIP) Zip::File.open(EXAMPLE_ZIP, Zip::File::CREATE) do |zf| zf.file.open('file1.txt', 'w') { |os| os.write 'first file1.txt' } zf.dir.mkdir('dir1') zf.dir.chdir('...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/samples/zipfind.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/samples/zipfind.rb
#!/usr/bin/env ruby $VERBOSE = true $LOAD_PATH << '../lib' require 'zip' require 'find' module Zip module ZipFind def self.find(path, zip_file_pattern = /\.zip$/i) Find.find(path) do |filename| yield(filename) next unless zip_file_pattern.match(filename) && File.file?(filename) ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip.rb
require 'English' require 'delegate' require 'singleton' require 'tempfile' require 'fileutils' require 'stringio' require 'zlib' require 'zip/constants' require 'zip/dos_time' require 'zip/ioextras' require 'rbconfig' require 'zip/entry' require 'zip/extra_field' require 'zip/entry_set' require 'zip/central_directory'...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/entry.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/entry.rb
require 'pathname' module Zip class Entry STORED = 0 DEFLATED = 8 # Language encoding flag (EFS) bit EFS = 0b100000000000 attr_accessor :comment, :compressed_size, :crc, :extra, :compression_method, :name, :size, :local_header_offset, :zipfile, :fstype, :external_file_attribut...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/version.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/version.rb
module Zip VERSION = '2.3.2' end
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/decompressor.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/decompressor.rb
module Zip class Decompressor #:nodoc:all CHUNK_SIZE = 32_768 def self.decompressor_classes @decompressor_classes ||= {} end def self.register(compression_method, decompressor_class) decompressor_classes[compression_method] = decompressor_class end def self.find_by_compression_m...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/errors.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/errors.rb
module Zip class Error < StandardError; end class EntryExistsError < Error; end class DestinationFileExistsError < Error; end class CompressionMethodError < Error; end class EntryNameError < Error; end class EntrySizeError < Error; end class InternalError < Error; end class GPFBit3Error < Error; end c...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/ioextras.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/ioextras.rb
module Zip module IOExtras #:nodoc: CHUNK_SIZE = 131_072 RANGE_ALL = 0..-1 class << self def copy_stream(ostream, istream) ostream.write(istream.read(CHUNK_SIZE, '')) until istream.eof? end def copy_stream_n(ostream, istream, nbytes) toread = nbytes while torea...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/file.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/file.rb
module Zip # ZipFile is modeled after java.util.zip.ZipFile from the Java SDK. # The most important methods are those inherited from # ZipCentralDirectory for accessing information about the entries in # the archive and methods such as get_input_stream and # get_output_stream for reading from and writing entr...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/null_compressor.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/null_compressor.rb
module Zip class NullCompressor < Compressor #:nodoc:all include Singleton def <<(_data) raise IOError, 'closed stream' end attr_reader :size, :compressed_size end end # Copyright (C) 2002, 2003 Thomas Sondergaard # rubyzip is free software; you can redistribute it and/or # modify it under ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/extra_field.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/extra_field.rb
module Zip class ExtraField < Hash ID_MAP = {} def initialize(binstr = nil) merge(binstr) if binstr end def extra_field_type_exist(binstr, id, len, index) field_name = ID_MAP[id].name if member?(field_name) self[field_name].merge(binstr[index, len + 4]) else f...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/pass_thru_compressor.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/pass_thru_compressor.rb
module Zip class PassThruCompressor < Compressor #:nodoc:all def initialize(output_stream) super() @output_stream = output_stream @crc = Zlib.crc32 @size = 0 end def <<(data) val = data.to_s @crc = Zlib.crc32(val, @crc) @size += val.bytesize @output_stream ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/constants.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/constants.rb
module Zip RUNNING_ON_WINDOWS = RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/i CENTRAL_DIRECTORY_ENTRY_SIGNATURE = 0x02014b50 CDIR_ENTRY_STATIC_HEADER_LENGTH = 46 LOCAL_ENTRY_SIGNATURE = 0x04034b50 LOCAL_ENTRY_STATIC_HEADER_LENGTH = 30 LOCAL_ENTRY_TRAILING_DESCRIPTOR_LENGTH ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/pass_thru_decompressor.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/pass_thru_decompressor.rb
module Zip class PassThruDecompressor < Decompressor #:nodoc:all def initialize(*args) super @read_so_far = 0 end def read(length = nil, outbuf = '') return (length.nil? || length.zero? ? '' : nil) if eof if length.nil? || (@read_so_far + length) > decompressed_size lengt...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/dos_time.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/dos_time.rb
module Zip class DOSTime < Time #:nodoc:all # MS-DOS File Date and Time format as used in Interrupt 21H Function 57H: # Register CX, the Time: # Bits 0-4 2 second increments (0-29) # Bits 5-10 minutes (0-59) # bits 11-15 hours (0-24) # Register DX, the Date: # Bits 0-4 day (1-31) # ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/inflater.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/inflater.rb
module Zip class Inflater < Decompressor #:nodoc:all def initialize(*args) super @buffer = +'' @zlib_inflater = ::Zlib::Inflate.new(-Zlib::MAX_WBITS) end def read(length = nil, outbuf = '') return (length.nil? || length.zero? ? '' : nil) if eof while length.nil? || (@buffe...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/deflater.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/deflater.rb
module Zip class Deflater < Compressor #:nodoc:all def initialize(output_stream, level = Zip.default_compression, encrypter = NullEncrypter.new) super() @output_stream = output_stream @zlib_deflater = ::Zlib::Deflate.new(level, -::Zlib::MAX_WBITS) @size = 0 @crc = ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/entry_set.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/entry_set.rb
module Zip class EntrySet #:nodoc:all include Enumerable attr_accessor :entry_set, :entry_order def initialize(an_enumerable = []) super() @entry_set = {} an_enumerable.each { |o| push(o) } end def include?(entry) @entry_set.include?(to_key(entry)) end def find_e...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/null_input_stream.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/null_input_stream.rb
module Zip module NullInputStream #:nodoc:all include ::Zip::NullDecompressor include ::Zip::IOExtras::AbstractInputStream end end # Copyright (C) 2002, 2003 Thomas Sondergaard # rubyzip is free software; you can redistribute it and/or # modify it under the terms of the ruby license.
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/streamable_stream.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/streamable_stream.rb
module Zip class StreamableStream < DelegateClass(Entry) # :nodoc:all def initialize(entry) super(entry) @temp_file = Tempfile.new(::File.basename(name)) @temp_file.binmode end def get_output_stream if block_given? begin yield(@temp_file) ensure ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/null_decompressor.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/null_decompressor.rb
module Zip module NullDecompressor #:nodoc:all module_function def read(_length = nil, _outbuf = nil) nil end def eof true end alias eof? eof end end # Copyright (C) 2002, 2003 Thomas Sondergaard # rubyzip is free software; you can redistribute it and/or # modify it under the...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/output_stream.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/output_stream.rb
module Zip # ZipOutputStream is the basic class for writing zip files. It is # possible to create a ZipOutputStream object directly, passing # the zip file name to the constructor, but more often than not # the ZipOutputStream will be obtained from a ZipFile (perhaps using the # ZipFileSystem interface) objec...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/input_stream.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/input_stream.rb
module Zip # InputStream is the basic class for reading zip entries in a # zip file. It is possible to create a InputStream object directly, # passing the zip file name to the constructor, but more often than not # the InputStream will be obtained from a File (perhaps using the # ZipFileSystem interface) obje...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/compressor.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/compressor.rb
module Zip class Compressor #:nodoc:all def finish; end end end # Copyright (C) 2002, 2003 Thomas Sondergaard # rubyzip is free software; you can redistribute it and/or # modify it under the terms of the ruby license.
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/filesystem.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/filesystem.rb
require 'zip' module Zip # The ZipFileSystem API provides an API for accessing entries in # a zip archive that is similar to ruby's builtin File and Dir # classes. # # Requiring 'zip/filesystem' includes this module in Zip::File # making the methods in this module available on Zip::File objects. # # Us...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/central_directory.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/central_directory.rb
module Zip class CentralDirectory include Enumerable END_OF_CDS = 0x06054b50 ZIP64_END_OF_CDS = 0x06064b50 ZIP64_EOCD_LOCATOR = 0x07064b50 MAX_END_OF_CDS_SIZE = 65_536 + 18 STATIC_EOCD_SIZE = 22 attr_reader :comment # Returns an Enumerable containing t...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/streamable_directory.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/streamable_directory.rb
module Zip class StreamableDirectory < Entry def initialize(zipfile, entry, src_path = nil, permission = nil) super(zipfile, entry) @ftype = :directory entry.get_extra_attributes_from_path(src_path) if src_path @unix_perms = permission if permission end end end # Copyright (C) 2002...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/extra_field/generic.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/extra_field/generic.rb
module Zip class ExtraField::Generic def self.register_map return unless const_defined?(:HEADER_ID) ::Zip::ExtraField::ID_MAP[const_get(:HEADER_ID)] = self end def self.name @name ||= to_s.split('::')[-1] end # return field [size, content] or false def initial_parse(binstr...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/extra_field/ntfs.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/extra_field/ntfs.rb
module Zip # PKWARE NTFS Extra Field (0x000a) # Only Tag 0x0001 is supported class ExtraField::NTFS < ExtraField::Generic HEADER_ID = [0x000A].pack('v') register_map WINDOWS_TICK = 10_000_000.0 SEC_TO_UNIX_EPOCH = 11_644_473_600 def initialize(binstr = nil) @ctime = nil @mtime = ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/extra_field/old_unix.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/extra_field/old_unix.rb
module Zip # Olf Info-ZIP Extra for UNIX uid/gid and file timestampes class ExtraField::OldUnix < ExtraField::Generic HEADER_ID = 'UX' register_map def initialize(binstr = nil) @uid = 0 @gid = 0 @atime = nil @mtime = nil binstr && merge(binstr) end attr_accessor :...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/extra_field/universal_time.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/extra_field/universal_time.rb
module Zip # Info-ZIP Additional timestamp field class ExtraField::UniversalTime < ExtraField::Generic HEADER_ID = 'UT' register_map ATIME_MASK = 0b010 CTIME_MASK = 0b100 MTIME_MASK = 0b001 def initialize(binstr = nil) @ctime = nil @mtime = nil @atime = nil @flag =...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/extra_field/zip64.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/extra_field/zip64.rb
module Zip # Info-ZIP Extra for Zip64 size class ExtraField::Zip64 < ExtraField::Generic attr_accessor :original_size, :compressed_size, :relative_header_offset, :disk_start_number HEADER_ID = ['0100'].pack('H*') register_map def initialize(binstr = nil) # unparsed binary; we don't actually k...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/extra_field/zip64_placeholder.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/extra_field/zip64_placeholder.rb
module Zip # placeholder to reserve space for a Zip64 extra information record, for the # local file header only, that we won't know if we'll need until after # we write the file data class ExtraField::Zip64Placeholder < ExtraField::Generic HEADER_ID = ['9999'].pack('H*') # this ID is used by other librarie...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/extra_field/unix.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/extra_field/unix.rb
module Zip # Info-ZIP Extra for UNIX uid/gid class ExtraField::IUnix < ExtraField::Generic HEADER_ID = 'Ux' register_map def initialize(binstr = nil) @uid = 0 @gid = 0 binstr && merge(binstr) end attr_accessor :uid, :gid def merge(binstr) return if binstr.empty? ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/ioextras/abstract_input_stream.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/ioextras/abstract_input_stream.rb
module Zip module IOExtras # Implements many of the convenience methods of IO # such as gets, getc, readline and readlines # depends on: input_finished?, produce_input and read module AbstractInputStream include Enumerable include FakeIO def initialize super @lineno ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/ioextras/abstract_output_stream.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/ioextras/abstract_output_stream.rb
module Zip module IOExtras # Implements many of the output convenience methods of IO. # relies on << module AbstractOutputStream include FakeIO def write(data) self << data data.to_s.bytesize end def print(*params) self << params.join($OUTPUT_FIELD_SEPARAT...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/crypto/traditional_encryption.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/crypto/traditional_encryption.rb
module Zip module TraditionalEncryption def initialize(password) @password = password reset_keys! end def header_bytesize 12 end def gp_flags 0x0001 | 0x0008 end protected def reset_keys! @key0 = 0x12345678 @key1 = 0x23456789 @key2 = 0x3456...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/crypto/encryption.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/crypto/encryption.rb
module Zip class Encrypter #:nodoc:all end class Decrypter end end # Copyright (C) 2002, 2003 Thomas Sondergaard # rubyzip is free software; you can redistribute it and/or # modify it under the terms of the ruby license.
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/crypto/decrypted_io.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/crypto/decrypted_io.rb
module Zip class DecryptedIo #:nodoc:all CHUNK_SIZE = 32_768 def initialize(io, decrypter) @io = io @decrypter = decrypter end def read(length = nil, outbuf = +'') return (length.nil? || length.zero? ? '' : nil) if eof while length.nil? || (buffer.bytesize < length) ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/crypto/null_encryption.rb
.bundles_cache/ruby/2.6.0/gems/rubyzip-2.3.2/lib/zip/crypto/null_encryption.rb
module Zip module NullEncryption def header_bytesize 0 end def gp_flags 0 end end class NullEncrypter < Encrypter include NullEncryption def header(_mtime) '' end def encrypt(data) data end def data_descriptor(_crc32, _compressed_size, _uncomprs...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/jekyll-optional-front-matter-0.3.2/lib/jekyll-optional-front-matter.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-optional-front-matter-0.3.2/lib/jekyll-optional-front-matter.rb
# frozen_string_literal: true require "jekyll" require "jekyll-optional-front-matter/generator" module JekyllOptionalFrontMatter # Case-insensitive array of filenames to exclude. All files must first # match the config-defined list of markdown extensions. If you'd like one # of these files included in your site...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/jekyll-optional-front-matter-0.3.2/lib/jekyll-optional-front-matter/version.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-optional-front-matter-0.3.2/lib/jekyll-optional-front-matter/version.rb
# frozen_string_literal: true module JekyllOptionalFrontMatter VERSION = "0.3.2" end
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/jekyll-optional-front-matter-0.3.2/lib/jekyll-optional-front-matter/generator.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-optional-front-matter-0.3.2/lib/jekyll-optional-front-matter/generator.rb
# frozen_string_literal: true module JekyllOptionalFrontMatter class Generator < Jekyll::Generator attr_accessor :site safe true priority :normal CONFIG_KEY = "optional_front_matter" ENABLED_KEY = "enabled" CLEANUP_KEY = "remove_originals" def initialize(site) @site = site en...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/test_helper.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/test_helper.rb
#!/usr/bin/env ruby ENV["MT_NO_EXPECTATIONS"] = "1" require 'minitest/autorun' $LOAD_PATH.unshift(File.join(File.expand_path(__dir__), '..', 'lib')) require 'liquid.rb' require 'liquid/profiler' mode = :strict if env_mode = ENV['LIQUID_PARSER_MODE'] puts "-- #{env_mode.upcase} ERROR MODE" mode = env_mode.to_sym ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/trim_mode_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/trim_mode_test.rb
require 'test_helper' class TrimModeTest < Minitest::Test include Liquid # Make sure the trim isn't applied to standard output def test_standard_output text = <<-END_TEMPLATE <div> <p> {{ 'John' }} </p> </div> END_TEMPLATE expected = <<-END_EXPECTED <div> ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/parsing_quirks_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/parsing_quirks_test.rb
require 'test_helper' class ParsingQuirksTest < Minitest::Test include Liquid def test_parsing_css text = " div { font-weight: bold; } " assert_equal text, Template.parse(text).render! end def test_raise_on_single_close_bracet assert_raises(SyntaxError) do Template.parse("text {{method} oh ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/template_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/template_test.rb
require 'test_helper' require 'timeout' class TemplateContextDrop < Liquid::Drop def liquid_method_missing(method) method end def foo 'fizzbuzz' end def baz @context.registers['lulz'] end end class SomethingWithLength < Liquid::Drop def length nil end end class ErroneousDrop < Liqui...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/variable_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/variable_test.rb
require 'test_helper' class VariableTest < Minitest::Test include Liquid def test_simple_variable template = Template.parse(%({{test}})) assert_equal 'worked', template.render!('test' => 'worked') assert_equal 'worked wonderfully', template.render!('test' => 'worked wonderfully') end def test_var...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/blank_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/blank_test.rb
require 'test_helper' class FoobarTag < Liquid::Tag def render(*args) " " end Liquid::Template.register_tag('foobar', FoobarTag) end class BlankTestFileSystem def read_template_file(template_path) template_path end end class BlankTest < Minitest::Test include Liquid N = 10 def wrap_in_for(b...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/document_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/document_test.rb
require 'test_helper' class DocumentTest < Minitest::Test include Liquid def test_unexpected_outer_tag exc = assert_raises(SyntaxError) do Template.parse("{% else %}") end assert_equal exc.message, "Liquid syntax error: Unexpected outer 'else' tag" end def test_unknown_tag exc = assert_...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/hash_ordering_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/hash_ordering_test.rb
require 'test_helper' class HashOrderingTest < Minitest::Test module MoneyFilter def money(input) sprintf(' %d$ ', input) end end module CanadianMoneyFilter def money(input) sprintf(' %d$ CAD ', input) end end include Liquid def test_global_register_order with_global_filt...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/capture_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/capture_test.rb
require 'test_helper' class CaptureTest < Minitest::Test include Liquid def test_captures_block_content_in_variable assert_template_result("test string", "{% capture 'var' %}test string{% endcapture %}{{var}}", {}) end def test_capture_with_hyphen_in_variable_name template_source = <<-END_TEMPLATE ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/filter_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/filter_test.rb
require 'test_helper' module MoneyFilter def money(input) sprintf(' %d$ ', input) end def money_with_underscore(input) sprintf(' %d$ ', input) end end module CanadianMoneyFilter def money(input) sprintf(' %d$ CAD ', input) end end module SubstituteFilter def substitute(input, params = {}) ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/context_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/context_test.rb
require 'test_helper' class ContextTest < Minitest::Test include Liquid def test_override_global_filter global = Module.new do def notice(output) "Global #{output}" end end local = Module.new do def notice(output) "Local #{output}" end end with_global_...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/security_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/security_test.rb
require 'test_helper' module SecurityFilter def add_one(input) "#{input} + 1" end end class SecurityTest < Minitest::Test include Liquid def setup @assigns = {} end def test_no_instance_eval text = %( {{ '1+1' | instance_eval }} ) expected = %( 1+1 ) assert_equal expected, Template....
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/output_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/output_test.rb
require 'test_helper' module FunnyFilter def make_funny(input) 'LOL' end def cite_funny(input) "LOL: #{input}" end def add_smiley(input, smiley = ":-)") "#{input} #{smiley}" end def add_tag(input, tag = "p", id = "foo") %(<#{tag} id="#{id}">#{input}</#{tag}>) end def paragraph(inp...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/assign_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/assign_test.rb
require 'test_helper' class AssignTest < Minitest::Test include Liquid def test_assign_with_hyphen_in_variable_name template_source = <<-END_TEMPLATE {% assign this-thing = 'Print this-thing' %} {{ this-thing }} END_TEMPLATE template = Template.parse(template_source) rendered = template.re...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/block_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/block_test.rb
require 'test_helper' class BlockTest < Minitest::Test include Liquid def test_unexpected_end_tag exc = assert_raises(SyntaxError) do Template.parse("{% if true %}{% endunless %}") end assert_equal exc.message, "Liquid syntax error: 'endunless' is not a valid delimiter for if tags. use endif" ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/parse_tree_visitor_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/parse_tree_visitor_test.rb
# frozen_string_literal: true require 'test_helper' class ParseTreeVisitorTest < Minitest::Test include Liquid def test_variable assert_equal( ["test"], visit(%({{ test }})) ) end def test_varible_with_filter assert_equal( ["test", "infilter"], visit(%({{ test | split: in...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/error_handling_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/error_handling_test.rb
require 'test_helper' class ErrorHandlingTest < Minitest::Test include Liquid def test_templates_parsed_with_line_numbers_renders_them_in_errors template = <<-LIQUID Hello, {{ errors.standard_error }} will raise a standard error. Bla bla test. {{ errors.syntax_error }} will raise a ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/render_profiling_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/render_profiling_test.rb
require 'test_helper' class RenderProfilingTest < Minitest::Test include Liquid class ProfilingFileSystem def read_template_file(template_path) "Rendering template {% assign template_name = '#{template_path}'%}\n{{ template_name }}" end end def setup Liquid::Template.file_system = Profiling...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/standard_filter_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/standard_filter_test.rb
# encoding: utf-8 require 'test_helper' class Filters include Liquid::StandardFilters end class TestThing attr_reader :foo def initialize @foo = 0 end def to_s "woot: #{@foo}" end def [](whatever) to_s end def to_liquid @foo += 1 self end end class TestDrop < Liquid::Drop...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/drop_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/drop_test.rb
require 'test_helper' class ContextDrop < Liquid::Drop def scopes @context.scopes.size end def scopes_as_array (1..@context.scopes.size).to_a end def loop_pos @context['forloop.index'] end def liquid_method_missing(method) @context[method] end end class ProductDrop < Liquid::Drop ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/tags/include_tag_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/tags/include_tag_test.rb
require 'test_helper' class TestFileSystem def read_template_file(template_path) case template_path when "product" "Product: {{ product.title }} " when "locale_variables" "Locale: {{echo1}} {{echo2}}" when "variant" "Variant: {{ variant.title }}" when "nested_template" ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/tags/unless_else_tag_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/tags/unless_else_tag_test.rb
require 'test_helper' class UnlessElseTagTest < Minitest::Test include Liquid def test_unless assert_template_result(' ', ' {% unless true %} this text should not go into the output {% endunless %} ') assert_template_result(' this text should go into the output ', ' {% unless false %} this text s...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/tags/break_tag_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/tags/break_tag_test.rb
require 'test_helper' class BreakTagTest < Minitest::Test include Liquid # tests that no weird errors are raised if break is called outside of a # block def test_break_with_no_block assigns = { 'i' => 1 } markup = '{% break %}' expected = '' assert_template_result(expected, markup, assigns) ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/tags/if_else_tag_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/tags/if_else_tag_test.rb
require 'test_helper' class IfElseTagTest < Minitest::Test include Liquid def test_if assert_template_result(' ', ' {% if false %} this text should not go into the output {% endif %} ') assert_template_result(' this text should go into the output ', ' {% if true %} this text should go into the ou...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/tags/statements_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/tags/statements_test.rb
require 'test_helper' class StatementsTest < Minitest::Test include Liquid def test_true_eql_true text = ' {% if true == true %} true {% else %} false {% endif %} ' assert_template_result ' true ', text end def test_true_not_eql_true text = ' {% if true != true %} true {% else %} false {% endif...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/tags/raw_tag_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/tags/raw_tag_test.rb
require 'test_helper' class RawTagTest < Minitest::Test include Liquid def test_tag_in_raw assert_template_result '{% comment %} test {% endcomment %}', '{% raw %}{% comment %} test {% endcomment %}{% endraw %}' end def test_output_in_raw assert_template_result '{{ test }}', '{% raw %}{{ test }...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/tags/table_row_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/tags/table_row_test.rb
require 'test_helper' class TableRowTest < Minitest::Test include Liquid class ArrayDrop < Liquid::Drop include Enumerable def initialize(array) @array = array end def each(&block) @array.each(&block) end end def test_table_row assert_template_result("<tr class=\"row1\">...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/tags/for_tag_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/tags/for_tag_test.rb
require 'test_helper' class ThingWithValue < Liquid::Drop def value 3 end end class ForTagTest < Minitest::Test include Liquid def test_for assert_template_result(' yo yo yo yo ', '{%for item in array%} yo {%endfor%}', 'array' => [1, 2, 3, 4]) assert_template_result('yoyo', '{%for item in arra...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/tags/increment_tag_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/tags/increment_tag_test.rb
require 'test_helper' class IncrementTagTest < Minitest::Test include Liquid def test_inc assert_template_result('0', '{%increment port %}', {}) assert_template_result('0 1', '{%increment port %} {%increment port%}', {}) assert_template_result('0 0 1 2 1', '{%increment port %} {%increment starbo...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/tags/standard_tag_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/tags/standard_tag_test.rb
require 'test_helper' class StandardTagTest < Minitest::Test include Liquid def test_no_transform assert_template_result('this text should come out of the template without change...', 'this text should come out of the template without change...') assert_template_result('blah', 'blah') assert_te...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/tags/continue_tag_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/integration/tags/continue_tag_test.rb
require 'test_helper' class ContinueTagTest < Minitest::Test include Liquid # tests that no weird errors are raised if continue is called outside of a # block def test_continue_with_no_block assigns = {} markup = '{% continue %}' expected = '' assert_template_result(expected, markup, assigns)...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/unit/block_unit_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/unit/block_unit_test.rb
require 'test_helper' class BlockUnitTest < Minitest::Test include Liquid def test_blankspace template = Liquid::Template.parse(" ") assert_equal [" "], template.root.nodelist end def test_variable_beginning template = Liquid::Template.parse("{{funk}} ") assert_equal 2, template.root.nodel...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/unit/tokenizer_unit_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/unit/tokenizer_unit_test.rb
require 'test_helper' class TokenizerTest < Minitest::Test def test_tokenize_strings assert_equal [' '], tokenize(' ') assert_equal ['hello world'], tokenize('hello world') end def test_tokenize_variables assert_equal ['{{funk}}'], tokenize('{{funk}}') assert_equal [' ', '{{funk}}', ' '], tokeni...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/unit/i18n_unit_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/unit/i18n_unit_test.rb
require 'test_helper' class I18nUnitTest < Minitest::Test include Liquid def setup @i18n = I18n.new(fixture("en_locale.yml")) end def test_simple_translate_string assert_equal "less is more", @i18n.translate("simple") end def test_nested_translate_string assert_equal "something wasn't right"...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/unit/lexer_unit_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/unit/lexer_unit_test.rb
require 'test_helper' class LexerUnitTest < Minitest::Test include Liquid def test_strings tokens = Lexer.new(%( 'this is a test""' "wat 'lol'")).tokenize assert_equal [[:string, %('this is a test""')], [:string, %("wat 'lol'")], [:end_of_string]], tokens end def test_integer tokens = Lexer.new('...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/unit/condition_unit_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/unit/condition_unit_test.rb
require 'test_helper' class ConditionUnitTest < Minitest::Test include Liquid def setup @context = Liquid::Context.new end def test_basic_condition assert_equal false, Condition.new(1, '==', 2).evaluate assert_equal true, Condition.new(1, '==', 1).evaluate end def test_default_operators_eva...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/unit/parser_unit_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/unit/parser_unit_test.rb
require 'test_helper' class ParserUnitTest < Minitest::Test include Liquid def test_consume p = Parser.new("wat: 7") assert_equal 'wat', p.consume(:id) assert_equal ':', p.consume(:colon) assert_equal '7', p.consume(:number) end def test_jump p = Parser.new("wat: 7") p.jump(2) ass...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/unit/strainer_unit_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/unit/strainer_unit_test.rb
require 'test_helper' class StrainerUnitTest < Minitest::Test include Liquid module AccessScopeFilters def public_filter "public" end def private_filter "private" end private :private_filter end Strainer.global_filter(AccessScopeFilters) def test_strainer strainer = St...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/unit/variable_unit_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/unit/variable_unit_test.rb
require 'test_helper' class VariableUnitTest < Minitest::Test include Liquid def test_variable var = create_variable('hello') assert_equal VariableLookup.new('hello'), var.name end def test_filters var = create_variable('hello | textileze') assert_equal VariableLookup.new('hello'), var.name ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/unit/regexp_unit_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/unit/regexp_unit_test.rb
require 'test_helper' class RegexpUnitTest < Minitest::Test include Liquid def test_empty assert_equal [], ''.scan(QuotedFragment) end def test_quote assert_equal ['"arg 1"'], '"arg 1"'.scan(QuotedFragment) end def test_words assert_equal ['arg1', 'arg2'], 'arg1 arg2'.scan(QuotedFragment) ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/unit/template_unit_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/unit/template_unit_test.rb
require 'test_helper' class TemplateUnitTest < Minitest::Test include Liquid def test_sets_default_localization_in_document t = Template.new t.parse('{%comment%}{%endcomment%}') assert_instance_of I18n, t.root.nodelist[0].options[:locale] end def test_sets_default_localization_in_context_with_qui...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/unit/context_unit_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/unit/context_unit_test.rb
require 'test_helper' class HundredCentes def to_liquid 100 end end class CentsDrop < Liquid::Drop def amount HundredCentes.new end def non_zero? true end end class ContextSensitiveDrop < Liquid::Drop def test @context['test'] end end class Category < Liquid::Drop attr_accessor :n...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/unit/tag_unit_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/unit/tag_unit_test.rb
require 'test_helper' class TagUnitTest < Minitest::Test include Liquid def test_tag tag = Tag.parse('tag', "", Tokenizer.new(""), ParseContext.new) assert_equal 'liquid::tag', tag.name assert_equal '', tag.render(Context.new) end def test_return_raw_text_of_tag tag = Tag.parse("long_tag", "p...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/unit/file_system_unit_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/unit/file_system_unit_test.rb
require 'test_helper' class FileSystemUnitTest < Minitest::Test include Liquid def test_default assert_raises(FileSystemError) do BlankFileSystem.new.read_template_file("dummy") end end def test_local file_system = Liquid::LocalFileSystem.new("/some/path") assert_equal "/some/path/_mypa...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/unit/tags/if_tag_unit_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/unit/tags/if_tag_unit_test.rb
require 'test_helper' class IfTagUnitTest < Minitest::Test def test_if_nodelist template = Liquid::Template.parse('{% if true %}IF{% else %}ELSE{% endif %}') assert_equal ['IF', 'ELSE'], template.root.nodelist[0].nodelist.map(&:nodelist).flatten end end
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/unit/tags/case_tag_unit_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/unit/tags/case_tag_unit_test.rb
require 'test_helper' class CaseTagUnitTest < Minitest::Test include Liquid def test_case_nodelist template = Liquid::Template.parse('{% case var %}{% when true %}WHEN{% else %}ELSE{% endcase %}') assert_equal ['WHEN', 'ELSE'], template.root.nodelist[0].nodelist.map(&:nodelist).flatten end end
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/unit/tags/for_tag_unit_test.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/test/unit/tags/for_tag_unit_test.rb
require 'test_helper' class ForTagUnitTest < Minitest::Test def test_for_nodelist template = Liquid::Template.parse('{% for item in items %}FOR{% endfor %}') assert_equal ['FOR'], template.root.nodelist[0].nodelist.map(&:nodelist).flatten end def test_for_else_nodelist template = Liquid::Template.pa...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/lib/liquid.rb
.bundles_cache/ruby/2.6.0/gems/liquid-4.0.4/lib/liquid.rb
# Copyright (c) 2005 Tobias Luetke # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # dis...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false