bem-constructor 0.4.0 → 0.5.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: d11930fa21da375d2a8a296532b5f291c0efe5d0
4
- data.tar.gz: f7e1a7c6ff487e57ce0cc2e75ae2772e80cb32d2
3
+ metadata.gz: a56921a733d69fc1129bea43b5e8f0a0805ee386
4
+ data.tar.gz: 2b7e70b6b6a5a674f9ac9e856052217875a4da98
5
5
  SHA512:
6
- metadata.gz: ffe52aba896baedcc044316b7ecc253e6ec5ab453272441accda4848eddce79701d878dc959f59b08fb996f9095b3e5f8079d7da227a85b76f9da793ad4e35c3
7
- data.tar.gz: 4e5e72fd167fa8f9eeaeed0c00db110b4b31985c86111e96b613e2a6b6a799f38eee2d82246faeec8bb74ad4d3880c79157183adcd0952f9b00206d79d8ca850
6
+ metadata.gz: 9caeb0c37c37993e495f0431647a72cb97a5b060538daa363412d1569cbf8b95d2a09b1b07abfd2105f7e8c5c33c63227634a7638ba74be06cdb105025418341
7
+ data.tar.gz: 9d522d5583b98f6d65fc3a1dda02a4c19b6b5c6f116fda813d089da3fae5970fac54d3806005aa122b299bdc249ff1331f7f29694d5a54af1d5be8ae12b4ea4b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,20 @@
1
+ ## 0.4
2
+
3
+ * Improved modifies-element() output using direct child selector.
4
+ * Fix bug in scope: it's now impossible to create a scope within a block.
5
+ * Fix bug in error-checking function.
6
+ * Added more tests. Cleaned up and improved existing ones.
7
+
8
+ ## 0.3.2
9
+
10
+ * Add tests for constructor errors
11
+
12
+ * Fix version in bower.json
13
+
14
+ ## 0.3.1
15
+
16
+ * Fix version in bower.json
17
+
1
18
  ## 0.3
2
19
 
3
20
  * Single file dist build
data/README.md CHANGED
@@ -252,13 +252,13 @@ The compiled CSS:
252
252
  .o-burger--veggie { texture: smooth; }
253
253
 
254
254
  /* Veggie Burger block modifier modifies the Meat element too */
255
- .o-burger--veggie .o-burger__meat { type: lentils; }
255
+ .o-burger--veggie > .o-burger__meat { type: lentils; }
256
256
 
257
257
  /* Veggie Burger block modifier modifies the Extra Topping element too */
258
- .o-burger--veggie .o-burger__extra-topping { ingredient: avocado; }
258
+ .o-burger--veggie > .o-burger__extra-topping { ingredient: avocado; }
259
259
 
260
260
  /* But as hackers we couldn't resist the urge to add some Bacon back */
261
- ._o-burger--veggie .o-burger__extra-topping { ingredient: bacon; }
261
+ .o-burger--veggie > ._o-burger__extra-topping { ingredient: bacon; }
262
262
 
263
263
  /* When the party Theme is Mexican, we make everything spicy */
264
264
  .t-mexican .o-burger { spicy: hell-yeah; }
@@ -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.4.0"
6
+ VERSION = "0.5.0"
7
7
  DATE = "2015-03-26"
8
8
  end
@@ -9,7 +9,7 @@
9
9
  // 1. Within
10
10
  // -----------------------------------------------------------------------------
11
11
 
12
- /// Checks that it's being created within all of the passed $objs...
12
+ /// Checks that it's being created within any of the passed $objs...
13
13
  @function _should-be-called-within($objs...) {
14
14
 
15
15
  @each $obj in $objs {
@@ -30,13 +30,13 @@
30
30
  @function _bem-log-modifier($modifiers...) {
31
31
 
32
32
  // Check if the modifier has already been defined for the current block or element
33
- @if modifier-exists($modifiers...) {
34
- @if $bem-throw-errors {
35
- @error 'One or more elements from `#{inspect($modifiers)}` have already been created';
36
- }
33
+ // @if modifier-exists($modifiers...) {
34
+ // @if $bem-throw-errors {
35
+ // @error 'One or more elements from `#{inspect($modifiers)}` have already been created';
36
+ // }
37
37
 
38
- @return false;
39
- }
38
+ // @return false;
39
+ // }
40
40
 
41
41
  // Find the current block name
42
42
  $current-block-name: map-get(map-get($_bem-current-context, 'block'), 'name');
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.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Guillan