hyrax 2.7.1 → 2.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
  SHA256:
3
- metadata.gz: 731a42bde181b39c81b360a8a83ef939a9a01b3bb6e7f8f5e98f1b36da124606
4
- data.tar.gz: 0bd8f8fd540eff1a6f118d6590713b7bd878b25ac4629c2026ddda6098523c0d
3
+ metadata.gz: 15c66e9b0693579023f7f5a57cd17c64d8e954e5178c4df7a4ac8b0ed006c1cb
4
+ data.tar.gz: 71707611232797f25219dd4f5bd6b7b8023d2a281fb1256dc04db210f1224d11
5
5
  SHA512:
6
- metadata.gz: 312c1d0360bbb528b90612691cbf916d6e8112a824a4b5ed82a109c65abff4e008c47863d75f7d903989da339c90b186e9809ee19f32de277c6a9ae2074ebab7
7
- data.tar.gz: f6bb151a8727316ee41203ca7e63caa77b38fd27ab38f10404341048d461a1efd22569ca18d894e73432960d77385a0da9d062101cf459dd8d3d517dc1fb2415
6
+ metadata.gz: 88013dcbe9f0d04ee28edde4dae28fe811137c6c0d4681ab078a474f9991416fbd165fb71379c636a48f8836bf1676e9d6a85b8ce46f13eabcf00f98e6ea1510
7
+ data.tar.gz: e383285af351dd33e9141072201b264fbd4eb3947a6e9fce6fe75d9824357ba6813c27eba198569199469663504cc31453c1f1afaa49ea47ebd8f62ee5526a1c
@@ -41,6 +41,7 @@ module Hyrax
41
41
  next unless existing_works.include?(attributes['id'])
42
42
  remove(env.curation_concern, attributes['id'])
43
43
  else
44
+ next if existing_works.include?(attributes['id'])
44
45
  add(env, attributes['id'])
45
46
  end
46
47
  end
@@ -31,7 +31,7 @@ module Hyrax
31
31
  # @param env [Hyrax::Actors::Enviornment]
32
32
  # @return [Boolean]
33
33
  #
34
- # rubocop:disable Metrics/MethodLength
34
+ # rubocop:disable Metrics/MethodLength, Metrics/AbcSize
35
35
  # rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
36
36
  def assign_nested_attributes_for_collection(env)
37
37
  attributes_collection = env.attributes.delete(:member_of_collections_attributes)
@@ -56,13 +56,14 @@ module Hyrax
56
56
  next unless existing_collections.include?(attributes['id'])
57
57
  remove(env.curation_concern, attributes['id'])
58
58
  else
59
+ next if existing_collections.include?(attributes['id'])
59
60
  add(env, attributes['id'])
60
61
  end
61
62
  end
62
63
 
63
64
  true
64
65
  end
65
- # rubocop:enable Metrics/MethodLength
66
+ # rubocop:enable Metrics/MethodLength, Metrics/AbcSize
66
67
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
67
68
 
68
69
  ##
@@ -1,3 +1,4 @@
1
+ require 'csv'
1
2
  module Hyrax
2
3
  #
3
4
  # Generates CSV from a FileSet
@@ -1,3 +1,3 @@
1
1
  module Hyrax
2
- VERSION = '2.7.1'.freeze
2
+ VERSION = '2.7.2'.freeze
3
3
  end
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.7.1
4
+ version: 2.7.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: 2020-04-02 00:00:00.000000000 Z
17
+ date: 2020-05-07 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: rails