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

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 29207620b07fc4db2105b07547939fbe6f3bf479
4
- data.tar.gz: 4cadc4f43b2970942a6721a1b306670bed61b4d6
3
+ metadata.gz: 7a91c60661ffee34d7116f7a74abd7031d67b329
4
+ data.tar.gz: 6c7901b667448df0fa450abf1647825528fa616f
5
5
  SHA512:
6
- metadata.gz: 267b7d03a6ba19f051938d5b9c91487952d135f264b622bbcfdab8b8d226104ac91e160647ff81dda0d316f88368ae7ae2f2b0327e98375c8131cb90e9791cda
7
- data.tar.gz: a46ab9ffa0f185e81abe2bb30e7257875ed3edf24f165dab2611226877616ee91fa9580bb9a2398c4c4793b3717c51353ef41649b0f42b795803d827e26e2e0e
6
+ metadata.gz: dda65baa8394627d67021cae531615a23360fea9faea0a8f684320b02fc39e4d0c578871ba14de71f1175122c1c02d16a4517f53441186dbc3760f82ef9aa091
7
+ data.tar.gz: 4aeedbcba138e31aae48c141ae699bc98193cae4a37ba4e7640488d8e512f13d118182b3e52ec60045a629bf08a6b46091867af09994f6b06cccf1a3a2ae8ddd
@@ -18,5 +18,9 @@ module DPLA::MAP
18
18
  def jsonld_context
19
19
  DPLA::MAP::CONTEXT['@context']
20
20
  end
21
+
22
+ def to_jsonld
23
+ JSON::LD::API.frame(JSON.parse(dump(:jsonld)), DPLA::MAP::FRAME)
24
+ end
21
25
  end
22
26
  end
@@ -49,7 +49,7 @@ FactoryGirl.define do
49
49
  end
50
50
 
51
51
  factory :object do
52
- initialize_with { new('http://dp.la/item/116d5aaf3d77a5d7c5a6c7a3e10c5afe') }
52
+ initialize_with { new('http://images.nypl.org/index.php?id=1582254&t=w') }
53
53
  end
54
54
 
55
55
  factory :isShownAt do
@@ -1,5 +1,5 @@
1
1
  module DPLA
2
2
  module MAP
3
- VERSION = '4.0.0.0.pre.4'
3
+ VERSION = '4.0.0.0.pre.5'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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
4
+ version: 4.0.0.0.pre.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Johnson