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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8720d3032a5759d6cea1547b752534735d2a080fa69f3065b44a00ac7ace2dd7
4
- data.tar.gz: d60f0d3e6f31a6b5d1085750e87dde586cda0f7cc2ce88447d461726b83179cb
3
+ metadata.gz: 73309493b42b637ca8a3526c52d50531996f77495ae114a9fa6963b0a3a3b67f
4
+ data.tar.gz: f7bd61220ac24196b86ae50a6cf44e301002c6cf265b0debbe643abc1b088e50
5
5
  SHA512:
6
- metadata.gz: 29bcba42064fb03f004ab9706378db6dfd7eae53d6b730f986863e79d0c658034c64e5582dd989cd0b0cc4275badc657b3b9113f9e48080188db63669c51df2c
7
- data.tar.gz: 577e796d83264f7566a3369c8e07cb88750b98314d018e2f394fe8ed63aad0fa275c04dd4b53ac4ab6e96449e1056718b26052fe7680ebe64954d3425bf54276
6
+ metadata.gz: c94aa2013e50467adb00b2e4e2ea5a53b29947490ed069d13a117ec0bdddb8480cb81a369e9f1f4d4639434fa63b1cf89ce77ed309527b0dc2f49685f6e4ceda
7
+ data.tar.gz: 9922c3d6521295df8384b2927daeb573f2e762ee0f69b111ab23cca5931fe32ee05b346ebd31bf3779f41e89d31a4119fadc18308f48ca4f762376b4afe3ad2c
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OCFL
4
- VERSION = "0.9.0"
4
+ VERSION = "0.9.1"
5
5
  end
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.0
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-03 00:00:00.000000000 Z
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.4.19
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)