hyrax 2.0.1 → 2.0.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: e9b7ae0472d87866ad612907024ff728a7c2b991
4
- data.tar.gz: 8f99d3bdc928281c81c66382e67008d266200f85
3
+ metadata.gz: 8cbba68b87a679def263b2954cefc2f513e98c25
4
+ data.tar.gz: '07229cce18d1ed0350488029afef7d34a3f56322'
5
5
  SHA512:
6
- metadata.gz: 16a63bc04587ca44251e3da2a1ea2f7071f2eac1d42ed378a3ee41d2697312d72029076cabe4828f2e2ce1411fee3afa9d5050f95cd62a17e21434e89aa6cdaa
7
- data.tar.gz: c7210a56ee4b20462c135c2faa85cd95a46ac8fc16db98ffbd4b7f576fb8e2cb3b143fb515ab391dff4265511ccb3a8243416b2fa5ef1b73ceb3f0995a2156ad
6
+ metadata.gz: 2b7313824660998cd844daee4728874f059b282d03b9db2745dcafff71e93eefb8e9b78f2fd96f27e882c731c9bef7a74a49cfd47cf684bd4dc63cb62aff2d7c
7
+ data.tar.gz: 469261a45725b10f3b09f77c36f7d56e74c5ca31b630ba48ab4ac7767c6fcc59b1844d891cce6562d8560eebbc16cfd9fae7d736227354efe7a691ae82dd030b
@@ -1,5 +1,5 @@
1
1
  language: ruby
2
- sudo: false
2
+ sudo: required
3
3
  dist: trusty
4
4
 
5
5
  addons:
