oai_talia 0.0.15 → 0.0.16

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.
@@ -15,6 +15,7 @@ module OAI::Provider::Response
15
15
 
16
16
  # Remove any format that this particular record can't be provided in.
17
17
  formats.reject! { |f| !record_supports(record, f.prefix) }
18
+ raise OAI::MetadataFormatException if formats.size == 0
18
19
  end
19
20
  response do |r|
20
21
  r.ListMetadataFormats do
@@ -39,7 +39,7 @@ module OAI::Provider
39
39
  end
40
40
  self.new(last_id, options, nil, total)
41
41
  rescue => err
42
- raise ResumptionTokenException.new
42
+ raise OAI::ResumptionTokenException.new
43
43
  end
44
44
  end
45
45
 
metadata CHANGED
@@ -1,181 +1,194 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oai_talia
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 16
9
+ version: 0.0.16
5
10
  platform: ruby
6
11
  authors:
7
- - Ed Summers
8
- - Daniel Hahn
12
+ - Ed Summers
13
+ - Daniel Hahn
9
14
  autorequire: oai
10
15
  bindir: bin
11
16
  cert_chain: []
12
17
 
13
- date: 2010-01-28 00:00:00 +01:00
18
+ date: 2010-09-07 00:00:00 +02:00
14
19
  default_executable: oai
15
20
  dependencies:
