jekyll-jsminify 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jekyll-jsminify.rb +7 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90bfc88cd041d384ad261dc0d9d1dfaf09543b66
4
- data.tar.gz: 98ab4e29ab6ab774b578d29fface2de3f04c9493
3
+ metadata.gz: fcd4d245b467844fc511539a60558a28b2214690
4
+ data.tar.gz: 5273c738d274fd6c46089ae4449528e0bff05f3d
5
5
  SHA512:
6
- metadata.gz: 6a9895359210d1d57761a5e69602a9ac3ed12448d643c4023af6bae685f0e465e2bb5aaad94ef273af6b4d4758e52de0fff71b745c27d11c36e196a79509583a
7
- data.tar.gz: 1f78e4832895d9ec113d45a5a0f005e96205871b6d6f04230d1134520ccfca230901f1dc2faab32bbad4fc13aac331721a7d0617e77c5f7a4bd52d8feca6a268
6
+ metadata.gz: 81433bad7c8105615a4a5c8daa96521f9f76150bcf64a6a4ccbe59b99f5ac40e4414e4d2b0bb35ed832fd35fbef24c0daefdbe6d0d29236c7a4941c903ec0e89
7
+ data.tar.gz: 69ef2b73f36bd270da88f7011ffb6234da719f2ce80f6af0dcadc5cee1a85c5d9e442f81cca69eb7e6590d1a8131f4338507b0a0ea00efdc90c15c1f1b7294d2
@@ -50,7 +50,13 @@ module Jekyll
50
50
  end
51
51
 
52
52
  def convert(content)
53
- Uglifier.new(@config['jsminify']).compile super
53
+ # can't figure out why sometimes, CS comes down here, and sometimes,
54
+ # proper JS. Also can't figure out how to scope to just SyntaxError.
55
+ begin
56
+ Uglifier.new(@config['jsminify']).compile super
57
+ rescue
58
+ Uglifier.new(@config['jsminify']).compile content
59
+ end
54
60
  end
55
61
  end
56
62
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-jsminify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen J. Torikian