libis-tools 0.9.22 → 0.9.23

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: 2fa0a518d621cbae23b3f00c8653a6668a3c8ec6
4
- data.tar.gz: feb47f3885d7d24105b430fe0b3dbb41113dc5bb
3
+ metadata.gz: 78a96ff8c8386a80e5737400e5d3039ecd89d032
4
+ data.tar.gz: 11ac1d391f3c5db986b9e9b027068e1da6499173
5
5
  SHA512:
6
- metadata.gz: 6b21a0123262220156aed3a31cdcd1a5dd9314fb560a6953b1d37c331e6d8ca5bc81092eb608eab1fd784fe5b34ab541ac668928446a10536f85a1297d3ee85e
7
- data.tar.gz: 61eb864a41ce4685515fc68fb1289e2c4ef1e2218f060bdfc91e2550c42342ad832a56b4f64627ed90bc40f1a2058518a73d264f51068b57e3e78f07ec6da0da
6
+ metadata.gz: f2c64702ba6ea354897aedcab4299b206bf8c9af02c0dae88028482dc5c0ad925d1ff7b59a58938c2111983db95f2daa4626569b05a5de9ce3226e92bc537031
7
+ data.tar.gz: 387339b3efaa13ada674bc89cfe462925f6676cd5197e99c85780639f8569d1fa671275f59a9a4b2a8e3bba56babe90d78683b201ac4e0c3037fd99af8adb8fe
@@ -112,7 +112,7 @@ module Libis
112
112
 
113
113
  def logger(name = nil, appenders = nil)
114
114
  sync do
115
- name ||= :root
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)
@@ -44,7 +44,7 @@ module Libis
44
44
  # Default implementation is to get the root logger from the Config, but can be overwritten for sub-loggers.
45
45
  # @!method(logger)
46
46
  def logger
47
- Config.logger
47
+ ::Libis::Tools::Config.logger
48
48
  end
49
49
 
50
50
  def set_application(name = nil)
@@ -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
- extend ::Libis::Tools::ThreadSafe
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.synchronise do
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
@@ -1,5 +1,5 @@
1
1
  module Libis
2
2
  module Tools
3
- VERSION = '0.9.22'
3
+ VERSION = '0.9.23'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libis-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.22
4
+ version: 0.9.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kris Dekeyser