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

pulibrary / tigerdata-app / 54385a8c-ec76-421e-81fd-41bf4c9d5b76

21 Jul 2025 08:55PM UTC coverage: 66.374% (-5.3%) from 71.631%
54385a8c-ec76-421e-81fd-41bf4c9d5b76

push

circleci

web-flow
Upgrade mediaflux build to v0.7.0 (#1617)

* Upgrade mediaflux build to v0.7.0

* prettier

* Upgrade mflux version used by the test suite

* tagging integration tests

* tagging integration tests

4 of 18 branches covered (22.22%)

0 of 1 new or added line in 1 file covered. (0.0%)

222 existing lines in 24 files now uncovered.

2722 of 4101 relevant lines covered (66.37%)

295.38 hits per line

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

94.74
/app/models/mediaflux/connection.rb
1
# frozen_string_literal: true
2
module Mediaflux
1✔
3
  class Connection
1✔
4
    # The host nome for the Mediaflux server
5
    # @return [String]
6
    def self.host
1✔
7
      if Flipflop.alternate_mediaflux?
1,058✔
8
        Rails.configuration.mediaflux["api_alternate_host"]
1✔
9
      else
10
        Rails.configuration.mediaflux["api_host"]
1,057✔
11
      end
12
    end
13

14
    # The host port for the Mediaflux server
15
    # @return [Integer]
16
    def self.port
1✔
17
      if Flipflop.alternate_mediaflux?
1,057✔
18
        Rails.configuration.mediaflux["api_alternate_port"].to_i
1✔
19
      else
20
        Rails.configuration.mediaflux["api_port"].to_i
1,056✔
21
      end
22
    end
23

24
    # The host transport for the Mediaflux server
25
    # @return [String]
26
    def self.transport
1✔
27
      if Flipflop.alternate_mediaflux?
1,053✔
28
        Rails.configuration.mediaflux["api_alternate_transport"]
1✔
29
      else
30
        Rails.configuration.mediaflux["api_transport"]
1,052✔
31
      end
32
    end
33

34
    def self.root
1✔
35
      if Flipflop.alternate_mediaflux?
33✔
UNCOV
36
        Rails.configuration.mediaflux["api_alternate_root"]
×
37
      else
38
        Rails.configuration.mediaflux["api_root"]
33✔
39
      end
40
    end
41

42
    def self.root_collection
1✔
43
      if Flipflop.alternate_mediaflux?
8✔
44
        Rails.configuration.mediaflux["api_alternate_root_collection"]
1✔
45
      else
46
        Rails.configuration.mediaflux["api_root_collection"]
7✔
47
      end
48
    end
49

50
    def self.root_collection_namespace
1✔
51
      if Flipflop.alternate_mediaflux?
10✔
52
        Rails.configuration.mediaflux["api_alternate_root_collection_namespace"]
1✔
53
      else
54
        Rails.configuration.mediaflux["api_root_collection_namespace"]
9✔
55
      end
56
    end
57

58
    def self.root_collection_name
1✔
59
      if Flipflop.alternate_mediaflux?
2✔
60
        Rails.configuration.mediaflux["api_alternate_root_collection_name"]
1✔
61
      else
62
        Rails.configuration.mediaflux["api_root_collection_name"]
1✔
63
      end
64
    end
65

66
    def self.root_namespace
1✔
67
      if Flipflop.alternate_mediaflux?
5✔
68
        Rails.configuration.mediaflux["api_alternate_root_ns"]
1✔
69
      else
70
        Rails.configuration.mediaflux["api_root_ns"]
4✔
71
      end
72
    end
73

74
    def self.hidden_root
1✔
75
      if Flipflop.alternate_mediaflux?
29✔
UNCOV
76
        Rails.configuration.mediaflux["api_alternate_hidden_root"]
×
77
      else
78
        Rails.configuration.mediaflux["api_hidden_root"]
29✔
79
      end
80
    end
81
  end
82
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