16
- - !ruby/object:Gem::Dependency
17
- name: builder
18
- type: :runtime
19
- version_requirement:
20
- version_requirements: !ruby/object:Gem::Requirement
21
- requirements:
22
- - - ">="
23
- - !ruby/object:Gem::Version
24
- version: 2.0.0
25
- version:
21
+ - !ruby/object:Gem::Dependency
22
+ name: builder
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 2
30
+ - 0
31
+ - 0
32
+ version: 2.0.0
33
+ type: :runtime
34
+ version_requirements: *id001
26
35
  description: A ruby library for working with the Open Archive Initiative Protocol for Metadata Harvesting (OAI-PMH). Fork of the original version by Ed Summers, aims for best standards compatibility (test with http://re.cs.uct.ac.za/)
27
36
  email: ghub@limitedcreativity.org
28
37
  executables:
29
- - oai
38
+ - oai
30
39
  extensions: []
31
40
 
32
41
  extra_rdoc_files:
33
- - README
42
+ - README
34
43
  files:
35
- - README
36
- - Rakefile
37
- - bin/oai
38
- - examples/models/file_model.rb
39
- - examples/providers/dublin_core.rb
40
- - lib/oai.rb
41
- - lib/oai/client.rb
42
- - lib/oai/client/get_record.rb
43
- - lib/oai/client/header.rb
44
- - lib/oai/client/identify.rb
45
- - lib/oai/client/list_identifiers.rb
46
- - lib/oai/client/list_metadata_formats.rb
47
- - lib/oai/client/list_records.rb
48
- - lib/oai/client/list_sets.rb
49
- - lib/oai/client/metadata_format.rb
50
- - lib/oai/client/record.rb
51
- - lib/oai/client/response.rb
52
- - lib/oai/constants.rb
53
- - lib/oai/exception.rb
54
- - lib/oai/harvester.rb
55
- - lib/oai/harvester/config.rb
56
- - lib/oai/harvester/harvest.rb
57
- - lib/oai/harvester/logging.rb
58
- - lib/oai/harvester/mailer.rb
59
- - lib/oai/harvester/shell.rb
60
- - lib/oai/provider.rb
61
- - lib/oai/provider/metadata_format.rb
62
- - lib/oai/provider/metadata_format/oai_dc.rb
63
- - lib/oai/provider/metadata_format/oai_europeana.rb
64
- - lib/oai/provider/model.rb
65
- - lib/oai/provider/model/activerecord_caching_wrapper.rb
66
- - lib/oai/provider/model/activerecord_wrapper.rb
67
- - lib/oai/provider/partial_result.rb
68
- - lib/oai/provider/response.rb
69
- - lib/oai/provider/response/error.rb
70
- - lib/oai/provider/response/get_record.rb
71
- - lib/oai/provider/response/identify.rb
72
- - lib/oai/provider/response/list_identifiers.rb
73
- - lib/oai/provider/response/list_metadata_formats.rb
74
- - lib/oai/provider/response/list_records.rb
75
- - lib/oai/provider/response/list_sets.rb
76
- - lib/oai/provider/response/record_response.rb
77
- - lib/oai/provider/resumption_token.rb
78
- - lib/oai/set.rb
79
- - lib/oai/xpath.rb
80
- - lib/test.rb
81
- - test/activerecord_provider/config/connection.rb
82
- - test/activerecord_provider/config/database.yml
83
- - test/activerecord_provider/database/ar_migration.rb
84
- - test/activerecord_provider/database/oaipmhtest
85
- - test/activerecord_provider/fixtures/dc.yml
86
- - test/activerecord_provider/helpers/providers.rb
87
- - test/activerecord_provider/helpers/set_provider.rb
88
- - test/activerecord_provider/models/dc_field.rb
89
- - test/activerecord_provider/models/dc_set.rb
90
- - test/activerecord_provider/models/oai_token.rb
91
- - test/activerecord_provider/tc_ar_provider.rb
92
- - test/activerecord_provider/tc_ar_sets_provider.rb
93
- - test/activerecord_provider/tc_caching_paging_provider.rb
94
- - test/activerecord_provider/tc_simple_paging_provider.rb
95
- - test/activerecord_provider/test_helper.rb
96
- - test/client/helpers/provider.rb
97
- - test/client/helpers/test_wrapper.rb
98
- - test/client/tc_exception.rb
99
- - test/client/tc_get_record.rb
100
- - test/client/tc_identify.rb
101
- - test/client/tc_libxml.rb
102
- - test/client/tc_list_identifiers.rb
103
- - test/client/tc_list_metadata_formats.rb
104
- - test/client/tc_list_records.rb
105
- - test/client/tc_list_sets.rb
106
- - test/client/tc_low_resolution_dates.rb
107
- - test/client/tc_utf8_escaping.rb
108
- - test/client/tc_xpath.rb
109
- - test/client/test_helper.rb
110
- - test/provider/models.rb
111
- - test/provider/tc_exceptions.rb
112
- - test/provider/tc_functional_tokens.rb
113
- - test/provider/tc_provider.rb
114
- - test/provider/tc_resumption_tokens.rb
115
- - test/provider/tc_simple_provider.rb
116
- - test/provider/test_helper.rb
117
- - test/test.xml
44
+ - README
45
+ - Rakefile
46
+ - bin/oai
47
+ - examples/models/file_model.rb
48
+ - examples/providers/dublin_core.rb
49
+ - lib/oai.rb
50
+ - lib/oai/client.rb
51
+ - lib/oai/client/get_record.rb
52
+ - lib/oai/client/header.rb
53
+ - lib/oai/client/identify.rb
54
+ - lib/oai/client/list_identifiers.rb
55
+ - lib/oai/client/list_metadata_formats.rb
56
+ - lib/oai/client/list_records.rb
57
+ - lib/oai/client/list_sets.rb
58
+ - lib/oai/client/metadata_format.rb
59
+ - lib/oai/client/record.rb
60
+ - lib/oai/client/response.rb
61
+ - lib/oai/constants.rb
62
+ - lib/oai/exception.rb
63
+ - lib/oai/harvester.rb
64
+ - lib/oai/harvester/config.rb
65
+ - lib/oai/harvester/harvest.rb
66
+ - lib/oai/harvester/logging.rb
67
+ - lib/oai/harvester/mailer.rb
68
+ - lib/oai/harvester/shell.rb
69
+ - lib/oai/provider.rb
70
+ - lib/oai/provider/metadata_format.rb
71
+ - lib/oai/provider/metadata_format/oai_dc.rb
72
+ - lib/oai/provider/metadata_format/oai_europeana.rb
73
+ - lib/oai/provider/model.rb
74
+ - lib/oai/provider/model/activerecord_caching_wrapper.rb
75
+ - lib/oai/provider/model/activerecord_wrapper.rb
76
+ - lib/oai/provider/partial_result.rb
77
+ - lib/oai/provider/response.rb
78
+ - lib/oai/provider/response/error.rb
79
+ - lib/oai/provider/response/get_record.rb
80
+ - lib/oai/provider/response/identify.rb
81
+ - lib/oai/provider/response/list_identifiers.rb
82
+ - lib/oai/provider/response/list_metadata_formats.rb
83
+ - lib/oai/provider/response/list_records.rb
84
+ - lib/oai/provider/response/list_sets.rb
85
+ - lib/oai/provider/response/record_response.rb
86
+ - lib/oai/provider/resumption_token.rb
87
+ - lib/oai/set.rb
88
+ - lib/oai/xpath.rb
89
+ - lib/test.rb
90
+ - test/activerecord_provider/config/connection.rb
91
+ - test/activerecord_provider/config/database.yml
92
+ - test/activerecord_provider/database/ar_migration.rb
93
+ - test/activerecord_provider/database/oaipmhtest
94
+ - test/activerecord_provider/fixtures/dc.yml
95
+ - test/activerecord_provider/helpers/providers.rb
96
+ - test/activerecord_provider/helpers/set_provider.rb
97
+ - test/activerecord_provider/models/dc_field.rb
98
+ - test/activerecord_provider/models/dc_set.rb
99
+ - test/activerecord_provider/models/oai_token.rb
100
+ - test/activerecord_provider/tc_ar_provider.rb
101
+ - test/activerecord_provider/tc_ar_sets_provider.rb
102
+ - test/activerecord_provider/tc_caching_paging_provider.rb
103
+ - test/activerecord_provider/tc_simple_paging_provider.rb
104
+ - test/activerecord_provider/test_helper.rb
105
+ - test/client/helpers/provider.rb
106
+ - test/client/helpers/test_wrapper.rb
107
+ - test/client/tc_exception.rb
108
+ - test/client/tc_get_record.rb
109
+ - test/client/tc_identify.rb
110
+ - test/client/tc_libxml.rb
111
+ - test/client/tc_list_identifiers.rb
112
+ - test/client/tc_list_metadata_formats.rb
113
+ - test/client/tc_list_records.rb
114
+ - test/client/tc_list_sets.rb
115
+ - test/client/tc_low_resolution_dates.rb
116
+ - test/client/tc_utf8_escaping.rb
117
+ - test/client/tc_xpath.rb
118
+ - test/client/test_helper.rb
119
+ - test/provider/models.rb
120
+ - test/provider/tc_exceptions.rb
121
+ - test/provider/tc_functional_tokens.rb
122
+ - test/provider/tc_provider.rb
123
+ - test/provider/tc_resumption_tokens.rb
124
+ - test/provider/tc_simple_provider.rb
125
+ - test/provider/test_helper.rb
126
+ - test/test.xml
118
127
  has_rdoc: true
119
128
  homepage: http://github.com/net7/ruby-oai-talia/
120
129
  licenses: []
121
130
 
122
131
  post_install_message:
123
132
  rdoc_options:
124
- - --charset=UTF-8
133
+ - --charset=UTF-8
125
134
  require_paths:
126
- - lib
135
+ - lib
127
136
  required_ruby_version: !ruby/object:Gem::Requirement
128
137
  requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: 1.8.6
132
- version:
138
+ - - ">="
139
+ - !ruby/object:Gem::Version
140
+ segments:
141
+ - 1
142
+ - 8
143
+ - 6
144
+ version: 1.8.6
133
145
  required_rubygems_version: !ruby/object:Gem::Requirement
134
146
  requirements:
135
- - - ">="
136
- - !ruby/object:Gem::Version
137
- version: "0"
138
- version:
147
+ - - ">="
148
+ - !ruby/object:Gem::Version
149
+ segments:
150
+ - 0
151
+ version: "0"
139
152
  requirements: []
140
153
 
141
154
  rubyforge_project:
142
- rubygems_version: 1.3.5
155
+ rubygems_version: 1.3.6
143
156
  signing_key:
144
157
  specification_version: 3
145
158
  summary: A ruby library for working with the Open Archive Initiative Protocol for Metadata Harvesting (OAI-PMH)
146
159
  test_files:
147
- - test/activerecord_provider/config/connection.rb
148
- - test/activerecord_provider/database/ar_migration.rb
149
- - test/activerecord_provider/helpers/providers.rb
150
- - test/activerecord_provider/helpers/set_provider.rb
151
- - test/activerecord_provider/models/dc_field.rb
152
- - test/activerecord_provider/models/dc_set.rb
153
- - test/activerecord_provider/models/oai_token.rb
154
- - test/activerecord_provider/tc_ar_provider.rb
155
- - test/activerecord_provider/tc_ar_sets_provider.rb
156
- - test/activerecord_provider/tc_caching_paging_provider.rb
157
- - test/activerecord_provider/tc_simple_paging_provider.rb
158
- - test/activerecord_provider/test_helper.rb
159
- - test/client/helpers/provider.rb
160
- - test/client/helpers/test_wrapper.rb
161
- - test/client/tc_exception.rb
162
- - test/client/tc_get_record.rb
163
- - test/client/tc_identify.rb
164
- - test/client/tc_libxml.rb
165
- - test/client/tc_list_identifiers.rb
166
- - test/client/tc_list_metadata_formats.rb
167
- - test/client/tc_list_records.rb
168
- - test/client/tc_list_sets.rb
169
- - test/client/tc_low_resolution_dates.rb
170
- - test/client/tc_utf8_escaping.rb
171
- - test/client/tc_xpath.rb
172
- - test/client/test_helper.rb
173
- - test/provider/models.rb
174
- - test/provider/tc_exceptions.rb
175
- - test/provider/tc_functional_tokens.rb
176
- - test/provider/tc_provider.rb
177
- - test/provider/tc_resumption_tokens.rb
178
- - test/provider/tc_simple_provider.rb
179
- - test/provider/test_helper.rb
180
- - examples/models/file_model.rb
181
- - examples/providers/dublin_core.rb
160
+ - test/provider/tc_provider.rb
161
+ - test/provider/tc_functional_tokens.rb
162
+ - test/provider/models.rb
163
+ - test/provider/tc_resumption_tokens.rb
164
+ - test/provider/tc_exceptions.rb
165
+ - test/provider/test_helper.rb
166
+ - test/provider/tc_simple_provider.rb
167
+ - test/client/tc_utf8_escaping.rb
168
+ - test/client/tc_exception.rb
169
+ - test/client/tc_identify.rb
170
+ - test/client/tc_list_identifiers.rb
171
+ - test/client/tc_libxml.rb
172
+ - test/client/tc_list_records.rb
173
+ - test/client/tc_get_record.rb
174
+ - test/client/tc_xpath.rb
175
+ - test/client/tc_list_metadata_formats.rb
176
+ - test/client/tc_low_resolution_dates.rb
177
+ - test/client/test_helper.rb
178
+ - test/client/tc_list_sets.rb
179
+ - test/client/helpers/test_wrapper.rb
180
+ - test/client/helpers/provider.rb
181
+ - test/activerecord_provider/tc_caching_paging_provider.rb
182
+ - test/activerecord_provider/tc_ar_sets_provider.rb
183
+ - test/activerecord_provider/tc_ar_provider.rb
184
+ - test/activerecord_provider/test_helper.rb
185
+ - test/activerecord_provider/tc_simple_paging_provider.rb
186
+ - test/activerecord_provider/config/connection.rb
187
+ - test/activerecord_provider/database/ar_migration.rb
188
+ - test/activerecord_provider/helpers/providers.rb
189
+ - test/activerecord_provider/helpers/set_provider.rb
190
+ - test/activerecord_provider/models/dc_set.rb
191
+ - test/activerecord_provider/models/oai_token.rb
192
+ - test/activerecord_provider/models/dc_field.rb
193
+ - examples/providers/dublin_core.rb
194
+ - examples/models/file_model.rb