distributed-press-api-client 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/distributed_press/v1/social/inbox.rb +3 -1
- data/lib/distributed_press/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26a1b1d09a0b95c8852f253a6d4bf5c5a8f506c0e8176f65bbbffe1ef8f06aff
|
4
|
+
data.tar.gz: a06560b95f7e1969c52e653fb563569bb17b811e91995766a36f3f8de85b640d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bce9df9c4cd0eb80868af163c63a9234006d5c779b91e768bd4726aebd0978fb44a240b9c7806912ea480f338a47ead8d433b3c7b956662eb0cb2b9527c93f57
|
7
|
+
data.tar.gz: 28be64d94b3add7ac1333f85ff2f00a4e55b9568783de437172264c619227d75e28801082a0600186480935e2dda9605411e68dc8d53cc10280ceed1893fe411
|
@@ -24,11 +24,13 @@ class DistributedPress
|
|
24
24
|
# Creates a Social Inbox by uploading the keypair to it.
|
25
25
|
#
|
26
26
|
# @param actor_url [String] The URL where the Actor profile is hosted
|
27
|
+
# @param announce [Boolean] Automatically announce new accounts
|
27
28
|
# @return [HTTParty::Response]
|
28
|
-
def create(actor_url)
|
29
|
+
def create(actor_url, announce = false)
|
29
30
|
inbox_body = {
|
30
31
|
'actorUrl' => actor_url,
|
31
32
|
'publicKeyId' => "#{actor_url}#main-key",
|
33
|
+
'announce' => announce,
|
32
34
|
'keypair' => {
|
33
35
|
'publicKeyPem' => client.public_key.public_to_pem,
|
34
36
|
'privateKeyPem' => client.private_key.export
|
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.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- f
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|