distributed-press-api-client 0.5.0rc5 → 0.5.0rc6
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: 6a07fc21fcba26bb8bcb854ec767be0030013b58341b93a17c4e4c084aeb7cf3
|
4
|
+
data.tar.gz: b72a76ca86a62730c0e8299c1089b5dd43b52154322c96f235015c07c902c386
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdb203374bb184030f0f6a1a3a5f6699e8f52579060a6f71e1bfea5420fbfc66519bbf3cb9ca62b3b2683034328ef0dcea016512b359ee340a3e53a4dd012fae
|
7
|
+
data.tar.gz: 1a7253c626fab33aa0adc50007b19394dcdfc1cd55360a5dbb291842663ee85a2daedbdb9a2e6048a9697889b2dae5c350b76882160da66d1b1803fed09a9b0e
|
@@ -37,7 +37,21 @@ class DistributedPress
|
|
37
37
|
#
|
38
38
|
# @return [Bool]
|
39
39
|
def public?
|
40
|
-
[slice(*%w[audience to
|
40
|
+
[slice(*%w[audience to]).values].flatten.include? PUBLIC
|
41
|
+
end
|
42
|
+
|
43
|
+
# Is it unlisted?
|
44
|
+
#
|
45
|
+
# @return [Bool]
|
46
|
+
def unlisted?
|
47
|
+
[self['cc']].flatten.include? PUBLIC
|
48
|
+
end
|
49
|
+
|
50
|
+
# It's not publicly available
|
51
|
+
#
|
52
|
+
# @return [Bool]
|
53
|
+
def private?
|
54
|
+
!public? && !unlisted?
|
41
55
|
end
|
42
56
|
|
43
57
|
def inspect
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: distributed-press-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.0rc6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- f
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|