libis-services 0.1.14 → 0.1.15

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: 7db38a4eb15196da5b842234c33bef90de3a7cd4
4
- data.tar.gz: 0c490da8e73129303e3da02979bbbb5df12c0e36
3
+ metadata.gz: fbd059704d791297214adf5cbedd81681f71bf6a
4
+ data.tar.gz: f21d74974eac20105c51a56f4b0add97358722a8
5
5
  SHA512:
6
- metadata.gz: cbd5bc933be2b7ff6b44575f363be498c6d3ebcb28968c34b12384500721a0f6b3b8e92733d3b1d32d8eb7770aeb30c5551eb00dbc4d69e13dd5b650f7ff3134
7
- data.tar.gz: f19c32dc6ca5e041c6e4a8e1c237e2e9ad2793803e65c88099e6979ce94b42012584e69d3fe7f14a9d5163b0972baadcac3a6a475067979dfb918188b38808ba
6
+ metadata.gz: 97ac347cd34d594ccfc06aeac53803ea49633378b962b6e36cc9fea63af7932a306dd1a3c3f4e30a48fb05e1fea5e5ad144400f4b2e7d24c613c9cfe1414e0bd
7
+ data.tar.gz: 271dcca2e7075d695acd11aac3a805ebbf717cf4b3355e67616ebab80cf1d172577b1cb31b6ae6184cfe2179ecbb65670d98cc6bc3185020aae781128deba9cf
@@ -17,8 +17,9 @@ module Libis
17
17
 
18
18
  autoload :SharepointConnector, 'libis/services/sharepoint_connector'
19
19
 
20
- autoload :Rosetta, 'libis/services/rosetta'
21
20
  autoload :Primo, 'libis/services/primo'
22
21
 
23
22
  end
24
- end
23
+ end
24
+
25
+ require_relative 'services/rosetta'
@@ -1,2 +1,15 @@
1
- require_relative 'rosetta/service'
2
- require_relative 'rosetta/oai_pmh'
1
+ module Libis
2
+ module Services
3
+ module Rosetta
4
+ autoload :Service, 'rosetta/service'
5
+
6
+ autoload :PdsHandler, 'rosetta/pds_handler'
7
+ autoload :ProducerHandler, 'rosetta/producer_handler'
8
+ autoload :DepositHandler, 'rosetta/deposit_handler'
9
+ autoload :SipHandler, 'rosetta/sip_handler'
10
+ autoload :IeHandler, 'rosetta/ie_handler'
11
+ autoload :CollectionHandler, 'rosetta/collection_handler'
12
+ autoload :OaiPmh, 'rosetta/oai_pmh'
13
+ end
14
+ end
15
+ end
@@ -1,5 +1,5 @@
1
1
  module Libis
2
2
  module Services
3
- VERSION = '0.1.14'
3
+ VERSION = '0.1.15'
4
4
  end
5
5
  end
@@ -10,19 +10,6 @@ require 'libis/services/rosetta/deposit_handler'
10
10
  describe 'Rosetta Deposit Service' do
11
11
 
12
12
  let(:credentials) { Libis::Tools::ConfigFile.new File.join(File.dirname(__FILE__), 'credentials-test.yml') }
13
- let(:pds_handler) do
14
- # noinspection RubyResolve
15
- Libis::Services::Rosetta::PdsHandler.new(credentials.pds_url)
16
- end
17
-
18
- let(:handle) do
19
- # noinspection RubyResolve
20
- pds_handler.login(
21
- credentials.admin.user,
22
- credentials.admin.password,
23
- credentials.admin.institute
24
- )
25
- end
26
13
 
27
14
  subject(:deposit_handler) do
28
15
  # noinspection RubyResolve
@@ -32,7 +19,8 @@ describe 'Rosetta Deposit Service' do
32
19
  end
33
20
 
34
21
  before :each do
35
- deposit_handler.pds_handle = handle
22
+ # noinspection RubyResolve
23
+ deposit_handler.authenticate(credentials.admin.user, credentials.admin.password, credentials.admin.institute)
36
24
  end
37
25
 
38
26
  it 'should get list of deposits by date' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libis-services
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kris Dekeyser