data/README.md CHANGED
@@ -63,7 +63,7 @@ The Samvera community is here to help. Please see our [support guide](./.github/
63
63
  # Getting started
64
64
 
65
65
  This document contains instructions specific to setting up an app with __Hyrax
66
- v2.0.1__. If you are looking for instructions on installing a different
66
+ v2.0.2__. If you are looking for instructions on installing a different
67
67
  version, be sure to select the appropriate branch or tag from the drop-down
68
68
  menu above.
69
69
 
@@ -10,6 +10,7 @@ class Hyrax::CatalogSearchBuilder < Hyrax::SearchBuilder
10
10
  return if blacklight_params[:q].blank? || blacklight_params[:search_field] != 'all_fields'
11
11
  solr_parameters[:user_query] = blacklight_params[:q]
12
12
  solr_parameters[:q] = new_query
13
+ solr_parameters[:defType] = 'lucene'
13
14
  end
14
15
 
15
16
  # show works that are in the active state.
@@ -12,7 +12,7 @@
12
12
  <tbody>
13
13
  <% messages.each do |msg| %>
14
14
  <tr>
15
- <td>
15
+ <td data-sort="<%= msg.last_message.created_at.getutc.iso8601(5) %>">
16
16
  <relative-time datetime="<%= msg.last_message.created_at.getutc.iso8601 %>" title="<%= msg.last_message.created_at.to_formatted_s(:standard) %>">
17
17
  <%= msg.last_message.created_at.to_formatted_s(:long_ordinal) %>
18
18
  </relative-time>
@@ -13,7 +13,7 @@
13
13
  <% unless req.sending_user.blank? %>
14
14
  <tr>
15
15
  <td> <%= show_transfer_request_title(req) %> </td>
16
- <td>
16
+ <td data-sort="<%= req.created_at.getutc.iso8601(5) %>">
17
17
  <relative-time datetime="<%= req.created_at.getutc.iso8601 %>" title="<%= req.created_at.to_formatted_s(:standard) %>">
18
18
  <%= req.created_at.to_formatted_s(:long_ordinal) %>
19
19
  </relative-time>
@@ -13,7 +13,7 @@
13
13
  <% unless req.receiving_user.blank? %>
14
14
  <tr>
15
15
  <td> <%= show_transfer_request_title(req) %> </td>
16
- <td>
16
+ <td data-sort="<%= req.created_at.getutc.iso8601(5) %>">
17
17
  <relative-time datetime="<%= req.created_at.getutc.iso8601 %>" title="<%= req.created_at.to_formatted_s(:standard) %>">
18
18
  <%= req.created_at.to_formatted_s(:long_ordinal) %>
19
19
  </relative-time>
@@ -10,8 +10,8 @@
10
10
  <% next if event[:action].blank? or event[:timestamp].blank? %>
11
11
  <tr>
12
12
  <td><%= event[:action].html_safe %></td>
13
- <td>
14
- <% time = Time.zone.at(event[:timestamp].to_i) %>
13
+ <% time = Time.zone.at(event[:timestamp].to_i) %>
14
+ <td data-sort="<%= time.getutc.iso8601(5) %>">
15
15
  <relative-time datetime="<%= time.getutc.iso8601 %>" title="<%= time.to_formatted_s(:standard) %>">
16
16
  <%= time.to_formatted_s(:long_ordinal) %>
17
17
  </relative-time>
@@ -107,4 +107,13 @@ EOF
107
107
  spec.add_development_dependency 'webmock'
108
108
  spec.add_development_dependency 'i18n-debug' if ENV['I18N_DEBUG']
109
109
  spec.add_development_dependency 'i18n_yaml_sorter' unless ENV['TRAVIS']
110
+
111
+ ########################################################
112
+ # Temporarily pinned dependencies. INCLUDE EXPLANATIONS.
113
+ #
114
+ # simple_form 3.5.1 broke hydra-editor for certain model types;
115
+ # see: https://github.com/plataformatec/simple_form/issues/1549
116
+ spec.add_dependency 'simple_form', '~> 3.2', '<= 3.5.0'
117
+ # parser 2.5.0.0 broke local and Travis rubocop checks due to a change in parsing
118
+ spec.add_development_dependency 'parser', '< 2.5'
110
119
  end
@@ -1,3 +1,3 @@
1
1
  module Hyrax
2
- VERSION = '2.0.1'.freeze
2
+ VERSION = '2.0.2'.freeze
3
3
  end
@@ -65,6 +65,7 @@ RSpec.describe 'batch', type: :feature, clean_repo: true, js: true do
65
65
  describe 'deleting' do
66
66
  it 'destroys the selected works' do
67
67
  accept_confirm { click_button 'Delete Selected' }
68
+ expect(page).to have_content('Batch delete complete')
68
69
  expect(GenericWork.count).to be_zero
69
70
  end
70
71
  end
@@ -50,6 +50,7 @@ RSpec.describe "Browse Dashboard", type: :feature do
50
50
  first('input#check_all').click
51
51
  expect do
52
52
  accept_confirm { click_button('Delete Selected') }
53
+ expect(page).to have_content('Batch delete complete')
53
54
  end.to change { GenericWork.count }.by(-3)
54
55
  end
55
56
  end
@@ -34,6 +34,7 @@ RSpec.feature 'Transferring work ownership:', type: :feature do
34
34
 
35
35
  context 'If the new owner accepts it' do
36
36
  before do
37
+ expect(page).to have_content('Transfer request created')
37
38
  new_owner.proxy_deposit_requests.last.transfer!
38
39
  # refresh the page
39
40
  visit '/dashboard'
@@ -1,4 +1,4 @@
1
- gem 'hyrax', '2.0.1'
1
+ gem 'hyrax', '2.0.2'
2
2
  run 'bundle install'
3
3
  generate 'hyrax:install', '-f'
4
4
  rails_command 'db:migrate'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hyrax
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2017-12-13 00:00:00.000000000 Z
17
+ date: 2018-03-08 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: rails
@@ -928,6 +928,40 @@ dependencies:
928
928
  - - ">="
929
929
  - !ruby/object:Gem::Version
930
930
  version: '0'
931
+ - !ruby/object:Gem::Dependency
932
+ name: simple_form
933
+ requirement: !ruby/object:Gem::Requirement
934
+ requirements:
935
+ - - "~>"
936
+ - !ruby/object:Gem::Version
937
+ version: '3.2'
938
+ - - "<="
939
+ - !ruby/object:Gem::Version
940
+ version: 3.5.0
941
+ type: :runtime
942
+ prerelease: false
943
+ version_requirements: !ruby/object:Gem::Requirement
944
+ requirements:
945
+ - - "~>"
946
+ - !ruby/object:Gem::Version
947
+ version: '3.2'
948
+ - - "<="
949
+ - !ruby/object:Gem::Version
950
+ version: 3.5.0
951
+ - !ruby/object:Gem::Dependency
952
+ name: parser
953
+ requirement: !ruby/object:Gem::Requirement
954
+ requirements:
955
+ - - "<"
956
+ - !ruby/object:Gem::Version
957
+ version: '2.5'
958
+ type: :development
959
+ prerelease: false
960
+ version_requirements: !ruby/object:Gem::Requirement
961
+ requirements:
962
+ - - "<"
963
+ - !ruby/object:Gem::Version
964
+ version: '2.5'
931
965
  description: Hyrax is a featureful Samvera front-end based on the latest and greatest
932
966
  Samvera software components.
933
967
  email:
@@ -2707,7 +2741,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
2707
2741
  version: '0'
2708
2742
  requirements: []
2709
2743
  rubyforge_project:
2710
- rubygems_version: 2.6.11
2744
+ rubygems_version: 2.6.13
2711
2745
  signing_key:
2712
2746
  specification_version: 4
2713
2747
  summary: Hyrax is a front-end based on the robust Samvera framework, providing a user