exlibris-primo 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -43,11 +43,8 @@ module Exlibris
43
43
  holding = attributes.delete(:holding)
44
44
  # Instantiate new holding from input holding
45
45
  # if it exists.
46
- unless holding.nil?
47
- super holding.to_h.merge(attributes)
48
- else
49
- super self.class.defaults.merge(attributes)
50
- end
46
+ super((holding.nil?) ? self.class.defaults.merge(attributes) :
47
+ holding.to_h.merge(attributes))
51
48
  end
52
49
 
53
50
  # Get the source config from the Primo config, based on source_id, if not already set.
@@ -72,7 +69,8 @@ module Exlibris
72
69
 
73
70
  # Get the availability status from the Primo config based on availability status code, if not already set.
74
71
  def availability_status
75
- @availability_status ||= (availability_statuses[availability_status_code] || availability_status_code)
72
+ @availability_status ||=
73
+ (availability_statuses[availability_status_code] || availability_status_code)
76
74
  end
77
75
  alias :availability :availability_status
78
76
  alias :status :availability_status
@@ -1,5 +1,5 @@
1
1
  module Exlibris
2
2
  module Primo
3
- VERSION = "1.0.4"
3
+ VERSION = "1.0.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exlibris-primo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-11 00:00:00.000000000 Z
12
+ date: 2013-01-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -421,7 +421,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
421
421
  version: '0'
422
422
  segments:
423
423
  - 0
424
- hash: 564111411041996547
424
+ hash: -1133596326614136531
425
425
  required_rubygems_version: !ruby/object:Gem::Requirement
426
426
  none: false
427
427
  requirements:
@@ -430,7 +430,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
430
430
  version: '0'
431
431
  segments:
432
432
  - 0
433
- hash: 564111411041996547
433
+ hash: -1133596326614136531
434
434
  requirements: []
435
435
  rubyforge_project:
436
436
  rubygems_version: 1.8.24