sassificator 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/sassificator.rb +2 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
N2U5M2EyYmQxNDI0MWVkYzgwZTkzZGZiYTg1YmZmNWI0YWNkMTFmNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NzUzMTE0YzkzMzE5NDBiM2FmMzNlMmIzNjNkZmY4ZmU2NGQ4ZTFjOA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzRkM2UwNzMyMzE1MzMzNzRmZmQ1M2JhY2UxYmY2NzAwODJjNzVmOTY0MDg5
|
10
|
+
NmVmNTE5ZGEwOWNhMmVjNDFkZDllNGQzMmJlOWQ1ZTI3MDI5NTBkYzUxZWQx
|
11
|
+
NmEyOGM3NTFhNWYxM2QyZTRkOTAzZDJhZjVlMzIzYzVkZTNlZmE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTk2MjE4NzE3YzE1MTc0YzM4YzE1ZDkyN2NlYTRkY2VjNDY4MjRiOGRmNWYz
|
14
|
+
ZmYwZDdiNmIzY2M3NzkyOGE0NGJhMzM3MTMzMTgwOTI5MjVlNjA0ZTNmZGZi
|
15
|
+
MDI3YTBjMjliNTNkYjk3OThkZTEyNGU1NGU2YTBjNTM1ODliYzc=
|
data/lib/sassificator.rb
CHANGED
@@ -2,7 +2,6 @@
|
|
2
2
|
# - mediaquery inside of a mediaquery
|
3
3
|
# - images formating pattern setting
|
4
4
|
# - formatting is doen only for output sass_string, but not for sass_obj
|
5
|
-
# - false params may result in nil uptput - investigate and fix
|
6
5
|
|
7
6
|
class Sassificator
|
8
7
|
attr_accessor :colors_to_vars
|
@@ -151,8 +150,8 @@ class Sassificator
|
|
151
150
|
end
|
152
151
|
|
153
152
|
def format_sass (sassed_str)
|
154
|
-
formated_sass_with_images = format_images
|
155
|
-
formated_sass_with_color = format_color
|
153
|
+
formated_sass_with_images = @fromat_image_declarations ? format_images(sassed_str) : sassed_str
|
154
|
+
formated_sass_with_color = @colors_to_vars ? format_color(formated_sass_with_images) : sassed_str
|
156
155
|
|
157
156
|
formated_sass_with_color
|
158
157
|
end
|