babl-json 0.5.7 → 0.5.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/babl/operators/extends.rb +7 -3
- data/lib/babl/version.rb +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: dec8dc9599589b5511a86e459172421352ab0b44
|
4
|
+
data.tar.gz: 966a0cc10f570cdb0078b97092da6aa2778644f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43e8e8ea87c8edea34b825faa3f0bc35104e3485fda08a9a6096f57e14d2dfa1a387e533ebfbf75f4597e29ac0eb0c92755e0fbcefb96fa7c62fb7a916b25bc5
|
7
|
+
data.tar.gz: 9341db37ffed4346b12c2d9487aa6c094ae3b4125ea635b7854c0427a8cd1e133e7ace096cadcfa384f5838ebb52704285d3e9d2053be9fb70a8e10aabf8be2d
|
@@ -3,11 +3,15 @@ module Babl
|
|
3
3
|
module Operators
|
4
4
|
module Extends
|
5
5
|
module DSL
|
6
|
-
def extends(*
|
6
|
+
def extends(*args)
|
7
7
|
source {
|
8
8
|
merge(
|
9
|
-
*
|
10
|
-
|
9
|
+
*args.map { |arg|
|
10
|
+
case arg
|
11
|
+
when Template, ::Hash, ::NilClass then arg
|
12
|
+
else partial(arg)
|
13
|
+
end
|
14
|
+
}
|
11
15
|
)
|
12
16
|
}
|
13
17
|
end
|
data/lib/babl/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: babl-json
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frederic Terrazzoni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coveralls
|