hydra-core 7.1.0 → 7.2.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf5e63d3cf136ab5bfa843a09fe510dab1438dcb
|
4
|
+
data.tar.gz: 3bc197f03b84e4fcdbddc42618bdd08cfc599bd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 957acdccc65ed9c295dceb76f58eb25741dbe01e5aabada562eebbb404bf56b4f8b4b1ff674ed26aaffa2a857762f546ea04f57ce929f1a817131a4ae970e747
|
7
|
+
data.tar.gz: 9e1843a9f197decec1bc0a5d9a4d72115bee014f04a5da3d77302779cb3eac8b83b4f7217090eb5c93d2f8181de89bbd04d184d65cf2e62a2f2b54e7ee2cf505
|
@@ -83,8 +83,7 @@ module Hydra
|
|
83
83
|
elsif request.headers['HTTP_RANGE']
|
84
84
|
send_range
|
85
85
|
else
|
86
|
-
|
87
|
-
self.response_body = datastream.stream
|
86
|
+
send_file_contents
|
88
87
|
end
|
89
88
|
end
|
90
89
|
|
@@ -117,10 +116,22 @@ module Hydra
|
|
117
116
|
response.headers['Content-Range'] = "bytes #{from}-#{to}/#{datastream.dsSize}"
|
118
117
|
response.headers['Content-Length'] = "#{length}"
|
119
118
|
self.status = 206
|
120
|
-
|
119
|
+
prepare_file_headers
|
121
120
|
self.response_body = datastream.stream(from, length)
|
122
121
|
end
|
122
|
+
|
123
|
+
def send_file_contents
|
124
|
+
self.status = 200
|
125
|
+
prepare_file_headers
|
126
|
+
self.response_body = datastream.stream
|
127
|
+
end
|
123
128
|
|
129
|
+
def prepare_file_headers
|
130
|
+
send_file_headers! content_options
|
131
|
+
response.headers['Content-Type'] = datastream.mimeType
|
132
|
+
self.content_type = datastream.mimeType
|
133
|
+
end
|
134
|
+
|
124
135
|
private
|
125
136
|
|
126
137
|
def default_content_ds
|
data/lib/hydra-head/version.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
group :develop do
|
2
2
|
gem 'active-fedora', github: "projecthydra/active_fedora"
|
3
3
|
end
|
4
|
-
|
4
|
+
# Temporary fix for https://github.com/twbs/bootstrap-sass/issues/647 on Rails 3
|
5
|
+
gem 'bootstrap-sass', github: 'twbs/bootstrap-sass', ref: '540ad23'
|
6
|
+
gem 'rspec-rails', '~> 3.0', group: :test
|
5
7
|
gem 'rspec-its'
|
6
8
|
|
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: 7.
|
4
|
+
version: 7.2.0
|
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: 2014-
|
12
|
+
date: 2014-07-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -51,14 +51,14 @@ dependencies:
|
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 7.
|
54
|
+
version: 7.2.0
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
57
|
version_requirements: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 7.
|
61
|
+
version: 7.2.0
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
63
|
name: jettywrapper
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|