xass 0.1.5 → 0.1.6

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: 91cfa8d6349fb9b1c422658bfa51dfce7bbb3369
4
- data.tar.gz: fe6a51357fcaf0c52173456f36b8ae36cb52d2bc
3
+ metadata.gz: 6171e08d1cab78182b38100f41b004351c3c8eaf
4
+ data.tar.gz: 5e4a890d7c708454ffbeb66b27819796af6f029e
5
5
  SHA512:
6
- metadata.gz: 51707b1166fba15c5f3cce1d1e7a8c9a236f4442e58020501ad80a311945a5a3fe02f4b435d5666f01d9cea36db326b57cb7bacb800a641bef80bc10099aba55
7
- data.tar.gz: 7e89a7255db79d49eb970e7c9d825a495bca1cba1f513d820a3ac387a683071fd444c66884832691ef953f0b19536f91e606d57054370e8add2bc78baf5cd0ed
6
+ metadata.gz: c0be2ad95d4865dd16b6896cceb21596e096245a5d1ac44e262ad27f8984b2e9a1b1029ac5c57eb4ac585698ed3b08665e70d72cd5693c8e437efb699af1d47c
7
+ data.tar.gz: 7b3b54a5ad2aa0a454443a36a01ddaec01c80389690545a3d8a59d1a6f8d85310aa24c24ef7396d414224ba2810abbe7dad97441308286dc7efaf90ba81d3f64
@@ -18,11 +18,11 @@ module Xass
18
18
 
19
19
  def namespace_with_root(*names, tag: :div, attrs: {}, reset: false, &block)
20
20
  nss = reset ? [] : namespaces
21
- content_tag(tag, namespace(*names, reset: reset, &block), attrs_with_additional_class(attrs, ns_root!(*(nss.flatten + names))))
21
+ content_tag(tag, block ? namespace(*names, reset: reset, &block) : '', attrs_with_additional_class(attrs, ns_root!(*(nss.flatten + names))))
22
22
  end
23
23
 
24
24
  def namespace_with_root!(*names, tag: :div, attrs: {}, &block)
25
- namespace_with_root(*names, tag: tag, attrs: attrs, reset: true, &block)
25
+ namespace_with_root(*names, tag: tag, attrs: attrs, reset: true, &(block || Proc.new {}))
26
26
  end
27
27
 
28
28
  def ns_wrap(name = :wrap, _tag = nil, _attrs = nil, tag: :div, attrs: {}, &block)
data/xass.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'xass'
3
- s.version = '0.1.5'
3
+ s.version = '0.1.6'
4
4
  s.authors = ['Tetsuri Moriya']
5
5
  s.email = ['tetsuri.moriya@gmail.com']
6
6
  s.summary = 'Sass namespace extension'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xass
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tetsuri Moriya
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-23 00:00:00.000000000 Z
11
+ date: 2014-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec