curation_concerns 1.7.1 → 1.7.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: 26855485f2643a47ee5a78b29009b4fbcfe706c6
4
- data.tar.gz: 88f265f67966b7e34a60fa75b04a1a89b6c690d6
3
+ metadata.gz: d15b59d55d78440e70e6f40b0c0892065436ea41
4
+ data.tar.gz: c3d817c1978120de064a838441a8c40c668ce3e1
5
5
  SHA512:
6
- metadata.gz: 2104575cd50826e59ddc75148a96060e4d9f016d70d717e46228d008cb6995eb01ef3a86c099c8b3c2772acce9e23215c4d92c26e389a6c2c07ae99b2b539039
7
- data.tar.gz: cfa2b836990e759572ed1ee9f12c1db96f678be38ea065443ad8c220e3fa719d4a1b24b1c33fbeb511fe3e2cca51383b74a3039f7701aa41f679925a3b34043e
6
+ metadata.gz: d14c0baaf6373a14d4ba6b14343cdb81e2f0e93342f835fe6bb029a56087dcf04f43f8b822241737ef2dc66256c989c86a0b985d6e9a0c02c4f64275371ecefb
7
+ data.tar.gz: a280ccee709f04466a253c04106195fab1d9c8d014c14bf6aa6cf84bce359e44ab09d441b6849b4c61c08853feac88b0e345e95d0e1e781ab6577f590cf8cc9c
data/.travis.yml CHANGED
@@ -10,6 +10,6 @@ env:
10
10
  - RAILS_VERSION=4.2.7.1
11
11
  RDF_VERSION=1.99.1
12
12
  - RAILS_VERSION=5.0.0.1
13
- RDF_VERSION=2.1.0
13
+ RDF_VERSION=2.1.1
14
14
  before_script:
15
15
  - jdk_switcher use oraclejdk8
@@ -217,6 +217,7 @@ module CurationConcerns
217
217
  message = I18n.t("curation_concerns.workflow.unauthorized")
218
218
  respond_to do |wants|
219
219
  wants.html do
220
+ unavailable_presenter
220
221
  flash[:notice] = message
221
222
  render 'unavailable', status: :unauthorized
222
223
  end
@@ -235,5 +236,9 @@ module CurationConcerns
235
236
  end
236
237
  end
237
238
  end
239
+
240
+ def unavailable_presenter
241
+ @presenter ||= show_presenter.new(::SolrDocument.find(params[:id]), current_ability, request)
242
+ end
238
243
  end
239
244
  end
@@ -1,3 +1,3 @@
1
1
  module CurationConcerns
2
- VERSION = '1.7.1'.freeze
2
+ VERSION = '1.7.2'.freeze
3
3
  end
@@ -20,6 +20,7 @@ describe CurationConcerns::GenericWorksController do
20
20
  get :show, params: { id: work }
21
21
  expect(response.code).to eq '401'
22
22
  expect(response).to render_template(:unavailable)
23
+ expect(assigns[:presenter]).to be_instance_of CurationConcerns::WorkShowPresenter
23
24
  expect(flash[:notice]).to eq 'The work is not currently available because it has not yet completed the approval process'
24
25
  end
25
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: curation_concerns
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Zumwalt
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-12-20 00:00:00.000000000 Z
13
+ date: 2017-01-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: hydra-head