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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d16dfb585fb3f79b1242b92cd8ddf20663e8f18
4
- data.tar.gz: 6fb4483228832e5d1016d92ef561c9dca4e34352
3
+ metadata.gz: dec8dc9599589b5511a86e459172421352ab0b44
4
+ data.tar.gz: 966a0cc10f570cdb0078b97092da6aa2778644f5
5
5
  SHA512:
6
- metadata.gz: 98ca371092e8bfdb4a49165439521aed3b7456bc350ae8908a700329f9da876133b91ae2c4adf982638f35a31a5d02efe1b540f647bd30f96699c745cf8a6d62
7
- data.tar.gz: c30279d940b40fd1887a0e28b2885124bc1d84a2faac887dc667caf74ef2ef0dd92f4b4d67da443a3e08ab7197d4f3378003d692fbc3b1b5980a2b384d63168c
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(*partial_paths, extended_with)
6
+ def extends(*args)
7
7
  source {
8
8
  merge(
9
- *partial_paths.map { |path| partial(path) },
10
- extended_with
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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Babl
3
- VERSION = '0.5.7'
3
+ VERSION = '0.5.8'
4
4
  end
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.7
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-13 00:00:00.000000000 Z
11
+ date: 2018-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coveralls