jekyll-activity-pub 0.2.6 → 0.2.8

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: 9b0dd7df568e8344f4d9c0c3e41cfe2cf3a2384737800d0c3b3b5120f447ed63
4
- data.tar.gz: 8974b30de62eda46a8aa375a04f4a037ce81741f8a99181003823726c1076f10
3
+ metadata.gz: 9e92fa1608034c3d855dd01580a79954838ca27da70c1ddb98547c62c72e5d23
4
+ data.tar.gz: aa325a0c5b8641a90e28f8ba1e24a1dc36fd6376abc83f965b1c59adf00cf08c
5
5
  SHA512:
6
- metadata.gz: dd1358be16b0324bd309e13c8c98d69166a3991025139f0929e2103ab63d2a914287a3bccec89c85ff3eb556932c63dd4150b68ee259114095f3a4f01477f949
7
- data.tar.gz: 79a769c926dbf3dc4f6371da235e9d2b06dde561f80ececcb8ce54789e343603f04d7d9e3f852c8a219e9694af1b730eab3a5d22c8b66e6a02f5112b799394db
6
+ metadata.gz: 51ee1ac0dffeb2d888e6afdfcf0c9c56a349d3979d27b72b26d2100d2caf17d19b62c6c66ba0755f9d4320b96e871e005b5a88bb8f5e144ad2a8463bb75d8750
7
+ data.tar.gz: 90ef0f79e2c16753dceccd223749dbfb8f510da66df45f4b89fde700c353eb8298795d8b3358cb8114f634a9f39a4cdbac34b6a37ee9008c98f9540f650779b4
@@ -55,6 +55,11 @@ module Jekyll
55
55
  @@site
56
56
  end
57
57
 
58
+ # Announce the website?
59
+ def announce?
60
+ !!config['announce']
61
+ end
62
+
58
63
  def url
59
64
  config['url'].tap do |u|
60
65
  abort_if_missing('activity_pub.url', u, '_config.yml')
@@ -122,14 +127,9 @@ module Jekyll
122
127
 
123
128
  actor_object = object_for(site.in_dest_dir(actor_url.sub(site.config['url'], '')))
124
129
 
125
- # Create inbox
126
- #
127
- # @todo Updating/Key rotation seems broken for now
128
- # @see {https://github.com/hyphacoop/social.distributed.press/issues/51}
129
- unless inbox.get.ok?
130
- unless (response = inbox.create(actor_url)).ok?
131
- raise NotificationError, "Couldn't create/update inbox (#{response.code}: #{response.message})"
132
- end
130
+ # Create/Update inbox
131
+ unless (response = inbox.create(actor_url, announce?)).ok?
132
+ raise NotificationError, "Couldn't create/update inbox (#{response.code}: #{response.message})"
133
133
  end
134
134
 
135
135
  # Remove notifications already performed and notify
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-activity-pub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sutty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-20 00:00:00.000000000 Z
11
+ date: 2024-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: distributed-press-api-client
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.4.0
19
+ version: 0.4.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.4.0
26
+ version: 0.4.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: jekyll
29
29
  requirement: !ruby/object:Gem::Requirement