rof 0.0.1.pre → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +12 -2
- data/Gemfile +1 -0
- data/README.md +87 -0
- data/bin/.ruby-version +1 -0
- data/bin/csv_to_rof +26 -0
- data/bin/fedora_to_rof +57 -0
- data/bin/osf_to_rof +40 -0
- data/bin/rof +78 -0
- data/bulk-ingest.md +242 -0
- data/labels.md +111 -0
- data/lib/rof.rb +20 -1
- data/lib/rof/access.rb +57 -0
- data/lib/rof/cli.rb +122 -0
- data/lib/rof/collection.rb +109 -0
- data/lib/rof/compare_rof.rb +92 -0
- data/lib/rof/filters/bendo.rb +33 -0
- data/lib/rof/filters/date_stamp.rb +36 -0
- data/lib/rof/filters/file_to_url.rb +27 -0
- data/lib/rof/filters/label.rb +153 -0
- data/lib/rof/filters/work.rb +111 -0
- data/lib/rof/get_from_fedora.rb +196 -0
- data/lib/rof/ingest.rb +204 -0
- data/lib/rof/ingesters/rels_ext_ingester.rb +78 -0
- data/lib/rof/ingesters/rights_metadata_ingester.rb +68 -0
- data/lib/rof/osf_context.rb +19 -0
- data/lib/rof/osf_to_rof.rb +122 -0
- data/lib/rof/rdf_context.rb +36 -0
- data/lib/rof/translate_csv.rb +112 -0
- data/lib/rof/utility.rb +84 -0
- data/lib/rof/version.rb +2 -2
- data/rof.gemspec +17 -0
- data/spec/fixtures/a.json +4 -0
- data/spec/fixtures/label.json +20 -0
- data/spec/fixtures/osf/b6psa.tar.gz +0 -0
- data/spec/fixtures/rof/dev0012829m.rof +45 -0
- data/spec/fixtures/vcr_tests/fedora_to_rof1.yml +5274 -0
- data/spec/fixtures/vecnet-citation.json +73 -0
- data/spec/lib/rof/access_spec.rb +36 -0
- data/spec/lib/rof/cli_spec.rb +66 -0
- data/spec/lib/rof/collection_spec.rb +90 -0
- data/spec/lib/rof/compare_rof_spec.rb +263 -0
- data/spec/lib/rof/filters/date_stamp_spec.rb +90 -0
- data/spec/lib/rof/filters/file_to_url_spec.rb +70 -0
- data/spec/lib/rof/filters/label_spec.rb +94 -0
- data/spec/lib/rof/filters/work_spec.rb +87 -0
- data/spec/lib/rof/ingest_spec.rb +117 -0
- data/spec/lib/rof/ingesters/rels_ext_ingester_spec.rb +62 -0
- data/spec/lib/rof/ingesters/rights_metadata_ingester_spec.rb +114 -0
- data/spec/lib/rof/osf_to_rof_spec.rb +76 -0
- data/spec/lib/rof/translate_csv_spec.rb +109 -0
- data/spec/lib/rof/utility_spec.rb +64 -0
- data/spec/lib/rof_spec.rb +14 -0
- data/spec/spec_helper.rb +11 -11
- metadata +283 -18
data/spec/spec_helper.rb
CHANGED
@@ -1,18 +1,13 @@
|
|
1
1
|
GEM_ROOT = File.expand_path("../../", __FILE__)
|
2
2
|
$:.unshift File.join(GEM_ROOT, "lib")
|
3
3
|
|
4
|
+
require 'rspec/its'
|
5
|
+
require 'rspec/matchers'
|
6
|
+
require 'equivalent-xml'
|
7
|
+
require 'webmock/rspec'
|
4
8
|
require 'vcr'
|
5
9
|
|
6
|
-
|
7
|
-
{vcr: {record: :new_episodes}.merge(options)}
|
8
|
-
end
|
9
|
-
|
10
|
-
VCR.configure do |config|
|
11
|
-
config.cassette_library_dir = 'spec/fixtures/cassettes'
|
12
|
-
config.hook_into :webmock
|
13
|
-
config.configure_rspec_metadata!
|
14
|
-
config.allow_http_connections_when_no_cassette = true
|
15
|
-
end
|
10
|
+
require 'rof'
|
16
11
|
|
17
12
|
# This file was generated by the `rspec --init` command. Conventionally, all
|
18
13
|
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
@@ -20,8 +15,12 @@ end
|
|
20
15
|
# loaded once.
|
21
16
|
#
|
22
17
|
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
18
|
+
VCR.configure do |c|
|
19
|
+
c.cassette_library_dir = 'spec/fixtures/vcr_tests'
|
20
|
+
c.hook_into :webmock
|
21
|
+
end
|
22
|
+
|
23
23
|
RSpec.configure do |config|
|
24
|
-
config.treat_symbols_as_metadata_keys_with_true_values = true
|
25
24
|
config.run_all_when_everything_filtered = true
|
26
25
|
config.filter_run :focus
|
27
26
|
|
@@ -31,3 +30,4 @@ RSpec.configure do |config|
|
|
31
30
|
# --seed 1234
|
32
31
|
config.order = 'random'
|
33
32
|
end
|
33
|
+
|
metadata
CHANGED
@@ -1,75 +1,321 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rof
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Friesen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rdf
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.0.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.0.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rdf-rdfxml
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rdf-turtle
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rdf-isomorphic
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: json-ld
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 2.0.0
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 2.0.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: mime-types
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 2.4.3
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 2.4.3
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rubydora
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 1.8.1
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 1.8.1
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: noids_client
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: deprecation
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0.1'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0.1'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: activesupport
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "<"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '5.0'
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "<"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '5.0'
|
13
153
|
- !ruby/object:Gem::Dependency
|
14
154
|
name: bundler
|
15
155
|
requirement: !ruby/object:Gem::Requirement
|
16
156
|
requirements:
|
17
|
-
- - ~>
|
157
|
+
- - "~>"
|
18
158
|
- !ruby/object:Gem::Version
|
19
159
|
version: '1.3'
|
20
160
|
type: :development
|
21
161
|
prerelease: false
|
22
162
|
version_requirements: !ruby/object:Gem::Requirement
|
23
163
|
requirements:
|
24
|
-
- - ~>
|
164
|
+
- - "~>"
|
25
165
|
- !ruby/object:Gem::Version
|
26
166
|
version: '1.3'
|
27
167
|
- !ruby/object:Gem::Dependency
|
28
168
|
name: rake
|
29
169
|
requirement: !ruby/object:Gem::Requirement
|
30
170
|
requirements:
|
31
|
-
- -
|
171
|
+
- - ">="
|
32
172
|
- !ruby/object:Gem::Version
|
33
173
|
version: '0'
|
34
174
|
type: :development
|
35
175
|
prerelease: false
|
36
176
|
version_requirements: !ruby/object:Gem::Requirement
|
37
177
|
requirements:
|
38
|
-
- -
|
178
|
+
- - ">="
|
39
179
|
- !ruby/object:Gem::Version
|
40
180
|
version: '0'
|
41
181
|
- !ruby/object:Gem::Dependency
|
42
182
|
name: rspec
|
43
183
|
requirement: !ruby/object:Gem::Requirement
|
44
184
|
requirements:
|
45
|
-
- -
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: rspec-its
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: vcr
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
46
214
|
- !ruby/object:Gem::Version
|
47
215
|
version: '0'
|
48
216
|
type: :development
|
49
217
|
prerelease: false
|
50
218
|
version_requirements: !ruby/object:Gem::Requirement
|
51
219
|
requirements:
|
52
|
-
- -
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: webmock
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - ">="
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - ">="
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '0'
|
237
|
+
- !ruby/object:Gem::Dependency
|
238
|
+
name: equivalent-xml
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - ">="
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: '0'
|
244
|
+
type: :development
|
245
|
+
prerelease: false
|
246
|
+
version_requirements: !ruby/object:Gem::Requirement
|
247
|
+
requirements:
|
248
|
+
- - ">="
|
53
249
|
- !ruby/object:Gem::Version
|
54
250
|
version: '0'
|
55
251
|
description: Raw Object Format
|
56
252
|
email:
|
57
253
|
- jeremy.n.friesen@gmail.com
|
58
|
-
executables:
|
254
|
+
executables:
|
255
|
+
- ".ruby-version"
|
256
|
+
- csv_to_rof
|
257
|
+
- fedora_to_rof
|
258
|
+
- osf_to_rof
|
259
|
+
- rof
|
59
260
|
extensions: []
|
60
261
|
extra_rdoc_files: []
|
61
262
|
files:
|
62
|
-
- .gitignore
|
63
|
-
- .rspec
|
64
|
-
- .ruby-version
|
65
|
-
- .travis.yml
|
263
|
+
- ".gitignore"
|
264
|
+
- ".rspec"
|
265
|
+
- ".ruby-version"
|
266
|
+
- ".travis.yml"
|
66
267
|
- Gemfile
|
67
268
|
- LICENSE
|
68
269
|
- README.md
|
69
270
|
- Rakefile
|
271
|
+
- bin/.ruby-version
|
272
|
+
- bin/csv_to_rof
|
273
|
+
- bin/fedora_to_rof
|
274
|
+
- bin/osf_to_rof
|
275
|
+
- bin/rof
|
276
|
+
- bulk-ingest.md
|
277
|
+
- labels.md
|
70
278
|
- lib/rof.rb
|
279
|
+
- lib/rof/access.rb
|
280
|
+
- lib/rof/cli.rb
|
281
|
+
- lib/rof/collection.rb
|
282
|
+
- lib/rof/compare_rof.rb
|
283
|
+
- lib/rof/filters/bendo.rb
|
284
|
+
- lib/rof/filters/date_stamp.rb
|
285
|
+
- lib/rof/filters/file_to_url.rb
|
286
|
+
- lib/rof/filters/label.rb
|
287
|
+
- lib/rof/filters/work.rb
|
288
|
+
- lib/rof/get_from_fedora.rb
|
289
|
+
- lib/rof/ingest.rb
|
290
|
+
- lib/rof/ingesters/rels_ext_ingester.rb
|
291
|
+
- lib/rof/ingesters/rights_metadata_ingester.rb
|
292
|
+
- lib/rof/osf_context.rb
|
293
|
+
- lib/rof/osf_to_rof.rb
|
294
|
+
- lib/rof/rdf_context.rb
|
295
|
+
- lib/rof/translate_csv.rb
|
296
|
+
- lib/rof/utility.rb
|
71
297
|
- lib/rof/version.rb
|
72
298
|
- rof.gemspec
|
299
|
+
- spec/fixtures/a.json
|
300
|
+
- spec/fixtures/label.json
|
301
|
+
- spec/fixtures/osf/b6psa.tar.gz
|
302
|
+
- spec/fixtures/rof/dev0012829m.rof
|
303
|
+
- spec/fixtures/vcr_tests/fedora_to_rof1.yml
|
304
|
+
- spec/fixtures/vecnet-citation.json
|
305
|
+
- spec/lib/rof/access_spec.rb
|
306
|
+
- spec/lib/rof/cli_spec.rb
|
307
|
+
- spec/lib/rof/collection_spec.rb
|
308
|
+
- spec/lib/rof/compare_rof_spec.rb
|
309
|
+
- spec/lib/rof/filters/date_stamp_spec.rb
|
310
|
+
- spec/lib/rof/filters/file_to_url_spec.rb
|
311
|
+
- spec/lib/rof/filters/label_spec.rb
|
312
|
+
- spec/lib/rof/filters/work_spec.rb
|
313
|
+
- spec/lib/rof/ingest_spec.rb
|
314
|
+
- spec/lib/rof/ingesters/rels_ext_ingester_spec.rb
|
315
|
+
- spec/lib/rof/ingesters/rights_metadata_ingester_spec.rb
|
316
|
+
- spec/lib/rof/osf_to_rof_spec.rb
|
317
|
+
- spec/lib/rof/translate_csv_spec.rb
|
318
|
+
- spec/lib/rof/utility_spec.rb
|
73
319
|
- spec/lib/rof_spec.rb
|
74
320
|
- spec/spec_helper.rb
|
75
321
|
homepage: https://github.com/ndlib/rof
|
@@ -82,21 +328,40 @@ require_paths:
|
|
82
328
|
- lib
|
83
329
|
required_ruby_version: !ruby/object:Gem::Requirement
|
84
330
|
requirements:
|
85
|
-
- -
|
331
|
+
- - ">="
|
86
332
|
- !ruby/object:Gem::Version
|
87
333
|
version: '0'
|
88
334
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
335
|
requirements:
|
90
|
-
- -
|
336
|
+
- - ">="
|
91
337
|
- !ruby/object:Gem::Version
|
92
|
-
version:
|
338
|
+
version: '0'
|
93
339
|
requirements: []
|
94
340
|
rubyforge_project:
|
95
|
-
rubygems_version: 2.
|
341
|
+
rubygems_version: 2.4.5
|
96
342
|
signing_key:
|
97
343
|
specification_version: 4
|
98
344
|
summary: Raw Object Format
|
99
345
|
test_files:
|
346
|
+
- spec/fixtures/a.json
|
347
|
+
- spec/fixtures/label.json
|
348
|
+
- spec/fixtures/osf/b6psa.tar.gz
|
349
|
+
- spec/fixtures/rof/dev0012829m.rof
|
350
|
+
- spec/fixtures/vcr_tests/fedora_to_rof1.yml
|
351
|
+
- spec/fixtures/vecnet-citation.json
|
352
|
+
- spec/lib/rof/access_spec.rb
|
353
|
+
- spec/lib/rof/cli_spec.rb
|
354
|
+
- spec/lib/rof/collection_spec.rb
|
355
|
+
- spec/lib/rof/compare_rof_spec.rb
|
356
|
+
- spec/lib/rof/filters/date_stamp_spec.rb
|
357
|
+
- spec/lib/rof/filters/file_to_url_spec.rb
|
358
|
+
- spec/lib/rof/filters/label_spec.rb
|
359
|
+
- spec/lib/rof/filters/work_spec.rb
|
360
|
+
- spec/lib/rof/ingest_spec.rb
|
361
|
+
- spec/lib/rof/ingesters/rels_ext_ingester_spec.rb
|
362
|
+
- spec/lib/rof/ingesters/rights_metadata_ingester_spec.rb
|
363
|
+
- spec/lib/rof/osf_to_rof_spec.rb
|
364
|
+
- spec/lib/rof/translate_csv_spec.rb
|
365
|
+
- spec/lib/rof/utility_spec.rb
|
100
366
|
- spec/lib/rof_spec.rb
|
101
367
|
- spec/spec_helper.rb
|
102
|
-
has_rdoc:
|