jekyll-activity-pub 0.2.6 → 0.2.8
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 +4 -4
- data/lib/jekyll/activity_pub/notifier.rb +8 -8
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9e92fa1608034c3d855dd01580a79954838ca27da70c1ddb98547c62c72e5d23
|
|
4
|
+
data.tar.gz: aa325a0c5b8641a90e28f8ba1e24a1dc36fd6376abc83f965b1c59adf00cf08c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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.
|
|
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-
|
|
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.
|
|
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.
|
|
26
|
+
version: 0.4.2
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: jekyll
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|