loc_mods 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +27 -23
- data/lib/loc_mods/classification.rb +2 -0
- data/lib/loc_mods/cli.rb +1 -1
- data/lib/loc_mods/origin_info.rb +1 -1
- data/lib/loc_mods/physical_description.rb +1 -1
- data/lib/loc_mods/record.rb +1 -1
- data/lib/loc_mods/subject.rb +1 -1
- data/lib/loc_mods/target_audience.rb +2 -0
- data/lib/loc_mods/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5613f1f712d8203015a0fb3e47fd3741086837e9d428867aab27b572719b2747
|
|
4
|
+
data.tar.gz: 021aa87a31a69b90abbd870de1ca2a5e6bdfb2379a5e42db002b7fefd1ac8466
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4a5960d07721a5de9a030c3137c1a66072f5399ea96b897eceb98a81dd273967073de1e48f8237209dc66ca28514230f42bc9c8bc596db11d777545eca71159c
|
|
7
|
+
data.tar.gz: 44f4ec3fd0969b5a45458917ef386556901e9ec032affcce994d34456ebeb9d15d2bb55f9d8554e6767cc17335a7ff19d0523df93c21591124c909fab242912a
|
data/.rubocop_todo.yml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
2
|
# `rubocop --auto-gen-config`
|
|
3
|
-
# on
|
|
3
|
+
# on 2025-01-14 08:30:09 UTC using RuboCop version 1.70.0.
|
|
4
4
|
# The point is for the user to remove these configuration records
|
|
5
5
|
# one by one as the offenses are removed from the code base.
|
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
|
@@ -13,43 +13,38 @@ Gemspec/RequiredRubyVersion:
|
|
|
13
13
|
Exclude:
|
|
14
14
|
- 'loc_mods.gemspec'
|
|
15
15
|
|
|
16
|
-
# Offense count:
|
|
16
|
+
# Offense count: 1
|
|
17
17
|
# Configuration parameters: AllowedMethods.
|
|
18
18
|
# AllowedMethods: enums
|
|
19
19
|
Lint/ConstantDefinitionInBlock:
|
|
20
20
|
Exclude:
|
|
21
21
|
- 'spec/loc_mods/collection_spec.rb'
|
|
22
22
|
|
|
23
|
-
# Offense count:
|
|
23
|
+
# Offense count: 1
|
|
24
24
|
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
|
|
25
25
|
Metrics/AbcSize:
|
|
26
26
|
Max: 50
|
|
27
27
|
|
|
28
|
-
# Offense count:
|
|
28
|
+
# Offense count: 1
|
|
29
29
|
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
|
30
30
|
# AllowedMethods: refine
|
|
31
31
|
Metrics/BlockLength:
|
|
32
|
-
Max:
|
|
32
|
+
Max: 32
|
|
33
33
|
|
|
34
|
-
# Offense count:
|
|
35
|
-
# Configuration parameters: CountComments, CountAsOne.
|
|
36
|
-
Metrics/ClassLength:
|
|
37
|
-
Max: 253
|
|
38
|
-
|
|
39
|
-
# Offense count: 6
|
|
34
|
+
# Offense count: 2
|
|
40
35
|
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
41
36
|
Metrics/CyclomaticComplexity:
|
|
42
37
|
Max: 15
|
|
43
38
|
|
|
44
|
-
# Offense count:
|
|
39
|
+
# Offense count: 3
|
|
45
40
|
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
|
46
41
|
Metrics/MethodLength:
|
|
47
42
|
Max: 43
|
|
48
43
|
|
|
49
|
-
# Offense count:
|
|
44
|
+
# Offense count: 2
|
|
50
45
|
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
51
46
|
Metrics/PerceivedComplexity:
|
|
52
|
-
Max:
|
|
47
|
+
Max: 16
|
|
53
48
|
|
|
54
49
|
# Offense count: 1
|
|
55
50
|
# Configuration parameters: ForbiddenDelimiters.
|
|
@@ -63,21 +58,30 @@ Security/Open:
|
|
|
63
58
|
Exclude:
|
|
64
59
|
- 'bin/update-nist-mods'
|
|
65
60
|
|
|
66
|
-
# Offense count:
|
|
61
|
+
# Offense count: 63
|
|
67
62
|
# Configuration parameters: AllowedConstants.
|
|
68
63
|
Style/Documentation:
|
|
69
64
|
Enabled: false
|
|
70
65
|
|
|
71
66
|
# Offense count: 1
|
|
72
|
-
#
|
|
73
|
-
#
|
|
74
|
-
Style/
|
|
67
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
68
|
+
# Configuration parameters: Strict, AllowedNumbers, AllowedPatterns.
|
|
69
|
+
Style/NumericLiterals:
|
|
70
|
+
MinDigits: 6
|
|
71
|
+
|
|
72
|
+
# Offense count: 2
|
|
73
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
74
|
+
# Configuration parameters: EnforcedStyleForMultiline.
|
|
75
|
+
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
|
76
|
+
Style/TrailingCommaInArguments:
|
|
75
77
|
Exclude:
|
|
76
|
-
- 'lib/loc_mods/
|
|
78
|
+
- 'lib/loc_mods/cli.rb'
|
|
79
|
+
- 'spec/loc_mods/collection_spec.rb'
|
|
77
80
|
|
|
78
81
|
# Offense count: 1
|
|
79
82
|
# This cop supports safe autocorrection (--autocorrect).
|
|
80
|
-
# Configuration parameters:
|
|
81
|
-
#
|
|
82
|
-
|
|
83
|
-
|
|
83
|
+
# Configuration parameters: EnforcedStyleForMultiline.
|
|
84
|
+
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
|
85
|
+
Style/TrailingCommaInArrayLiteral:
|
|
86
|
+
Exclude:
|
|
87
|
+
- 'spec/loc_mods/collection_spec.rb'
|
|
@@ -5,6 +5,7 @@ require "lutaml/model"
|
|
|
5
5
|
module LocMods
|
|
6
6
|
class Classification < Lutaml::Model::Serializable
|
|
7
7
|
attribute :content, :string
|
|
8
|
+
attribute :authority, :string
|
|
8
9
|
attribute :edition, :string
|
|
9
10
|
attribute :display_label, :string
|
|
10
11
|
attribute :alt_rep_group, :string
|
|
@@ -16,6 +17,7 @@ module LocMods
|
|
|
16
17
|
namespace "http://www.loc.gov/mods/v3", nil
|
|
17
18
|
|
|
18
19
|
map_content to: :content
|
|
20
|
+
map_attribute "authority", to: :authority
|
|
19
21
|
map_attribute "edition", to: :edition
|
|
20
22
|
map_attribute "displayLabel", to: :display_label
|
|
21
23
|
map_attribute "altRepGroup", to: :alt_rep_group
|
data/lib/loc_mods/cli.rb
CHANGED
data/lib/loc_mods/origin_info.rb
CHANGED
data/lib/loc_mods/record.rb
CHANGED
data/lib/loc_mods/subject.rb
CHANGED
|
@@ -5,6 +5,7 @@ require "lutaml/model"
|
|
|
5
5
|
module LocMods
|
|
6
6
|
class TargetAudience < Lutaml::Model::Serializable
|
|
7
7
|
attribute :content, :string
|
|
8
|
+
attribute :authority, :string
|
|
8
9
|
attribute :display_label, :string
|
|
9
10
|
attribute :alt_rep_group, :string
|
|
10
11
|
|
|
@@ -13,6 +14,7 @@ module LocMods
|
|
|
13
14
|
namespace "http://www.loc.gov/mods/v3", nil
|
|
14
15
|
|
|
15
16
|
map_content to: :content
|
|
17
|
+
map_attribute "authority", to: :authority
|
|
16
18
|
map_attribute "displayLabel", to: :display_label
|
|
17
19
|
map_attribute "altRepGroup", to: :alt_rep_group
|
|
18
20
|
end
|
data/lib/loc_mods/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: loc_mods
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2025-01-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: lutaml-model
|
|
@@ -214,7 +214,7 @@ metadata:
|
|
|
214
214
|
homepage_uri: https://github.com/relaton/loc_mods
|
|
215
215
|
source_code_uri: https://github.com/relaton/loc_mods
|
|
216
216
|
changelog_uri: https://github.com/relaton/loc_mods
|
|
217
|
-
post_install_message:
|
|
217
|
+
post_install_message:
|
|
218
218
|
rdoc_options: []
|
|
219
219
|
require_paths:
|
|
220
220
|
- lib
|
|
@@ -230,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
230
230
|
version: '0'
|
|
231
231
|
requirements: []
|
|
232
232
|
rubygems_version: 3.3.27
|
|
233
|
-
signing_key:
|
|
233
|
+
signing_key:
|
|
234
234
|
specification_version: 4
|
|
235
235
|
summary: Library of Congress MODS / MADS parser
|
|
236
236
|
test_files: []
|