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: 6b468eae410973ff56d5e6eb85e04e9a2bdeb375f274841fff3599a71adf220e
4
- data.tar.gz: 4bba1c34d1d866264af766c57b3beadcc70a4e064d9b0e50686bf2a2940d4e9c
3
+ metadata.gz: 6a07fc21fcba26bb8bcb854ec767be0030013b58341b93a17c4e4c084aeb7cf3
4
+ data.tar.gz: b72a76ca86a62730c0e8299c1089b5dd43b52154322c96f235015c07c902c386
5
5
  SHA512:
6
- metadata.gz: e90870a42b49134a6a2916f87363a11f35514effc99b72f38044c4a2d5bb1505b2d42c82e4c6f7277fa8ad9f321ef86f867e070e74aff3742826e2a16892ade5
7
- data.tar.gz: 676e4969b7c5dcbc785157ee38599de7faf823c62659c21b9108dd04ae0cbff6e62e26390bbcc407f9ac76a8566758b646ee36b16baeb235b157c0af290124f1
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 cc]).values].flatten.include? PUBLIC
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
@@ -4,6 +4,8 @@ class DistributedPress
4
4
  module V1
5
5
  module Social
6
6
  # An object with external references
7
+ #
8
+ # @todo Merge with Reference
7
9
  class ReferencedObject
8
10
  extend Forwardable
9
11
 
@@ -3,5 +3,5 @@
3
3
  # API client
4
4
  class DistributedPress
5
5
  # Version
6
- VERSION = '0.5.0rc5'
6
+ VERSION = '0.5.0rc6'
7
7
  end
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.0rc5
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-18 00:00:00.000000000 Z
11
+ date: 2024-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable