flint-gs 1.3.0 → 1.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: 96a5437a526794df1dffe1366c95cf0b41ee7e67
4
- data.tar.gz: cb8efd439872d835a5c2ad37648065d1890bc5d3
3
+ metadata.gz: 0b91ab49f37148e9d4d5861bd6e5fe3b1ddad1df
4
+ data.tar.gz: d026c5cd4cbacde91ab291f635bf15725c1156ea
5
5
  SHA512:
6
- metadata.gz: a5075d609d928f9d4dedafa643428899cb734bfa4f3fa5ee0636164965f441fecb284c892b3b26b38c1bf6310ad673ada0f2fa2a7cf90b79884ccabeeecd4796
7
- data.tar.gz: 1c9293adad9e2cc48ac458ad2e6d1f67b43b8a98f16904bb022e16e41f04011c712b132dafc7eddc1f1ae23db811bc44e695ef7e45295bff976e92a6200e13cd
6
+ metadata.gz: 45c53fd2dcc718423de0441256d1092ac7a1a0efc2e0dc83bea1739f82f973f45a5b45382d9c3dbe1d34ea36b39d17a1701b4dabdabc7a25c75aff26ea0affa8
7
+ data.tar.gz: 9cc85ce2fc30acfd46e1609b040e259b6eef0b50fb3e2d1c2cc66876a56efc3071e6bd8d4e18f5f1097caaebcbcb7c5f6fca3fb5170c38420ed32fc610a96c7b
data/lib/flint.rb CHANGED
@@ -5,8 +5,8 @@ Compass::Frameworks.register('flint', :path => extension_path)
5
5
  # Version is a number. If a version contains alphas, it will be created as a prerelease version
6
6
  # Date is in the form of YYYY-MM-DD
7
7
  module Flint
8
- VERSION = "1.3.0"
9
- DATE = "2014-05-16"
8
+ VERSION = "1.3.1"
9
+ DATE = "2014-05-19"
10
10
  end
11
11
 
12
12
  # Custom functions
@@ -14,12 +14,17 @@
14
14
  // @return [Value] | map
15
15
 
16
16
  @function instance($key, $span, $context, $gutter, $shift, $outputWidth, $outputMarginRight, $outputMarginLeft) {
17
+ // Increase the instance count
17
18
  $flint__instance-count: $flint__instance-count + 1 !global;
19
+ // Lets clean up the selector a bit...
20
+ $selector-string: selector_string();
21
+ $selector-list: string-to-list($selector-string);
22
+ $selector-cleaned: list-to-string($selector-list, " ");
18
23
 
19
24
  $flint__instance: (
20
- "#{selector_string()}::#{$key}": (
25
+ "#{$selector-cleaned}::#{$key}": (
21
26
  "instance-count": #{$flint__instance-count},
22
- "parent": #{if(get-family-instance($key) != false, get-family-instance($key), none)},
27
+ "parent-selector": #{if(get-family-instance($key) != false, get-family-instance($key), none)},
23
28
  "key": #{$key},
24
29
  "breakpoint": #{get-value($key, breakpoint)},
25
30
  "columns": #{get-value($key, columns)},
@@ -31,6 +31,7 @@
31
31
  $space-indexes: append($space-indexes, $i, "comma");
32
32
  }
33
33
  }
34
+ // Check if there are any spaces
34
35
  @if length($space-indexes) >= 1 {
35
36
  // Keep a count of number of spaces
36
37
  $count: 1;
@@ -55,7 +56,9 @@
55
56
  // Finally, return comma separated list of selectors
56
57
  @return $string-list;
57
58
  } @else {
58
- @return false;
59
+ // Else, just return the string as a single item list
60
+ $string-list: append($string-list, $string);
61
+ @return $string-list;
59
62
  }
60
63
  } @else {
61
64
  @return "You did not input a valid string: #{$string}";
@@ -2,13 +2,18 @@
2
2
  // -------------------------------------------------------------------------------
3
3
  // @dependence `printInstance()`
4
4
  // -------------------------------------------------------------------------------
5
- // @param $calcKey [Breakpoint] : breakpoint key to search for instance
5
+ // @param $calcKey [Alias] : breakpoint key to search for instance
6
6
  // -------------------------------------------------------------------------------
7
7
  // @output [Properties...]
8
8
 
9
9
  @mixin debugPrintInstance($calcKey) {
10
+ // Lets clean up the selector a bit...
11
+ $selector-string: selector_string();
12
+ $selector-list: string-to-list($selector-string);
13
+ $selector-cleaned: list-to-string($selector-list, " ");
14
+
10
15
  @if get-value(settings, debug-mode) == true {
11
- $printKey: "#{selector_string()}" + "::" + "#{$calcKey}";
16
+ $printKey: "#{$selector-cleaned}" + "::" + "#{$calcKey}";
12
17
  @include printInstance( map-get( $flint__instances, unquote($printKey) ) );
13
18
  }
14
19
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flint-gs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezekiel Gabrielse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-16 00:00:00.000000000 Z
11
+ date: 2014-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass