sassy-strings 0.3 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sassy-strings.rb +7 -7
- metadata +2 -1
data/lib/sassy-strings.rb
CHANGED
@@ -11,12 +11,12 @@ module Sass::Script::Functions
|
|
11
11
|
|
12
12
|
# Split String
|
13
13
|
def split_string(string, key)
|
14
|
-
items = string.value.split(
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
14
|
+
items = string.value.split(key.value)
|
15
|
+
if items.count == 1
|
16
|
+
Sass::Script::Bool.new(false)
|
17
|
+
else
|
18
|
+
Sass::Script::List.new(items.map{|i| Sass::Script::String.new(i)}, :comma)
|
19
|
+
end
|
20
20
|
end
|
21
21
|
|
22
22
|
# String Position
|
@@ -43,7 +43,7 @@ end
|
|
43
43
|
|
44
44
|
module SassyStrings
|
45
45
|
|
46
|
-
VERSION = "0.3"
|
46
|
+
VERSION = "0.3.1"
|
47
47
|
DATE = "2013-01-23"
|
48
48
|
|
49
49
|
end
|