zizia 5.4.0 → 5.5.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
  SHA256:
3
- metadata.gz: 1cab6751bf520d34f829ac16a01910b30faaf202b30b8f8d7edd0202c9b688a0
4
- data.tar.gz: a756533e194b8fd985124e0025ba9361732f54afd1aa7386aaa70ccfe588e776
3
+ metadata.gz: 94370ebf6412c155e295ce307d1d60f7a650d12e60ad61172c869bf3054a76b3
4
+ data.tar.gz: 137780153f7ccb0f0dd129ca47cdf1ba82bf867ac3c7942d9af0638320a2a306
5
5
  SHA512:
6
- metadata.gz: 86e73e33ab8e20c03dda68e7cc5d9a5cf537c019a5896015f9da018b2cdc973303fe36eea24b5f7c863f37530bfd1aeb420cda92c6006923d8db90e4bce08275
7
- data.tar.gz: 8437e79567466450c2645ba85c69296f0436562b05d489c3e27c186aa0f24f9d7d98894225f830601cbee02507d20c2256662b5c369f305abb30b20ed9fd5a58
6
+ metadata.gz: 95c8b4a8bac7fc41862b6b5291122cafab5a6aae10e7e78231cfafd94e51a4dd07e84010a73fe8796e74a4f3c5e81f99df2e49b4637798242584e898682a3b36
7
+ data.tar.gz: f0ff9cb82e4dda1a2dbe9f63761ffc0557c20932e2fea5d9e934f280f0094eb218fba7970778cff9437834d8aed3fcf0e014794364f0b49fb5825c95b9ae6a0c
@@ -10,6 +10,9 @@ jobs:
10
10
  bundler_version:
11
11
  type: string
12
12
  default: 2.0.1
13
+ rails_version:
14
+ type: string
15
+ default: 5.1.7
13
16
  executor:
14
17
  name: samvera/ruby_fcrepo_solr_redis
15
18
  ruby_version: << parameters.ruby_version >>
@@ -17,6 +20,7 @@ jobs:
17
20
  parallelism: 1
18
21
  environment:
19
22
  COVERALLS_PARALLEL: true
23
+ RAILS_VERSION: << parameters.rails_version >>
20
24
  steps:
21
25
  - checkout
22
26
 
@@ -42,4 +46,8 @@ workflows:
42
46
  ci:
43
47
  jobs:
44
48
  - build:
45
- name: ruby2-5-3
49
+ name: ruby2-5-3_with_rails_5_1
50
+ rails_version: 5.1.7
51
+ - build:
52
+ name: ruby2-5-3_with_rails_5_2
53
+ rails_version: 5.2.3
@@ -1,2 +1,2 @@
1
1
  unreleased=true
2
- future-release=5.1.0
2
+ future-release=5.5.0
@@ -1,8 +1,17 @@
1
1
  # Changelog
2
2
 
3
- ## [5.1.0](https://github.com/curationexperts/zizia/tree/5.1.0) (2019-11-14)
3
+ ## [5.5.0](https://github.com/curationexperts/zizia/tree/5.5.0) (2019-11-21)
4
4
 
