• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pulibrary / tigerdata-app / da06f62a-2e8b-4995-ae49-246e33b0661f

03 Nov 2025 07:07PM UTC coverage: 91.368% (-0.03%) from 91.4%
da06f62a-2e8b-4995-ae49-246e33b0661f

Pull #2126

circleci

bess
Bump tar in the npm_and_yarn group across 1 directory

Bumps the npm_and_yarn group with 1 update in the / directory: [tar](https://github.com/isaacs/node-tar).


Updates `tar` from 7.5.1 to 7.5.2
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/node-tar/compare/v7.5.1...v7.5.2)

---
updated-dependencies:
- dependency-name: tar
  dependency-version: 7.5.2
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #2126: Bump tar from 7.5.1 to 7.5.2 in the npm_and_yarn group across 1 directory

2826 of 3093 relevant lines covered (91.37%)

486.76 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/app/models/mediaflux/namespace_destroy_request.rb
1
# frozen_string_literal: true
2
module Mediaflux
5✔
3
  # Destroy a MediaFlux namespace and everything in it
4
  # @example
5
  #   Mediaflux::NamespaceDestroyRequest.new(session_token: session_id, namespace: "/td-test-001/tigerdataNS/Banana1NS").destroy
6
  #   => true
7
  class NamespaceDestroyRequest < Request
5✔
8
    attr_reader :description, :namespace, :store
5✔
9

10
    # Constructor
11
    # @param session_token [String] the API token for the authenticated session
12
    # @param namespace [String] name of namespace to be destroyed
13
    # @param ignore_missing [Bool] ignore error if the namespace to delete is missing
14
    def initialize(session_token:, namespace:, ignore_missing: false)
5✔
15
      super(session_token: session_token)
8✔
16
      @namespace = namespace
8✔
17
      @ignore_missing = ignore_missing
8✔
18
    end
19

20
    def destroy
5✔
21
      resolve
3✔
22
      if error?
3✔
23
        if response_error.fetch(:message, "").include?("does not exist or is not accessible") && @ignore_missing
2✔
24
          # nothing to do
25
        else
26
          raise(StandardError, "call to service 'asset.namespace.hard.destroy' failed: The namespace #{namespace} does not exist or is not accessible")
1✔
27
        end
28
      end
29
    end
30

31
    # Specifies the Mediaflux service to use when destroying namespaces
32
    # @return [String]
33
    def self.service
5✔
34
      "asset.namespace.hard.destroy"
16✔
35
    end
36

37
    private
5✔
38

39
      def build_http_request_body(name:)
5✔
40
        super do |xml|
16✔
41
          xml.args do
16✔
42
            xml.namespace @namespace
16✔
43
            xml.atomic true
16✔
44
          end
45
        end
46
      end
47
  end
48
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc