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/dnsruby-1.70.0/lib/dnsruby/resource/NAPTR.rb | .bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NAPTR.rb | # --
# Copyright 2007 Nominet UK
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | 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/dnsruby-1.70.0/lib/dnsruby/resource/IN.rb | .bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/IN.rb | # --
# Copyright 2007 Nominet UK
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | 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/dnsruby-1.70.0/lib/dnsruby/resource/LOC.rb | .bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/LOC.rb | # --
# Copyright 2007 Nominet UK
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | 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/dnsruby-1.70.0/lib/dnsruby/resource/RR.rb | .bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/RR.rb | # Superclass for all Dnsruby resource records.
#
# Represents a DNS RR (resource record) [RFC1035, section 3.2]
#
# Use Dnsruby::RR::create(...) to create a new RR record.
#
# mx = Dnsruby::RR.create("example.com. 7200 MX 10 mailhost.example.com.")
#
# rr = Dnsruby::RR.create({:name => "example.com", :type => "MX",... | 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/dnsruby-1.70.0/lib/dnsruby/resource/type_bitmap.rb | .bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/type_bitmap.rb | 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/dnsruby-1.70.0/lib/dnsruby/resource/NSEC.rb | .bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NSEC.rb | # --
# Copyright 2007 Nominet UK
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | 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/dnsruby-1.70.0/lib/dnsruby/message/decoder.rb | .bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/decoder.rb | module Dnsruby
# This class decodes a binary string containing the raw bytes of the message
# as in coming over the wire from a nameserver, and parses it into a
# Dnsruby::Message.
class MessageDecoder #:nodoc: all
# Keeps a running @index containing the current position (like a cursor)
# into the binary string. ... | 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/dnsruby-1.70.0/lib/dnsruby/message/section.rb | .bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/section.rb | module Dnsruby
class Section < Array
def initialize(msg = nil)
@msg = msg
super(0)
end
# Return the rrset of the specified type in this section
def rrset(name, type=Types.A, klass=Classes::IN)
rrs = select{|rr|
type_ok = (rr.type==type)
if rr.type == Types::RRSIG
type_ok = (rr... | 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/dnsruby-1.70.0/lib/dnsruby/message/message.rb | .bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/message.rb | # --
# Copyright 2007 Nominet UK
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | 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/dnsruby-1.70.0/lib/dnsruby/message/encoder.rb | .bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/encoder.rb | module Dnsruby
class MessageEncoder #:nodoc: all
def initialize
@data = ''
@names = {}
yield self if block_given?
end
def to_s
@data
end
def put_bytes(d)
@data << d
end
def put_pack(template, *d)
begin
@data << d.pack(template)
rescue Encoding::CompatibilityError
... | 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/dnsruby-1.70.0/lib/dnsruby/message/question.rb | .bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/question.rb | # A Dnsruby::Question object represents a record in the
# question section of a DNS packet.
#
# RFC 1035 Section 4.1.2
module Dnsruby
class Question
# The Question name
attr_reader :qname
# The Question type
attr_reader :qtype
# The Question class
attr_reader :qclass
# Creates a question object fro... | 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/dnsruby-1.70.0/lib/dnsruby/message/header.rb | .bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/header.rb | module Dnsruby
# The header portion of a DNS packet
#
# RFC 1035 Section 4.1.1
class Header
MAX_ID = 65535
# The header ID
attr_accessor :id
# The query response flag
attr_accessor :qr
# Authoritative answer flag
attr_accessor :aa
# Truncated flag
attr_accessor :tc
# Recursion Desired fl... | 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/dnsruby-1.70.0/demo/mresolv.rb | .bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/demo/mresolv.rb | #! /usr/bin/env ruby
# --
# Copyright 2007 Nominet UK
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 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/dnsruby-1.70.0/demo/trace_dns.rb | .bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/demo/trace_dns.rb | #! /usr/bin/env ruby
# --
# Copyright 2007 Nominet UK
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 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/dnsruby-1.70.0/demo/digroot.rb | .bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/demo/digroot.rb | #! /usr/bin/env ruby
# --
# Copyright 2007 Nominet UK
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 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/dnsruby-1.70.0/demo/digdlv.rb | .bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/demo/digdlv.rb | #! /usr/bin/env ruby
# --
# Copyright 2007 Nominet UK
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | 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/dnsruby-1.70.0/demo/rubydig.rb | .bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/demo/rubydig.rb | #! /usr/bin/env ruby
# --
# Copyright 2007 Nominet UK
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 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/dnsruby-1.70.0/demo/check_soa.rb | .bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/demo/check_soa.rb | #! /usr/bin/env ruby
# --
# Copyright 2007 Nominet UK
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 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/dnsruby-1.70.0/demo/axfr.rb | .bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/demo/axfr.rb | #! /usr/bin/env ruby
# --
# Copyright 2007 Nominet UK
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | 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/dnsruby-1.70.0/demo/example_recurse.rb | .bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/demo/example_recurse.rb | #! /usr/bin/env ruby
# --
# Copyright 2007 Nominet UK
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 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/dnsruby-1.70.0/demo/mx.rb | .bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/demo/mx.rb | #! /usr/bin/env ruby
# --
# Copyright 2007 Nominet UK
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 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/dnsruby-1.70.0/demo/check_zone.rb | .bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/demo/check_zone.rb | #! /usr/bin/env ruby
# --
# Copyright 2007 Nominet UK
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 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-commonmark-ghpages-0.4.0/spec/spec_helper.rb | .bundles_cache/ruby/2.6.0/gems/jekyll-commonmark-ghpages-0.4.0/spec/spec_helper.rb | require "rspec/expectations"
require File.expand_path("../lib/jekyll-commonmark-ghpages.rb", File.dirname(__FILE__))
RSpec.configure do |config|
config.run_all_when_everything_filtered = true
config.order = "random"
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-commonmark-ghpages-0.4.0/spec/test_spec.rb | .bundles_cache/ruby/2.6.0/gems/jekyll-commonmark-ghpages-0.4.0/spec/test_spec.rb | require "spec_helper"
describe JekyllCommonMarkCustomRenderer do
let(:renderer) { JekyllCommonMarkCustomRenderer.new }
subject { renderer.render(doc) }
context "headers" do
let(:doc) { CommonMarker.render_doc("# Hello\n\n## Hi, world!") }
it { is_expected.to match %r{<h1 id="hello">Hello</h1>} }
it ... | 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-commonmark-ghpages-0.4.0/lib/jekyll-commonmark-ghpages.rb | .bundles_cache/ruby/2.6.0/gems/jekyll-commonmark-ghpages-0.4.0/lib/jekyll-commonmark-ghpages.rb | # frozen-string-literal: true
# encoding: utf-8
require "commonmarker"
require "jekyll"
require "jekyll-commonmark"
require "rouge"
# A customized version of CommonMarker::HtmlRenderer which:
# - outputs Kramdown-style header IDs.
# - performs syntax highlighting in code blocks.
class JekyllCommonMarkCustomRenderer <... | 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/commonmarker-0.23.9/ext/commonmarker/extconf.rb | .bundles_cache/ruby/2.6.0/gems/commonmarker-0.23.9/ext/commonmarker/extconf.rb | # frozen_string_literal: true
require 'mkmf'
$CFLAGS << ' -std=c99'
create_makefile('commonmarker/commonmarker')
| 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/commonmarker-0.23.9/lib/commonmarker.rb | .bundles_cache/ruby/2.6.0/gems/commonmarker-0.23.9/lib/commonmarker.rb | #!/usr/bin/env ruby
# frozen_string_literal: true
require "commonmarker/commonmarker"
require "commonmarker/config"
require "commonmarker/node"
require "commonmarker/renderer"
require "commonmarker/renderer/html_renderer"
require "commonmarker/version"
begin
require "awesome_print"
rescue LoadError; end # rubocop:d... | 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/commonmarker-0.23.9/lib/commonmarker/version.rb | .bundles_cache/ruby/2.6.0/gems/commonmarker-0.23.9/lib/commonmarker/version.rb | # frozen_string_literal: true
module CommonMarker
VERSION = "0.23.9"
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/commonmarker-0.23.9/lib/commonmarker/node.rb | .bundles_cache/ruby/2.6.0/gems/commonmarker-0.23.9/lib/commonmarker/node.rb | # frozen_string_literal: true
require "commonmarker/node/inspect"
module CommonMarker
class Node
include Enumerable
include Inspect
# Public: An iterator that "walks the tree," descending into children recursively.
#
# blk - A {Proc} representing the action to take for each child
def walk(&... | 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/commonmarker-0.23.9/lib/commonmarker/renderer.rb | .bundles_cache/ruby/2.6.0/gems/commonmarker-0.23.9/lib/commonmarker/renderer.rb | # frozen_string_literal: true
require "set"
require "stringio"
module CommonMarker
class Renderer
attr_accessor :in_tight, :warnings, :in_plain
def initialize(options: :DEFAULT, extensions: [])
@opts = Config.process_options(options, :render)
@stream = StringIO.new(+"")
@need_blocksep = 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/commonmarker-0.23.9/lib/commonmarker/config.rb | .bundles_cache/ruby/2.6.0/gems/commonmarker-0.23.9/lib/commonmarker/config.rb | # frozen_string_literal: true
module CommonMarker
# For Ruby::Enum, these must be classes, not modules
module Config
# See https://github.com/github/cmark-gfm/blob/master/src/cmark-gfm.h#L673
OPTS = {
parse: {
DEFAULT: 0,
SOURCEPOS: (1 << 1),
UNSAFE: (1 << 17),
VALIDAT... | 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/commonmarker-0.23.9/lib/commonmarker/renderer/html_renderer.rb | .bundles_cache/ruby/2.6.0/gems/commonmarker-0.23.9/lib/commonmarker/renderer/html_renderer.rb | # frozen_string_literal: true
module CommonMarker
class HtmlRenderer < Renderer
def document(_)
super
out("</ol>\n</section>\n") if @written_footnote_ix
end
def header(node)
block do
out("<h", node.header_level, "#{sourcepos(node)}>", :children,
"</h", node.header_lev... | 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/commonmarker-0.23.9/lib/commonmarker/node/inspect.rb | .bundles_cache/ruby/2.6.0/gems/commonmarker-0.23.9/lib/commonmarker/node/inspect.rb | # frozen_string_literal: true
require "pp"
module CommonMarker
class Node
module Inspect
PP_INDENT_SIZE = 2
def inspect
PP.pp(self, +"", Float::INFINITY)
end
# @param printer [PrettyPrint] pp
def pretty_print(printer)
printer.group(PP_INDENT_SIZE, "#<#{self.class}... | 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/rexml-3.2.5/lib/rexml.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml.rb | # frozen_string_literal: true
require_relative "rexml/document"
| 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/rexml-3.2.5/lib/rexml/security.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/security.rb | # frozen_string_literal: false
module REXML
module Security
@@entity_expansion_limit = 10_000
# Set the entity expansion limit. By default the limit is set to 10000.
def self.entity_expansion_limit=( val )
@@entity_expansion_limit = val
end
# Get the entity expansion limit. By default 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/rexml-3.2.5/lib/rexml/undefinednamespaceexception.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/undefinednamespaceexception.rb | # frozen_string_literal: false
require_relative 'parseexception'
module REXML
class UndefinedNamespaceException < ParseException
def initialize( prefix, source, parser )
super( "Undefined prefix #{prefix} found" )
end
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/rexml-3.2.5/lib/rexml/streamlistener.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/streamlistener.rb | # frozen_string_literal: false
module REXML
# A template for stream parser listeners.
# Note that the declarations (attlistdecl, elementdecl, etc) are trivially
# processed; REXML doesn't yet handle doctype entity declarations, so you
# have to parse them out yourself.
module StreamListener
# Called when ... | 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/rexml-3.2.5/lib/rexml/source.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/source.rb | # coding: US-ASCII
# frozen_string_literal: false
require_relative 'encoding'
module REXML
# Generates Source-s. USE THIS CLASS.
class SourceFactory
# Generates a Source object
# @param arg Either a String, or an IO
# @return a Source, or nil if a bad argument was given
def SourceFactory::create_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/rexml-3.2.5/lib/rexml/xmldecl.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/xmldecl.rb | # frozen_string_literal: false
require_relative 'encoding'
require_relative 'source'
module REXML
# NEEDS DOCUMENTATION
class XMLDecl < Child
include Encoding
DEFAULT_VERSION = "1.0"
DEFAULT_ENCODING = "UTF-8"
DEFAULT_STANDALONE = "no"
START = "<?xml"
STOP = "?>"
attr_accessor :versi... | 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/rexml-3.2.5/lib/rexml/element.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/element.rb | # frozen_string_literal: false
require_relative "parent"
require_relative "namespace"
require_relative "attribute"
require_relative "cdata"
require_relative "xpath"
require_relative "parseexception"
module REXML
# An implementation note about namespaces:
# As we parse, when we find namespaces we put them in a hash... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | true |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/xpath.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/xpath.rb | # frozen_string_literal: false
require_relative 'functions'
require_relative 'xpath_parser'
module REXML
# Wrapper class. Use this class to access the XPath functions.
class XPath
include Functions
# A base Hash object, supposing to be used when initializing a
# default empty namespaces set, but is cu... | 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/rexml-3.2.5/lib/rexml/child.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/child.rb | # frozen_string_literal: false
require_relative "node"
module REXML
##
# A Child object is something contained by a parent, and this class
# contains methods to support that. Most user code will not use this
# class directly.
class Child
include Node
attr_reader :parent # The Parent of this ... | 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/rexml-3.2.5/lib/rexml/sax2listener.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/sax2listener.rb | # frozen_string_literal: false
module REXML
# A template for stream parser listeners.
# Note that the declarations (attlistdecl, elementdecl, etc) are trivially
# processed; REXML doesn't yet handle doctype entity declarations, so you
# have to parse them out yourself.
# === Missing methods from SAX2
# ign... | 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/rexml-3.2.5/lib/rexml/parseexception.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/parseexception.rb | # frozen_string_literal: false
module REXML
class ParseException < RuntimeError
attr_accessor :source, :parser, :continued_exception
def initialize( message, source=nil, parser=nil, exception=nil )
super(message)
@source = source
@parser = parser
@continued_exception = exception
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/rexml-3.2.5/lib/rexml/text.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/text.rb | # frozen_string_literal: false
require_relative 'security'
require_relative 'entity'
require_relative 'doctype'
require_relative 'child'
require_relative 'doctype'
require_relative 'parseexception'
module REXML
# Represents text nodes in an XML document
class Text < Child
include Comparable
# The order 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/rexml-3.2.5/lib/rexml/xmltokens.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/xmltokens.rb | # frozen_string_literal: false
module REXML
# Defines a number of tokens used for parsing XML. Not for general
# consumption.
module XMLTokens
# From http://www.w3.org/TR/REC-xml/#sec-common-syn
#
# [4] NameStartChar ::=
# ":" |
# [A-Z] |
# "_" |
# [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/rexml-3.2.5/lib/rexml/namespace.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/namespace.rb | # frozen_string_literal: false
require_relative 'xmltokens'
module REXML
# Adds named attributes to an object.
module Namespace
# The name of the object, valid if set
attr_reader :name, :expanded_name
# The expanded name of the object, valid if name is set
attr_accessor :prefix
include XMLToke... | 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/rexml-3.2.5/lib/rexml/node.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/node.rb | # frozen_string_literal: false
require_relative "parseexception"
require_relative "formatters/pretty"
require_relative "formatters/default"
module REXML
# Represents a node in the tree. Nodes are never encountered except as
# superclasses of other objects. Nodes have siblings.
module Node
# @return the nex... | 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/rexml-3.2.5/lib/rexml/entity.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/entity.rb | # frozen_string_literal: false
require_relative 'child'
require_relative 'source'
require_relative 'xmltokens'
module REXML
class Entity < Child
include XMLTokens
PUBIDCHAR = "\x20\x0D\x0Aa-zA-Z0-9\\-()+,./:=?;!*@$_%#"
SYSTEMLITERAL = %Q{((?:"[^"]*")|(?:'[^']*'))}
PUBIDLITERAL = %Q{("[#{PUBIDCHAR}']*... | 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/rexml-3.2.5/lib/rexml/attribute.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/attribute.rb | # frozen_string_literal: false
require_relative "namespace"
require_relative 'text'
module REXML
# Defines an Element Attribute; IE, a attribute=value pair, as in:
# <element attribute="value"/>. Attributes can be in their own
# namespaces. General users of REXML will not interact with the
# Attribute class ... | 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/rexml-3.2.5/lib/rexml/output.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/output.rb | # frozen_string_literal: false
require_relative 'encoding'
module REXML
class Output
include Encoding
attr_reader :encoding
def initialize real_IO, encd="iso-8859-1"
@output = real_IO
self.encoding = encd
@to_utf = encoding != 'UTF-8'
if encoding == "UTF-16"
@output <<... | 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/rexml-3.2.5/lib/rexml/quickpath.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/quickpath.rb | # frozen_string_literal: false
require_relative 'functions'
require_relative 'xmltokens'
module REXML
class QuickPath
include Functions
include XMLTokens
# A base Hash object to be used when initializing a
# default empty namespaces set.
EMPTY_HASH = {}
def QuickPath::first element, path, 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/rexml-3.2.5/lib/rexml/encoding.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/encoding.rb | # coding: US-ASCII
# frozen_string_literal: false
module REXML
module Encoding
# ID ---> Encoding name
attr_reader :encoding
def encoding=(encoding)
encoding = encoding.name if encoding.is_a?(Encoding)
if encoding.is_a?(String)
original_encoding = encoding
encoding = find_encod... | 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/rexml-3.2.5/lib/rexml/cdata.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/cdata.rb | # frozen_string_literal: false
require_relative "text"
module REXML
class CData < Text
START = '<![CDATA['
STOP = ']]>'
ILLEGAL = /(\]\]>)/
# Constructor. CData is data between <![CDATA[ ... ]]>
#
# _Examples_
# CData.new( source )
# CData.new( "Here is some CDATA" )
# CDat... | 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/rexml-3.2.5/lib/rexml/instruction.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/instruction.rb | # frozen_string_literal: false
require_relative "child"
require_relative "source"
module REXML
# Represents an XML Instruction; IE, <? ... ?>
# TODO: Add parent arg (3rd arg) to constructor
class Instruction < Child
START = "<?"
STOP = "?>"
# target is the "name" of the Instruction; IE, the "tag" i... | 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/rexml-3.2.5/lib/rexml/attlistdecl.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/attlistdecl.rb | # frozen_string_literal: false
#vim:ts=2 sw=2 noexpandtab:
require_relative 'child'
require_relative 'source'
module REXML
# This class needs:
# * Documentation
# * Work! Not all types of attlists are intelligently parsed, so we just
# spew back out what we get in. This works, but it would be better if
# w... | 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/rexml-3.2.5/lib/rexml/comment.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/comment.rb | # frozen_string_literal: false
require_relative "child"
module REXML
##
# Represents an XML comment; that is, text between \<!-- ... -->
class Comment < Child
include Comparable
START = "<!--"
STOP = "-->"
# The content text
attr_accessor :string
##
# Constructor. The first argume... | 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/rexml-3.2.5/lib/rexml/rexml.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/rexml.rb | # -*- coding: utf-8 -*-
# frozen_string_literal: false
#
# \Module \REXML provides classes and methods for parsing,
# editing, and generating XML.
#
# == Implementation
#
# \REXML:
# - Is pure Ruby.
# - Provides tree, stream, SAX2, pull, and lightweight APIs.
# - Conforms to {XML version 1.0}[https://www.w3.org/TR/REC-... | 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/rexml-3.2.5/lib/rexml/parent.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/parent.rb | # frozen_string_literal: false
require_relative "child"
module REXML
# A parent has children, and has methods for accessing them. The Parent
# class is never encountered except as the superclass for some other
# object.
class Parent < Child
include Enumerable
# Constructor
# @param parent if supp... | 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/rexml-3.2.5/lib/rexml/functions.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/functions.rb | # frozen_string_literal: false
module REXML
# If you add a method, keep in mind two things:
# (1) the first argument will always be a list of nodes from which to
# filter. In the case of context methods (such as position), the function
# should return an array with a value for each child in the array.
# (2) ... | 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/rexml-3.2.5/lib/rexml/xpath_parser.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/xpath_parser.rb | # frozen_string_literal: false
require "pp"
require_relative 'namespace'
require_relative 'xmltokens'
require_relative 'attribute'
require_relative 'parsers/xpathparser'
module REXML
module DClonable
refine Object do
# provides a unified +clone+ operation, for REXML::XPathParser
# to use across mul... | 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/rexml-3.2.5/lib/rexml/document.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/document.rb | # frozen_string_literal: false
require_relative "security"
require_relative "element"
require_relative "xmldecl"
require_relative "source"
require_relative "comment"
require_relative "doctype"
require_relative "instruction"
require_relative "rexml"
require_relative "parseexception"
require_relative "output"
require_rel... | 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/rexml-3.2.5/lib/rexml/doctype.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/doctype.rb | # frozen_string_literal: false
require_relative "parent"
require_relative "parseexception"
require_relative "namespace"
require_relative 'entity'
require_relative 'attlistdecl'
require_relative 'xmltokens'
module REXML
class ReferenceWriter
def initialize(id_type,
public_id_literal,
... | 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/rexml-3.2.5/lib/rexml/validation/validationexception.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/validation/validationexception.rb | # frozen_string_literal: false
module REXML
module Validation
class ValidationException < RuntimeError
def initialize msg
super
end
end
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/rexml-3.2.5/lib/rexml/validation/relaxng.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/validation/relaxng.rb | # frozen_string_literal: false
require_relative "validation"
require_relative "../parsers/baseparser"
module REXML
module Validation
# Implemented:
# * empty
# * element
# * attribute
# * text
# * optional
# * choice
# * oneOrMore
# * zeroOrMore
# * group
# * value
# *... | 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/rexml-3.2.5/lib/rexml/validation/validation.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/validation/validation.rb | # frozen_string_literal: false
require_relative 'validationexception'
module REXML
module Validation
module Validator
NILEVENT = [ nil ]
def reset
@current = @root
@root.reset
@root.previous = true
@attr_stack = []
self
end
def dump
puts @ro... | 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/rexml-3.2.5/lib/rexml/dtd/notationdecl.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/dtd/notationdecl.rb | # frozen_string_literal: false
require_relative "../child"
module REXML
module DTD
class NotationDecl < Child
START = "<!NOTATION"
START_RE = /^\s*#{START}/um
PUBLIC = /^\s*#{START}\s+(\w[\w-]*)\s+(PUBLIC)\s+((["']).*?\4)\s*>/um
SYSTEM = /^\s*#{START}\s+(\w[\w-]*)\s+(SYSTEM)\s+((["']).*?\4... | 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/rexml-3.2.5/lib/rexml/dtd/elementdecl.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/dtd/elementdecl.rb | # frozen_string_literal: false
require_relative "../child"
module REXML
module DTD
class ElementDecl < Child
START = "<!ELEMENT"
START_RE = /^\s*#{START}/um
# PATTERN_RE = /^\s*(#{START}.*?)>/um
PATTERN_RE = /^\s*#{START}\s+((?:[:\w][-\.\w]*:)?[-!\*\.\w]*)(.*?)>/
#\s*((((["']).*?\5)|... | 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/rexml-3.2.5/lib/rexml/dtd/entitydecl.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/dtd/entitydecl.rb | # frozen_string_literal: false
require_relative "../child"
module REXML
module DTD
class EntityDecl < Child
START = "<!ENTITY"
START_RE = /^\s*#{START}/um
PUBLIC = /^\s*#{START}\s+(?:%\s+)?(\w+)\s+PUBLIC\s+((["']).*?\3)\s+((["']).*?\5)\s*>/um
SYSTEM = /^\s*#{START}\s+(?:%\s+)?(\w+)\s+SYSTE... | 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/rexml-3.2.5/lib/rexml/dtd/attlistdecl.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/dtd/attlistdecl.rb | # frozen_string_literal: false
require_relative "../child"
module REXML
module DTD
class AttlistDecl < Child
START = "<!ATTLIST"
START_RE = /^\s*#{START}/um
PATTERN_RE = /\s*(#{START}.*?>)/um
end
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/rexml-3.2.5/lib/rexml/dtd/dtd.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/dtd/dtd.rb | # frozen_string_literal: false
require_relative "elementdecl"
require_relative "entitydecl"
require_relative "../comment"
require_relative "notationdecl"
require_relative "attlistdecl"
require_relative "../parent"
module REXML
module DTD
class Parser
def Parser.parse( input )
case input
whe... | 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/rexml-3.2.5/lib/rexml/light/node.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/light/node.rb | # frozen_string_literal: false
require_relative '../xmltokens'
module REXML
module Light
# Represents a tagged XML element. Elements are characterized by
# having children, attributes, and names, and can themselves be
# children.
class Node
NAMESPLIT = /^(?:(#{XMLTokens::NCNAME_STR}):)?(#{XMLT... | 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/rexml-3.2.5/lib/rexml/formatters/default.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/formatters/default.rb | # frozen_string_literal: false
module REXML
module Formatters
class Default
# Prints out the XML document with no formatting -- except if ie_hack is
# set.
#
# ie_hack::
# If set to true, then inserts whitespace before the close of an empty
# tag, so that IE's bad XML pars... | 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/rexml-3.2.5/lib/rexml/formatters/transitive.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/formatters/transitive.rb | # frozen_string_literal: false
require_relative 'pretty'
module REXML
module Formatters
# The Transitive formatter writes an XML document that parses to an
# identical document as the source document. This means that no extra
# whitespace nodes are inserted, and whitespace within text nodes is
# pre... | 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/rexml-3.2.5/lib/rexml/formatters/pretty.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/formatters/pretty.rb | # frozen_string_literal: false
require_relative 'default'
module REXML
module Formatters
# Pretty-prints an XML document. This destroys whitespace in text nodes
# and will insert carriage returns and indentations.
#
# TODO: Add an option to print attributes on new lines
class Pretty < Default
... | 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/rexml-3.2.5/lib/rexml/parsers/lightparser.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/parsers/lightparser.rb | # frozen_string_literal: false
require_relative 'streamparser'
require_relative 'baseparser'
require_relative '../light/node'
module REXML
module Parsers
class LightParser
def initialize stream
@stream = stream
@parser = REXML::Parsers::BaseParser.new( stream )
end
def add_list... | 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/rexml-3.2.5/lib/rexml/parsers/sax2parser.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/parsers/sax2parser.rb | # frozen_string_literal: false
require_relative 'baseparser'
require_relative '../parseexception'
require_relative '../namespace'
require_relative '../text'
module REXML
module Parsers
# SAX2Parser
class SAX2Parser
def initialize source
@parser = BaseParser.new(source)
@listeners = []
... | 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/rexml-3.2.5/lib/rexml/parsers/baseparser.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/parsers/baseparser.rb | # frozen_string_literal: false
require_relative '../parseexception'
require_relative '../undefinednamespaceexception'
require_relative '../source'
require 'set'
require "strscan"
module REXML
module Parsers
# = Using the Pull Parser
# <em>This API is experimental, and subject to change.</em>
# parser = ... | 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/rexml-3.2.5/lib/rexml/parsers/streamparser.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/parsers/streamparser.rb | # frozen_string_literal: false
require_relative "baseparser"
module REXML
module Parsers
class StreamParser
def initialize source, listener
@listener = listener
@parser = BaseParser.new( source )
@tag_stack = []
end
def add_listener( listener )
@parser.add_liste... | 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/rexml-3.2.5/lib/rexml/parsers/xpathparser.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/parsers/xpathparser.rb | # frozen_string_literal: false
require_relative '../namespace'
require_relative '../xmltokens'
module REXML
module Parsers
# You don't want to use this class. Really. Use XPath, which is a wrapper
# for this class. Believe me. You don't want to poke around in here.
# There is strange, dark magic at w... | 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/rexml-3.2.5/lib/rexml/parsers/ultralightparser.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/parsers/ultralightparser.rb | # frozen_string_literal: false
require_relative 'streamparser'
require_relative 'baseparser'
module REXML
module Parsers
class UltraLightParser
def initialize stream
@stream = stream
@parser = REXML::Parsers::BaseParser.new( stream )
end
def add_listener( listener )
@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/rexml-3.2.5/lib/rexml/parsers/treeparser.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/parsers/treeparser.rb | # frozen_string_literal: false
require_relative '../validation/validationexception'
require_relative '../undefinednamespaceexception'
module REXML
module Parsers
class TreeParser
def initialize( source, build_context = Document.new )
@build_context = build_context
@parser = Parsers::BasePar... | 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/rexml-3.2.5/lib/rexml/parsers/pullparser.rb | .bundles_cache/ruby/2.6.0/gems/rexml-3.2.5/lib/rexml/parsers/pullparser.rb | # frozen_string_literal: false
require 'forwardable'
require_relative '../parseexception'
require_relative 'baseparser'
require_relative '../xmltokens'
module REXML
module Parsers
# = Using the Pull Parser
# <em>This API is experimental, and subject to change.</em>
# parser = PullParser.new( "<a>text<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/w3c_validators-1.3.7/test/test_exceptions.rb | .bundles_cache/ruby/2.6.0/gems/w3c_validators-1.3.7/test/test_exceptions.rb | require File.expand_path('test_helper', File.dirname(__FILE__))
class ExceptionTests < Test::Unit::TestCase
include W3CValidators
def setup
@valid_fragment = <<-EOV
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<title>Test</title>
<body>
<div class="example">This is 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/w3c_validators-1.3.7/test/test_markup_validator.rb | .bundles_cache/ruby/2.6.0/gems/w3c_validators-1.3.7/test/test_markup_validator.rb | require File.expand_path('test_helper', File.dirname(__FILE__))
# Test cases for the MarkupValidator.
class MarkupValidatorTests < Test::Unit::TestCase
include W3CValidators
def setup
@v = MarkupValidator.new
sleep 1
end
def test_overriding_doctype
VCR.use_cassette('markup_overriding_doctype') do
... | 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/w3c_validators-1.3.7/test/test_css_validator.rb | .bundles_cache/ruby/2.6.0/gems/w3c_validators-1.3.7/test/test_css_validator.rb | require File.expand_path('test_helper', File.dirname(__FILE__))
# Test cases for the CSSValidator.
class CSSValidatorTests < Test::Unit::TestCase
include W3CValidators
def setup
@v = CSSValidator.new
@invalid_fragment = <<-EOT
a { color: white; }
body { margin: blue; }
EOT
sleep 1
... | 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/w3c_validators-1.3.7/test/test_html5_validator.rb | .bundles_cache/ruby/2.6.0/gems/w3c_validators-1.3.7/test/test_html5_validator.rb | require File.expand_path('test_helper', File.dirname(__FILE__))
# Test cases for the HTML5Validator.
class HTML5ValidatorTests < Test::Unit::TestCase
include W3CValidators
def setup
@v = NuValidator.new
sleep 1
end
def test_getting_request_data
VCR.use_cassette('html5_getting_request_data') do
... | 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/w3c_validators-1.3.7/test/test_feed_validator.rb | .bundles_cache/ruby/2.6.0/gems/w3c_validators-1.3.7/test/test_feed_validator.rb | require File.expand_path('test_helper', File.dirname(__FILE__))
# Test cases for the FeedValidator.
class FeedValidatorTests < Test::Unit::TestCase
include W3CValidators
def setup
@v = FeedValidator.new
sleep 1
end
def test_validating_uri_with_soap
VCR.use_cassette('feed_validating_uri_with_soap')... | 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/w3c_validators-1.3.7/test/test_helper.rb | .bundles_cache/ruby/2.6.0/gems/w3c_validators-1.3.7/test/test_helper.rb | $:.unshift(File.dirname(__FILE__) + '/../lib')
require 'rubygems'
require 'test/unit'
require 'w3c_validators'
require 'vcr'
VCR.configure do |config|
config.cassette_library_dir = "test/http_recording"
config.hook_into :webmock # or :fakeweb
end
class Test::Unit::TestCase
def assert_no_errors(response)
as... | 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/w3c_validators-1.3.7/test/test_proxy.rb | .bundles_cache/ruby/2.6.0/gems/w3c_validators-1.3.7/test/test_proxy.rb | require File.expand_path('test_helper', File.dirname(__FILE__))
require 'webrick'
require 'webrick/httpproxy'
# Test cases for the ProxyTests.
class ProxyTests < Test::Unit::TestCase
include W3CValidators
def setup
@ps = WEBrick::HTTPProxyServer.new(:Port => 9999, :ServerType => Thread, :RequestCallback => 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/w3c_validators-1.3.7/lib/w3c_validators.rb | .bundles_cache/ruby/2.6.0/gems/w3c_validators-1.3.7/lib/w3c_validators.rb | $:.unshift File.dirname(__FILE__)
require 'w3c_validators/version'
require 'w3c_validators/validator'
require 'w3c_validators/markup_validator'
require 'w3c_validators/nu_validator'
require 'w3c_validators/feed_validator'
require 'w3c_validators/css_validator'
| 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/w3c_validators-1.3.7/lib/w3c_validators/version.rb | .bundles_cache/ruby/2.6.0/gems/w3c_validators-1.3.7/lib/w3c_validators/version.rb | module W3CValidators
VERSION = "1.3.7"
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/w3c_validators-1.3.7/lib/w3c_validators/exceptions.rb | .bundles_cache/ruby/2.6.0/gems/w3c_validators-1.3.7/lib/w3c_validators/exceptions.rb | module W3CValidators
class ValidatorUnavailable < StandardError; end
class ParsingError < StandardError; 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/w3c_validators-1.3.7/lib/w3c_validators/nu_validator.rb | .bundles_cache/ruby/2.6.0/gems/w3c_validators-1.3.7/lib/w3c_validators/nu_validator.rb | require 'json'
module W3CValidators
class NuValidator < Validator
MARKUP_VALIDATOR_URI = 'https://validator.w3.org/nu/'
# Create a new instance of the NuValidator.
#
# ==== Options
# The +options+ hash allows you to set request parameters (see
# http://wiki.whatwg.org/wiki/Validator.nu... | 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/w3c_validators-1.3.7/lib/w3c_validators/constants.rb | .bundles_cache/ruby/2.6.0/gems/w3c_validators-1.3.7/lib/w3c_validators/constants.rb | module W3CValidators
CSS_PROFILES = { :css1 => 'css1',
:css2 => 'css2',
:css21 => 'css21',
:css3 => 'css3',
:svg => 'svg',
:svgbasic => 'svgbasic',
:svgtiny => 'svgtiny',
:mobile => ... | 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/w3c_validators-1.3.7/lib/w3c_validators/css_validator.rb | .bundles_cache/ruby/2.6.0/gems/w3c_validators-1.3.7/lib/w3c_validators/css_validator.rb | module W3CValidators
class CSSValidator < Validator
CSS_VALIDATOR_URI = 'https://jigsaw.w3.org/css-validator/validator'
# Create a new instance of the CSSValidator.
#
# ==== Options
# You can pass in your own validator's URI (i.e.
# <tt>CSSValidator.new(:validator_uri => 'http://localhos... | 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/w3c_validators-1.3.7/lib/w3c_validators/message.rb | .bundles_cache/ruby/2.6.0/gems/w3c_validators-1.3.7/lib/w3c_validators/message.rb | module W3CValidators
class Message
attr_accessor :type, :line, :col, :source, :explanation, :message, :message_id
attr_accessor :message_count, :element, :parent, :value, :context, :skippedstring
MESSAGE_TYPES = [:warning, :error]
# Due to the responses received from the W3C's validators, differ... | 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/w3c_validators-1.3.7/lib/w3c_validators/results.rb | .bundles_cache/ruby/2.6.0/gems/w3c_validators-1.3.7/lib/w3c_validators/results.rb | module W3CValidators
class Results
attr_reader :uri, :checked_by, :doctype, :css_level, :charset, :validity, :debug_messages
def initialize(options = {})
@messages = []
@uri = options[:uri]
@checked_by = options[:checked_by]
@doctype = options[:doctype]
... | 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/w3c_validators-1.3.7/lib/w3c_validators/feed_validator.rb | .bundles_cache/ruby/2.6.0/gems/w3c_validators-1.3.7/lib/w3c_validators/feed_validator.rb | module W3CValidators
class FeedValidator < Validator
FEED_VALIDATOR_URI = 'https://validator.w3.org/feed/check.cgi'
# Create a new instance of the FeedValidator.
#
# ==== Options
# You can pass in your own validator's URI (i.e.
# <tt>FeedValidator.new(:validator_uri => 'http://localhost... | 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/w3c_validators-1.3.7/lib/w3c_validators/validator.rb | .bundles_cache/ruby/2.6.0/gems/w3c_validators-1.3.7/lib/w3c_validators/validator.rb | require 'cgi'
require 'net/http'
require 'uri'
require 'json'
require 'nokogiri'
require 'w3c_validators/exceptions'
require 'w3c_validators/constants'
require 'w3c_validators/results'
require 'w3c_validators/message'
module W3CValidators
# Base class for MarkupValidator and FeedValidator.
class Validator
USE... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.