jekyll-theme-assets-updated 2.1 → 2.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: 40c47d399ebe03dfa88ffc4d4f997a889e94eee9844cc4f1a33215b06adb2723
4
- data.tar.gz: 1923cb4c77d801465dd827cf789aad2eeed589fee9bed71aff5007eb44824b4b
3
+ metadata.gz: b50503ad0506ccd1b0acdcf131ca120dcb91a7b4c6194200fa82bb284cb68cc8
4
+ data.tar.gz: 9eb17bbb6ae68ece13d64d2fc56ba9442ef19c458e0c7f94d18ec531f09079cb
5
5
  SHA512:
6
- metadata.gz: 3b0c87086485f63fa760887d4d6bd8732dd4900b3542ce0e1c604dfc5895cec328ba4a87a81aba08f433e6207cbe9db9ecf7684faea613d55cb536f72ffbe3c7
7
- data.tar.gz: 155462711f1ef6b665db0195787bc0ecb57aea2731018f0c9aea18bc3f0cc694e452f60ebc82fc229a0c194db0587a89f4b09261b78c904f7855c41cb41ab1c5
6
+ metadata.gz: 3ae01abaa7346a96ec7ee3adb3e104195baf5158101157b27470368dbd1aab3695f0126ca08032cea0485aba081d37687777c26d9a963fc79d48a53bafc88fdc
7
+ data.tar.gz: ec855bfb32563b5ce362a60788546b1fd0059f282e9f30eaa59758e9e5d8cc13e994947a6f309e8634bc6804d2f801c1ba6a3d3ad34711fc0279242c0096f072
@@ -3,12 +3,16 @@ 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
- # Nothing to do if there is no theme
7
- return 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)
6
+ begin # "try" block
7
+ # Nothing to do if there is no theme
8
+ return unless jekyll.theme
9
+ # fetch from theme's "assets" folder
10
+ fetch_theme_assets(jekyll.theme.public_assets_path)
11
+ # fetch from theme's "_assets" folder
12
+ fetch_theme_assets(jekyll.theme.private_assets_path)
13
+ rescue # optionally: `rescue Exception => ex`
14
+ return
15
+ end
12
16
  end
13
17
 
14
18
  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.1'
4
+ version: '2.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Tsurbeleu