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

pulibrary / pdc_describe / 4e4e59fc-9df4-4838-9fd4-6c7ea33cdb7c

07 Apr 2025 06:36PM UTC coverage: 1.283% (-94.6%) from 95.862%
4e4e59fc-9df4-4838-9fd4-6c7ea33cdb7c

Pull #1994

circleci

hectorcorrea
Switched to use the autocomplete that we aleady use for ROR. Integrated it with the existing logic for creators
Pull Request #1994: Started adding auto complete to contributors

0 of 46 new or added lines in 2 files covered. (0.0%)

4806 existing lines in 74 files now uncovered.

65 of 5065 relevant lines covered (1.28%)

0.01 hits per line

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

0.0
/app/models/pdc_metadata/rights.rb
1
# frozen_string_literal: true
2
# Class for representing a Rights statement
UNCOV
3
module PDCMetadata
×
UNCOV
4
  class Rights
×
UNCOV
5
    attr_accessor :identifier, :uri, :name
×
UNCOV
6
    def initialize(identifier:, uri:, name:)
×
UNCOV
7
      @identifier = identifier
×
UNCOV
8
      @uri = uri
×
UNCOV
9
      @name = name
×
UNCOV
10
    end
×
11

UNCOV
12
    def compare_value
×
UNCOV
13
      @name
×
UNCOV
14
    end
×
15

UNCOV
16
    def self.all
×
UNCOV
17
      @all ||= [
×
UNCOV
18
        Rights.new(identifier: "MIT", uri: "https://mit-license.org/", name: "MIT License"),
×
UNCOV
19
        Rights.new(identifier: "GPLv3", uri: "https://www.gnu.org/licenses/gpl-3.0.en.html", name: "GNU General Public License"),
×
UNCOV
20
        Rights.new(identifier: "CC BY", uri: "https://creativecommons.org/licenses/by/4.0/", name: "Creative Commons Attribution 4.0 International"),
×
UNCOV
21
        Rights.new(identifier: "CC BY-SA", uri: "https://creativecommons.org/licenses/by-sa/4.0/", name: "Creative Commons Attribution-ShareAlike 4.0 International"),
×
UNCOV
22
        Rights.new(identifier: "CC BY-NC", uri: "https://creativecommons.org/licenses/by-nc/4.0/", name: "Creative Commons Attribution-NonCommercial 4.0 International"),
×
UNCOV
23
        Rights.new(identifier: "CC BY-NC-SA", uri: "https://creativecommons.org/licenses/by-nc-sa/4.0/", name: "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"),
×
UNCOV
24
        Rights.new(identifier: "CC BY-ND", uri: "https://creativecommons.org/licenses/by-nd/4.0/", name: "Creative Commons Attribution-NoDerivatives 4.0 International"),
×
UNCOV
25
        Rights.new(identifier: "CC BY-NC-ND", uri: "https://creativecommons.org/licenses/by-nc-nd/4.0/", name: "Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International"),
×
UNCOV
26
        Rights.new(identifier: "CC0", uri: "https://creativecommons.org/publicdomain/zero/1.0/", name: "Creative Commons 1.0 Universal - Public Domain Dedication")
×
UNCOV
27
      ]
×
UNCOV
28
    end
×
29

UNCOV
30
    def self.find(identifier)
×
UNCOV
31
      all.find { |rights| rights.identifier == identifier }
×
UNCOV
32
    end
×
UNCOV
33
  end
×
UNCOV
34
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