ecoportal-api-graphql 0.2.2 → 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: 56e997e7d33caae3a3a1bf496d213ba3647c1184122639091edf011575458787
4
- data.tar.gz: ef337365f05a6dee924d31e5719d0639eb0f9192e512aa668e6fe6734fe819ea
3
+ metadata.gz: eb03301e45ca9a1431864cfcd700d5a125835932b072fe23ea1b5f6716b62f70
4
+ data.tar.gz: b9a224ff649c2f457d0c52b864ceb7248545e6b9ed25abd8a8213f62924e066a
5
5
  SHA512:
6
- metadata.gz: e54ca789c32d646416e4bcc7e83d774347573a9dd5702ed538bf9bd6f7bca87a69ebe0291e737ad151672c231a8e3e26ce2e80a94742785751a9525881e8877b
7
- data.tar.gz: 0d3e30f27e5fb00ff5951e6149235916f4636d987a742cae12c41c2a1c0ff009c8074b32765e726d7effb188d837d762df9a4fe32d922e90d1f58a8268e8c111
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.3] - 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`
@@ -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.2"
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.2
4
+ version: 0.2.3
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-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