ocfl 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ocfl/inventory.rb +3 -0
- data/lib/ocfl/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73309493b42b637ca8a3526c52d50531996f77495ae114a9fa6963b0a3a3b67f
|
4
|
+
data.tar.gz: f7bd61220ac24196b86ae50a6cf44e301002c6cf265b0debbe643abc1b088e50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c94aa2013e50467adb00b2e4e2ea5a53b29947490ed069d13a117ec0bdddb8480cb81a369e9f1f4d4639434fa63b1cf89ce77ed309527b0dc2f49685f6e4ceda
|
7
|
+
data.tar.gz: 9922c3d6521295df8384b2927daeb573f2e762ee0f69b111ab23cca5931fe32ee05b346ebd31bf3779f41e89d31a4119fadc18308f48ca4f762376b4afe3ad2c
|
data/lib/ocfl/inventory.rb
CHANGED
@@ -18,6 +18,7 @@ module OCFL
|
|
18
18
|
attribute :manifest, Types::Hash
|
19
19
|
end
|
20
20
|
|
21
|
+
# @param [InventoryStruct] data
|
21
22
|
def initialize(data:)
|
22
23
|
@data = data
|
23
24
|
end
|
@@ -33,6 +34,8 @@ module OCFL
|
|
33
34
|
|
34
35
|
# @return [String,nil] the path to the file relative to the object root. (e.g. v2/content/image.tiff)
|
35
36
|
def path(logical_path)
|
37
|
+
return unless head_version # object does not exist on disk
|
38
|
+
|
36
39
|
digest, = state.find { |_, logical_paths| logical_paths.include?(logical_path) }
|
37
40
|
|
38
41
|
return unless digest
|
data/lib/ocfl/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ocfl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Coyne
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
126
|
- !ruby/object:Gem::Version
|
127
127
|
version: '0'
|
128
128
|
requirements: []
|
129
|
-
rubygems_version: 3.
|
129
|
+
rubygems_version: 3.5.10
|
130
130
|
signing_key:
|
131
131
|
specification_version: 4
|
132
132
|
summary: A ruby library for interacting with the Oxford Common File Layout (OCFL)
|