jekyll-activity-pub 0.1.0rc6 → 0.1.0rc7

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: 0432f12fa7b080bf6e5f77478fabe7c01a6919c77d1eeab8cf372bc6b1f1d417
4
- data.tar.gz: 1c3f751d9a0697390c080b32a7442bea666358f263587984917bb4cd63152ec2
3
+ metadata.gz: cdbd4147c7bd792349eb1b7f88b0ad59a8dc049ceb1c7bc278f3035202c662b6
4
+ data.tar.gz: c9c51cd8365a8cd09ac18d9c0f207a9c27a467f9b87227805a28bf74b5b6f1a0
5
5
  SHA512:
6
- metadata.gz: 0c281f24d8c8a64cf66cf73603f875d7559c33e8a1f25d194dc109aa413b2a2fb71418ee551ec7b2cb54df7a5e39631c23d3143ebe75bcb37ed586346195672e
7
- data.tar.gz: 26e16bf662476a96f34ec496a41de3d0bea267bd2b6016713608d055574487d274101d220ab9169d0da9031f5a3adad5919bcefaac86a6f9525d1fa4a2d21701
6
+ metadata.gz: f73243815b8e87d2abe69d1c6d8dab4eff4f3635ced4c4a04edbf8364f6b6b34f7590535343576ab251aefbd5c206be276c6b90a6f56b9e6fed2240aa06fb5da
7
+ data.tar.gz: 74b050cd6bb725526a6e6d89042f3f6f3cef209a4a75d1e3276930c3db41052b5e2e96d06e5a2b85b2024577b9d6461e978deac3bc5ba783d2361cb128b19ff6
@@ -16,8 +16,12 @@ module Jekyll
16
16
  # Needs to be a singleton so we can use the same data across all of
17
17
  # Jekyll's build process.
18
18
  class Notifier
19
- # An struct that responds to a #url method
20
- PseudoObject = Struct.new(:url, :data, keyword_init: true)
19
+ # An struct that behaves like a page
20
+ PseudoObject = Struct.new(:url, :data, :site, :relative_path, keyword_init: true) do
21
+ def destination(_)
22
+ site.in_dest_dir(relative_path)
23
+ end
24
+ end
21
25
 
22
26
  class << self
23
27
  # Set the site and initialize data
@@ -118,7 +122,7 @@ module Jekyll
118
122
  end.each do |object_url, status|
119
123
  path = site.in_dest_dir(object_url)
120
124
  data = JSON.parse(File.read(path)) if File.exist? path
121
- object = PseudoObject.new(url: object_url, data: data || {})
125
+ object = PseudoObject.new(url: object_url, site: site, relative_path: object_url, data: data || {})
122
126
  process_object(outbox_endpoint, actor_object, object, status)
123
127
  end
124
128
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-activity-pub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0rc6
4
+ version: 0.1.0rc7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sutty