5
- [Full Changelog](https://github.com/curationexperts/zizia/compare/v5.3.0...5.1.0)
5
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v5.4.0...5.5.0)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - Add ID as secondary sort order [\#69](https://github.com/curationexperts/zizia/pull/69) ([little9](https://github.com/little9))
10
+ - Add rails 5.2 support [\#67](https://github.com/curationexperts/zizia/pull/67) ([bess](https://github.com/bess))
11
+
12
+ ## [v5.4.0](https://github.com/curationexperts/zizia/tree/v5.4.0) (2019-11-14)
13
+
14
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v5.3.0...v5.4.0)
6
15
 
7
16
  **Merged pull requests:**
8
17
 
data/README.md CHANGED
@@ -17,7 +17,7 @@ Object import for Hyrax.
17
17
  ## Usage
18
18
 
19
19
  In your project's `Gemfile`, add: `gem 'zizia'`, then run `bundle install`.
20
- 1. Require 'zizia' in your `config/application.rb` file:
20
+ 1. Require 'zizia' in your `config/application.rb` file:
21
21
 
22
22
  ```
23
23
  module MyApplication
@@ -43,7 +43,7 @@ helper Zizia::Engine.helpers
43
43
  can :manage, Zizia::CsvImportDetail if current_user.admin?
44
44
  ```
45
45
 
46
- 5. Add links to `/csv_imports/new` and `/importer_documentation/csv` in the Hyrax dashboard.
46
+ 5. Add links to `/csv_imports/new` and `/importer_documentation/csv` in the Hyrax dashboard.
47
47
 
48
48
  6. In your Rails application's `application.css` and `application.js` include Zizia's assets:
49
49
 
@@ -53,9 +53,9 @@ helper Zizia::Engine.helpers
53
53
 
54
54
  7. Run `rake db:migrate`
55
55
 
56
- The `spec/dummy` folder in this application is a complete Hyrax application with Zizia installed.
56
+ The `spec/dummy` folder in this application is a complete Hyrax application with Zizia installed.
57
57
  You can use that as an example for adding this to your current Hyrax application or copy that
58
- to create a new application with Zizia installed.
58
+ to create a new application with Zizia installed.
59
59
 
60
60
  8. Add a deduplication_key to your default work type's medata:
61
61
 
@@ -65,7 +65,7 @@ to create a new application with Zizia installed.
65
65
  end
66
66
  ```
67
67
 
68
- 9. If you are using the default [Hyrax metadata profile](https://samvera.github.io/metadata_application_profile.html) aka `Hyrax::BasicMetadata`, you are ready to download a sample CSV and start importing.
68
+ 9. If you are using the default [Hyrax metadata profile](https://samvera.github.io/metadata_application_profile.html) aka `Hyrax::BasicMetadata`, you are ready to download a sample CSV and start importing.
69
69
 
70
70
 
71
71
  If you aren't using `Hyrax::BasicMedata` you'll need to create a custom `importer` and `mapper` class. First ensure that a [work type is registered](http://www.rubydoc.info/github/samvera/hyrax/Hyrax/Configuration#register_curation_concern-instance_method)
@@ -102,7 +102,7 @@ environment variables called `IMPORT_PATH`. If `IMPORT_PATH` is not set, `HyraxR
102
102
 
103
103
  ## Testing
104
104
 
105
- To run Solr and Fedora for testing purposes, open a new terminal session for each and run the following commads:
105
+ To run Solr and Fedora for testing purposes, open a new terminal session for each and run the following commads:
106
106
 
107
107
  `solr_wrapper --config spec/dummy/config/solr_wrapper_test.yml`
108
108
  `fcrepo_wrapper --config spec/dummy/config/fcrepo_wrapper_test.yml`
@@ -126,3 +126,15 @@ cd zizia
126
126
  bundle install
127
127
  bundle exec rake ci
128
128
  ```
129
+
130
+ ## Releasing
131
+
132
+ To make a new release:
133
+ 1. Increase the version number in `lib/zizia/version.rb`
134
+ 1. Increase the same version number in `.github_changelog_generator`
135
+ 1. Update CHANGELOG.md by running this command:
136
+ ```ruby
137
+ github_changelog_generator --user curationexperts --project zizia --token YOUR_GITHUB_TOKEN_HERE
138
+ ```
139
+ 1. Commit these changes to the master branch
140
+ 1. Run `rake release`
@@ -8,11 +8,11 @@ module Zizia
8
8
  def index
9
9
  @csv_import_details = if csv_import_detail_params[:user] && user_id
10
10
  Zizia::CsvImportDetail
11
- .order(sort_column + ' ' + sort_direction)
11
+ .order("#{sort_column} #{sort_direction}, id DESC")
12
12
  .where(depositor_id: user_id).page csv_import_detail_params[:page]
13
13
  else
14
14
  Zizia::CsvImportDetail
15
- .order(sort_column + ' ' + sort_direction).page csv_import_detail_params[:page]
15
+ .order("#{sort_column} #{sort_direction}, id DESC").page csv_import_detail_params[:page]
16
16
  end
17
17
  end
18
18
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Zizia
4
- VERSION = '5.4.0'
4
+ VERSION = '5.5.0'
5
5
  end
@@ -45,7 +45,7 @@ RSpec.describe 'viewing the csv import detail page', :clean, js: true do
45
45
  it 'displays the metadata when you visit the page' do
46
46
  visit ('/csv_import_details/index')
47
47
  expect(page).to have_content('ID')
48
- click_on '1'
48
+ click_on '13'
49
49
  expect(page).to have_content('Total Size')
50
50
  expect(page).to have_content('Deduplication Key')
51
51
  end
@@ -73,7 +73,7 @@ RSpec.describe 'viewing the csv import detail page', :clean, js: true do
73
73
  it 'displays the metadata when you visit the page' do
74
74
  visit ('/csv_import_details/index')
75
75
  expect(page).to have_content('ID')
76
- click_on '1'
76
+ click_on '13'
77
77
  expect(page).to have_content('Total Size')
78
78
  end
79
79
 
@@ -117,6 +117,7 @@ RSpec.describe 'viewing the csv import detail page', :clean, js: true do
117
117
 
118
118
  it 'has pagination for PreIngestWorks at 10' do
119
119
  visit('/csv_import_details/index')
120
+ click_on 'Next'
120
121
  click_on '4'
121
122
  expect(page).to have_content 'Next'
122
123
  click_on 'Next'
@@ -18,7 +18,7 @@ Gem::Specification.new do |gem|
18
18
 
19
19
  gem.add_dependency 'active-fedora'
20
20
  gem.add_dependency 'kaminari'
21
- gem.add_dependency 'rails', '~> 5.1.4'
21
+ gem.add_dependency 'rails', '~> 5', '< 5.3'
22
22
  gem.add_dependency 'carrierwave'
23
23
  gem.add_dependency 'rails-controller-testing'
24
24
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zizia
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.4.0
4
+ version: 5.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Data Curation Experts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-14 00:00:00.000000000 Z
11
+ date: 2019-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active-fedora
@@ -44,14 +44,20 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 5.1.4
47
+ version: '5'
48
+ - - "<"
49
+ - !ruby/object:Gem::Version
50
+ version: '5.3'
48
51
  type: :runtime
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
51
54
  requirements:
52
55
  - - "~>"
53
56
  - !ruby/object:Gem::Version
54
- version: 5.1.4
57
+ version: '5'
58
+ - - "<"
59
+ - !ruby/object:Gem::Version
60
+ version: '5.3'
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: carrierwave
57
63
  requirement: !ruby/object:Gem::Requirement
@@ -1569,7 +1575,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1569
1575
  - !ruby/object:Gem::Version
1570
1576
  version: '0'
1571
1577
  requirements: []
1572
- rubygems_version: 3.0.4
1578
+ rubygems_version: 3.0.6
1573
1579
  signing_key:
1574
1580
  specification_version: 4
1575
1581
  summary: Hyrax importers.