sassy-maps 0.2.0 → 0.3.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-maps.rb +2 -2
- data/stylesheets/_memo.scss +31 -0
- data/templates/project/Gemfile.txt +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39419e87906f0fe8e5bd5079057d8ce0bcd0fb04
|
4
|
+
data.tar.gz: 8ff7cd006471acaf864e847baae640b60812061a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b75f0cd649be75d98299da58bbd5133b100bcc3c86c163f6e87f7ad5b975a178e81251bb61db885a1a0a0918b27fba3e988bab739cdea2471e986a0045b52a5a
|
7
|
+
data.tar.gz: 546dda7538bbc55dacb2361e8b20a414687351f9e422e19231c35ce35562625c200b9273dd94fe88ca045d94d31b581bde53d70381273e1f437fb39bfe1de6ac
|
data/lib/sassy-maps.rb
CHANGED
@@ -20,8 +20,8 @@ Compass::Frameworks.register('sassy-maps', :stylesheets_directory => stylesheets
|
|
20
20
|
# a prerelease version
|
21
21
|
# Date is in the form of YYYY-MM-DD
|
22
22
|
module SassyMaps
|
23
|
-
VERSION = "0.
|
24
|
-
DATE = "2013-12-
|
23
|
+
VERSION = "0.3.1"
|
24
|
+
DATE = "2013-12-15"
|
25
25
|
end
|
26
26
|
|
27
27
|
# This is where any custom SassScript should be placed. The functions will be
|
@@ -0,0 +1,31 @@
|
|
1
|
+
@import "sassy-maps";
|
2
|
+
|
3
|
+
$Memoization-Table: () !default;
|
4
|
+
|
5
|
+
//////////////////////////////
|
6
|
+
// Memoization Set
|
7
|
+
//////////////////////////////
|
8
|
+
@function memo-set($module, $key, $value) {
|
9
|
+
$module: "#{$module}";
|
10
|
+
$key: "#{$key}";
|
11
|
+
|
12
|
+
$Memoization-Table: map-set-deep($Memoization-Table, ($module $key), $value) !global;
|
13
|
+
|
14
|
+
@return true;
|
15
|
+
}
|
16
|
+
|
17
|
+
@mixin memo-set($module, $key, $value) {
|
18
|
+
$holder: memo-set($module, $key, $value);
|
19
|
+
}
|
20
|
+
|
21
|
+
//////////////////////////////
|
22
|
+
// Memoization Get
|
23
|
+
//////////////////////////////
|
24
|
+
@function memo-get($module, $key) {
|
25
|
+
$module: "#{$module}";
|
26
|
+
$key: "#{$key}";
|
27
|
+
$private-sassy-maps-supress-warnings: true !global;
|
28
|
+
$result: map-get-deep($Memoization-Table, $module, $key);
|
29
|
+
$private-sassy-maps-supress-warnings: false !global;
|
30
|
+
@return $result;
|
31
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sassy-maps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Richard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|
@@ -46,6 +46,7 @@ extensions: []
|
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
48
|
- lib/sassy-maps.rb
|
49
|
+
- stylesheets/_memo.scss
|
49
50
|
- stylesheets/_sassy-maps.scss
|
50
51
|
- stylesheets/sassy-maps/_map-get.scss
|
51
52
|
- stylesheets/sassy-maps/_map-set.scss
|