ecoportal-api-graphql 0.2.1 → 0.2.3

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: 4dd9eeecfae002b0c6e3324daaaf607a420a659e28c3356ccc4bfccad3585c68
4
- data.tar.gz: 4b20881fe6cf9870bc718cbf2d9f0c97d532ea140c9d08278fcf046144aaecae
3
+ metadata.gz: eb03301e45ca9a1431864cfcd700d5a125835932b072fe23ea1b5f6716b62f70
4
+ data.tar.gz: b9a224ff649c2f457d0c52b864ceb7248545e6b9ed25abd8a8213f62924e066a
5
5
  SHA512:
6
- metadata.gz: e9cec604868b4f55f350b62ad00325c71ca23d3e5c31c7039c2faad7a20d24bcb921ae40eaebc5c89d020862452b1e4d85cb76d0a665b3d65ac87086cc27c061
7
- data.tar.gz: 59340e77fd87773691e8581aee13e86f1b7380ecfadc1af8df174a6b64dfc2e2f98f3d6d78ca1ee63d7844918bfd27233bc543fc32107d0cdda820184d2a3384
6
+ metadata.gz: 4779475c91b6923b1fe7391df32e3949ebf939ab9e9d2ddbffd9fed853808f1cc3d9d92bd3302cd11b99ff4df175cc0dc5d89994a4ccb205ffbdb2d014a6f8b2
7
+ data.tar.gz: '099818e111d86ea03c57c8662884c8f03eaba5d0f470c1bb0dac137b2f3588633c16783f70b0210a67dbf7f0046d73c4b15f95b9421ba9fbe286da8157b48a88'
data/CHANGELOG.md CHANGED
@@ -1,11 +1,12 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
- ## [0.2.2] - 2022-11-xx
4
+ ## [0.2.3] - 2023-02-xx
5
5
 
6
6
  ### Added
7
7
  ### Changed
8
8
  ### Fixed
9
+ - Typo in tests LocationsStructures... should read `locationStructures`
9
10
 
10
11
  ### ToDo
11
12
  - Add update operation for `ContractorEntity`
@@ -13,15 +14,18 @@ All notable changes to this project will be documented in this file.
13
14
  - Analyse how to "DSL" currentOrganization.action.activities
14
15
  - review `path` tracking
15
16
 
16
- ## [0.2.1] - 2023-02-23
17
+ ## [0.2.2] - 2023-02-24
17
18
 
18
- ### Added
19
+ ### Fixed
20
+ - Build gem correctly
21
+
22
+ ## [0.2.1] - 2023-02-24
19
23
 
20
24
  ### Changed
21
25
  - Migrate from TagTrees to **reporting structures** (breaking change)
22
26
 
23
- ### Fixed
24
-
27
+ ### Added
28
+ - Basics for reporting structure mutations
25
29
 
26
30
  ## [0.1.11] - 2022-11-29
27
31
 
@@ -12,8 +12,8 @@ module Ecoportal
12
12
  DEFAULT_PATH.dup.push(*add)
13
13
  end
14
14
 
15
- query :LocationStructure, subpath: "locations", query_klass: "Ecoportal::API::GraphQL::Query::LocationStructure"
16
- query :LocationStructures, subpath: "locations", query_klass: "Ecoportal::API::GraphQL::Query::LocationStructures"
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"
@@ -1,5 +1,5 @@
1
1
  module Ecoportal
2
2
  module API
3
- GRAPQL_VERSION = "0.2.1"
3
+ GRAPQL_VERSION = "0.2.3"
4
4
  end
5
5
  end
@@ -5,7 +5,7 @@ STRUCT_ID = "592642a4ae0c6a00236b110d" # mini test
5
5
 
6
6
 
7
7
  api = Ecoportal::API::GraphQL.new
8
- api.currentOrganization.LocationStructure(id: STRUCT_ID).tap do |tree|
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
@@ -5,7 +5,7 @@ kargs = {
5
5
  includeArchived: false,
6
6
  includeUnpublished: false
7
7
  }
8
- trees = api.currentOrganization.LocationStructures(**kargs)
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.2.1
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-02-23 00:00:00.000000000 Z
11
+ date: 2023-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -164,7 +164,7 @@ dependencies:
164
164
  - - "<"
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0.8'
167
- description:
167
+ description:
168
168
  email:
169
169
  - oscar@ecoportal.co.nz
170
170
  executables: []
@@ -301,7 +301,7 @@ homepage: https://www.ecoportal.com
301
301
  licenses:
302
302
  - MIT
303
303
  metadata: {}
304
- post_install_message:
304
+ post_install_message:
305
305
  rdoc_options: []
306
306
  require_paths:
307
307
  - lib
@@ -316,8 +316,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
316
316
  - !ruby/object:Gem::Version
317
317
  version: '0'
318
318
  requirements: []
319
- rubygems_version: 3.1.4
320
- signing_key:
319
+ rubygems_version: 3.0.3
320
+ signing_key:
321
321
  specification_version: 4
322
322
  summary: A collection of helpers for interacting with the ecoPortal GraphQL API
323
323
  test_files: []