xass 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xass/view_helpers.rb +2 -2
- data/xass.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6171e08d1cab78182b38100f41b004351c3c8eaf
|
4
|
+
data.tar.gz: 5e4a890d7c708454ffbeb66b27819796af6f029e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0be2ad95d4865dd16b6896cceb21596e096245a5d1ac44e262ad27f8984b2e9a1b1029ac5c57eb4ac585698ed3b08665e70d72cd5693c8e437efb699af1d47c
|
7
|
+
data.tar.gz: 7b3b54a5ad2aa0a454443a36a01ddaec01c80389690545a3d8a59d1a6f8d85310aa24c24ef7396d414224ba2810abbe7dad97441308286dc7efaf90ba81d3f64
|
data/lib/xass/view_helpers.rb
CHANGED
@@ -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
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.
|
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-
|
11
|
+
date: 2014-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|