bulkrax 2.2.2 → 2.2.3

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: 5c5379ae0706c7c37e870551d1da67a526d793b4dc91e9afd41fe275d39c4d48
4
- data.tar.gz: 2de4caa074846ebacdfcaed54265011a8a1b8f9d97309e6aa219a4e36497d6e7
3
+ metadata.gz: 2f9006f783a5184f832fe78344acc3e7acca920c75a9a92ed2c604246102f6e8
4
+ data.tar.gz: c834fa1558b8dba4e0fd1024e552ddfc0eb5dfdad307aa13283da41abc2ca609
5
5
  SHA512:
6
- metadata.gz: e2f138b62a46cc199f7d538294e7850fa3e2bbe9bfa4f3b2643dde3c354b0366d39d08222577a339955f9446257f09deaaa889d4d172c809f230ec2cb48309c0
7
- data.tar.gz: 8ca99cfc04657975c93b4e8379df1672c0254a6cd5612bd5bff69b9fdfcf3b98381fbd757b2a85531150f3ae02e149f660c23f41133a63640a4e254719fbc7e8
6
+ metadata.gz: 1c4a559ee030dc0b259b808cdc7067ad89ffcfe8d17f2483190e3503104edbd8daec737a8727a171eaca8a5bf218deb20c5c462eed5855ee1adaa9d60002ef26
7
+ data.tar.gz: 2882c50b2eee13f6df2e4b395c246e4909c3529cd7ead177fb5ec85effa1b32470c6da1e87d569b2efe22891a88e43b85855ae0a1bd30c204c1846daa33e41d4
@@ -49,7 +49,7 @@ function prepBulkrax(event) {
49
49
  for(var mutation of mutationsList) {
50
50
  if (mutation.type == 'childList') {
51
51
  browseButton = document.getElementById('browse');
52
- var exp = /selected_files\[[0-9*]\]\[url\]/
52
+ var exp = /selected_files\[[0-9]*\]\[url\]/
53
53
  for (var node of mutation.addedNodes) {
54
54
  if (node.attributes != undefined) {
55
55
  var name = node.attributes.name.value
@@ -22,16 +22,17 @@ module Bulkrax
22
22
 
23
23
  def increment_counters(index, collection: false, file_set: false)
24
24
  # Only set the totals if they were not set on initialization
25
+ importer_run = ImporterRun.find(current_run.id) # make sure fresh
25
26
  if collection
26
- current_run.total_collection_entries = index + 1 unless parser.collections_total.positive?
27
+ importer_run.total_collection_entries = index + 1 unless parser.collections_total.positive?
27
28
  elsif file_set
28
- current_run.total_file_set_entries = index + 1 unless parser.file_sets_total.positive?
29
+ importer_run.total_file_set_entries = index + 1 unless parser.file_sets_total.positive?
29
30
  else
30
31
  # TODO: differentiate between work and collection counts for exporters
31
- current_run.total_work_entries = index + 1 unless limit.to_i.positive? || parser.total.positive?
32
+ importer_run.total_work_entries = index + 1 unless limit.to_i.positive? || parser.total.positive?
32
33
  end
33
- current_run.enqueued_records += 1
34
- current_run.save!
34
+ importer_run.enqueued_records += 1
35
+ importer_run.save!
35
36
  end
36
37
 
37
38
  def keys_without_numbers(keys)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bulkrax
4
- VERSION = '2.2.2'
4
+ VERSION = '2.2.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bulkrax
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2
4
+ version: 2.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Kaufman
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-15 00:00:00.000000000 Z
11
+ date: 2022-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -378,7 +378,7 @@ homepage: https://github.com/samvera-labs/bulkrax
378
378
  licenses:
379
379
  - Apache-2.0
380
380
  metadata: {}
381
- post_install_message:
381
+ post_install_message:
382
382
  rdoc_options: []
383
383
  require_paths:
384
384
  - lib
@@ -393,8 +393,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
393
393
  - !ruby/object:Gem::Version
394
394
  version: '0'
395
395
  requirements: []
396
- rubygems_version: 3.1.4
397
- signing_key:
396
+ rubygems_version: 3.1.2
397
+ signing_key:
398
398
  specification_version: 4
399
399
  summary: Import and export tool for Hyrax and Hyku
400
400
  test_files: []