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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2fb22566402591b70a20f82b4eb16431e59d2b2cac43598a98177c514dc881b
|
4
|
+
data.tar.gz: c1c6c7c5499a5240d884f99e58e48affb3b1db774d6af4e8aafeb53875384981
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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.
|
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-
|
14
|
+
date: 2022-04-04 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activeresource
|