curation_concerns 1.6.1 → 1.6.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: 9058b4420919bb0e097ce662820daa18c23f734c
4
- data.tar.gz: 50bd609db11df6df2f7e62ff29974e1677760d30
3
+ metadata.gz: 3d685b547e05f4528d3552546ebd94e21cdd8acf
4
+ data.tar.gz: f1f3cb5d6119e5dbbaeaacfece15d89c0a0b5ac0
5
5
  SHA512:
6
- metadata.gz: 0fa3bcd75d29b7778eca8b8afb90fd26f084b207e60c38d1c066fcaac83380b121c556be34cfd98f0c5727218c9ba2a8118d255249d22871e9e623079a2f37f7
7
- data.tar.gz: 3a21293ef1519ae15d4fdd87fbf8fc292657c88f23cfa4abe9f842f08d71e8023980bbf408ce58b5292df218d47271151c07a0e2a991d0e1945d0a845ad0fdd1
6
+ metadata.gz: 465138d61ec0a5bd8e76da0c8ea9b7bee373593b0a0a399aaa0d132973cb253c5baac4d29fa4b0202ce088918ffbf5be0587bd9d1ce5eb02a01ac83309281ddb
7
+ data.tar.gz: 5264146ae4a0882d934db2a49d6da4002a7f0fc1be83813eec3478e3ea9ebb0aeacfaae109ca2ab1797003ddd02ff085e268889cf37989d4248bda1bd1dee8f3
@@ -8,4 +8,5 @@ module CurationConcerns::MainAppHelpers
8
8
  include CurationConcerns::EmbargoHelper
9
9
  include CurationConcerns::LeaseHelper
10
10
  include CurationConcerns::CollectionsHelper
11
+ include CurationConcerns::RightsHelper
11
12
  end
@@ -0,0 +1,13 @@
1
+ module CurationConcerns::RightsHelper
2
+ extend Deprecation
3
+ self.deprecation_horizon = 'curation_concerns version 2.0.0'
4
+
5
+ def include_current_value(value, _index, render_options, html_options)
6
+ unless value.blank? || RightsService.active?(value)
7
+ html_options[:class] << ' force-select'
8
+ render_options += [[RightsService.label(value), value]]
9
+ end
10
+ [render_options, html_options]
11
+ end
12
+ deprecation_deprecate include_current_value: 'use LicenseService#include_current_value instead'
13
+ end
@@ -1,3 +1,3 @@
1
1
  module CurationConcerns
2
- VERSION = '1.6.1'.freeze
2
+ VERSION = '1.6.2'.freeze
3
3
  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.6.1
4
+ version: 1.6.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-09-17 00:00:00.000000000 Z
13
+ date: 2016-09-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: hydra-head
@@ -760,6 +760,7 @@ files:
760
760
  - app/helpers/curation_concerns/lease_helper.rb
761
761
  - app/helpers/curation_concerns/main_app_helpers.rb
762
762
  - app/helpers/curation_concerns/render_constraints_helper.rb
763
+ - app/helpers/curation_concerns/rights_helper.rb
763
764
  - app/helpers/curation_concerns/search_paths_helper.rb
764
765
  - app/helpers/curation_concerns/title_helper.rb
765
766
  - app/helpers/curation_concerns/url_helper.rb