base.sass 1.3.4 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.md +5 -0
- data/Readme.md +4 -2
- data/data/browsers.json +1 -1
- data/lib/base.sass/map.rb +7 -7
- 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: c5e0f5538cfa3c660939f016f8d21fec0bd9d2a5
|
4
|
+
data.tar.gz: 80fd0e858adf53442f578c200d0d906560cea05c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c201b0a1bed05eb414a11b2ed32e4dd36612ffdd56320ebe7fa0321d51b40d47899ffe0951029b5ec500b1a3c0d8ca89a6d1b41bc3d9851a2e09c780e69e3af
|
7
|
+
data.tar.gz: b959aec6289e1e07da80bc087517e53b641972a8fddb7b3b0e1d400f41e1bee49f4d36aa9f18b8faad6adc48b08e1c20e70aec3ae876bba807b00b10964bd45a
|
data/Changelog.md
CHANGED
data/Readme.md
CHANGED
@@ -5,6 +5,8 @@
|
|
5
5
|
|
6
6
|
> Requires Sass >= 3.3
|
7
7
|
|
8
|
+
![SassMeister](http://ww3.sinaimg.cn/large/624f9842jw1ejz905ocbhj21kw0nvdlc.jpg)
|
9
|
+
|
8
10
|
## Installation
|
9
11
|
|
10
12
|
In your [`Gemfile`](http://bundler.io/v1.6/gemfile.html):
|
@@ -173,8 +175,8 @@ url('a.eot', 'b.woff', $base64: true)
|
|
173
175
|
map-get($map, a)
|
174
176
|
map-get($map, a, b, c)
|
175
177
|
|
176
|
-
map-
|
177
|
-
map-
|
178
|
+
map-delete($map, a)
|
179
|
+
map-delete($map, a, b, c)
|
178
180
|
|
179
181
|
map-has-key($map, a)
|
180
182
|
map-has-key($map, a, b, c)
|
data/data/browsers.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"chrome":{"prefix":"-webkit-","versions":[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"future":[
|
1
|
+
{"chrome":{"prefix":"-webkit-","versions":[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"future":[38,39,40]},"safari":{"prefix":"-webkit-","versions":[3.1,3.2,4,5,5.1,6,6.1,7],"future":[8]},"opera":{"prefix":"-webkit-","versions":[9.5,9.6,10,10.1,10.5,10.6,11,11.1,11.5,11.6,12,12.1,15,16,17,18,19,20,21,22,23,24],"future":[25,26],"presto":12.1},"ios":{"prefix":"-webkit-","versions":[3.2,4,4.1,4.2,4.3,5,5.1,6,6.1,7,7.1],"future":[8]},"android":{"prefix":"-webkit-","versions":[2.1,2.2,2.3,3,4,4.1,4.2,4.3,4.4],"future":[4]},"firefox":{"prefix":"-moz-","versions":[2,3,3.5,3.6,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32],"future":[33,34,35]},"ie":{"prefix":"-ms-","versions":[5.5,6,7,8,9,10,11]}}
|
data/lib/base.sass/map.rb
CHANGED
@@ -34,13 +34,13 @@ module Sass::Script::Functions
|
|
34
34
|
#
|
35
35
|
# Examples:
|
36
36
|
# $map: (a: (b: (c: 1)));
|
37
|
-
# map-
|
38
|
-
# map-
|
39
|
-
# map-
|
40
|
-
# map-
|
41
|
-
# map-
|
42
|
-
# map-
|
43
|
-
def
|
37
|
+
# map-delete($map, a) => ()
|
38
|
+
# map-delete($map, a, b) => (a: ())
|
39
|
+
# map-delete($map, a, b, c) => (a: (b: ()))
|
40
|
+
# map-delete($map, x) => (a: (b: (c: 1)))
|
41
|
+
# map-delete($map, a, x, c) => (a: (b: (c: 1)))
|
42
|
+
# map-delete($map, a, b, c, x) => (a: (b: (c: 1)))
|
43
|
+
def map_delete(map, *keys)
|
44
44
|
return map unless map_has_key(map, *keys).to_bool
|
45
45
|
|
46
46
|
target, hash = keys.pop, get_hash(map, keys)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: base.sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- junjun.zhang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|