flint-gs 1.6.4 → 1.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc6705aa106a19b5f55ad1123703a9a3f0a2c649
4
- data.tar.gz: e06d8629855c1b3c4817f73016f9fdcfe3733c2d
3
+ metadata.gz: 20b0ac111ab807d8eb76b531deaa0cdf2b63e576
4
+ data.tar.gz: 4d2b7b97bc1bbfe4d2b20e79095a933fc65b9f96
5
5
  SHA512:
6
- metadata.gz: 5a0538609ef8c9f50139ec4910f67c3c33cfb4d311f526907315a0a7447e4aad8850e1ead94b3006a73e2c22ecb31c25eeeb2a7990081ee699ee9c398789d140
7
- data.tar.gz: 27e157ec567e5937c5c6ec2fd188325454d59b76abc4a3ff8666232df4890e69883d36fbba99c610a78d3bee6550e17d6c8fd0180fffcad52794a8a484ce9822
6
+ metadata.gz: 9c82db0bef304ec23e6b4a96eb57249cefde32d14071d26ccfe6860455ddc877fd350e9c4bd9f4a616224dd0a4aa967960c06881a61320ff384b97c7f41f7223
7
+ data.tar.gz: bb7dd6765110ab39bac125be563a538e93164c9df8bb5b5d900e55d1fd50b96c9538aceb76e15ec19cc27ea0be26cc302f3010ea84246d286683fcbd45d4309b
data/README.md CHANGED
@@ -862,9 +862,10 @@ function parses the selector string (for example, `.block__element__element`) li
862
862
 
863
863
  @function support-syntax-bem($selectors) {
864
864
  // Clean up selector, remove double underscores for spaces
865
- $selectors: replace-substring($selectors, "__");
865
+ // add psudeo character to differentiate selectors
866
+ $selectors: replace-substring($selectors, "__", "/");
866
867
  // Parse string to list
867
- $selectors: string-to-list($selectors);
868
+ $selectors: string-to-list($selectors, "/");
868
869
  // Define top-most parent of selector
869
870
  $parent: nth($selectors, 1);
870
871
  // Create new list of parsed selectors
@@ -5,7 +5,7 @@ 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.6.4"
8
+ VERSION = "1.6.5"
9
9
  DATE = "2014-07-08"
10
10
  end
11
11
 
@@ -9,9 +9,9 @@
9
9
  @function replace-substring($string, $substring, $new-substring: " ") {
10
10
  // Loop through length of string
11
11
  @for $i from 1 through str-length($string) {
12
- // Get index and length of substring
13
- $sub-index: str-index($string, $substring);
14
- $sub-length: str-length($substring);
12
+ // Get index and length of substring
13
+ $sub-index: str-index($string, $substring);
14
+ $sub-length: str-length($substring);
15
15
 
16
16
  // If count is index of substring
17
17
  @if $i == $sub-index {
@@ -6,9 +6,10 @@
6
6
 
7
7
  @function support-syntax-bem($selectors) {
8
8
  // Clean up selector, remove double underscores for spaces
9
- $selectors: replace-substring($selectors, "__");
9
+ // add psudeo character to differentiate selectors
10
+ $selectors: replace-substring($selectors, "__", "/");
10
11
  // Parse string to list
11
- $selectors: string-to-list($selectors);
12
+ $selectors: string-to-list($selectors, "/");
12
13
  // Define top-most parent of selector
13
14
  $parent: nth($selectors, 1);
14
15
  // Create new list of parsed selectors
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flint-gs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.4
4
+ version: 1.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezekiel Gabrielse