dpla-map 4.0.0.0.pre.12 → 4.0.0.0.pre.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +7 -2
- data/dpla-map.gemspec +1 -0
- data/lib/dpla/map/time_span.rb +1 -0
- data/lib/dpla/map/version.rb +1 -1
- data/spec/lib/dpla_spec.rb +6 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19a17b0c11771dd99a07b956c56fe5d3e8d14555
|
4
|
+
data.tar.gz: e74dec34b82adf2129e7ce09eddc241587edd375
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c5b1e9b8aef8ac7481ea31dedb0fa2ab56e08123d1ea8e12d9df057086042528d2a7871eba4fe4e928a09cc409c0e3c2144ecc3e2e82c81380cb0b6dbcbcf85
|
7
|
+
data.tar.gz: e12badd4ab32c21542411b14feba6d5f66e502de6f4ec7c52ed1473b27b42e4beab96e96dd2929016403c68fdd6b610ebd47a1b96efcb307ae5fc789414d5615
|
data/.travis.yml
CHANGED
@@ -1,10 +1,15 @@
|
|
1
1
|
language: ruby
|
2
2
|
bundler_args: --without debug
|
3
|
+
sudo: false
|
4
|
+
before_install: gem install -v '~> 1.10' bundler
|
3
5
|
script: "bundle exec rspec spec"
|
4
6
|
rvm:
|
5
7
|
- 1.9.3
|
6
8
|
- 2.0.0
|
7
|
-
- 2.1.0
|
8
|
-
- 2.1.1
|
9
9
|
- 2.1.3
|
10
|
+
- 2.1.6
|
11
|
+
- 2.1.8
|
12
|
+
- 2.2.4
|
13
|
+
- 2.3.0
|
14
|
+
- ruby-head
|
10
15
|
|
data/dpla-map.gemspec
CHANGED
data/lib/dpla/map/time_span.rb
CHANGED
@@ -4,6 +4,7 @@ module DPLA::MAP
|
|
4
4
|
|
5
5
|
validates_presence_of :providedLabel
|
6
6
|
|
7
|
+
property :prefLabel, :predicate => RDF::SKOS.prefLabel
|
7
8
|
property :providedLabel, :predicate => RDF::DPLA.providedLabel
|
8
9
|
property :begin, :predicate => RDF::EDM.begin
|
9
10
|
property :end, :predicate => RDF::EDM.end
|
data/lib/dpla/map/version.rb
CHANGED
data/spec/lib/dpla_spec.rb
CHANGED
@@ -12,6 +12,10 @@ describe DPLA::MAP::SourceResource do
|
|
12
12
|
expect(subject.genre).to contain_exactly(an_instance_of(DPLA::MAP::Controlled::Genre))
|
13
13
|
end
|
14
14
|
|
15
|
+
it 'has a dc:date that is a DPLA::MAP::TimeSpan' do
|
16
|
+
expect(subject.date).to contain_exactly(an_instance_of(DPLA::MAP::TimeSpan))
|
17
|
+
end
|
18
|
+
|
15
19
|
it 'has a dcterms:language that is a DPLA::MAP::Controlled::Language' do
|
16
20
|
expect(subject.language).to contain_exactly(an_instance_of(DPLA::MAP::Controlled::Language))
|
17
21
|
end
|
@@ -31,6 +35,8 @@ describe DPLA::MAP::Aggregation do
|
|
31
35
|
it 'has nested values' do
|
32
36
|
expect(subject.sourceResource.first.subject.first.prefLabel)
|
33
37
|
.to contain_exactly('Gay activists')
|
38
|
+
expect(subject.sourceResource.first.date.first.providedLabel)
|
39
|
+
.to contain_exactly('1969.')
|
34
40
|
end
|
35
41
|
|
36
42
|
context 'when built from parsed graph' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dpla-map
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0.0.pre.
|
4
|
+
version: 4.0.0.0.pre.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Johnson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active-triples
|
@@ -80,6 +80,20 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 4.4.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: bundler
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.10'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.10'
|
83
97
|
description: DPLA's metadata application profile in ActiveTriples.
|
84
98
|
email: tom@dp.la
|
85
99
|
executables: []
|
@@ -147,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
161
|
version: 1.3.1
|
148
162
|
requirements: []
|
149
163
|
rubyforge_project:
|
150
|
-
rubygems_version: 2.2.
|
164
|
+
rubygems_version: 2.2.0
|
151
165
|
signing_key:
|
152
166
|
specification_version: 4
|
153
167
|
summary: DPLA's metadata application profile in ActiveTriples.
|