sassy_hash 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sassy_hash.rb +2 -2
- 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: dcccb7396089adbba68f51a57517e4839b440753
|
4
|
+
data.tar.gz: 21973cb2b20b1603d7a1c5badcae3eb058b99daa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c5ed26c54e60f65532e1bc04b79d3b84737dd26c6abb9ae5be1042e86566afae3c060a7c99a6f16f85aabeb648bc468b42ae26fb983b3b19227eed0b484bead
|
7
|
+
data.tar.gz: 688e9f6e2b6834c0227ca3944c8bb6e349b7b5ea718cc56cd6ba53bf314782d12804675fb1516c5e545b45b0345b0c86532e3014ddd5c651d1bc4657551bc875
|
data/lib/sassy_hash.rb
CHANGED
@@ -3,7 +3,7 @@ require 'sass'
|
|
3
3
|
require 'sass/scss/rx'
|
4
4
|
class SassyHashException < Exception; end
|
5
5
|
class SassyHash < Hash
|
6
|
-
VERSION = "0.1.
|
6
|
+
VERSION = "0.1.1"
|
7
7
|
VALID_UNIT = %r{(?<unit>#{::Sass::SCSS::RX::NMSTART}#{::Sass::SCSS::RX::NMCHAR}|%*)}
|
8
8
|
FLOAT_OR_INT_MATCH = %r{(?<float>^[0-9]*\.[0-9]+)|(?<int>^[0-9]+)}
|
9
9
|
FLOAT_OR_INT = %r{(^[0-9]*\.[0-9]+|^[0-9]+)}
|
@@ -78,7 +78,7 @@ class SassyHash < Hash
|
|
78
78
|
#string
|
79
79
|
return ::Sass::Script::Value::String.new(value)
|
80
80
|
when Array
|
81
|
-
return ::Sass::Script::Value::List.new(value.map {|v| sass_convert_value(v) }, :
|
81
|
+
return ::Sass::Script::Value::List.new(value.map {|v| sass_convert_value(v) }, :comma)
|
82
82
|
when Hash
|
83
83
|
return ::Sass::Script::Value::Map.new(self[value])
|
84
84
|
when TrueClass, FalseClass
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sassy_hash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Davis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|