dpla-map 4.0.0.0.pre.5 → 4.0.0.0.pre.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a91c60661ffee34d7116f7a74abd7031d67b329
4
- data.tar.gz: 6c7901b667448df0fa450abf1647825528fa616f
3
+ metadata.gz: af19d16c121f57c8f2d620762d0ef6a2f88cde96
4
+ data.tar.gz: 87ca75dad79a0ccc54b390f0d5ac334897a893fd
5
5
  SHA512:
6
- metadata.gz: dda65baa8394627d67021cae531615a23360fea9faea0a8f684320b02fc39e4d0c578871ba14de71f1175122c1c02d16a4517f53441186dbc3760f82ef9aa091
7
- data.tar.gz: 4aeedbcba138e31aae48c141ae699bc98193cae4a37ba4e7640488d8e512f13d118182b3e52ec60045a629bf08a6b46091867af09994f6b06cccf1a3a2ae8ddd
6
+ metadata.gz: ea9a3507b63db9f24a3b54679d526614a53c24abacbd5005c7777ae78f6396f30046d5e35db75a2b42fe23e9e49403d71e727249532acb343e4dd3f580dfc08e
7
+ data.tar.gz: d9858250e47711bb3e967eea24c760fd13a612ac6873bfef27b5608d9e985db2c9c843ee16e8a7563907de9207380de4c9efe3db8d7bc1c40e81e4ffa0a0fb38
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014 Digital Public Library of America
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/dpla-map.gemspec CHANGED
@@ -6,6 +6,7 @@ Gem::Specification.new do |s|
6
6
  s.version = DPLA::MAP::VERSION
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Tom Johnson"]
9
+ s.license = "MIT"
9
10
  s.homepage = 'https://github.com/dpla/dpla_map'
10
11
  s.email = 'tom@dp.la'
11
12
  s.summary = %q{DPLA's metadata application profile in ActiveTriples.}
@@ -2,9 +2,9 @@ module DPLA::MAP
2
2
  class Aggregation < ActiveTriples::Resource
3
3
  configure :type => RDF::ORE.Aggregation
4
4
 
5
- validates_presence_of :aggregatedCHO, :originalRecord, :isShownAt, :object, :provider
5
+ validates_presence_of :sourceResource, :originalRecord, :isShownAt, :object, :provider
6
6
 
7
- property :aggregatedCHO, :predicate => RDF::EDM.aggregatedCHO, :class_name => 'DPLA::MAP::SourceResource'
7
+ property :sourceResource, :predicate => RDF::EDM.aggregatedCHO, :class_name => 'DPLA::MAP::SourceResource'
8
8
  property :dataProvider, :predicate => RDF::EDM.dataProvider, :class_name => 'DPLA::MAP::Agent'
9
9
  property :originalRecord, :predicate => RDF::DPLA.originalRecord
10
10
  property :hasView, :predicate => RDF::EDM.hasView, :class_name => 'DPLA::MAP::WebResource'
@@ -20,6 +20,7 @@ FactoryGirl.define do
20
20
  #isReplacedBy
21
21
  #replaces
22
22
  rights "The New York Public Library is interested in learning more about items you've seen on our websites or elsewhere online. If you have any more information about an item or its copyright status, we want to hear from you. Please contact DigitalCollections@nypl.org with your contact information and a link to the relevant content."
23
+ rightsHolder { |agent| agent.association :agent, :label => 'John Palfrey', :strategy => :build }
23
24
  subject { |concept| concept.association :concept, :strategy => :build }
24
25
  temporal '1969'
25
26
  title 'Stonewall Inn [2]'
@@ -27,7 +28,7 @@ FactoryGirl.define do
27
28
  end
28
29
 
29
30
  factory :aggregation, class: DPLA::MAP::Aggregation do
30
- aggregatedCHO { |sr| sr.association :source_resource, :strategy => :build }
31
+ sourceResource { |sr| sr.association :source_resource, :strategy => :build }
31
32
  dataProvider { |agent| agent.association :agent, :label => 'Manuscripts and Archives Division. The New York Public Library', :strategy => :build }
32
33
  originalRecord { RDF::URI('http://api.dp.la/originalRecord/12345') }
33
34
  hasView { |wr| wr.association :web_resource, :strategy => :build }
@@ -22,6 +22,7 @@ module DPLA::MAP
22
22
  property :isReplacedBy, :predicate => RDF::DPLA.isReplacedBy
23
23
  property :replaces, :predicate => RDF::DPLA.replaces
24
24
  property :rights, :predicate => RDF::DC11.rights
25
+ property :rightsHolder, :predicate => RDF::DC.rightsHolder, :class_name => 'DPLA::MAP::Agent'
25
26
  property :subject, :predicate => RDF::DC.subject, :class_name => 'DPLA::MAP::Concept'
26
27
  property :temporal, :predicate => RDF::DC.temporal, :class_name => 'DPLA::MAP::TimeSpan'
27
28
  property :title, :predicate => RDF::DC.title
@@ -1,5 +1,5 @@
1
1
  module DPLA
2
2
  module MAP
3
- VERSION = '4.0.0.0.pre.5'
3
+ VERSION = '4.0.0.0.pre.6'
4
4
  end
5
5
  end
@@ -5,9 +5,8 @@ describe DPLA::MAP::SourceResource do
5
5
  subject { build(:source_resource) }
6
6
 
7
7
  it 'is a dpla:SourceResource' do
8
- require 'pry'
9
- binding.pry
10
8
  expect(subject.type).to eq [RDF::URI('http://dp.la/about/map/SourceResource')]
11
9
  end
12
10
 
13
11
  end
12
+
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.5
4
+ version: 4.0.0.0.pre.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Johnson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-10 00:00:00.000000000 Z
11
+ date: 2015-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active-triples
@@ -103,6 +103,7 @@ files:
103
103
  - ".gitignore"
104
104
  - ".travis.yml"
105
105
  - Gemfile
106
+ - LICENSE
106
107
  - README.md
107
108
  - Rakefile
108
109
  - dpla-map.gemspec
@@ -138,7 +139,8 @@ files:
138
139
  - spec/lib/dpla_spec.rb
139
140
  - spec/spec_helper.rb
140
141
  homepage: https://github.com/dpla/dpla_map
141
- licenses: []
142
+ licenses:
143
+ - MIT
142
144
  metadata: {}
143
145
  post_install_message:
144
146
  rdoc_options: []