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 +4 -4
- data/lib/libis/services.rb +3 -2
- data/lib/libis/services/rosetta.rb +15 -2
- data/lib/libis/services/version.rb +1 -1
- data/spec/rosetta_deposit_spec.rb +2 -14
- 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: fbd059704d791297214adf5cbedd81681f71bf6a
|
4
|
+
data.tar.gz: f21d74974eac20105c51a56f4b0add97358722a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97ac347cd34d594ccfc06aeac53803ea49633378b962b6e36cc9fea63af7932a306dd1a3c3f4e30a48fb05e1fea5e5ad144400f4b2e7d24c613c9cfe1414e0bd
|
7
|
+
data.tar.gz: 271dcca2e7075d695acd11aac3a805ebbf717cf4b3355e67616ebab80cf1d172577b1cb31b6ae6184cfe2179ecbb65670d98cc6bc3185020aae781128deba9cf
|
data/lib/libis/services.rb
CHANGED
@@ -1,2 +1,15 @@
|
|
1
|
-
|
2
|
-
|
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
|
@@ -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
|
-
|
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
|