horizon_client 0.2.2 → 0.2.3

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: 1bb4e6629e077c38b5b756bd236456265f81e75d
4
- data.tar.gz: 6c02a2f29172c036b69e66881725eab502e3af44
3
+ metadata.gz: b1a044d1cd0144ca86e2aa537e378ac8207b87a4
4
+ data.tar.gz: 56b1a11068f17bf4b3a7356f33ba5af7b00bdbcf
5
5
  SHA512:
6
- metadata.gz: a76b93646e725225f1deae62a04ff539efdce0544271fb608510d6a38bcd7751ff4ec9aa57c6f34532863d17f145769e37ac78e7c8de9abbac8f8c7156a595df
7
- data.tar.gz: bbeb13a0ce5b0c1dbcee67765492f89e691ed371ee4de9b38688954f0bd456f3f73931428512cc02a87eb2083e62356b7f0951fc0a77e39e32d99b26b9143a7a
6
+ metadata.gz: d0a2f0df8cc271bdda230aa4890913b309d617cb3dcdcea85e9019904aa98468c9d824fc6abd913e257b7bf07c91645d0074fc0d1506216d2243f0cb5020d20f
7
+ data.tar.gz: bff1c9e2faf540f7b919abdbf178b9ac31c1a18f5e424b55999efd914184d560d7862e011d960aafbcc14ba71f50adc1fca6b01b300a35e2bc5b8b430832d611
@@ -33,9 +33,7 @@ module HorizonClient
33
33
  child = Ox::Element.new(name)
34
34
  parent << child
35
35
  end
36
- find_or_build_attribute(path, child) unless path.empty?
37
-
38
- child
36
+ path.empty? ? child : find_or_build_attribute(path, child)
39
37
  end
40
38
 
41
39
  def get_value(node)
@@ -1,3 +1,3 @@
1
1
  module HorizonClient
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: horizon_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - MAK IT