cul_hydra 1.0.4 → 1.0.5

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: 102ec8e3b9fefe152b73c5e4e3a0a8879e90b71e
4
- data.tar.gz: cb023b7bdc8ff9897f4dafbf7c3a4f31e5ba4622
3
+ metadata.gz: dc86af65e09c7f445c98132040488e30f9fbc0ec
4
+ data.tar.gz: 043b1c113b906fd138bebe336816554c9ddbbcfa
5
5
  SHA512:
6
- metadata.gz: 9365a49063b3f98d141541fcf007992b156bdec4b98733d4dab1dda1f1d5d30eaee4fbecb7a1dba164ccbe946006b5186667f34f6593de7ff831edf6356e69d4
7
- data.tar.gz: d354dfee384cc8ea31e2a0fd813bcdaaaca806990a96104ce7eae9c63b2271e549ad60542628cf8fb84bc8dd25b2a935e156566a2c8deb5323b099c6fe235e21
6
+ metadata.gz: 3faff2a87534e94607e17f32a19cbffc98ee3fa97a511a9d563192d2348bc438788546b8c18603f8ff4c939f902961c694e8ad1879e54c1b27b49ce9e34cc6fe
7
+ data.tar.gz: fa795f39b498b43854f5f77edbd74bf8761ca28029d34f9c6026067a90fadc8cb81ff522283a5ed52583231ce375bfe98c77975a34151f8e046020b39a2ab8df
@@ -167,6 +167,7 @@ module Cul::Hydra::Models::Common
167
167
  # Try to do a PID lookup first
168
168
  unless force_use_of_non_pid_identifier
169
169
  content_ids.each do |content_id|
170
+ next unless content_id.match(/^([A-Za-z0-9]|-|\.)+:(([A-Za-z0-9])|-|\.|~|_|(%[0-9A-F]{2}))+$/) # Don't do a lookup on identifiers that can't possibly be valid PID (otherwise we'd encounter an error)
170
171
  child_obj ||= ActiveFedora::Base.exists?(content_id) ? ActiveFedora::Base.find(content_id) : nil
171
172
  end
172
173
  end
@@ -1,6 +1,6 @@
1
1
  module Cul
2
2
  module Hydra
3
- VERSION = '1.0.4'
3
+ VERSION = '1.0.5'
4
4
  def self.version
5
5
  VERSION
6
6
  end
@@ -1,6 +1,6 @@
1
1
  module Cul
2
2
  module Hydra
3
- VERSION = '1.0.3'
3
+ VERSION = '1.0.4'
4
4
  def self.version
5
5
  VERSION
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cul_hydra
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Armintor
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-05-23 00:00:00.000000000 Z
12
+ date: 2015-05-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: blacklight