Merge pull request #13961 from Homebrew/dependabot/bundler/Library/Homebrew/bindata-2.4.12
build(deps): bump bindata from 2.4.11 to 2.4.12 in /Library/Homebrew
This commit is contained in:
commit
9ad7f9178b
@ -10,7 +10,7 @@ GEM
|
|||||||
addressable (2.8.1)
|
addressable (2.8.1)
|
||||||
public_suffix (>= 2.0.2, < 6.0)
|
public_suffix (>= 2.0.2, < 6.0)
|
||||||
ast (2.4.2)
|
ast (2.4.2)
|
||||||
bindata (2.4.11)
|
bindata (2.4.12)
|
||||||
bootsnap (1.13.0)
|
bootsnap (1.13.0)
|
||||||
msgpack (~> 1.2)
|
msgpack (~> 1.2)
|
||||||
byebug (11.1.3)
|
byebug (11.1.3)
|
||||||
|
|||||||
@ -456,9 +456,6 @@ class BinData::DelayedIO < ::BinData::Base
|
|||||||
def do_num_bytes; end
|
def do_num_bytes; end
|
||||||
def do_read(io); end
|
def do_read(io); end
|
||||||
def do_write(io); end
|
def do_write(io); end
|
||||||
def eval_parameter(key, overrides = T.unsafe(nil)); end
|
|
||||||
def eval_parameter_with_delayed_io(key, overrides = T.unsafe(nil)); end
|
|
||||||
def eval_parameter_without_delayed_io(key, overrides = T.unsafe(nil)); end
|
|
||||||
def include_obj?; end
|
def include_obj?; end
|
||||||
def initialize_instance; end
|
def initialize_instance; end
|
||||||
def method_missing(symbol, *args, &block); end
|
def method_missing(symbol, *args, &block); end
|
||||||
@ -1037,6 +1034,7 @@ class BinData::Struct < ::BinData::Base
|
|||||||
def find_index_of(obj); end
|
def find_index_of(obj); end
|
||||||
def find_obj_for_name(name); end
|
def find_obj_for_name(name); end
|
||||||
def include_obj?(obj); end
|
def include_obj?(obj); end
|
||||||
|
def include_obj_for_io?(obj); end
|
||||||
def instantiate_all_objs; end
|
def instantiate_all_objs; end
|
||||||
def instantiate_obj_at(index); end
|
def instantiate_obj_at(index); end
|
||||||
def sum_num_bytes_below_index(index); end
|
def sum_num_bytes_below_index(index); end
|
||||||
@ -12,7 +12,7 @@ $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/activesupport-6.1.7/l
|
|||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/public_suffix-5.0.0/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/public_suffix-5.0.0/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/addressable-2.8.1/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/addressable-2.8.1/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ast-2.4.2/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ast-2.4.2/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/bindata-2.4.11/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/bindata-2.4.12/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/extensions/universal-darwin-21/2.6.0/msgpack-1.6.0"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/extensions/universal-darwin-21/2.6.0/msgpack-1.6.0"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/msgpack-1.6.0/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/msgpack-1.6.0/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/extensions/universal-darwin-21/2.6.0/bootsnap-1.13.0"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/extensions/universal-darwin-21/2.6.0/bootsnap-1.13.0"
|
||||||
|
|||||||
@ -1,3 +0,0 @@
|
|||||||
module BinData
|
|
||||||
VERSION = "2.4.11"
|
|
||||||
end
|
|
||||||
@ -116,19 +116,8 @@ module BinData
|
|||||||
0
|
0
|
||||||
end
|
end
|
||||||
|
|
||||||
def eval_parameter_with_delayed_io(key, overrides = nil)
|
|
||||||
result = eval_parameter_without_delayed_io(key, overrides)
|
|
||||||
|
|
||||||
# Delay processing :onlyif until we do the actual read/write
|
|
||||||
result = true if key == :onlyif && ! result
|
|
||||||
|
|
||||||
result
|
|
||||||
end
|
|
||||||
alias_method :eval_parameter_without_delayed_io, :eval_parameter
|
|
||||||
alias_method :eval_parameter, :eval_parameter_with_delayed_io
|
|
||||||
|
|
||||||
def include_obj?
|
def include_obj?
|
||||||
! has_parameter?(:onlyif) || eval_parameter_without_delayed_io(:onlyif)
|
! has_parameter?(:onlyif) || eval_parameter(:onlyif)
|
||||||
end
|
end
|
||||||
|
|
||||||
# DelayedIO objects aren't read when #read is called.
|
# DelayedIO objects aren't read when #read is called.
|
||||||
@ -1,4 +1,5 @@
|
|||||||
require 'bindata/base'
|
require 'bindata/base'
|
||||||
|
require 'bindata/delayed_io'
|
||||||
|
|
||||||
module BinData
|
module BinData
|
||||||
|
|
||||||
@ -136,12 +137,12 @@ module BinData
|
|||||||
|
|
||||||
def do_read(io) #:nodoc:
|
def do_read(io) #:nodoc:
|
||||||
instantiate_all_objs
|
instantiate_all_objs
|
||||||
@field_objs.each { |f| f.do_read(io) if include_obj?(f) }
|
@field_objs.each { |f| f.do_read(io) if include_obj_for_io?(f) }
|
||||||
end
|
end
|
||||||
|
|
||||||
def do_write(io) #:nodoc
|
def do_write(io) #:nodoc
|
||||||
instantiate_all_objs
|
instantiate_all_objs
|
||||||
@field_objs.each { |f| f.do_write(io) if include_obj?(f) }
|
@field_objs.each { |f| f.do_write(io) if include_obj_for_io?(f) }
|
||||||
end
|
end
|
||||||
|
|
||||||
def do_num_bytes #:nodoc:
|
def do_num_bytes #:nodoc:
|
||||||
@ -263,6 +264,12 @@ module BinData
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def include_obj_for_io?(obj)
|
||||||
|
# Used by #do_read and #do_write, to ensure the stream is passed to
|
||||||
|
# DelayedIO objects for delayed processing.
|
||||||
|
include_obj?(obj) || DelayedIO === obj
|
||||||
|
end
|
||||||
|
|
||||||
def include_obj?(obj)
|
def include_obj?(obj)
|
||||||
!obj.has_parameter?(:onlyif) || obj.eval_parameter(:onlyif)
|
!obj.has_parameter?(:onlyif) || obj.eval_parameter(:onlyif)
|
||||||
end
|
end
|
||||||
3
Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/bindata-2.4.12/lib/bindata/version.rb
vendored
Normal file
3
Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/bindata-2.4.12/lib/bindata/version.rb
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
module BinData
|
||||||
|
VERSION = "2.4.12"
|
||||||
|
end
|
||||||
Loading…
x
Reference in New Issue
Block a user