libis-tools 0.9.22 → 0.9.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/libis/tools/config.rb +1 -1
- data/lib/libis/tools/logger.rb +1 -1
- data/lib/libis/tools/mets_file.rb +0 -1
- data/lib/libis/tools/mets_objects.rb +6 -4
- data/lib/libis/tools/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78a96ff8c8386a80e5737400e5d3039ecd89d032
|
4
|
+
data.tar.gz: 11ac1d391f3c5db986b9e9b027068e1da6499173
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2c64702ba6ea354897aedcab4299b206bf8c9af02c0dae88028482dc5c0ad925d1ff7b59a58938c2111983db95f2daa4626569b05a5de9ce3226e92bc537031
|
7
|
+
data.tar.gz: 387339b3efaa13ada674bc89cfe462925f6676cd5197e99c85780639f8569d1fa671275f59a9a4b2a8e3bba56babe90d78683b201ac4e0c3037fd99af8adb8fe
|
data/lib/libis/tools/config.rb
CHANGED
@@ -112,7 +112,7 @@ module Libis
|
|
112
112
|
|
113
113
|
def logger(name = nil, appenders = nil)
|
114
114
|
sync do
|
115
|
-
name ||=
|
115
|
+
name ||= 'root'
|
116
116
|
logger = ::Logging.logger[name]
|
117
117
|
if logger.appenders.empty?
|
118
118
|
logger.appenders = appenders || ::Logging.appenders.stdout(layout: get_log_formatter)
|
data/lib/libis/tools/logger.rb
CHANGED
@@ -324,7 +324,6 @@ module Libis
|
|
324
324
|
@files.values.each { |file| add_amd(xml, file) }
|
325
325
|
when Libis::Tools::MetsFile::File
|
326
326
|
add_amd_section(xml, object.xml_id, object.amd)
|
327
|
-
object.manifestations.each { |manif| add_amd_section(xml, manif.xml_id, manif.amd) }
|
328
327
|
when Libis::Tools::MetsFile::Representation
|
329
328
|
add_amd_section(xml, object.xml_id, object.amd)
|
330
329
|
else
|
@@ -5,7 +5,9 @@ module Libis
|
|
5
5
|
|
6
6
|
# Generic module that provides code shortcuts for the {Representation}, {Div} and {File} classes.
|
7
7
|
module IdContainer
|
8
|
-
|
8
|
+
def self.included(klass)
|
9
|
+
klass.include ::Libis::Tools::ThreadSafe
|
10
|
+
end
|
9
11
|
|
10
12
|
# Take a hash and set class instance attributes.
|
11
13
|
#
|
@@ -485,21 +487,21 @@ module Libis
|
|
485
487
|
|
486
488
|
# All file items stored in the current division
|
487
489
|
def files
|
488
|
-
mutex.
|
490
|
+
self.mutex.synchronize do
|
489
491
|
@files ||= Array.new
|
490
492
|
end
|
491
493
|
end
|
492
494
|
|
493
495
|
# All division items stored in the current division
|
494
496
|
def divs
|
495
|
-
mutex.synchronize do
|
497
|
+
self.mutex.synchronize do
|
496
498
|
@divs ||= Array.new
|
497
499
|
end
|
498
500
|
end
|
499
501
|
|
500
502
|
# Add an item ({File} or {Div}) to the current division
|
501
503
|
def <<(obj)
|
502
|
-
mutex.synchronize do
|
504
|
+
self.mutex.synchronize do
|
503
505
|
case obj
|
504
506
|
when File
|
505
507
|
files << obj
|
data/lib/libis/tools/version.rb
CHANGED