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: 1e0bb910f8bac80a3f56529027de3c34800c305f
4
- data.tar.gz: 904c77e5a596d35b9d54264961c9efa37551ba8d
3
+ metadata.gz: bf5e63d3cf136ab5bfa843a09fe510dab1438dcb
4
+ data.tar.gz: 3bc197f03b84e4fcdbddc42618bdd08cfc599bd4
5
5
  SHA512:
6
- metadata.gz: 59e108e7eba0a4520acc4a396f33774b48b62e7dabd151ca364b0d29f8ce242001e2c92d65593a4101a05f05e9302b48dff3470ab57e1121dee5526ec6504ae9
7
- data.tar.gz: 7c741d190154375d9a94bd2df9b5870903ad6fa41c873370ad07af872bfa5f3f7e4b95bba5252b0c0f05bfcf0c16428bf71cf7fb50c2cb8bdc52d5a9a727dc8f
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
- send_file_headers! content_options
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
- send_file_headers! content_options
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
@@ -1,4 +1,4 @@
1
1
  module HydraHead
2
- VERSION = "7.1.0"
2
+ VERSION = "7.2.0"
3
3
  end
4
4
 
@@ -30,4 +30,8 @@ class TestAppGenerator < Rails::Generators::Base
30
30
 
31
31
  generate 'hydra:head', '-f --skip-rspec'
32
32
  end
33
+
34
+ def remove_generated_user_spec
35
+ remove_file 'spec/models/user_spec.rb'
36
+ end
33
37
  end
@@ -1,6 +1,8 @@
1
1
  group :develop do
2
2
  gem 'active-fedora', github: "projecthydra/active_fedora"
3
3
  end
4
- gem 'rspec-rails', '~> 2.99', group: :test
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.1.0
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-06-23 00:00:00.000000000 Z
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.1.0
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.1.0
61
+ version: 7.2.0
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: jettywrapper
64
64
  requirement: !ruby/object:Gem::Requirement