darlingtonia 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -0
- data/.rubocop_todo.yml +21 -0
- data/CHANGELOG.md +4 -0
- data/lib/darlingtonia/hyrax_record_importer.rb +2 -1
- data/lib/darlingtonia/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11711b29d2398b35a745b5665754f07b661223c189f51d8287f27908b95ee4e8
|
4
|
+
data.tar.gz: bbfdfe65e50913cbd8c8f83ac6147652d03e72b4ccad67afb36f50ac426b9de7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6e52bbd0db497a0af9c8d3a64f2bdabb6b4f3ada37dd8814e322b7b4f90d9dfde7a59146a4cd2b28c68d9373c567545821f08344940f42526b3da8a69de2710
|
7
|
+
data.tar.gz: 4e73d4769c624c6d3e355df81b67d9aef554475512fc7ab4fbc10c2ae968fd89ed37aa9f302dd5760780a15b19b0a7a5aa155f732c811f59687e9b2bc611daf8
|
data/.rubocop.yml
CHANGED
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2019-02-21 09:32:03 -0500 using RuboCop version 0.52.1.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
# Offense count: 1
|
10
|
+
Metrics/CyclomaticComplexity:
|
11
|
+
Max: 7
|
12
|
+
|
13
|
+
# Offense count: 1
|
14
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
15
|
+
# URISchemes: http, https
|
16
|
+
Metrics/LineLength:
|
17
|
+
Max: 228
|
18
|
+
|
19
|
+
# Offense count: 1
|
20
|
+
Metrics/PerceivedComplexity:
|
21
|
+
Max: 8
|
data/CHANGELOG.md
CHANGED
@@ -160,6 +160,7 @@ module Darlingtonia
|
|
160
160
|
uploaded_files: create_upload_files(record),
|
161
161
|
depositor: @depositor.user_key
|
162
162
|
}
|
163
|
+
|
163
164
|
created = import_type.new
|
164
165
|
|
165
166
|
attrs = record.attributes.merge(additional_attrs)
|
@@ -177,7 +178,7 @@ module Darlingtonia
|
|
177
178
|
@success_count += 1
|
178
179
|
else
|
179
180
|
created.errors.each do |attr, msg|
|
180
|
-
error_stream << "event: validation_failed, batch_id: #{batch_id}, collection_id: #{collection_id}, attribute: #{attr.capitalize}, message: #{msg}, record_title: #{attrs[:title]
|
181
|
+
error_stream << "event: validation_failed, batch_id: #{batch_id}, collection_id: #{collection_id}, attribute: #{attr.capitalize}, message: #{msg}, record_title: record_title: #{attrs[:title] ? attrs[:title] : attrs}"
|
181
182
|
end
|
182
183
|
@failure_count += 1
|
183
184
|
end
|
data/lib/darlingtonia/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: darlingtonia
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Data Curation Experts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-02-
|
11
|
+
date: 2019-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active-fedora
|
@@ -159,6 +159,7 @@ extra_rdoc_files: []
|
|
159
159
|
files:
|
160
160
|
- ".gitignore"
|
161
161
|
- ".rubocop.yml"
|
162
|
+
- ".rubocop_todo.yml"
|
162
163
|
- ".travis.yml"
|
163
164
|
- CHANGELOG.md
|
164
165
|
- Gemfile
|