diff --git a/config/packaging.yml b/config/packaging.yml index 57697632c..9d7dd2cb9 100644 --- a/config/packaging.yml +++ b/config/packaging.yml @@ -170,6 +170,10 @@ redis_store: riverbed_appinternals_agent: name: Riverbed Appinternals Agent +ruby: + name: Ruby + release_notes: 'https://www.ruby-lang.org/en/downloads/releases' + sealights_agent: name: SeaLights Agent diff --git a/config/ruby.yml b/config/ruby.yml index 40287d422..94541f7ee 100644 --- a/config/ruby.yml +++ b/config/ruby.yml @@ -15,5 +15,5 @@ # Configuration for Ruby --- -version: 3.1.+ +version: 3.2.+ repository_root: https://raw.githubusercontent.com/cloudfoundry/ruby-buildpack/master/java-index diff --git a/lib/java_buildpack/util/filtering_pathname.rb b/lib/java_buildpack/util/filtering_pathname.rb index 133b7987c..dd04d77a7 100644 --- a/lib/java_buildpack/util/filtering_pathname.rb +++ b/lib/java_buildpack/util/filtering_pathname.rb @@ -83,10 +83,6 @@ def ===(other) @pathname === comparison_target(other) # rubocop:disable Style/CaseEquality end - # Dispatch superclass methods via method_missing. - undef_method :taint - undef_method :untaint - # @see Pathname. def +(other) filtered_pathname(@pathname + other) @@ -104,7 +100,7 @@ def entries # @see Pathname. def open(mode = nil, *args, **kwargs, &block) - check_mutable if mode =~ /[wa]/ + check_mutable if /[wa]/ =~ mode.to_s delegate.open(mode, *args, **kwargs, &block) end @@ -150,7 +146,7 @@ def glob(flags = 0) private MUTATORS = %i[chmod chown delete lchmod lchown make_link make_symlink mkdir mkpath rename rmdir rmtree taint - unlink untaint].to_set.freeze + unlink].to_set.freeze private_constant :MUTATORS diff --git a/spec/java_buildpack/util/filtering_pathname_spec.rb b/spec/java_buildpack/util/filtering_pathname_spec.rb index 93cd3634e..730cf66be 100644 --- a/spec/java_buildpack/util/filtering_pathname_spec.rb +++ b/spec/java_buildpack/util/filtering_pathname_spec.rb @@ -380,24 +380,6 @@ mutable_target.unlink end - it 'raises error if untaint is called on an immutable instance' do - expect { immutable_target.untaint }.to raise_error(/FilteringPathname is immutable/) - end - - it 'delegates if untaint is called on a mutable instance' do - allow(app_dir).to receive(:untaint) - mutable_target.untaint - end - - it 'raises error if taint is called on an immutable instance' do - expect { immutable_target.taint }.to raise_error(/FilteringPathname is immutable/) - end - - it 'delegates if taint is called on a mutable instance' do - allow(app_dir).to receive(:taint) - mutable_target.taint - end - it 'raises error if mkpath is called on an immutable instance' do expect { immutable_target.mkpath }.to raise_error(/FilteringPathname is immutable/) end