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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f8a20b2b7dcf378cafd7ee48ae527aef3fe6548
4
- data.tar.gz: a7ffb342b15bbb4ed428f1f18c16e64a0dbc89bf
3
+ metadata.gz: 5e214a22000c306efb48b4912d4c7b6e9d78990a
4
+ data.tar.gz: 08c40d1cfb885f62ba399078cc3cbba2407dcf86
5
5
  SHA512:
6
- metadata.gz: 16c5805ea10643f7a0f2d56aa553ed1d8f9b9f0879dcbba6e10ef841f2180456d228aa2da2cbbcde8f5698105c86d509b2d6c5c6f0596321ef2b9cb75cb305f1
7
- data.tar.gz: fd6e8641704fcef26276d78791299ea78bbf0571edd839fc0fa0d5d71aed19d5a7ce3ffdcf87348fa5effe8969ebb446131840779dd4d985d699ace4f5f7b33e
6
+ metadata.gz: 543425ee1744268bf5999cae33e8faca593181b99b4b90f098751f3803a68d570d1ea6476821ed67886bc12b49a4908fdc2d65ed84c96c6602c4d7cb0c4d3dad
7
+ data.tar.gz: 6ccb8315e233073715dd970ad7076a18de04d370130e606b2136df72e22ce202c09226e6fbcb74c28b20a38f5040ec85cb7829165857e9641b354d2cac22a798
@@ -1,3 +1,3 @@
1
1
  module JekyllSassConverter
2
- VERSION = "1.2.1"
2
+ VERSION = "1.3.0"
3
3
  end
@@ -1,5 +1,6 @@
1
1
  require 'sass'
2
2
  require 'jekyll/utils'
3
+ require 'jekyll/converters/scss'
3
4
 
4
5
  module Jekyll
5
6
  module Converters
@@ -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.2.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-31 00:00:00.000000000 Z
11
+ date: 2014-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass