distributed-press-api-client 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a5f4b33d4222028ca00dfe7e4a3f9e0fd5a4e4c620068e8ae094df84e4d4a2c
4
- data.tar.gz: ba21a56decb67357d65243ea5f7a12f92e705f689a2501fe3419921d6ffeea0f
3
+ metadata.gz: 26a1b1d09a0b95c8852f253a6d4bf5c5a8f506c0e8176f65bbbffe1ef8f06aff
4
+ data.tar.gz: a06560b95f7e1969c52e653fb563569bb17b811e91995766a36f3f8de85b640d
5
5
  SHA512:
6
- metadata.gz: 3a8f016d1fba233cf4e106b6f114fa82b34949af8b88cde9c252d4c33bb440c30c233eadee120205d4ff9c019327f44d9f9e4971abc8733c4e2c5856ec2a5986
7
- data.tar.gz: 43019f74c34831fa3a9164db342e971307ab8c76e225445a7a95cf82f025e2496af8cfa0c1264fcd620ad2126f1066093280bbcfa5d113705c658247583c7aec
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
@@ -3,5 +3,5 @@
3
3
  # API client
4
4
  class DistributedPress
5
5
  # Version
6
- VERSION = '0.4.1'
6
+ VERSION = '0.4.2'
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.4.1
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-03-13 00:00:00.000000000 Z
11
+ date: 2024-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable