Merge pull request #11552 from Homebrew/dependabot/bundler/Library/Homebrew/bindata-2.4.10
build(deps): bump bindata from 2.4.8 to 2.4.10 in /Library/Homebrew
This commit is contained in:
commit
e71a0edf6f
@ -10,7 +10,7 @@ GEM
|
||||
addressable (2.7.0)
|
||||
public_suffix (>= 2.0.2, < 5.0)
|
||||
ast (2.4.2)
|
||||
bindata (2.4.8)
|
||||
bindata (2.4.10)
|
||||
bootsnap (1.7.5)
|
||||
msgpack (~> 1.0)
|
||||
byebug (11.1.3)
|
||||
|
||||
@ -1,13 +1,12 @@
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for types exported from the `bindata` gem.
|
||||
# Please instead update this file by running `tapioca generate --exclude json`.
|
||||
# Please instead update this file by running `bin/tapioca sync`.
|
||||
|
||||
# typed: true
|
||||
|
||||
module BinData
|
||||
extend(::BinData::BitFieldFactory)
|
||||
extend(::BinData::IntFactory)
|
||||
|
||||
extend ::BinData::BitFieldFactory
|
||||
extend ::BinData::IntFactory
|
||||
|
||||
private
|
||||
|
||||
@ -51,8 +50,8 @@ class BinData::AcceptedParametersPlugin::AcceptedParameters
|
||||
end
|
||||
|
||||
class BinData::Array < ::BinData::Base
|
||||
include(::Enumerable)
|
||||
extend(::BinData::DSLMixin)
|
||||
include ::Enumerable
|
||||
extend ::BinData::DSLMixin
|
||||
|
||||
def <<(*args); end
|
||||
def [](arg1, arg2 = T.unsafe(nil)); end
|
||||
@ -101,16 +100,16 @@ class BinData::ArrayArgProcessor < ::BinData::BaseArgProcessor
|
||||
end
|
||||
|
||||
class BinData::Base
|
||||
include(::BinData::Framework)
|
||||
include(::BinData::RegisterNamePlugin)
|
||||
extend(::BinData::AcceptedParametersPlugin)
|
||||
include ::BinData::Framework
|
||||
include ::BinData::RegisterNamePlugin
|
||||
extend ::BinData::AcceptedParametersPlugin
|
||||
|
||||
def initialize(*args); end
|
||||
|
||||
def ==(other); end
|
||||
def =~(other); end
|
||||
def abs_offset; end
|
||||
def base_respond_to?(*_); end
|
||||
def base_respond_to?(*_arg0); end
|
||||
def clear; end
|
||||
def debug_name; end
|
||||
def eval_parameter(key, overrides = T.unsafe(nil)); end
|
||||
@ -134,7 +133,7 @@ class BinData::Base
|
||||
|
||||
protected
|
||||
|
||||
def parent=(_); end
|
||||
def parent=(_arg0); end
|
||||
|
||||
private
|
||||
|
||||
@ -288,7 +287,7 @@ class BinData::BitLe < ::BinData::BasePrimitive
|
||||
end
|
||||
|
||||
class BinData::Buffer < ::BinData::Base
|
||||
extend(::BinData::DSLMixin)
|
||||
extend ::BinData::DSLMixin
|
||||
|
||||
def assign(val); end
|
||||
def clear?; end
|
||||
@ -303,7 +302,7 @@ class BinData::Buffer < ::BinData::Base
|
||||
end
|
||||
|
||||
class BinData::BufferArgProcessor < ::BinData::BaseArgProcessor
|
||||
include(::BinData::MultiFieldArgSeparator)
|
||||
include ::BinData::MultiFieldArgSeparator
|
||||
|
||||
def sanitize_parameters!(obj_class, params); end
|
||||
end
|
||||
@ -317,7 +316,7 @@ module BinData::ByteAlignPlugin
|
||||
end
|
||||
|
||||
class BinData::Choice < ::BinData::Base
|
||||
extend(::BinData::DSLMixin)
|
||||
extend ::BinData::DSLMixin
|
||||
|
||||
def assign(*args); end
|
||||
def clear?(*args); end
|
||||
@ -362,7 +361,6 @@ module BinData::CopyOnChangePlugin
|
||||
end
|
||||
|
||||
class BinData::CountBytesRemaining < ::BinData::BasePrimitive
|
||||
|
||||
private
|
||||
|
||||
def read_and_return_value(io); end
|
||||
@ -449,7 +447,7 @@ class BinData::DSLMixin::DSLParser
|
||||
end
|
||||
|
||||
class BinData::DelayedIO < ::BinData::Base
|
||||
extend(::BinData::DSLMixin)
|
||||
extend ::BinData::DSLMixin
|
||||
|
||||
def abs_offset; end
|
||||
def abs_offset=(offset); end
|
||||
@ -469,7 +467,7 @@ class BinData::DelayedIO < ::BinData::Base
|
||||
end
|
||||
|
||||
class BinData::DelayedIoArgProcessor < ::BinData::BaseArgProcessor
|
||||
include(::BinData::MultiFieldArgSeparator)
|
||||
include ::BinData::MultiFieldArgSeparator
|
||||
|
||||
def sanitize_parameters!(obj_class, params); end
|
||||
end
|
||||
@ -549,7 +547,6 @@ end
|
||||
module BinData::IO::Common
|
||||
def initialize(io); end
|
||||
|
||||
|
||||
private
|
||||
|
||||
def buffer_limited_n(n); end
|
||||
@ -586,7 +583,7 @@ module BinData::IO::Common::UnSeekableStream
|
||||
end
|
||||
|
||||
class BinData::IO::Read
|
||||
include(::BinData::IO::Common)
|
||||
include ::BinData::IO::Common
|
||||
|
||||
def initialize(io); end
|
||||
|
||||
@ -609,7 +606,7 @@ class BinData::IO::Read
|
||||
end
|
||||
|
||||
class BinData::IO::Write
|
||||
include(::BinData::IO::Common)
|
||||
include ::BinData::IO::Common
|
||||
|
||||
def initialize(io); end
|
||||
|
||||
@ -738,7 +735,7 @@ module BinData::MultiFieldArgSeparator
|
||||
end
|
||||
|
||||
class BinData::Primitive < ::BinData::BasePrimitive
|
||||
extend(::BinData::DSLMixin)
|
||||
extend ::BinData::DSLMixin
|
||||
|
||||
def assign(val); end
|
||||
def debug_name_of(child); end
|
||||
@ -773,7 +770,7 @@ module BinData::ReadUntilPlugin
|
||||
end
|
||||
|
||||
class BinData::Record < ::BinData::Struct
|
||||
extend(::BinData::DSLMixin)
|
||||
extend ::BinData::DSLMixin
|
||||
|
||||
class << self
|
||||
def inherited(subclass); end
|
||||
@ -781,7 +778,7 @@ class BinData::Record < ::BinData::Struct
|
||||
end
|
||||
|
||||
class BinData::RecordArgProcessor < ::BinData::StructArgProcessor
|
||||
include(::BinData::MultiFieldArgSeparator)
|
||||
include ::BinData::MultiFieldArgSeparator
|
||||
|
||||
def sanitize_parameters!(obj_class, params); end
|
||||
end
|
||||
@ -815,7 +812,6 @@ class BinData::Registry
|
||||
end
|
||||
|
||||
class BinData::Rest < ::BinData::BasePrimitive
|
||||
|
||||
private
|
||||
|
||||
def read_and_return_value(io); end
|
||||
@ -853,7 +849,7 @@ class BinData::SanitizedField < ::BinData::SanitizedParameter
|
||||
end
|
||||
|
||||
class BinData::SanitizedFields < ::BinData::SanitizedParameter
|
||||
include(::Enumerable)
|
||||
include ::Enumerable
|
||||
|
||||
def initialize(hints, base_fields = T.unsafe(nil)); end
|
||||
|
||||
@ -874,15 +870,14 @@ class BinData::SanitizedLittleEndian < ::BinData::SanitizedParameter
|
||||
def endian; end
|
||||
end
|
||||
|
||||
class BinData::SanitizedParameter
|
||||
end
|
||||
class BinData::SanitizedParameter; end
|
||||
|
||||
class BinData::SanitizedParameters < ::Hash
|
||||
def initialize(parameters, the_class, hints); end
|
||||
|
||||
def create_sanitized_params(params, the_class); end
|
||||
def has_at_least_one_of?(*keys); end
|
||||
def has_parameter?(_); end
|
||||
def has_parameter?(_arg0); end
|
||||
def hints; end
|
||||
def must_be_integer(*keys); end
|
||||
def rename_parameter(old_key, new_key); end
|
||||
@ -912,7 +907,6 @@ class BinData::SanitizedParameters < ::Hash
|
||||
end
|
||||
|
||||
BinData::SanitizedParameters::BIG_ENDIAN = T.let(T.unsafe(nil), BinData::SanitizedBigEndian)
|
||||
|
||||
BinData::SanitizedParameters::LITTLE_ENDIAN = T.let(T.unsafe(nil), BinData::SanitizedLittleEndian)
|
||||
|
||||
class BinData::SanitizedPrototype < ::BinData::SanitizedParameter
|
||||
@ -1156,7 +1150,6 @@ class BinData::Uint8 < ::BinData::BasePrimitive
|
||||
end
|
||||
|
||||
class BinData::Uint8Array < ::BinData::BasePrimitive
|
||||
|
||||
private
|
||||
|
||||
def read_and_return_value(io); end
|
||||
@ -1168,13 +1161,9 @@ class BinData::Uint8ArrayArgProcessor < ::BinData::BaseArgProcessor
|
||||
def sanitize_parameters!(obj_class, params); end
|
||||
end
|
||||
|
||||
class BinData::UnRegisteredTypeError < ::StandardError
|
||||
end
|
||||
|
||||
class BinData::UnRegisteredTypeError < ::StandardError; end
|
||||
BinData::VERSION = T.let(T.unsafe(nil), String)
|
||||
|
||||
class BinData::ValidityError < ::StandardError
|
||||
end
|
||||
class BinData::ValidityError < ::StandardError; end
|
||||
|
||||
class BinData::Virtual < ::BinData::BasePrimitive
|
||||
def do_num_bytes; end
|
||||
@ -12,7 +12,7 @@ $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/activesupport-6.1.3.2
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/public_suffix-4.0.6/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/addressable-2.7.0/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ast-2.4.2/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/bindata-2.4.8/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/bindata-2.4.10/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/extensions/x86_64-darwin-14/2.6.0-static/msgpack-1.4.2"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/msgpack-1.4.2/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/extensions/x86_64-darwin-14/2.6.0-static/bootsnap-1.7.5"
|
||||
|
||||
@ -47,7 +47,7 @@ module BinData
|
||||
end
|
||||
def readbytes(n)
|
||||
n.times.inject("") do |bytes, _|
|
||||
bytes << @io.readbits(8, :big).chr
|
||||
bytes += @io.readbits(8, :big).chr
|
||||
end
|
||||
end
|
||||
end
|
||||
@ -115,14 +115,14 @@ module BinData
|
||||
end
|
||||
|
||||
if signed == :signed
|
||||
max = (1 << (nbits - 1)) - 1
|
||||
min = -(max + 1)
|
||||
max = "max = (1 << (#{nbits} - 1)) - 1"
|
||||
min = "min = -(max + 1)"
|
||||
else
|
||||
min = 0
|
||||
max = (1 << nbits) - 1
|
||||
min = "min = 0"
|
||||
max = "max = (1 << #{nbits}) - 1"
|
||||
end
|
||||
|
||||
clamp = "(val < #{min}) ? #{min} : (val > #{max}) ? #{max} : val"
|
||||
clamp = "(#{max}; #{min}; val = (val < min) ? min : (val > max) ? max : val)"
|
||||
|
||||
if nbits == 1
|
||||
# allow single bits to be used as booleans
|
||||
@ -59,14 +59,16 @@ module BinData
|
||||
|
||||
def create_clamp_code(nbits, signed)
|
||||
if signed == :signed
|
||||
max = (1 << (nbits - 1)) - 1
|
||||
min = -(max + 1)
|
||||
max = "max = (1 << (#{nbits} - 1)) - 1"
|
||||
min = "min = -(max + 1)"
|
||||
else
|
||||
max = (1 << nbits) - 1
|
||||
min = 0
|
||||
max = "max = (1 << #{nbits}) - 1"
|
||||
min = "min = 0"
|
||||
end
|
||||
|
||||
"val = (val < #{min}) ? #{min} : (val > #{max}) ? #{max} : val"
|
||||
clamp = "(#{max}; #{min}; val = (val < min) ? min : (val > max) ? max : val)"
|
||||
|
||||
"val = #{clamp}"
|
||||
end
|
||||
|
||||
def create_read_code(nbits, endian, signed)
|
||||
@ -107,7 +109,7 @@ module BinData
|
||||
parts = (0...nwords).collect do |i|
|
||||
"(ints.at(#{idx[i]}) << #{bits_per_word(nbits) * i})"
|
||||
end
|
||||
parts[0].sub!(/ << 0\b/, "") # Remove " << 0" for optimisation
|
||||
parts[0] = parts[0].sub(/ << 0\b/, "") # Remove " << 0" for optimisation
|
||||
|
||||
parts.join(" + ")
|
||||
end
|
||||
@ -132,7 +134,7 @@ module BinData
|
||||
mask = (1 << bits_per_word(nbits)) - 1
|
||||
|
||||
vals = (0...nwords).collect { |i| "val >> #{bits_per_word(nbits) * i}" }
|
||||
vals[0].sub!(/ >> 0\b/, "") # Remove " >> 0" for optimisation
|
||||
vals[0] = vals[0].sub(/ >> 0\b/, "") # Remove " >> 0" for optimisation
|
||||
vals.reverse! if (endian == :big)
|
||||
|
||||
vals = vals.collect { |val| "#{val} & #{mask}" } # TODO: "& mask" is needed to work around jruby bug. Remove this line when fixed.
|
||||
@ -160,7 +162,7 @@ module BinData
|
||||
directives = { 8 => "C", 16 => "S", 32 => "L", 64 => "Q" }
|
||||
|
||||
d = directives[bits_per_word(nbits)]
|
||||
d << ((endian == :big) ? ">" : "<") unless d == "C"
|
||||
d += ((endian == :big) ? ">" : "<") unless d == "C"
|
||||
|
||||
if signed == :signed && directives.key?(nbits)
|
||||
(d * nwords).downcase
|
||||
@ -169,7 +169,7 @@ module BinData
|
||||
|
||||
unless @read_data.empty? || @in_readahead
|
||||
bytes_to_consume = [n, @read_data.length].min
|
||||
data << @read_data.slice!(0, bytes_to_consume)
|
||||
data += @read_data.slice!(0, bytes_to_consume)
|
||||
n -= bytes_to_consume
|
||||
|
||||
if @read_data.empty?
|
||||
@ -180,10 +180,10 @@ module BinData
|
||||
end
|
||||
|
||||
raw_data = @raw_io.read(n)
|
||||
data << raw_data if raw_data
|
||||
data += raw_data if raw_data
|
||||
|
||||
if @in_readahead
|
||||
@read_data << data
|
||||
@read_data += data
|
||||
end
|
||||
|
||||
@offset += data.size
|
||||
@ -54,7 +54,7 @@ module BinData
|
||||
# read until zero byte or we have read in the max number of bytes
|
||||
while ch != "\0" && i != max_length
|
||||
ch = io.readbytes(1)
|
||||
str << ch
|
||||
str += ch
|
||||
i += 1
|
||||
end
|
||||
|
||||
3
Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/bindata-2.4.10/lib/bindata/version.rb
vendored
Normal file
3
Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/bindata-2.4.10/lib/bindata/version.rb
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
module BinData
|
||||
VERSION = "2.4.10"
|
||||
end
|
||||
@ -1,3 +0,0 @@
|
||||
module BinData
|
||||
VERSION = "2.4.8"
|
||||
end
|
||||
Loading…
x
Reference in New Issue
Block a user