jekyll-theme-assets-updated 2.3 → 2.4

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: 63c87c33e87aaa69894273216a06c428723b039f1748fb621ae1e1a99c1e5618
4
- data.tar.gz: b32da7f96d129963588a5c18c5de22bd40b782116373fa5687d37cbd95391a48
3
+ metadata.gz: a91966be8cc2a24fc55fa3b6f72b4529f3d33c1ba0e1e4bd2e45b4c9b62c2cee
4
+ data.tar.gz: c8bb867db9dcf1cb1aa1d6b744ab281b95c82c7bdc3ef7cbbc4b193215c79e82
5
5
  SHA512:
6
- metadata.gz: d2100813e44d36a690dc776ea28868b25c06db2333f9c03c3102ecb73833829e7eb982615f63f2767de1aa7152cad7e9b81b095b8bce6c4b7ad43e2e8c58dee2
7
- data.tar.gz: 1e28a6e3bafddbc5473de92fd7d694de9221eb7f11e8304a3e2258a7dcb134b27bac02a416948bd16c7e736934fd841cadab335dc7d1c6e4db6b68ca16ff3728
6
+ metadata.gz: 443a6e61bba9a8847ac88a6c5624b1b1b51171b8f9d9f433762bdc58bf20db43b88f246639a61e53054d2eaa508b17b66d960a2f31a26420a47e7a7a9c38d248
7
+ data.tar.gz: f278a56dd7bb1759e45433d6f2913d474257352791038b3ae2335894666885f29ffadd418291f442a7181b9055d732aaa89ba9e7b05372b2ad065e1135498d74
@@ -3,14 +3,13 @@ require 'theme'
3
3
 
4
4
  # Jekyll Assets hook to discover and register assets of a gem-based Jekyll theme.
5
5
  Jekyll::Assets::Hook.register :env, :before_init do
6
- begin # "try" block
7
- # fetch from theme's "assets" folder
8
- fetch_theme_assets(jekyll.theme.public_assets_path)
9
- # fetch from theme's "_assets" folder
10
- fetch_theme_assets(jekyll.theme.private_assets_path)
11
- rescue # optionally: `rescue Exception => ex`
12
- exit
13
- end
6
+ # Nothing to do if there is no theme
7
+ unless jekyll.theme
8
+ # fetch from theme's "assets" folder
9
+ fetch_theme_assets(jekyll.theme.public_assets_path)
10
+ # fetch from theme's "_assets" folder
11
+ fetch_theme_assets(jekyll.theme.private_assets_path)
12
+ end
14
13
  end
15
14
 
16
15
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-assets-updated
3
3
  version: !ruby/object:Gem::Version
4
- version: '2.3'
4
+ version: '2.4'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Tsurbeleu