eco-helpers 2.2.1 → 2.2.2

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: c71f3bf20fae0dff4ec0ccd0ee8205b8af1dee3c9fabb02791f6102a84f7f9ab
4
- data.tar.gz: 81ba2c67c4653941529051d433189101e6480313447fdbe6c64da617887371b7
3
+ metadata.gz: 9786a6c42a701c7c84fc751543cd341587f637315c48febc00f85bbb948391c3
4
+ data.tar.gz: aec51b6308d345fa529acfb26db56178d09ac7397d25d7c323bc6904c793fdad
5
5
  SHA512:
6
- metadata.gz: b67b415da8341ab6d20a4165ef9f761777bcdb871635a33b0681a56228dae6138c779c31852ce2e748156fa41832ab1ea457ad1aa7ff9dc66c3e1c16dc016be4
7
- data.tar.gz: 53e6154974cc3db39e56a127710c1a676e34af8786012b0f3c41051fe14d0b27cc55945875843cdfa1f5fb98d64ed8afcae7eebcd2cfb0cb30da43f7aee2c16f
6
+ metadata.gz: 246d8b86360b5c5a949b85d74ca2829350c206617a7ed39f071c0d853a04cc4cba40b0298897f81de8970e76d92c8b8c995dd79ccbd1748dff8c0201f4eef961
7
+ data.tar.gz: 4468a3e61ec3f5cc661fc42189f00ef676e4e99a7fb9a2adbd85eef40597f1c2787007b55d4cd14170de09cadcad7824b657ad005bab5efb4b6998073360e7e4
data/CHANGELOG.md CHANGED
@@ -1,12 +1,18 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
- ## [2.2.2] - 2023-02-xx
4
+ ## [2.2.3] - 2023-02-xx
5
5
 
6
6
  ### Added
7
7
  ### Changed
8
8
  ### Fixed
9
9
 
10
+ ## [2.2.2] - 2023-02-27
11
+
12
+ ### Fixed
13
+ - Typo in GraphQL client (`locationsStructures` should read `locationStructures`)
14
+ - Multiple typos in new code
15
+
10
16
  ## [2.2.1] - 2023-02-24
11
17
 
12
18
  ### Added
@@ -18,7 +24,7 @@ All notable changes to this project will be documented in this file.
18
24
  ### Changed
19
25
  - **Patch** `Ecoportal::API::V1::Person::VALID_TAG_REGEX` it now allows for dot `.`
20
26
  - update gem dependencies
21
-
27
+
22
28
  ## [2.1.12] - 2022-11-30
23
29
 
24
30
  ### Fixed
data/eco-helpers.gemspec CHANGED
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
32
32
 
33
33
  spec.add_dependency 'ecoportal-api', '>= 0.8.5', '< 0.9'
34
34
  spec.add_dependency 'ecoportal-api-v2', '>= 1.0.1', '< 1.1'
35
- spec.add_dependency 'ecoportal-api-graphql', '>= 0.2.2', '< 0.3'
35
+ spec.add_dependency 'ecoportal-api-graphql', '>= 0.2.3', '< 0.3'
36
36
  spec.add_dependency 'aws-sdk-s3', '>= 1.83.0', '< 2'
37
37
  spec.add_dependency 'aws-sdk-ses', '>= 1.36.0', '< 2'
38
38
  spec.add_dependency 'dotenv', '>= 2.7.6', '< 2.8'
@@ -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
- @has_tags.empty?
87
+ @hash_tags.empty?
88
88
  end
89
89
 
90
90
  # @return [Integer] the number of locations
@@ -26,18 +26,18 @@ module Eco
26
26
 
27
27
  # Retrieves all the location structures of the organisation
28
28
  def live_trees(enviro: nil)
29
- [].tap do |trees|
29
+ [].tap do |eco_trees|
30
30
  next unless apis.active_api.version_available?(:graphql)
31
31
  next unless graphql = apis.api(version: :graphql)
32
32
  kargs = {
33
33
  includeArchived: false,
34
34
  includeUnpublished: false
35
35
  }
36
- next unless trees = graphql.currentOrganization.locationsStructures(**kargs)
36
+ next unless trees = graphql.currentOrganization.locationStructures(**kargs)
37
37
  trees.each do |tree|
38
38
  args = { enviro: enviro, id: tree.id, name: tree.name}
39
39
  eco_tree = Eco::API::Organization::TagTree.new(tree.treeify, **args)
40
- trees.push(eco_tree)
40
+ eco_trees.push(eco_tree)
41
41
  end
42
42
  end
43
43
  end
data/lib/eco/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Eco
2
- VERSION = "2.2.1"
2
+ VERSION = "2.2.2"
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.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura
@@ -156,7 +156,7 @@ dependencies:
156
156
  requirements:
157
157
  - - ">="
158
158
  - !ruby/object:Gem::Version
159
- version: 0.2.2
159
+ version: 0.2.3
160
160
  - - "<"
161
161
  - !ruby/object:Gem::Version
162
162
  version: '0.3'
@@ -166,7 +166,7 @@ dependencies:
166
166
  requirements:
167
167
  - - ">="
168
168
  - !ruby/object:Gem::Version
169
- version: 0.2.2
169
+ version: 0.2.3
170
170
  - - "<"
171
171
  - !ruby/object:Gem::Version
172
172
  version: '0.3'