jekyll-sass-converter 1.2.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll-sass-converter/version.rb +1 -1
- data/lib/jekyll/converters/sass.rb +1 -0
- data/lib/jekyll/converters/scss.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e214a22000c306efb48b4912d4c7b6e9d78990a
|
4
|
+
data.tar.gz: 08c40d1cfb885f62ba399078cc3cbba2407dcf86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 543425ee1744268bf5999cae33e8faca593181b99b4b90f098751f3803a68d570d1ea6476821ed67886bc12b49a4908fdc2d65ed84c96c6602c4d7cb0c4d3dad
|
7
|
+
data.tar.gz: 6ccb8315e233073715dd970ad7076a18de04d370130e606b2136df72e22ce202c09226e6fbcb74c28b20a38f5040ec85cb7829165857e9641b354d2cac22a798
|
@@ -4,6 +4,8 @@ require 'jekyll/utils'
|
|
4
4
|
module Jekyll
|
5
5
|
module Converters
|
6
6
|
class Scss < Converter
|
7
|
+
SyntaxError = Class.new(ArgumentError)
|
8
|
+
|
7
9
|
safe true
|
8
10
|
priority :low
|
9
11
|
|
@@ -91,6 +93,8 @@ module Jekyll
|
|
91
93
|
|
92
94
|
def convert(content)
|
93
95
|
::Sass.compile(content, sass_configs)
|
96
|
+
rescue ::Sass::SyntaxError => e
|
97
|
+
raise SyntaxError.new("#{e.to_s} on line #{e.sass_line}")
|
94
98
|
end
|
95
99
|
end
|
96
100
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-sass-converter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Parker Moore
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08
|
11
|
+
date: 2014-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|