hydra-core 10.5.0 → 10.5.1

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: 390e410597d92f2ea211e30a83b3b1b4cb49c823
4
- data.tar.gz: 633207d0e603be5b0230211df550c7844f2c8000
3
+ metadata.gz: cb1192753c4d9d7d26b2c0560e0ba127e1cf0550
4
+ data.tar.gz: 27760b95dd45280ffffeef65306271eee9a7b2b1
5
5
  SHA512:
6
- metadata.gz: 5e00c2afff1bd6aadc322275c7e5407130660fe1068263fa185d7ae79ffeaf597f5778d0649819198a50cde37061782954d0c0f1467dabad48adfe89ff242abd
7
- data.tar.gz: c1a44dbbe07da54548db0fe6f275da4dcfecabd5f4236cfdf70de8b185a95665c532f6b5210b41f8b67cd7c25cf10d753c7645e123beda163695ca716228affb
6
+ metadata.gz: e1f7c299e3a156a48f977fba5091d43718974cab64a37b5f129902a8859b2b393d03d1295cdaf2da463e43d2242193eedf753db810714299f494c5e9799ade8f
7
+ data.tar.gz: f0152d2e800b1b041f40cca674b373dd26b4e35e6a7b88a9b20d3b496a7137977c3049cc15c451d1c0c3da5f876163d436664fba6bc0b6533a3fe35a5184d237
@@ -121,11 +121,11 @@ module Hydra
121
121
  private
122
122
 
123
123
  def stream_body(iostream)
124
- iostream.each do |in_buff|
125
- response.stream.write in_buff
124
+ # see https://github.com/rails/rails/issues/18714#issuecomment-96204444
125
+ unless response.headers["Last-Modified"] || response.headers["ETag"]
126
+ Rails.logger.warn("Response may be buffered instead of streaming, best to set a Last-Modified or ETag header")
126
127
  end
127
- ensure
128
- response.stream.close
128
+ self.response_body = iostream
129
129
  end
130
130
 
131
131
  def default_file
@@ -144,4 +144,3 @@ module Hydra
144
144
  end
145
145
  end
146
146
  end
147
-
@@ -22,7 +22,7 @@ Gem::Specification.new do |gem|
22
22
  gem.add_dependency 'hydra-access-controls', version
23
23
 
24
24
  gem.add_development_dependency 'sqlite3', '~> 1.3'
25
- gem.add_development_dependency 'yard', '~> 0.8.7'
26
25
  gem.add_development_dependency 'rspec-rails', '~> 3.1'
27
- gem.add_development_dependency 'factory_girl_rails', '~> 4.2'
26
+ gem.add_development_dependency 'rails-controller-testing', '~> 1'
27
+ gem.add_development_dependency 'factory_bot_rails', '~> 4.8.2'
28
28
  end
@@ -1,3 +1,3 @@
1
1
  module HydraHead
2
- VERSION = "10.5.0"
2
+ VERSION = "10.5.1"
3
3
  end
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  sequence :email do |n|
3
3
  "person#{n}@example.com"
4
4
  end
@@ -32,7 +32,7 @@ describe User do
32
32
  end
33
33
 
34
34
  describe "#groups" do
35
- let(:user) { FactoryGirl.create(:user) }
35
+ let(:user) { FactoryBot.create(:user) }
36
36
  let(:mock_service) { double }
37
37
  before do
38
38
  user.group_service = mock_service
@@ -7,7 +7,7 @@ EngineCart.load_application! path
7
7
  require 'bundler/setup'
8
8
  require 'rspec/rails'
9
9
  require 'hydra-core'
10
- require "factory_girl"
10
+ require "factory_bot"
11
11
  require "factories"
12
12
 
13
13
  if ENV['COVERAGE']
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: 10.5.0
4
+ version: 10.5.1
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: 2017-06-09 00:00:00.000000000 Z
12
+ date: 2018-04-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -37,14 +37,14 @@ dependencies:
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 10.5.0
40
+ version: 10.5.1
41
41
  type: :runtime
42
42
  prerelease: false
43
43
  version_requirements: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 10.5.0
47
+ version: 10.5.1
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: sqlite3
50
50
  requirement: !ruby/object:Gem::Requirement
@@ -60,47 +60,47 @@ dependencies:
60
60
  - !ruby/object:Gem::Version
61
61
  version: '1.3'
62
62
  - !ruby/object:Gem::Dependency
63
- name: yard
63
+ name: rspec-rails
64
64
  requirement: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.8.7
68
+ version: '3.1'
69
69
  type: :development
70
70
  prerelease: false
71
71
  version_requirements: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.8.7
75
+ version: '3.1'
76
76
  - !ruby/object:Gem::Dependency
77
- name: rspec-rails
77
+ name: rails-controller-testing
78
78
  requirement: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '3.1'
82
+ version: '1'
83
83
  type: :development
84
84
  prerelease: false
85
85
  version_requirements: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '3.1'
89
+ version: '1'
90
90
  - !ruby/object:Gem::Dependency
91
- name: factory_girl_rails
91
+ name: factory_bot_rails
92
92
  requirement: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '4.2'
96
+ version: 4.8.2
97
97
  type: :development
98
98
  prerelease: false
99
99
  version_requirements: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '4.2'
103
+ version: 4.8.2
104
104
  description: 'Hydra-Head is a Rails Engine containing the core code for a Hydra application.
105
105
  The full hydra stack includes: Blacklight, Fedora, Solr, active-fedora, solrizer,
106
106
  and om'
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  version: '0'
181
181
  requirements: []
182
182
  rubyforge_project:
183
- rubygems_version: 2.6.12
183
+ rubygems_version: 2.6.14
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: Hydra-Head Rails Engine (requires Rails3)