jekyll-spaceship 0.10.1 → 0.10.2

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: 65e9ff74fc3f41dbe577381aee9352d4086282b7f626b7a2c6b0a07dc31b3528
4
- data.tar.gz: 623506291192de23202d2e808d0d33b01a7d2834a57d84052732a14ea63b9f11
3
+ metadata.gz: a416b7cf9c8e911656cded0ab54e172ef344f3efd767647c11357c40cc95733e
4
+ data.tar.gz: d0b73825b4ad8ef33b5cd39f34902159aa29110d36cf4a33b0989ea4aeecb30a
5
5
  SHA512:
6
- metadata.gz: e98e212490178eec39e3c93773d6320b368dabcdab90657f97a1214e4eff35b47fe32bb4102a9831d4c93a77211c01fe17069dd484f2517f6a1661bb133aa754
7
- data.tar.gz: 02a5dca457388cae099933aae86e24915c4b73ea32199a7d89e87e738cc43730e064663940446b21f395f58f74d8ab02b2c38cb87d81a20b92799f0e70a659c3
6
+ metadata.gz: eb35ba184747e58e6a5ab3d30f3140f347ed27729050a281da36dd72990cf63a3eed0a9a8c3058b4bf14f529ebfc9c318c2c0495ccec78145d86a786343dda49
7
+ data.tar.gz: 8ba26f392d63e59cbc7bab80849608cc723ee05839e3f696757e0a23664b5ec491251ff39dfdd11bc530833e07028413a94b3bfa0a1ff98211c2255400b6ccd5
@@ -58,6 +58,7 @@ module Jekyll::Spaceship
58
58
  end
59
59
 
60
60
  def self.dispatch(page, container, event)
61
+ # dispatch to each processor
61
62
  @@_processors.each do |processor|
62
63
  processor.dispatch page, container, event
63
64
  break unless processor.next?
@@ -65,6 +66,13 @@ module Jekyll::Spaceship
65
66
  if event.to_s.start_with?('post') and Type.html? output_ext(page)
66
67
  self.dispatch_html_block(page)
67
68
  end
69
+ # update page excerpt
70
+ @@_processors.each do |processor|
71
+ next unless processor.handled
72
+ next unless page.is_a? Jekyll::Document
73
+ break page.data['excerpt'] = Jekyll::Excerpt.new(page)
74
+ end
75
+ # call on_handled
68
76
  @@_processors.each do |processor|
69
77
  processor.on_handled if processor.handled
70
78
  break unless processor.next?
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module Spaceship
5
- VERSION = "0.10.1"
5
+ VERSION = "0.10.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-spaceship
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - jeffreytse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-12 00:00:00.000000000 Z
11
+ date: 2021-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll