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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ffd41893e69bee011b345abd23bf5c1c8d011383
4
- data.tar.gz: b927e743e20c5204f449d5c1715a046bbb9adb83
3
+ metadata.gz: 39419e87906f0fe8e5bd5079057d8ce0bcd0fb04
4
+ data.tar.gz: 8ff7cd006471acaf864e847baae640b60812061a
5
5
  SHA512:
6
- metadata.gz: a89bacc8de898cc114af9fb44486baf5d845579475fc8e1a0865f92731530bf66941cd7740625c4b05328db206a3529c3cee5abbb750d1a9a71e7195b572acdd
7
- data.tar.gz: 7690b6860024fd07b7afa472b5d160f59ea6005b764f1ecf4f6e78e3f4a7db5f15092af24a5e5427e682f16fd61a06ab87306e3acc2be4a6d20209f61166ae45
6
+ metadata.gz: b75f0cd649be75d98299da58bbd5133b100bcc3c86c163f6e87f7ad5b975a178e81251bb61db885a1a0a0918b27fba3e988bab739cdea2471e986a0045b52a5a
7
+ data.tar.gz: 546dda7538bbc55dacb2361e8b20a414687351f9e422e19231c35ce35562625c200b9273dd94fe88ca045d94d31b581bde53d70381273e1f437fb39bfe1de6ac
@@ -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.2.0"
24
- DATE = "2013-12-02"
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
+ }
@@ -3,4 +3,4 @@ source 'https://rubygems.org'
3
3
  gem 'sass', '~>3.3.0.rc.2'
4
4
  gem 'compass', '~>1.0.0.alpha.13'
5
5
 
6
- gem 'Sassy Maps', '~>0.2.0'
6
+ gem 'Sassy Maps', '~>0.3.1'
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.2.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-02 00:00:00.000000000 Z
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