ecoportal-api-graphql 0.2.2 → 0.3.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec2eecf9dcdb825a7a8f0a640d52bd891863ef29b3b64f07f6874a2617a9c49f
|
4
|
+
data.tar.gz: b10190f2520def342c03fad24675b41f8ab69cbcbfc6a42e9159c39839c04018
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f18bcf0b7eaa538d6e34d90f6cdbf3e31403ff0f63538d2c62c2ebcb2d1ef44d406f356ef8ae48ec79a19ea23bd1446020b91a08e77534cecb281e061fa3fd72
|
7
|
+
data.tar.gz: ed7da790ac05299f381d64af371df666d1578e017079e58a97278f6e8ff4eecf487a580cad511feb7b13490b4d646d59bfb99e4d7d63fa27de28a3bbff6f5ca4
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Change Log
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
|
4
|
-
## [0.2
|
4
|
+
## [0.3.2] - 2023-03-xx
|
5
5
|
|
6
6
|
### Added
|
7
7
|
### Changed
|
@@ -13,6 +13,18 @@ All notable changes to this project will be documented in this file.
|
|
13
13
|
- Analyse how to "DSL" currentOrganization.action.activities
|
14
14
|
- review `path` tracking
|
15
15
|
|
16
|
+
## [0.3.1] - 2023-03-09
|
17
|
+
|
18
|
+
### Added
|
19
|
+
### Changed
|
20
|
+
- Upgraded core gem dependency `ecoportal-api-v2`
|
21
|
+
|
22
|
+
|
23
|
+
## [0.2.3] - 2023-02-27
|
24
|
+
|
25
|
+
### Fixed
|
26
|
+
- Typo in tests LocationsStructures... should read `locationStructures`
|
27
|
+
|
16
28
|
## [0.2.2] - 2023-02-24
|
17
29
|
|
18
30
|
### Fixed
|
@@ -29,6 +29,6 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.add_development_dependency "redcarpet", ">= 3.5.1", "< 3.6"
|
30
30
|
spec.add_development_dependency "pry" , ">= 0.14"
|
31
31
|
|
32
|
-
spec.add_dependency 'ecoportal-api-v2', '>= 1.
|
32
|
+
spec.add_dependency 'ecoportal-api-v2', '>= 1.1.1', '< 1.2'
|
33
33
|
spec.add_dependency 'graphlient', '>= 0.7.0', '< 0.8'
|
34
34
|
end
|
@@ -12,8 +12,8 @@ module Ecoportal
|
|
12
12
|
DEFAULT_PATH.dup.push(*add)
|
13
13
|
end
|
14
14
|
|
15
|
-
query :
|
16
|
-
query :
|
15
|
+
query :locationStructure, subpath: "locations", query_klass: "Ecoportal::API::GraphQL::Query::LocationStructure"
|
16
|
+
query :locationStructures, subpath: "locations", query_klass: "Ecoportal::API::GraphQL::Query::LocationStructures"
|
17
17
|
query :contractorEntities, query_klass: "Ecoportal::API::GraphQL::Query::ContractorEntities"
|
18
18
|
#contractorEntity,
|
19
19
|
query :actions, query_klass: "Ecoportal::API::GraphQL::Query::Actions"
|
data/tests/loc_structure_get.rb
CHANGED
@@ -5,7 +5,7 @@ STRUCT_ID = "592642a4ae0c6a00236b110d" # mini test
|
|
5
5
|
|
6
6
|
|
7
7
|
api = Ecoportal::API::GraphQL.new
|
8
|
-
api.currentOrganization.
|
8
|
+
api.currentOrganization.locationStructure(id: STRUCT_ID).tap do |tree|
|
9
9
|
puts "'#{tree.name}' Structure (#{tree.id})"
|
10
10
|
pp tree.treeify
|
11
11
|
end
|
data/tests/loc_structures_get.rb
CHANGED
@@ -5,7 +5,7 @@ kargs = {
|
|
5
5
|
includeArchived: false,
|
6
6
|
includeUnpublished: false
|
7
7
|
}
|
8
|
-
trees = api.currentOrganization.
|
8
|
+
trees = api.currentOrganization.locationStructures(**kargs)
|
9
9
|
trees.each_with_index do |tree, idx|
|
10
10
|
puts "#{tree.weight}. '#{tree.name}' (#{tree.id})"
|
11
11
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecoportal-api-graphql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oscar Segura
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -130,20 +130,20 @@ dependencies:
|
|
130
130
|
requirements:
|
131
131
|
- - ">="
|
132
132
|
- !ruby/object:Gem::Version
|
133
|
-
version: 1.
|
133
|
+
version: 1.1.1
|
134
134
|
- - "<"
|
135
135
|
- !ruby/object:Gem::Version
|
136
|
-
version: '1.
|
136
|
+
version: '1.2'
|
137
137
|
type: :runtime
|
138
138
|
prerelease: false
|
139
139
|
version_requirements: !ruby/object:Gem::Requirement
|
140
140
|
requirements:
|
141
141
|
- - ">="
|
142
142
|
- !ruby/object:Gem::Version
|
143
|
-
version: 1.
|
143
|
+
version: 1.1.1
|
144
144
|
- - "<"
|
145
145
|
- !ruby/object:Gem::Version
|
146
|
-
version: '1.
|
146
|
+
version: '1.2'
|
147
147
|
- !ruby/object:Gem::Dependency
|
148
148
|
name: graphlient
|
149
149
|
requirement: !ruby/object:Gem::Requirement
|