eco-helpers 2.2.4 → 2.2.5

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
  SHA256:
3
- metadata.gz: 22b18f6a77dccb77c810944846f1fdc470e0ee54255b2b72b0f1865d9d3b556c
4
- data.tar.gz: 5cd2157a4feeb673598608ce04e8e8eee26d75fd7d8e58ee7f51683367a68ad3
3
+ metadata.gz: '0281c78aabb03180573c1089c8c7fbea48f9efcdc9b26ca44ff7027dff1fade4'
4
+ data.tar.gz: 3c0aed71b46dfa29012ee171492d4ed26a19d7ed3a173ea548f12123a5f52469
5
5
  SHA512:
6
- metadata.gz: 32c089f361f91e2f411659150d3345717b700a693962fad99ecdd1c9311daeb8d30f78d706bb6335a67e8617493d22335808146d562da531c1c9bce98cc94b9a
7
- data.tar.gz: c9967613a369e8672cded50133b4eb7f422f801f9b6a879e82918ec71eaa3d8d6b9798ced776d70bdc30416cf81d558b45e12c799258dfaaeffc2e06a05547a4
6
+ metadata.gz: 2f1e8b821ec4d9a62bb4820e0a4c57afd9cf60af897585b474b89063ea0ce260ebb26dd7c9f09d5d3abcac2ab92f53f0bb41d10fff59228006a3c244b2774197
7
+ data.tar.gz: ee33bfe26cb343df58e437dc8fb1bdc48c5117171fff82adb54fa6f864205a3de927eeb41689a118943936e9d8c42d8085d69aea3ad23c84045faa0dc142300d
data/CHANGELOG.md CHANGED
@@ -1,12 +1,16 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
- ## [2.2.5] - 2023-03-xx
4
+ ## [2.2.6] - 2023-03-xx
5
5
 
6
6
  ### Added
7
7
  ### Changed
8
8
  ### Fixed
9
- - Logger object when logging from config
9
+
10
+ ## [2.2.5] - 2023-03-07
11
+
12
+ ### Fixed
13
+ - Make it, so it requires to have a locations structure with nodes (raise exception otherwise)
10
14
 
11
15
  ## [2.2.4] - 2023-03-07
12
16
 
@@ -84,7 +84,7 @@ module Eco
84
84
 
85
85
  # @return [Boolean] `true` if there are tags in the node, `false` otherwise.
86
86
  def empty?
87
- @hash_tags.empty?
87
+ count <= 1
88
88
  end
89
89
 
90
90
  # @return [Integer] the number of locations
@@ -12,7 +12,11 @@ module Eco
12
12
  @tagtree = Eco::API::Organization::TagTree.new(tree, enviro: enviro)
13
13
  end
14
14
  end
15
- @tagtree ||= live_tree(enviro: enviro)
15
+ @tagtree ||= live_tree(enviro: enviro).tap do |tree|
16
+ unless tree && !tree.empty?
17
+ raise "Could not find a locations structure."
18
+ end
19
+ end
16
20
  end
17
21
 
18
22
  # Among all the locations structures it selects the one with more location nodes
data/lib/eco/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Eco
2
- VERSION = "2.2.4"
2
+ VERSION = "2.2.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eco-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.4
4
+ version: 2.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura