stanford-mods 2.6.1 → 2.6.2
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.yml +1 -1
- data/.rubocop_todo.yml +86 -64
- data/.travis.yml +13 -8
- data/Gemfile +0 -6
- data/lib/stanford-mods/imprint.rb +1 -1
- data/lib/stanford-mods/searchworks_languages.rb +2 -0
- data/lib/stanford-mods/version.rb +1 -1
- data/spec/fixtures/searchworks_imprint_data.rb +1 -1
- data/spec/fixtures/searchworks_pub_date_data.rb +1 -1
- data/spec/imprint_spec.rb +1 -0
- data/spec/spec_helper.rb +2 -2
- data/stanford-mods.gemspec +3 -0
- metadata +45 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1edb227541109c47923e060caf25a50ffeeaf2d362eb4a9276cc9bc89cfe9f51
|
|
4
|
+
data.tar.gz: 7b28b171dd95a6a0c8d2206bede0310cd3c6cd04f3a6280c84b27ce7aa8d4566
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 124ece600b2e52bfea0dbfd125ecc2f2b6dfaad5774009fd76a21a14e06cff916287497c76929616b45e7bf461b7ba72ee700a49e362d4e22bdfb5f28af54e0b
|
|
7
|
+
data.tar.gz: 1b8d1a934be80ad1f113e0e82eaa7e3084256dd5ef7cfee0c0d1d74b3d4f9b809592aa1fc34972e003d0ecbca18a411aa6c64edf40e2ae4aaddc091ffc6cbc8e
|
data/.rubocop.yml
CHANGED
data/.rubocop_todo.yml
CHANGED
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
2
|
# `rubocop --auto-gen-config`
|
|
3
|
-
# on
|
|
3
|
+
# on 2020-03-13 16:37:30 -0700 using RuboCop version 0.80.1.
|
|
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
|
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
|
8
8
|
|
|
9
|
-
# Offense count: 1
|
|
10
|
-
# Cop supports --auto-correct.
|
|
11
|
-
# Configuration parameters: TreatCommentsAsGroupSeparators, Include.
|
|
12
|
-
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
|
|
13
|
-
Bundler/OrderedGems:
|
|
14
|
-
Exclude:
|
|
15
|
-
- 'Gemfile'
|
|
16
|
-
|
|
17
9
|
# Offense count: 1
|
|
18
10
|
# Cop supports --auto-correct.
|
|
19
11
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
@@ -24,23 +16,11 @@ Layout/AccessModifierIndentation:
|
|
|
24
16
|
|
|
25
17
|
# Offense count: 22
|
|
26
18
|
# Cop supports --auto-correct.
|
|
27
|
-
Layout/
|
|
19
|
+
Layout/ArrayAlignment:
|
|
28
20
|
Exclude:
|
|
29
21
|
- 'lib/stanford-mods/searchworks.rb'
|
|
30
22
|
- 'spec/imprint_spec.rb'
|
|
31
23
|
|
|
32
|
-
# Offense count: 4
|
|
33
|
-
# Cop supports --auto-correct.
|
|
34
|
-
# Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
|
35
|
-
# SupportedHashRocketStyles: key, separator, table
|
|
36
|
-
# SupportedColonStyles: key, separator, table
|
|
37
|
-
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
|
38
|
-
Layout/AlignHash:
|
|
39
|
-
Exclude:
|
|
40
|
-
- 'spec/fixtures/searchworks_imprint_data.rb'
|
|
41
|
-
- 'spec/fixtures/searchworks_pub_date_data.rb'
|
|
42
|
-
- 'spec/fixtures/spotlight_pub_date_data.rb'
|
|
43
|
-
|
|
44
24
|
# Offense count: 12
|
|
45
25
|
# Cop supports --auto-correct.
|
|
46
26
|
Layout/BlockEndNewline:
|
|
@@ -71,11 +51,23 @@ Layout/EmptyLineAfterMagicComment:
|
|
|
71
51
|
|
|
72
52
|
# Offense count: 1
|
|
73
53
|
# Cop supports --auto-correct.
|
|
74
|
-
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
|
|
54
|
+
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
|
75
55
|
Layout/ExtraSpacing:
|
|
76
56
|
Exclude:
|
|
77
57
|
- 'lib/stanford-mods/searchworks.rb'
|
|
78
58
|
|
|
59
|
+
# Offense count: 4
|
|
60
|
+
# Cop supports --auto-correct.
|
|
61
|
+
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
|
62
|
+
# SupportedHashRocketStyles: key, separator, table
|
|
63
|
+
# SupportedColonStyles: key, separator, table
|
|
64
|
+
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
|
65
|
+
Layout/HashAlignment:
|
|
66
|
+
Exclude:
|
|
67
|
+
- 'spec/fixtures/searchworks_imprint_data.rb'
|
|
68
|
+
- 'spec/fixtures/searchworks_pub_date_data.rb'
|
|
69
|
+
- 'spec/fixtures/spotlight_pub_date_data.rb'
|
|
70
|
+
|
|
79
71
|
# Offense count: 6
|
|
80
72
|
# Cop supports --auto-correct.
|
|
81
73
|
# Configuration parameters: EnforcedStyle.
|
|
@@ -120,7 +112,8 @@ Layout/SpaceAfterComma:
|
|
|
120
112
|
|
|
121
113
|
# Offense count: 1
|
|
122
114
|
# Cop supports --auto-correct.
|
|
123
|
-
# Configuration parameters: AllowForAlignment.
|
|
115
|
+
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
|
|
116
|
+
# SupportedStylesForExponentOperator: space, no_space
|
|
124
117
|
Layout/SpaceAroundOperators:
|
|
125
118
|
Exclude:
|
|
126
119
|
- 'lib/stanford-mods/searchworks.rb'
|
|
@@ -141,9 +134,9 @@ Layout/TrailingWhitespace:
|
|
|
141
134
|
Exclude:
|
|
142
135
|
- 'spec/searchworks_spec.rb'
|
|
143
136
|
|
|
144
|
-
# Offense count:
|
|
137
|
+
# Offense count: 31
|
|
145
138
|
Metrics/AbcSize:
|
|
146
|
-
Max:
|
|
139
|
+
Max: 57
|
|
147
140
|
|
|
148
141
|
# Offense count: 97
|
|
149
142
|
# Configuration parameters: CountComments, ExcludedMethods.
|
|
@@ -160,12 +153,6 @@ Metrics/ClassLength:
|
|
|
160
153
|
Metrics/CyclomaticComplexity:
|
|
161
154
|
Max: 32
|
|
162
155
|
|
|
163
|
-
# Offense count: 116
|
|
164
|
-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
|
165
|
-
# URISchemes: http, https
|
|
166
|
-
Metrics/LineLength:
|
|
167
|
-
Max: 199
|
|
168
|
-
|
|
169
156
|
# Offense count: 31
|
|
170
157
|
# Configuration parameters: CountComments, ExcludedMethods.
|
|
171
158
|
Metrics/MethodLength:
|
|
@@ -183,8 +170,8 @@ Naming/FileName:
|
|
|
183
170
|
- 'lib/stanford-mods.rb'
|
|
184
171
|
|
|
185
172
|
# Offense count: 24
|
|
186
|
-
# Configuration parameters:
|
|
187
|
-
#
|
|
173
|
+
# Configuration parameters: ForbiddenDelimiters.
|
|
174
|
+
# ForbiddenDelimiters: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
|
|
188
175
|
Naming/HeredocDelimiterNaming:
|
|
189
176
|
Exclude:
|
|
190
177
|
- 'spec/geo_spatial_spec.rb'
|
|
@@ -194,7 +181,7 @@ Naming/HeredocDelimiterNaming:
|
|
|
194
181
|
- 'spec/searchworks_basic_spec.rb'
|
|
195
182
|
|
|
196
183
|
# Offense count: 3
|
|
197
|
-
# Configuration parameters: EnforcedStyle.
|
|
184
|
+
# Configuration parameters: EnforcedStyle, IgnoredPatterns.
|
|
198
185
|
# SupportedStyles: snake_case, camelCase
|
|
199
186
|
Naming/MethodName:
|
|
200
187
|
Exclude:
|
|
@@ -202,24 +189,24 @@ Naming/MethodName:
|
|
|
202
189
|
- 'lib/stanford-mods/searchworks.rb'
|
|
203
190
|
|
|
204
191
|
# Offense count: 2
|
|
205
|
-
# Configuration parameters:
|
|
192
|
+
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
|
193
|
+
# AllowedNames: io, id, to, by, on, in, at, ip, db, os, pp
|
|
194
|
+
Naming/MethodParameterName:
|
|
195
|
+
Exclude:
|
|
196
|
+
- 'lib/stanford-mods/imprint.rb'
|
|
197
|
+
|
|
198
|
+
# Offense count: 2
|
|
199
|
+
# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
|
|
206
200
|
# NamePrefix: is_, has_, have_
|
|
207
|
-
#
|
|
208
|
-
#
|
|
201
|
+
# ForbiddenPrefixes: is_, has_, have_
|
|
202
|
+
# AllowedMethods: is_a?
|
|
209
203
|
# MethodDefinitionMacros: define_method, define_singleton_method
|
|
210
204
|
Naming/PredicateName:
|
|
211
205
|
Exclude:
|
|
212
206
|
- 'spec/**/*'
|
|
213
207
|
- 'lib/stanford-mods/origin_info.rb'
|
|
214
208
|
|
|
215
|
-
# Offense count:
|
|
216
|
-
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
|
217
|
-
# AllowedNames: io, id, to, by, on, in, at, ip, db
|
|
218
|
-
Naming/UncommunicativeMethodParamName:
|
|
219
|
-
Exclude:
|
|
220
|
-
- 'lib/stanford-mods/imprint.rb'
|
|
221
|
-
|
|
222
|
-
# Offense count: 8
|
|
209
|
+
# Offense count: 30
|
|
223
210
|
# Configuration parameters: EnforcedStyle.
|
|
224
211
|
# SupportedStyles: snake_case, camelCase
|
|
225
212
|
Naming/VariableName:
|
|
@@ -228,12 +215,6 @@ Naming/VariableName:
|
|
|
228
215
|
- 'lib/stanford-mods/origin_info.rb'
|
|
229
216
|
- 'lib/stanford-mods/searchworks.rb'
|
|
230
217
|
|
|
231
|
-
# Offense count: 1
|
|
232
|
-
# Cop supports --auto-correct.
|
|
233
|
-
Performance/UnneededSort:
|
|
234
|
-
Exclude:
|
|
235
|
-
- 'lib/stanford-mods/origin_info.rb'
|
|
236
|
-
|
|
237
218
|
# Offense count: 3
|
|
238
219
|
RSpec/AnyInstance:
|
|
239
220
|
Exclude:
|
|
@@ -252,7 +233,7 @@ RSpec/BeforeAfterAll:
|
|
|
252
233
|
- 'spec/searchworks_subject_spec.rb'
|
|
253
234
|
- 'spec/searchworks_title_spec.rb'
|
|
254
235
|
|
|
255
|
-
# Offense count:
|
|
236
|
+
# Offense count: 137
|
|
256
237
|
# Configuration parameters: Prefixes.
|
|
257
238
|
# Prefixes: when, with, without
|
|
258
239
|
RSpec/ContextWording:
|
|
@@ -298,7 +279,7 @@ RSpec/EmptyLineAfterFinalLet:
|
|
|
298
279
|
- 'spec/physical_location_spec.rb'
|
|
299
280
|
- 'spec/sw_publication_spec.rb'
|
|
300
281
|
|
|
301
|
-
# Offense count:
|
|
282
|
+
# Offense count: 134
|
|
302
283
|
# Configuration parameters: Max.
|
|
303
284
|
RSpec/ExampleLength:
|
|
304
285
|
Exclude:
|
|
@@ -339,7 +320,7 @@ RSpec/FilePath:
|
|
|
339
320
|
RSpec/HookArgument:
|
|
340
321
|
EnforcedStyle: each
|
|
341
322
|
|
|
342
|
-
# Offense count:
|
|
323
|
+
# Offense count: 935
|
|
343
324
|
# Configuration parameters: AssignmentOnly.
|
|
344
325
|
RSpec/InstanceVariable:
|
|
345
326
|
Exclude:
|
|
@@ -374,6 +355,7 @@ RSpec/MultipleExpectations:
|
|
|
374
355
|
Max: 9
|
|
375
356
|
|
|
376
357
|
# Offense count: 2
|
|
358
|
+
# Configuration parameters: IgnoreSharedExamples.
|
|
377
359
|
RSpec/NamedSubject:
|
|
378
360
|
Exclude:
|
|
379
361
|
- 'spec/lib/stanford-mods/coordinate_spec.rb'
|
|
@@ -407,8 +389,8 @@ Style/Alias:
|
|
|
407
389
|
|
|
408
390
|
# Offense count: 30
|
|
409
391
|
# Cop supports --auto-correct.
|
|
410
|
-
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods.
|
|
411
|
-
# SupportedStyles: line_count_based, semantic, braces_for_chaining
|
|
392
|
+
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
|
|
393
|
+
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
|
|
412
394
|
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
|
413
395
|
# FunctionalMethods: let, let!, subject, watch
|
|
414
396
|
# IgnoredMethods: lambda, proc, it
|
|
@@ -480,6 +462,13 @@ Style/ExpandPathArguments:
|
|
|
480
462
|
Exclude:
|
|
481
463
|
- 'stanford-mods.gemspec'
|
|
482
464
|
|
|
465
|
+
# Offense count: 36
|
|
466
|
+
# Cop supports --auto-correct.
|
|
467
|
+
# Configuration parameters: EnforcedStyle.
|
|
468
|
+
# SupportedStyles: always, always_true, never
|
|
469
|
+
Style/FrozenStringLiteralComment:
|
|
470
|
+
Enabled: false
|
|
471
|
+
|
|
483
472
|
# Offense count: 3
|
|
484
473
|
# Configuration parameters: MinBodyLength.
|
|
485
474
|
Style/GuardClause:
|
|
@@ -533,13 +522,14 @@ Style/NumericLiteralPrefix:
|
|
|
533
522
|
Exclude:
|
|
534
523
|
- 'spec/date_parsing_spec.rb'
|
|
535
524
|
|
|
536
|
-
# Offense count:
|
|
525
|
+
# Offense count: 4
|
|
537
526
|
# Cop supports --auto-correct.
|
|
538
527
|
# Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
|
|
539
528
|
# SupportedStyles: predicate, comparison
|
|
540
529
|
Style/NumericPredicate:
|
|
541
530
|
Exclude:
|
|
542
531
|
- 'spec/**/*'
|
|
532
|
+
- 'lib/stanford-mods/origin_info.rb'
|
|
543
533
|
- 'lib/stanford-mods/searchworks.rb'
|
|
544
534
|
|
|
545
535
|
# Offense count: 8
|
|
@@ -556,6 +546,26 @@ Style/PreferredHashMethods:
|
|
|
556
546
|
Exclude:
|
|
557
547
|
- 'lib/stanford-mods/searchworks.rb'
|
|
558
548
|
|
|
549
|
+
# Offense count: 5
|
|
550
|
+
# Cop supports --auto-correct.
|
|
551
|
+
Style/RedundantCondition:
|
|
552
|
+
Exclude:
|
|
553
|
+
- 'lib/stanford-mods/origin_info.rb'
|
|
554
|
+
- 'lib/stanford-mods/searchworks.rb'
|
|
555
|
+
|
|
556
|
+
# Offense count: 3
|
|
557
|
+
# Cop supports --auto-correct.
|
|
558
|
+
# Configuration parameters: AllowMultipleReturnValues.
|
|
559
|
+
Style/RedundantReturn:
|
|
560
|
+
Exclude:
|
|
561
|
+
- 'lib/stanford-mods/date_parsing.rb'
|
|
562
|
+
|
|
563
|
+
# Offense count: 1
|
|
564
|
+
# Cop supports --auto-correct.
|
|
565
|
+
Style/RedundantSort:
|
|
566
|
+
Exclude:
|
|
567
|
+
- 'lib/stanford-mods/origin_info.rb'
|
|
568
|
+
|
|
559
569
|
# Offense count: 6
|
|
560
570
|
# Cop supports --auto-correct.
|
|
561
571
|
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
|
|
@@ -580,6 +590,17 @@ Style/RescueStandardError:
|
|
|
580
590
|
Exclude:
|
|
581
591
|
- 'lib/stanford-mods/imprint.rb'
|
|
582
592
|
|
|
593
|
+
# Offense count: 18
|
|
594
|
+
# Cop supports --auto-correct.
|
|
595
|
+
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
|
|
596
|
+
# AllowedMethods: present?, blank?, presence, try, try!
|
|
597
|
+
Style/SafeNavigation:
|
|
598
|
+
Exclude:
|
|
599
|
+
- 'lib/stanford-mods/date_parsing.rb'
|
|
600
|
+
- 'lib/stanford-mods/imprint.rb'
|
|
601
|
+
- 'lib/stanford-mods/searchworks.rb'
|
|
602
|
+
- 'lib/stanford-mods/searchworks_subjects.rb'
|
|
603
|
+
|
|
583
604
|
# Offense count: 1
|
|
584
605
|
# Cop supports --auto-correct.
|
|
585
606
|
# Configuration parameters: EnforcedStyle.
|
|
@@ -617,14 +638,15 @@ Style/SymbolProc:
|
|
|
617
638
|
- 'lib/stanford-mods/searchworks.rb'
|
|
618
639
|
- 'lib/stanford-mods/searchworks_subjects.rb'
|
|
619
640
|
|
|
620
|
-
# Offense count:
|
|
641
|
+
# Offense count: 1
|
|
621
642
|
# Cop supports --auto-correct.
|
|
622
|
-
|
|
643
|
+
# Configuration parameters: EnforcedStyleForMultiline.
|
|
644
|
+
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
|
645
|
+
Style/TrailingCommaInArrayLiteral:
|
|
623
646
|
Exclude:
|
|
624
|
-
- '
|
|
625
|
-
- 'lib/stanford-mods/searchworks.rb'
|
|
647
|
+
- 'spec/date_parsing_spec.rb'
|
|
626
648
|
|
|
627
|
-
# Offense count:
|
|
649
|
+
# Offense count: 125
|
|
628
650
|
# Cop supports --auto-correct.
|
|
629
651
|
# Configuration parameters: MinSize, WordRegex.
|
|
630
652
|
# SupportedStyles: percent, brackets
|
|
@@ -634,7 +656,7 @@ Style/WordArray:
|
|
|
634
656
|
# Offense count: 2
|
|
635
657
|
# Cop supports --auto-correct.
|
|
636
658
|
# Configuration parameters: EnforcedStyle.
|
|
637
|
-
# SupportedStyles:
|
|
659
|
+
# SupportedStyles: forbid_for_all_comparison_operators, forbid_for_equality_operators_only, require_for_all_comparison_operators, require_for_equality_operators_only
|
|
638
660
|
Style/YodaCondition:
|
|
639
661
|
Exclude:
|
|
640
662
|
- 'lib/stanford-mods/date_parsing.rb'
|
data/.travis.yml
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
language: ruby
|
|
2
2
|
script: rake
|
|
3
3
|
rvm:
|
|
4
|
-
- 2.
|
|
5
|
-
- 2.
|
|
6
|
-
# we used to use jruby for merged DOR + MARC records, but no more ...
|
|
7
|
-
- jruby-9.2.4.0
|
|
8
|
-
matrix:
|
|
9
|
-
allow_failures:
|
|
10
|
-
- rvm: jruby-9.2.4.0
|
|
4
|
+
- 2.7.0
|
|
5
|
+
- jruby-9.2.11.0
|
|
11
6
|
notifications: false
|
|
12
|
-
|
|
7
|
+
env:
|
|
8
|
+
global:
|
|
9
|
+
- CC_TEST_REPORTER_ID=102848d93bffaa165e4a28cf9998693634256355cd5821349afdea9792dbedaa
|
|
10
|
+
|
|
11
|
+
before_script:
|
|
12
|
+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
|
13
|
+
- chmod +x ./cc-test-reporter
|
|
14
|
+
- ./cc-test-reporter before-build
|
|
15
|
+
|
|
16
|
+
after_script:
|
|
17
|
+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
data/Gemfile
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# Language Values used by SearchWorks
|
|
2
2
|
# From https://github.com/solrmarc/stanford-solr-marc/blob/master/stanford-sw/translation_maps/language_map.properties
|
|
3
|
+
# code 'ase' from iso639-3
|
|
3
4
|
SEARCHWORKS_LANGUAGES = {
|
|
4
5
|
'aaa' => 'Afar',
|
|
5
6
|
'abk' => 'Abkhaz',
|
|
@@ -30,6 +31,7 @@ SEARCHWORKS_LANGUAGES = {
|
|
|
30
31
|
'arp' => 'Arapaho',
|
|
31
32
|
'art' => 'Artificial (Other)',
|
|
32
33
|
'arw' => 'Arawak',
|
|
34
|
+
'ase' => 'American Sign Language',
|
|
33
35
|
'asm' => 'Assamese',
|
|
34
36
|
'ast' => 'Bable',
|
|
35
37
|
'ath' => 'Athapascan (Other)',
|
data/spec/imprint_spec.rb
CHANGED
|
@@ -14,6 +14,7 @@ describe Stanford::Mods::Imprint do
|
|
|
14
14
|
'' => [],
|
|
15
15
|
'<dateIssued point="start">unparsable</dateIssued>' => [],
|
|
16
16
|
'<dateIssued>1957</dateIssued>' => [1957],
|
|
17
|
+
'<dateCreated>1957</dateCreated>' => [1957],
|
|
17
18
|
'<dateIssued>195u</dateIssued>' => (1950..1959).to_a,
|
|
18
19
|
'<dateCreated keyDate="yes">1964</dateCreated><dateIssued>195u</dateIssued>' => [1964],
|
|
19
20
|
'<dateIssued>1964</dateIssued><dateCreated>195u</dateCreated>' => [1964],
|
data/spec/spec_helper.rb
CHANGED
data/stanford-mods.gemspec
CHANGED
|
@@ -27,4 +27,7 @@ Gem::Specification.new do |gem|
|
|
|
27
27
|
gem.add_development_dependency "yard"
|
|
28
28
|
# tests
|
|
29
29
|
gem.add_development_dependency 'rspec'
|
|
30
|
+
gem.add_development_dependency 'rubocop', '~> 0.60'
|
|
31
|
+
gem.add_development_dependency 'rubocop-rspec'
|
|
32
|
+
gem.add_development_dependency 'simplecov'
|
|
30
33
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: stanford-mods
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.6.
|
|
4
|
+
version: 2.6.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Naomi Dushay
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2020-07-26 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: mods
|
|
@@ -95,6 +95,48 @@ dependencies:
|
|
|
95
95
|
- - ">="
|
|
96
96
|
- !ruby/object:Gem::Version
|
|
97
97
|
version: '0'
|
|
98
|
+
- !ruby/object:Gem::Dependency
|
|
99
|
+
name: rubocop
|
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
|
101
|
+
requirements:
|
|
102
|
+
- - "~>"
|
|
103
|
+
- !ruby/object:Gem::Version
|
|
104
|
+
version: '0.60'
|
|
105
|
+
type: :development
|
|
106
|
+
prerelease: false
|
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
108
|
+
requirements:
|
|
109
|
+
- - "~>"
|
|
110
|
+
- !ruby/object:Gem::Version
|
|
111
|
+
version: '0.60'
|
|
112
|
+
- !ruby/object:Gem::Dependency
|
|
113
|
+
name: rubocop-rspec
|
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
|
115
|
+
requirements:
|
|
116
|
+
- - ">="
|
|
117
|
+
- !ruby/object:Gem::Version
|
|
118
|
+
version: '0'
|
|
119
|
+
type: :development
|
|
120
|
+
prerelease: false
|
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
122
|
+
requirements:
|
|
123
|
+
- - ">="
|
|
124
|
+
- !ruby/object:Gem::Version
|
|
125
|
+
version: '0'
|
|
126
|
+
- !ruby/object:Gem::Dependency
|
|
127
|
+
name: simplecov
|
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
|
129
|
+
requirements:
|
|
130
|
+
- - ">="
|
|
131
|
+
- !ruby/object:Gem::Version
|
|
132
|
+
version: '0'
|
|
133
|
+
type: :development
|
|
134
|
+
prerelease: false
|
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
136
|
+
requirements:
|
|
137
|
+
- - ">="
|
|
138
|
+
- !ruby/object:Gem::Version
|
|
139
|
+
version: '0'
|
|
98
140
|
description: Stanford specific wrangling of MODS metadata from DOR, the Stanford Digital
|
|
99
141
|
Object Repository
|
|
100
142
|
email:
|
|
@@ -170,8 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
170
212
|
- !ruby/object:Gem::Version
|
|
171
213
|
version: '0'
|
|
172
214
|
requirements: []
|
|
173
|
-
|
|
174
|
-
rubygems_version: 2.7.6
|
|
215
|
+
rubygems_version: 3.1.2
|
|
175
216
|
signing_key:
|
|
176
217
|
specification_version: 4
|
|
177
218
|
summary: Stanford specific wrangling of MODS metadata
|