cul_scv_hydra 0.22.0 → 0.22.1

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
  SHA1:
3
- metadata.gz: 0a90fd79a7e986d74e678ee28906657339a2a7f2
4
- data.tar.gz: dd47c4504836daf80057d4ff0a32f25ec1e33bbe
3
+ metadata.gz: 6a0a78d7b35c32db71ea14181c1ce15377d70176
4
+ data.tar.gz: 1f3dd9bbea2111a1b51edba049b69e6b376fec61
5
5
  SHA512:
6
- metadata.gz: 9a3263793a1fbd30a6abbe7c1defb99584707958f73d091029f5ba9eec8630b727af44276b45c444fbf109646e822c36ab1285ca6a3601015a271a3fac955937
7
- data.tar.gz: 5aaf0c781d8e4f64f8d0cbbba635233fe5dff4f37c9ba9275a2d604a0cc7a15d9cb3e9dd6263c58b085153b51abad81f5cc2c3cd97152aedb940637096a4a53a
6
+ metadata.gz: 36aa75b2f1b7e82611101dac58747ef3684f45196ffd43cfc82684bca690529dc496cf2ea21c5ba57efc2ba620460a85202530ff3cf3c48a8046e226fdb8fa1f
7
+ data.tar.gz: 87310f89b8c440693af50ec0893717b01937f2c8fad307728a15b951bb7f16204e0926d4007c54a8170a41e999e5b8a3e4b8c636f9ed53cd571ca9318a36fca5
@@ -60,17 +60,17 @@ module Cul::Scv::Hydra::Indexer
60
60
  descend_from(top_pid, pids_to_omit, verbose_output) do |pid|
61
61
 
62
62
  # We found an object with the desired PID. Let's reindex it
63
- active_fedora_object = ActiveFedora::Base.find(pid, :cast => true)
63
+ begin
64
+ active_fedora_object = ActiveFedora::Base.find(pid, :cast => true)
64
65
 
65
- if skip_generic_resources && active_fedora_object.is_a?(GenericResource)
66
- puts 'Object was skipped because GenericResources are being skipped and it is a GenericResource.'
67
- else
68
- begin
66
+ if skip_generic_resources && active_fedora_object.is_a?(GenericResource)
67
+ puts 'Object was skipped because GenericResources are being skipped and it is a GenericResource.'
68
+ else
69
69
  active_fedora_object.update_index
70
70
  puts 'done.' if verbose_output
71
- rescue Exception => e
72
- puts 'Encountered problem. Skipping record. Exception: ' + e.message
73
71
  end
72
+ rescue Exception => e
73
+ puts "Encountered problem with #{pid}. Skipping record. Exception: #{e.message}"
74
74
  end
75
75
 
76
76
  end
@@ -2,7 +2,7 @@
2
2
  module Cul
3
3
  module Scv
4
4
  module Hydra
5
- VERSION = '0.22.0'
5
+ VERSION = '0.22.1'
6
6
  def self.version
7
7
  VERSION
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cul_scv_hydra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.0
4
+ version: 0.22.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Armintor