hydra-core 9.2.1 → 9.2.2

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: 1565e7c8d8c32cd865283f57c7f7c2e6ca8fef07
4
- data.tar.gz: d631def7dd705f9098b27565a962829fb9dcbf28
3
+ metadata.gz: 4aca722b114a11eaa4b2b4fe147ec453d2469f44
4
+ data.tar.gz: 2d11b61aa6d38798534ad3488b1a69058ec7c1ad
5
5
  SHA512:
6
- metadata.gz: 6c46af8b5cf5b1d24cc5e620e02ea9fb659040a75bdf210b833681ee0a5508568782711ceaa1aa74e6a034c00c2d11805e1c3564fa494da7081391968c2c3f67
7
- data.tar.gz: a773df3ac24128a7b8e99b0911b887d19473c53d53b6313b9656b06bdeee963b5f21fbe6486527e56fc42b8fe44ed04f83b514cddbd330bc08e1a5ef2c285944
6
+ metadata.gz: fba7e3ee86763650d52622912bcdd7df918c6e12585d833f91212128d9961889342734f5236d4f1af2e698874459f9a975a57079418f5406fdd228ff1bc29889
7
+ data.tar.gz: fca747e2ccb374155ea7a424a3e0e3eee0eb72e1e72d520164bdb3b2515d4390110517bc76c44c53f5880d38286940320367194913ec2f04e52d64ecadfc84de
@@ -2,7 +2,7 @@ module Hydra
2
2
  module ContentNegotiation
3
3
  def self.extended(document)
4
4
  document.will_export_as(:nt, "application/n-triples")
5
- document.will_export_as(:jsonld, "application/json")
5
+ document.will_export_as(:jsonld, "application/ld+json")
6
6
  document.will_export_as(:ttl, "text/turtle")
7
7
  end
8
8
 
@@ -80,7 +80,7 @@ module Hydra
80
80
  file_path = "config/initializers/mime_types.rb"
81
81
  append_to_file file_path do
82
82
  "Mime::Type.register \"application/n-triples\", :nt\n" +
83
- "Mime::Type.register \"application/json\", :jsonld\n" +
83
+ "Mime::Type.register \"application/ld+json\", :jsonld\n" +
84
84
  "Mime::Type.register \"text/turtle\", :ttl"
85
85
  end
86
86
  end
@@ -1,3 +1,3 @@
1
1
  module HydraHead
2
- VERSION = "9.2.1"
2
+ VERSION = "9.2.2"
3
3
  end
@@ -84,6 +84,7 @@ describe CatalogController do
84
84
  get 'show', :id => asset.id, :format => :jsonld
85
85
 
86
86
  expect(response).to be_success
87
+ expect(response.headers['Content-Type']).to include("application/ld+json")
87
88
  graph = RDF::Reader.for(:jsonld).new(response.body)
88
89
  expect(graph.statements.to_a.length).to eq 3
89
90
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hydra-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.2.1
4
+ version: 9.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Zumwalt, Bess Sadler, Julie Meloni, Naomi Dushay, Jessie Keck, John Scofield,
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-07-28 00:00:00.000000000 Z
12
+ date: 2015-08-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -31,14 +31,14 @@ dependencies:
31
31
  requirements:
32
32
  - - '='
33
33
  - !ruby/object:Gem::Version
34
- version: 9.2.1
34
+ version: 9.2.2
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - '='
40
40
  - !ruby/object:Gem::Version
41
- version: 9.2.1
41
+ version: 9.2.2
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: jettywrapper
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -213,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
213
  version: '0'
214
214
  requirements: []
215
215
  rubyforge_project:
216
- rubygems_version: 2.4.5
216
+ rubygems_version: 2.4.6
217
217
  signing_key:
218
218
  specification_version: 4
219
219
  summary: Hydra-Head Rails Engine (requires Rails3)