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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0daf4fb9c30f690fbeff1fb7d0c50547d7593cb8e5290ad19024016f0399feaa
4
- data.tar.gz: 92f38e52c5391487b1ed592c285a553f1fc9650b16d3bee5d2c2200d969cdc3f
3
+ metadata.gz: 11711b29d2398b35a745b5665754f07b661223c189f51d8287f27908b95ee4e8
4
+ data.tar.gz: bbfdfe65e50913cbd8c8f83ac6147652d03e72b4ccad67afb36f50ac426b9de7
5
5
  SHA512:
6
- metadata.gz: d1e270238bd6889b25cfb5a2b35241a55707fa06b1b212e7a0e86ecd30fc8ff26f636b90f367c6ea18bed4712b373986672fcc3f05b8af9c521c305ce06cdd4d
7
- data.tar.gz: 5aafe22a3174c192b4f56c2d7a3443f843983d2d636913c3248ab96ac08abe2558bdd5cd722168d4512023da71d7ce068a46ff6515032042c4c69ca8e3123fdc
6
+ metadata.gz: b6e52bbd0db497a0af9c8d3a64f2bdabb6b4f3ada37dd8814e322b7b4f90d9dfde7a59146a4cd2b28c68d9373c567545821f08344940f42526b3da8a69de2710
7
+ data.tar.gz: 4e73d4769c624c6d3e355df81b67d9aef554475512fc7ab4fbc10c2ae968fd89ed37aa9f302dd5760780a15b19b0a7a5aa155f732c811f59687e9b2bc611daf8
data/.rubocop.yml CHANGED
@@ -1,3 +1,5 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
1
3
  inherit_gem:
2
4
  bixby: bixby_default.yml
3
5
 
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
@@ -1,3 +1,7 @@
1
+ 3.0.2 - Thu Feb 21, 2019
2
+
3
+ * Bug fix: Do not fail to log errors if the record is missing a title
4
+
1
5
  3.0.1 - Thu Feb 14, 2019
2
6
 
3
7
  * Move the default log into a log folder
@@ -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].first}"
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Darlingtonia
4
- VERSION = '3.0.1'
4
+ VERSION = '3.0.2'
5
5
  end
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.1
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-14 00:00:00.000000000 Z
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