bem-constructor 0.5.0 → 0.6.0

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: a56921a733d69fc1129bea43b5e8f0a0805ee386
4
- data.tar.gz: 2b7e70b6b6a5a674f9ac9e856052217875a4da98
3
+ metadata.gz: c7179af78fa5e624deeb99f2549f9c8f7e130042
4
+ data.tar.gz: 9be37fcb72a9444b7cd0fb5fbfe69df90d4fa671
5
5
  SHA512:
6
- metadata.gz: 9caeb0c37c37993e495f0431647a72cb97a5b060538daa363412d1569cbf8b95d2a09b1b07abfd2105f7e8c5c33c63227634a7638ba74be06cdb105025418341
7
- data.tar.gz: 9d522d5583b98f6d65fc3a1dda02a4c19b6b5c6f116fda813d089da3fae5970fac54d3806005aa122b299bdc249ff1331f7f29694d5a54af1d5be8ae12b4ea4b
6
+ metadata.gz: 5334040c1ba129b10ca6ca9752195e70447c7326f2d95c383b1f4fe18cc185261a2a933e73776372893706b80c2f7dda713e4b6b532c73b24da2dfc9674bbae9
7
+ data.tar.gz: dd4fdd4bf105b002e1400a8fd691908a5be211a4a38a27083d975a31457b3128fb0d9c1b9de0d5394254d1adbfc8b7f03a1ee45a1a95f76dd20c91e2ada4768b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.5
2
+
3
+ * Fix bug where repeating a modifier threw an error.
4
+
1
5
  ## 0.4
2
6
 
3
7
  * Improved modifies-element() output using direct child selector.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # BEM Constructor [![Build Status](https://travis-ci.org/danielguillan/bem-constructor.svg?branch=master)](https://travis-ci.org/danielguillan/bem-constructor)
1
+ # BEM Constructor [![Build Status](https://travis-ci.org/danielguillan/bem-constructor.svg?branch=master)](https://travis-ci.org/danielguillan/bem-constructor) [![Bower version](https://badge.fury.io/bo/bem-constructor.svg)](http://badge.fury.io/bo/bem-constructor) [![Gem Version](https://badge.fury.io/rb/bem-constructor.svg)](http://badge.fury.io/rb/bem-constructor)
2
2
 
3
3
  BEM Constructor is a Sass library for building immutable and namespaced BEM-style CSS objects.
4
4
 
@@ -17,7 +17,7 @@ Some CSS objects in your project shouldn't be able to change (mutate). They have
17
17
 
18
18
  ### 2. Namespacing
19
19
 
20
- Objects have a clear function. Whether they are components, utilities o dirty hacks, we need a consistent way of telling them apart. By namespacing objects, our UI code becomes more transparent and understandable. BEM Constructor supports the following object types:
20
+ Objects have a clear function. Whether they are components, utilities, or dirty hacks, we need a consistent way of telling them apart. By namespacing objects, our UI code becomes more transparent and understandable. BEM Constructor supports the following object types:
21
21
 
22
22
  - Objects
23
23
  - Components
@@ -3,6 +3,6 @@ extension_path = File.expand_path(File.join(File.dirname(__FILE__), ".."))
3
3
  Compass::Frameworks.register('bem-constructor', :path => extension_path)
4
4
 
5
5
  module BEMConstructor
6
- VERSION = "0.5.0"
6
+ VERSION = "0.6.0"
7
7
  DATE = "2015-03-26"
8
8
  end
@@ -23,7 +23,12 @@ $hack-namespace: '_' !default;
23
23
  @function _hack() {
24
24
 
25
25
  // You may not hack a hack
26
- $recursive-check: should-not-be-called-recursively('hack');
26
+ $outside-check: _should-not-be-called-within('hack');
27
+
28
+ // Return false in case error throwing is disabled
29
+ @if $outside-check == false {
30
+ @return false;
31
+ }
27
32
 
28
33
  $selector: ();
29
34
  $namespace: if($bem-use-namespaces, $hack-namespace, '');
@@ -8,7 +8,12 @@ $bem-theme-namespace: 't' !default;
8
8
 
9
9
  // If you try to hack a hack you can break the internet.
10
10
  // So please, no one try it.
11
- $recursive-test: should-not-be-called-recursively('theme');
11
+ $outside-check: _should-not-be-called-within('theme');
12
+
13
+ // Return false in case error throwing is disabled
14
+ @if $outside-check == false {
15
+ @return false;
16
+ }
12
17
 
13
18
  $selector: ();
14
19
  $namespace: if($bem-use-namespaces, $bem-theme-namespace + '-', '');
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bem-constructor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Guillan