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

pulibrary / tigerdata-app / c9cc5bd1-5545-45fd-aea5-122080e1b208

04 Nov 2025 01:10PM UTC coverage: 91.403%. Remained the same
c9cc5bd1-5545-45fd-aea5-122080e1b208

push

circleci

web-flow
Bump tar from 7.5.1 to 7.5.2 in the npm_and_yarn group across 1 directory (#2126)

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
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/isaacs/node-tar/commit/d9ea73a9b"><code>d9ea73a</code></a>
7.5.2</li>
<li><a
href="https://github.com/isaacs/node-tar/commit/5e1a8e638"><code>5e1a8e6</code></a>
Fix sync tar.list when file size reduces while reading</li>
<li><a
href="https://github.com/isaacs/node-tar/commit/0fbeaeddf"><code>0fbeaed</code></a>
formatting</li>
<li><a
href="https://github.com/isaacs/node-tar/commit/2dbacfe33"><code>2dbacfe</code></a>
add types for make-tar util</li>
<li><a
href="https://github.com/isaacs/node-tar/commit/c5865d312"><code>c5865d3</code></a>
remove unused taprc file</li>
<li><a
href="https://github.com/isaacs/node-tar/commit/bdb38096a"><code>bdb3809</code></a>
header: only read from ustar block if not specified in Pax</li>
<li><a
href="https://github.com/isaacs/node-tar/commit/d094cd7b7"><code>d094cd7</code></a>
BlueOak-1.0.0</li>
<li><a
href="https://github.com/isaacs/node-tar/commit/4a6ae729b"><code>4a6ae72</code></a>
Verify invulnerability to tarmageddon attack</li>
<li>See full diff in <a
href="https://github.com/isaacs/node-tar/compare/v7.5.1...v7.5.2">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=tar&package-manager=npm_and_yarn&previous-version=7.5.1&new-version=7.5.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores... (continued)

2828 of 3094 relevant lines covered (91.4%)

493.13 hits per line

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

100.0
/app/models/mediaflux/asset_create_request.rb
1
# frozen_string_literal: true
2
module Mediaflux
3✔
3
  class AssetCreateRequest < Request
3✔
4
    attr_reader :namespace, :asset_name, :collection
3✔
5

6
    # Constructor
7
    # @param session_token [String] the API token for the authenticated session
8
    # @param name [String] Name of the Asset
9
    # @param namespace [String] Optional Parent namespace for the asset to be created in
10
    # @param pid [String] Optional Parent collection id (use this or a namespace not both)
11
    # @param xml_namespace [String]
12
    def initialize(session_token:, namespace: nil, name:, xml_namespace: nil, xml_namespace_uri: nil, pid: nil)
3✔
13
      super(session_token: session_token)
44✔
14
      @namespace = namespace
44✔
15
      @asset_name = name
44✔
16
      @xml_namespace = xml_namespace || self.class.default_xml_namespace
44✔
17
      @xml_namespace_uri = xml_namespace_uri || self.class.default_xml_namespace_uri
44✔
18
      @pid = pid
44✔
19
    end
20

21
    # Specifies the Mediaflux service to use when creating assets
22
    # @return [String]
23
    def self.service
3✔
24
      "asset.create"
86✔
25
    end
26

27
    def id
3✔
28
      @id ||= response_xml.xpath("/response/reply/result/id").text
38✔
29
      @id
38✔
30
    end
31

32
    private
3✔
33

34
      # The generated XML mimics what we get when we issue an Aterm command as follows:
35
      # > asset.set :id path=/sandbox_ns/rdss_collection
36
      #     :meta <
37
      #       :tigerdata:project <
38
      #         :title "RDSS test project"
39
      #         :description "The description of the project"
40
      #         ...the rest of the fields go here..
41
      #       >
42
      #     >
43
      #
44
      def build_http_request_body(name:)
3✔
45
        super do |xml|
86✔
46
          xml.args do
86✔
47
            xml.name asset_name
86✔
48
            xml.namespace namespace if namespace.present?
86✔
49
            yield xml if block_given?
86✔
50
            collection_xml(xml)
86✔
51
            if @pid.present?
86✔
52
              xml.pid @pid
86✔
53
            end
54
          end
55
        end
56
      end
57

58
      def collection_xml(xml)
3✔
59
        xml.collection do
86✔
60
          xml.parent.set_attribute("cascade-contained-asset-index", true)
86✔
61
          xml.parent.set_attribute("contained-asset-index", true)
86✔
62
          xml.parent.set_attribute("unique-name-index", true)
86✔
63
          xml.text(true)
86✔
64
        end
65
        xml.type "application/arc-asset-collection"
86✔
66
      end
67
  end
68
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