libis-services 0.1.1 → 0.1.2

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: f8dfcc63e877db564379de2ca153d665c09ecf35
4
- data.tar.gz: 819dc2e5f1d5c6de4e58addd6290ca7be94f55f7
3
+ metadata.gz: 318010003c7113812cdd946fbcf1fa08d17c2cf1
4
+ data.tar.gz: 9de9e7e1704b2c88802712b7026d3f0f30c657c9
5
5
  SHA512:
6
- metadata.gz: 000c4503964665d55364b40ac6c9b168ca65b8b859e09f35b870ce697da8e6fe546155a3b74c48dc7d057fd8cbf9530001c9baf5294ef81cf61f3d12b07bc8d9
7
- data.tar.gz: 31c54129e9c22504f2c3a67661adb464110773b556fdad909d6e6ed21e17476f32705879439e269b8b732df62f56700ce9a9b3d6c4ad049a0617fc36db20a898
6
+ metadata.gz: 2796791d1a98c0925200f0396c0403cafb425b4a981506138e092c1c68947b431c9dd0fe2579a553fcf6221e54e6d96dab31b8a78a51ab802934cbc781b4e257
7
+ data.tar.gz: 6144003a1920af9fe1d3252c4997765298a3aef69e7fce567ee69450e12d76c5cc65e79c0b423fc50f789a8cb5bab9bf68247006b42220862c4ad2a4511016c4
@@ -34,7 +34,7 @@ module Libis
34
34
  end
35
35
 
36
36
  def update(collection_info)
37
- collection_info = collection_info.attributes if collection_info.is_a? CollectionInfo
37
+ collection_info = collection_info.to_hash.cleanup if collection_info.is_a? CollectionInfo
38
38
  call :update_collection, pds_handle: @pds_handle, collection: collection_info
39
39
  end
40
40
 
@@ -1,5 +1,5 @@
1
1
  module Libis
2
2
  module Services
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
5
5
  end
@@ -114,8 +114,11 @@ describe 'Primo Limo service' do
114
114
  }
115
115
 
116
116
  it 'get record' do
117
- result = subject.get_marc('32LIBIS_ALMA_DS71174288370001471').to_hash(:convert_tags_to => lambda { |tag| tag.snakecase.to_sym })
118
- check_container(record, result[:record])
117
+ result = subject.get_marc('32LIBIS_ALMA_DS71174288370001471')
118
+ if result.is_a?(Libis::Tools::XmlDocument)
119
+ result = result.to_hash(:convert_tags_to => lambda { |tag| tag.snakecase.to_sym })
120
+ check_container(record, result[:record])
121
+ end
119
122
  end
120
123
 
121
124
  end
@@ -354,8 +357,11 @@ describe 'Primo Limo service' do
354
357
  }
355
358
 
356
359
  it 'get record' do
357
- result = subject.get_pnx('32LIBIS_ALMA_DS71174288370001471').to_hash(:convert_tags_to => lambda { |tag| tag.snakecase.to_sym })
358
- check_container(record, result[:record])
360
+ result = subject.get_pnx('32LIBIS_ALMA_DS71174288370001471')
361
+ if result.is_a?(Libis::Tools::XmlDocument)
362
+ result = result.to_hash(:convert_tags_to => lambda { |tag| tag.snakecase.to_sym })
363
+ check_container(record, result[:record])
364
+ end
359
365
  end
360
366
 
361
367
  end
@@ -19,15 +19,15 @@ describe 'Rosetta OAI-PMH Service' do
19
19
 
20
20
  let(:expected_collections) {
21
21
  [
22
- 'My pictures',
23
- 'Test Collection',
22
+ 'Kerk & Leven',
23
+ 'Kerk en leven. Bisdom Antwerpen (0991).',
24
24
  ]
25
25
  }
26
26
 
27
27
  let(:expected_records) {
28
28
  [
29
29
  {
30
- id: 'oai:d4I1-pubam:IE403595',
30
+ id: 'oai:d4I1-pubam:IE405650',
31
31
  }
32
32
  ]
33
33
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libis-services
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kris Dekeyser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-05 00:00:00.000000000 Z
11
+ date: 2016-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -298,7 +298,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
298
298
  version: '0'
299
299
  requirements: []
300
300
  rubyforge_project:
301
- rubygems_version: 2.2.2
301
+ rubygems_version: 2.4.8
302
302
  signing_key:
303
303
  specification_version: 4
304
304
  summary: LIBIS Services toolbox.