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 +4 -4
- data/CHANGELOG.md +8 -2
- data/eco-helpers.gemspec +1 -1
- data/lib/eco/api/organization/tag_tree.rb +1 -1
- data/lib/eco/api/session/config/tagtree.rb +3 -3
- data/lib/eco/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9786a6c42a701c7c84fc751543cd341587f637315c48febc00f85bbb948391c3
|
4
|
+
data.tar.gz: aec51b6308d345fa529acfb26db56178d09ac7397d25d7c323bc6904c793fdad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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'
|
@@ -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 |
|
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.
|
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
|
-
|
40
|
+
eco_trees.push(eco_tree)
|
41
41
|
end
|
42
42
|
end
|
43
43
|
end
|
data/lib/eco/version.rb
CHANGED
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
|
+
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.
|
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.
|
169
|
+
version: 0.2.3
|
170
170
|
- - "<"
|
171
171
|
- !ruby/object:Gem::Version
|
172
172
|
version: '0.3'
|