sass-embedded 0.9.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,29 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Sass
4
- class Embedded
5
- class Error < StandardError; end
6
-
7
- class ProtocolError < Error; end
8
-
9
- # The {Error} raised by {Embedded#render}.
10
- class RenderError < Error
11
- attr_reader :formatted, :file, :line, :column, :status
12
-
13
- def initialize(message, formatted, file, line, column, status)
14
- super(message)
15
- @formatted = formatted
16
- @file = file
17
- @line = line
18
- @column = column
19
- @status = status
20
- end
21
-
22
- def backtrace
23
- return nil if super.nil?
24
-
25
- ["#{@file}:#{@line}:#{@column}"] + super
26
- end
27
- end
28
- end
29
- end
@@ -1,34 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative 'struct'
4
-
5
- module Sass
6
- class Embedded
7
- # The {RenderResult} of {Embedded#render}.
8
- class RenderResult
9
- include Struct
10
-
11
- attr_reader :css, :map, :stats
12
-
13
- def initialize(css, map, stats)
14
- @css = css
15
- @map = map
16
- @stats = stats
17
- end
18
- end
19
-
20
- # The {RenderResultStats} of {Embedded#render}.
21
- class RenderResultStats
22
- include Struct
23
-
24
- attr_reader :entry, :start, :end, :duration
25
-
26
- def initialize(entry, start, finish, duration)
27
- @entry = entry
28
- @start = start
29
- @end = finish
30
- @duration = duration
31
- end
32
- end
33
- end
34
- end
@@ -1,22 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Sass
4
- class Embedded
5
- # The {Struct} module.
6
- module Struct
7
- def [](key)
8
- instance_variable_get("@#{key}".to_sym)
9
- end
10
-
11
- def to_h
12
- instance_variables.map do |variable|
13
- [variable[1..].to_sym, instance_variable_get(variable)]
14
- end.to_h
15
- end
16
-
17
- def to_s
18
- to_h.to_s
19
- end
20
- end
21
- end
22
- end