dspace_rest_client 1.2.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +11 -0
- data/.rbenv +1 -0
- data/.rspec +2 -0
- data/Gemfile +13 -0
- data/README.md +58 -0
- data/Rakefile +1 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/dspace_rest_client.gemspec +30 -0
- data/lib/dspace.rb +31 -0
- data/lib/{dspacerest → dspace}/bitstream.rb +4 -5
- data/lib/{dspacerest → dspace}/builders/hash_builder.rb +10 -6
- data/lib/{dspacerest → dspace}/builders/model_builder.rb +7 -7
- data/lib/dspace/builders/tempfile_builder.rb +26 -0
- data/lib/dspace/client.rb +78 -0
- data/lib/{dspacerest → dspace}/collection.rb +6 -13
- data/lib/{dspacerest → dspace}/community.rb +6 -8
- data/lib/{dspacerest → dspace}/item.rb +11 -19
- data/lib/{dspacerest → dspace}/metadata.rb +1 -2
- data/lib/{dspacerest → dspace}/policy.rb +2 -4
- data/lib/dspace/resources/authentication_resource.rb +22 -0
- data/lib/dspace/resources/bitstream_resource.rb +63 -0
- data/lib/dspace/resources/collection_resource.rb +50 -0
- data/lib/dspace/resources/community_resource.rb +78 -0
- data/lib/dspace/resources/item_resource.rb +66 -0
- data/lib/dspace/resources/status_resource.rb +19 -0
- data/lib/dspace/version.rb +3 -0
- data/spec/lib/dspace/resources/authentication_resource_spec.rb +34 -0
- data/spec/lib/dspace/resources/bitstream_resource_spec.rb +45 -0
- data/spec/lib/dspace/resources/collection_resource_spec.rb +50 -0
- data/spec/lib/dspace/resources/community_resource_spec.rb +81 -0
- data/spec/lib/dspace/resources/item_resource_spec.rb +69 -0
- data/spec/spec_helper.rb +5 -0
- metadata +171 -43
- data/lib/dspace_client.rb +0 -64
- data/lib/dspace_rest_client.rb +0 -17
- data/lib/dspacerest/repositories/abstract_repository.rb +0 -37
- data/lib/dspacerest/repositories/bitstream_repository.rb +0 -62
- data/lib/dspacerest/repositories/collection_repository.rb +0 -78
- data/lib/dspacerest/repositories/community_repository.rb +0 -76
- data/lib/dspacerest/repositories/dspace_repository.rb +0 -27
- data/lib/dspacerest/repositories/item_repository.rb +0 -80
- data/lib/dspacerest/strategies/uploads/curl_strategy.rb +0 -27
- data/lib/dspacerest/strategies/uploads/rest_strategy.rb +0 -17
@@ -0,0 +1,34 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe Dspace::Resources::AuthenticationResource, resource_kit: true do
|
4
|
+
subject(:resource) { Dspace::Resources::AuthenticationResource }
|
5
|
+
|
6
|
+
context 'login' do
|
7
|
+
it 'raise an exception when credentials are wrong' do
|
8
|
+
expect(resource).to have_action(:login).that_handles(403).at_path('/rest/login').with_verb(:post) do |handled|
|
9
|
+
expect(handled).to raise_error(Dspace::InvalidCredentialsError)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
it 'returns an access token' do
|
14
|
+
expect(resource).to have_action(:login).that_handles(200, 201).at_path('/rest/login').with_verb(:post) do |handled|
|
15
|
+
expect(handled).to be_kind_of(String)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
context 'logout' do
|
21
|
+
it 'raise an exception when access token is invalid' do
|
22
|
+
expect(resource).to have_action(:logout).that_handles(400).at_path('/rest/logout').with_verb(:post) do |handled|
|
23
|
+
expect(handled).to raise_error(Dspace::InvalidTokenError)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
it 'performs the action' do
|
28
|
+
expect(resource).to have_action(:logout).that_handles(200, 201, 203, 204).at_path('/rest/logout').with_verb(:post) do |handled|
|
29
|
+
expect(handled).to eq(true)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe Dspace::Resources::BitstreamResource, resource_kit: true do
|
4
|
+
subject(:resource) { Dspace::Resources::BitstreamResource }
|
5
|
+
|
6
|
+
it 'get all bitstreams' do
|
7
|
+
expect(resource).to have_action(:all).that_handles(200).at_path('/rest/bitstreams').with_verb(:get) do |handled|
|
8
|
+
expect(handled).to all(be_kind_of(Dspace::Bitstream))
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
it 'find bitstream by id' do
|
13
|
+
expect(resource).to have_action(:find).that_handles(200).at_path('/rest/bitstreams/:id').with_verb(:get) do |handled|
|
14
|
+
expect(handled).to be_kind_of(Dspace::Bitstream)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
it 'Delete bitstream' do
|
19
|
+
expect(resource).to have_action(:delete).that_handles(200).at_path('/rest/bitstreams/:id').with_verb(:delete) do |handled|
|
20
|
+
expect(handled).to eq(true)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
it 'retrive bitstream' do
|
25
|
+
expect(resource).to have_action(:retrieve).that_handles(200).at_path('/rest/bitstreams/:id/retrieve').with_verb(:get)
|
26
|
+
|
27
|
+
#TODO: mock actions expectations for test if retrieve method returns a Tempfile
|
28
|
+
end
|
29
|
+
|
30
|
+
context 'Bitstream scope' do
|
31
|
+
|
32
|
+
it 'find bitstream policy' do
|
33
|
+
expect(resource).to have_action(:policy).that_handles(200).at_path('/rest/bitstreams/:id/policy').with_verb(:get) do |handled|
|
34
|
+
expect(handled).to be_kind_of(Dspace::Policy)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
it 'delete bitstream policy' do
|
39
|
+
expect(resource).to have_action(:delete_policy).that_handles(200, 201, 204).at_path('/rest/bitstreams/:id/policy/:policy_id').with_verb(:delete) do |handled|
|
40
|
+
expect(handled).to eq(true)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe Dspace::Resources::CollectionResource, resource_kit: true do
|
4
|
+
subject(:resource) { Dspace::Resources::CollectionResource }
|
5
|
+
|
6
|
+
it 'get all collection' do
|
7
|
+
expect(resource).to have_action(:all).that_handles(200).at_path('/rest/collections').with_verb(:get) do |handled|
|
8
|
+
expect(handled).to all(be_kind_of(Dspace::Collection))
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
it 'find collection by id' do
|
13
|
+
expect(resource).to have_action(:find).that_handles(200).at_path('/rest/collections/:id').with_verb(:get) do |handled|
|
14
|
+
expect(handled).to be_kind_of(Dspace::Collection)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
it 'Update collection' do
|
19
|
+
expect(resource).to have_action(:delete).that_handles(200).at_path('/rest/collections/:id').with_verb(:delete) do |handled|
|
20
|
+
expect(handled).to eq(true)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
it 'Delete collection' do
|
25
|
+
expect(resource).to have_action(:update).that_handles(200).at_path('/rest/collections/:id').with_verb(:put) do |handled|
|
26
|
+
expect(handled).to eq(true)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
context 'collection scope' do
|
31
|
+
it 'get all items' do
|
32
|
+
expect(resource).to have_action(:items).that_handles(200).at_path('/rest/collections/:id/items').with_verb(:get) do |handled|
|
33
|
+
expect(handled).to all(be_kind_of(Dspace::Item))
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
it 'create an item' do
|
38
|
+
expect(resource).to have_action(:create_item).that_handles(200).at_path('/rest/collections/:id/items').with_verb(:post) do |handled|
|
39
|
+
expect(handled).to eq(true)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
it 'delete item by id' do
|
44
|
+
expect(resource).to have_action(:delete_item).that_handles(200).at_path('/rest/collections/:id/items/:item_id').with_verb(:delete) do |handled|
|
45
|
+
expect(handled).to eq(true)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
@@ -0,0 +1,81 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe Dspace::Resources::CommunityResource, resource_kit: true do
|
4
|
+
subject(:resource) { Dspace::Resources::CommunityResource }
|
5
|
+
|
6
|
+
it 'get all communities' do
|
7
|
+
expect(resource).to have_action(:all).that_handles(200).at_path('/rest/communities').with_verb(:get) do |handled|
|
8
|
+
expect(handled).to all(be_kind_of(Dspace::Community))
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
it 'get top communities' do
|
13
|
+
expect(resource).to have_action(:top_communities).that_handles(200).at_path('/rest/communities/top-communities').with_verb(:get) do |handled|
|
14
|
+
expect(handled).to all(be_kind_of(Dspace::Community))
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
it 'find community' do
|
19
|
+
expect(resource).to have_action(:find).that_handles(200).at_path('/rest/communities/:id').with_verb(:get) do |handled|
|
20
|
+
expect(handled).to be_kind_of(Dspace::Community)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
it 'create a new top-level community' do
|
25
|
+
expect(resource).to have_action(:create).that_handles(200, 201).at_path('/rest/communities').with_verb(:post) do |handled|
|
26
|
+
expect(handled).to eq(true)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
it 'delete community' do
|
31
|
+
expect(resource).to have_action(:delete).that_handles(200, 201, 204).at_path('/rest/communities/:id').with_verb(:delete) do |handled|
|
32
|
+
expect(handled).to eq(true)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
context "with community scope" do
|
37
|
+
|
38
|
+
it "get collections" do
|
39
|
+
expect(resource).to have_action(:collections).that_handles(200).at_path('/rest/communities/:id/collections').with_verb(:get) do |handled|
|
40
|
+
expect(handled).to all(be_kind_of(Dspace::Collection))
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
it "get sub communities" do
|
45
|
+
expect(resource).to have_action(:sub_communities).that_handles(200).at_path('/rest/communities/:id/communities').with_verb(:get) do |handled|
|
46
|
+
expect(handled).to all(be_kind_of(Dspace::Community))
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
it 'create a sub-community' do
|
51
|
+
expect(resource).to have_action(:create_subcommunity).that_handles(200, 201).at_path('/rest/communities/:id/communities').with_verb(:post) do |handled|
|
52
|
+
expect(handled).to eq(true)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
it 'update a community' do
|
57
|
+
expect(resource).to have_action(:update).that_handles(200, 201).at_path('/rest/communities/:id').with_verb(:put) do |handled|
|
58
|
+
expect(handled).to eq(true)
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
it 'create a collection' do
|
63
|
+
expect(resource).to have_action(:create_collection).that_handles(200, 201).at_path('/rest/communities/:id/collections').with_verb(:post) do |handled|
|
64
|
+
expect(handled).to eq(true)
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
it 'delete collection' do
|
69
|
+
expect(resource).to have_action(:delete_collection).that_handles(200, 201, 204).at_path('/rest/communities/:id/collections/:collection_id').with_verb(:delete) do |handled|
|
70
|
+
expect(handled).to eq(true)
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
it 'delete sub-community' do
|
75
|
+
expect(resource).to have_action(:delete_subcommunity).that_handles(200, 201, 204).at_path('/rest/communities/:id/communities/:subcommunity_id').with_verb(:delete) do |handled|
|
76
|
+
expect(handled).to eq(true)
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
end
|
81
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe Dspace::Resources::ItemResource, resource_kit: true do
|
4
|
+
subject(:resource) { Dspace::Resources::ItemResource }
|
5
|
+
|
6
|
+
it 'get all items' do
|
7
|
+
expect(resource).to have_action(:all).that_handles(200).at_path('/rest/items').with_verb(:get) do |handled|
|
8
|
+
expect(handled).to all(be_kind_of(Dspace::Item))
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
it 'find item by id' do
|
13
|
+
expect(resource).to have_action(:find).that_handles(200).at_path('/rest/items/:id').with_verb(:get) do |handled|
|
14
|
+
expect(handled).to be_kind_of(Dspace::Item)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
it 'Delete item' do
|
19
|
+
expect(resource).to have_action(:delete).that_handles(200).at_path('/rest/items/:id').with_verb(:delete) do |handled|
|
20
|
+
expect(handled).to eq(true)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
context 'Item scope' do
|
25
|
+
|
26
|
+
it 'find item metadata' do
|
27
|
+
expect(resource).to have_action(:metadata).that_handles(200).at_path('/rest/items/:id/metadata').with_verb(:get) do |handled|
|
28
|
+
expect(handled).to all(be_kind_of(Dspace::Metadata))
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
it 'add item metadata' do
|
33
|
+
expect(resource).to have_action(:add_metadata).that_handles(200).at_path('/rest/items/:id/metadata').with_verb(:post) do |handled|
|
34
|
+
expect(handled).to eq(true)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
it 'add item bitstreams' do
|
39
|
+
expect(resource).to have_action(:add_bitstream).that_handles(200).at_path('/rest/items/:id/bitstreams').with_verb(:post) do |handled|
|
40
|
+
expect(handled).to be_kind_of(Dspace::Bitstream)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
it 'find item bitstream' do
|
45
|
+
expect(resource).to have_action(:bitstreams).that_handles(200).at_path('/rest/items/:id/bitstreams').with_verb(:get) do |handled|
|
46
|
+
expect(handled).to all(be_kind_of(Dspace::Bitstream))
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
it 'clear item metadata' do
|
51
|
+
expect(resource).to have_action(:clear_metadata).that_handles(200, 201, 204).at_path('/rest/items/:id/metadata').with_verb(:delete) do |handled|
|
52
|
+
expect(handled).to eq(true)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
it 'Delete item bitstream' do
|
57
|
+
expect(resource).to have_action(:delete_bitstream).that_handles(200, 201, 204).at_path('/rest/items/:id/bitstreams/:bitstream_id').with_verb(:delete) do |handled|
|
58
|
+
expect(handled).to eq(true)
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
it 'update metadata' do
|
63
|
+
expect(resource).to have_action(:update_metadata).that_handles(200, 201).at_path('/rest/items/:id/metadata').with_verb(:put) do |handled|
|
64
|
+
expect(handled).to eq(true)
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
end
|
69
|
+
end
|
data/spec/spec_helper.rb
ADDED
metadata
CHANGED
@@ -1,79 +1,201 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dspace_rest_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mauricio Giacomini Girardello
|
8
|
-
-
|
8
|
+
- Lucas Ernesto Kindinger
|
9
|
+
- Bruno N. Zanette
|
9
10
|
- Mateus Rambo Strey
|
10
11
|
autorequire:
|
11
12
|
bindir: bin
|
12
13
|
cert_chain: []
|
13
|
-
date: 2015-
|
14
|
+
date: 2015-12-04 00:00:00.000000000 Z
|
14
15
|
dependencies:
|
15
16
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
17
|
+
name: json
|
17
18
|
requirement: !ruby/object:Gem::Requirement
|
18
19
|
requirements:
|
19
|
-
- -
|
20
|
+
- - ~>
|
20
21
|
- !ruby/object:Gem::Version
|
21
|
-
version: '1.
|
22
|
-
- -
|
22
|
+
version: '1.8'
|
23
|
+
- - '>='
|
23
24
|
- !ruby/object:Gem::Version
|
24
|
-
version:
|
25
|
+
version: 1.8.3
|
25
26
|
type: :runtime
|
26
27
|
prerelease: false
|
27
28
|
version_requirements: !ruby/object:Gem::Requirement
|
28
29
|
requirements:
|
29
|
-
- -
|
30
|
+
- - ~>
|
30
31
|
- !ruby/object:Gem::Version
|
31
|
-
version: '1.
|
32
|
-
- -
|
32
|
+
version: '1.8'
|
33
|
+
- - '>='
|
33
34
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
35
|
+
version: 1.8.3
|
35
36
|
- !ruby/object:Gem::Dependency
|
36
|
-
name:
|
37
|
+
name: resource_kit
|
37
38
|
requirement: !ruby/object:Gem::Requirement
|
38
39
|
requirements:
|
39
|
-
- -
|
40
|
+
- - ~>
|
40
41
|
- !ruby/object:Gem::Version
|
41
|
-
version: 0.
|
42
|
+
version: 0.1.4
|
42
43
|
type: :runtime
|
43
44
|
prerelease: false
|
44
45
|
version_requirements: !ruby/object:Gem::Requirement
|
45
46
|
requirements:
|
46
|
-
- -
|
47
|
+
- - ~>
|
47
48
|
- !ruby/object:Gem::Version
|
48
|
-
version: 0.
|
49
|
+
version: 0.1.4
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
name: faraday
|
52
|
+
requirement: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ~>
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 0.9.2
|
57
|
+
type: :runtime
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ~>
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: 0.9.2
|
64
|
+
- !ruby/object:Gem::Dependency
|
65
|
+
name: net-http-persistent
|
66
|
+
requirement: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ~>
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '2.9'
|
71
|
+
- - '>='
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: 2.9.4
|
74
|
+
type: :runtime
|
75
|
+
prerelease: false
|
76
|
+
version_requirements: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - ~>
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '2.9'
|
81
|
+
- - '>='
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: 2.9.4
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: activesupport
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ~>
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '4.2'
|
91
|
+
- - '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 4.2.0
|
94
|
+
type: :runtime
|
95
|
+
prerelease: false
|
96
|
+
version_requirements: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - ~>
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: '4.2'
|
101
|
+
- - '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 4.2.0
|
104
|
+
- !ruby/object:Gem::Dependency
|
105
|
+
name: bundler
|
106
|
+
requirement: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ~>
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '1.10'
|
111
|
+
type: :development
|
112
|
+
prerelease: false
|
113
|
+
version_requirements: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '1.10'
|
118
|
+
- !ruby/object:Gem::Dependency
|
119
|
+
name: rake
|
120
|
+
requirement: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ~>
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '10.0'
|
125
|
+
type: :development
|
126
|
+
prerelease: false
|
127
|
+
version_requirements: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ~>
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '10.0'
|
132
|
+
- !ruby/object:Gem::Dependency
|
133
|
+
name: rspec
|
134
|
+
requirement: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ~>
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '3.4'
|
139
|
+
- - '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: 3.4.0
|
142
|
+
type: :development
|
143
|
+
prerelease: false
|
144
|
+
version_requirements: !ruby/object:Gem::Requirement
|
145
|
+
requirements:
|
146
|
+
- - ~>
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
version: '3.4'
|
149
|
+
- - '>='
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: 3.4.0
|
49
152
|
description: DSpace REST-API Client for Ruby! Implements all DSpace REST-API endpoints
|
50
153
|
requests.
|
51
|
-
email:
|
52
|
-
|
154
|
+
email:
|
155
|
+
- mauriciogiacomini4@gmail.com
|
156
|
+
- kindingerlek@hotmail.com
|
157
|
+
executables:
|
158
|
+
- console
|
159
|
+
- setup
|
53
160
|
extensions: []
|
54
161
|
extra_rdoc_files: []
|
55
162
|
files:
|
56
|
-
-
|
57
|
-
-
|
58
|
-
-
|
59
|
-
-
|
60
|
-
-
|
61
|
-
-
|
62
|
-
-
|
63
|
-
-
|
64
|
-
-
|
65
|
-
- lib/
|
66
|
-
- lib/
|
67
|
-
- lib/
|
68
|
-
- lib/
|
69
|
-
- lib/
|
70
|
-
- lib/
|
71
|
-
- lib/
|
72
|
-
- lib/
|
73
|
-
- lib/
|
163
|
+
- .gitignore
|
164
|
+
- .rbenv
|
165
|
+
- .rspec
|
166
|
+
- Gemfile
|
167
|
+
- README.md
|
168
|
+
- Rakefile
|
169
|
+
- bin/console
|
170
|
+
- bin/setup
|
171
|
+
- dspace_rest_client.gemspec
|
172
|
+
- lib/dspace.rb
|
173
|
+
- lib/dspace/bitstream.rb
|
174
|
+
- lib/dspace/builders/hash_builder.rb
|
175
|
+
- lib/dspace/builders/model_builder.rb
|
176
|
+
- lib/dspace/builders/tempfile_builder.rb
|
177
|
+
- lib/dspace/client.rb
|
178
|
+
- lib/dspace/collection.rb
|
179
|
+
- lib/dspace/community.rb
|
180
|
+
- lib/dspace/item.rb
|
181
|
+
- lib/dspace/metadata.rb
|
182
|
+
- lib/dspace/policy.rb
|
183
|
+
- lib/dspace/resources/authentication_resource.rb
|
184
|
+
- lib/dspace/resources/bitstream_resource.rb
|
185
|
+
- lib/dspace/resources/collection_resource.rb
|
186
|
+
- lib/dspace/resources/community_resource.rb
|
187
|
+
- lib/dspace/resources/item_resource.rb
|
188
|
+
- lib/dspace/resources/status_resource.rb
|
189
|
+
- lib/dspace/version.rb
|
190
|
+
- spec/lib/dspace/resources/authentication_resource_spec.rb
|
191
|
+
- spec/lib/dspace/resources/bitstream_resource_spec.rb
|
192
|
+
- spec/lib/dspace/resources/collection_resource_spec.rb
|
193
|
+
- spec/lib/dspace/resources/community_resource_spec.rb
|
194
|
+
- spec/lib/dspace/resources/item_resource_spec.rb
|
195
|
+
- spec/spec_helper.rb
|
74
196
|
homepage: https://gitlab.c3sl.ufpr.br/c3sl/dspace-rest-client
|
75
197
|
licenses:
|
76
|
-
- GNU General Public License
|
198
|
+
- GNU - General Public License
|
77
199
|
metadata: {}
|
78
200
|
post_install_message:
|
79
201
|
rdoc_options: []
|
@@ -81,18 +203,24 @@ require_paths:
|
|
81
203
|
- lib
|
82
204
|
required_ruby_version: !ruby/object:Gem::Requirement
|
83
205
|
requirements:
|
84
|
-
- -
|
206
|
+
- - '>='
|
85
207
|
- !ruby/object:Gem::Version
|
86
208
|
version: '0'
|
87
209
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
210
|
requirements:
|
89
|
-
- -
|
211
|
+
- - '>='
|
90
212
|
- !ruby/object:Gem::Version
|
91
213
|
version: '0'
|
92
214
|
requirements: []
|
93
215
|
rubyforge_project:
|
94
|
-
rubygems_version: 2.
|
216
|
+
rubygems_version: 2.0.14
|
95
217
|
signing_key:
|
96
218
|
specification_version: 4
|
97
|
-
summary: DSpace REST
|
98
|
-
test_files:
|
219
|
+
summary: DSpace REST API Client for Ruby
|
220
|
+
test_files:
|
221
|
+
- spec/lib/dspace/resources/authentication_resource_spec.rb
|
222
|
+
- spec/lib/dspace/resources/bitstream_resource_spec.rb
|
223
|
+
- spec/lib/dspace/resources/collection_resource_spec.rb
|
224
|
+
- spec/lib/dspace/resources/community_resource_spec.rb
|
225
|
+
- spec/lib/dspace/resources/item_resource_spec.rb
|
226
|
+
- spec/spec_helper.rb
|