ddr-core 1.12.0 → 1.12.1

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: 065474e311bb6fd9a3e68160663e2ff260e4a54bb776ca99b48aa495c661f640
4
- data.tar.gz: c7feea4281623cece301fc5737b345a813e4209093653e434815e98dd7497925
3
+ metadata.gz: b2fb22566402591b70a20f82b4eb16431e59d2b2cac43598a98177c514dc881b
4
+ data.tar.gz: c1c6c7c5499a5240d884f99e58e48affb3b1db774d6af4e8aafeb53875384981
5
5
  SHA512:
6
- metadata.gz: 1da3b51a355114e10ef605f394eabc2e9da4fbaaf559dd4bb339f5267c309ecd8c78b11f1cedf7a64e71db03f28f1f6722855b9925b89c5cccc0e2974a52ddb9
7
- data.tar.gz: 00f40e7bb02b46faa8acb4f6da8789d224591f0f5ef98431c764c7be2cd8d4af3c4f9b9669579507c82dfd52015508f0f79f2ab1f279d90f05603f9c5866c12d
6
+ metadata.gz: b7027ca1bd94ffc0f311156a868043de326ac3bbb98d4168d1a3fa074bc92842169b0af2a00cdf7ce47dfed65659f063386d455f4afb65e7147c7b993da722bd
7
+ data.tar.gz: a155703a1c63651a9e3b1b27ea0f0dcebe908b873c5355c97a1b60fe88197ac4ef5bb3cb6aa4ebcfef8865702ac319f3c8ab4f350a3fca5ea08e1fa357b19c50
@@ -4,8 +4,7 @@ module Ddr
4
4
 
5
5
  # An object can't be published if it's already published or not publishable
6
6
  # It can't be unpublished if it's already unpublished
7
- # It can't be made nonpublishable if it's already published (must be unpublished
8
- # first) or already nonpublishable
7
+ # It can't be made nonpublishable if it's already nonpublishable
9
8
  def call
10
9
  cannot :publish, Ddr::Resource do |obj|
11
10
  obj.published? || !obj.publishable?
@@ -14,7 +13,7 @@ module Ddr
14
13
  !obj.published? && !obj.nonpublishable?
15
14
  end
16
15
  cannot :make_nonpublishable, Ddr::Resource do |obj|
17
- obj.published? || !obj.publishable?
16
+ obj.nonpublishable?
18
17
  end
19
18
  end
20
19
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ddr-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.0
4
+ version: 1.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Coble
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2022-03-24 00:00:00.000000000 Z
14
+ date: 2022-04-04 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activeresource