ecoportal-api-graphql 0.2.3 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eb03301e45ca9a1431864cfcd700d5a125835932b072fe23ea1b5f6716b62f70
4
- data.tar.gz: b9a224ff649c2f457d0c52b864ceb7248545e6b9ed25abd8a8213f62924e066a
3
+ metadata.gz: 802706f5cb251ec2df63b4f43576f779e244da1fb7ad0d93875e5d05d87e3539
4
+ data.tar.gz: d761dd4b221133959cf2a64b49e5cceb11c10b6bafea42dd115294b44f7812ae
5
5
  SHA512:
6
- metadata.gz: 4779475c91b6923b1fe7391df32e3949ebf939ab9e9d2ddbffd9fed853808f1cc3d9d92bd3302cd11b99ff4df175cc0dc5d89994a4ccb205ffbdb2d014a6f8b2
7
- data.tar.gz: '099818e111d86ea03c57c8662884c8f03eaba5d0f470c1bb0dac137b2f3588633c16783f70b0210a67dbf7f0046d73c4b15f95b9421ba9fbe286da8157b48a88'
6
+ metadata.gz: 9ea32be18933799c0a210250771f95f6fbfbf0bcaaee1bcf907b86cf759eb4350f6786d4c9efe3188a22dacad396cbd9b1d84b79c8233a194f2f99c8a4a3d77d
7
+ data.tar.gz: 8af6e498686d97e395a50195970346af89676652721ed673405287c45632f4077b47e5388d179b59ca45f15021ce38718e6aa1cfe54a718b039aaf8c5a63fa43
data/CHANGELOG.md CHANGED
@@ -1,19 +1,41 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
- ## [0.2.3] - 2023-02-xx
4
+ ## [0.3.4] - 2023-04-xx
5
5
 
6
6
  ### Added
7
7
  ### Changed
8
8
  ### Fixed
9
- - Typo in tests LocationsStructures... should read `locationStructures`
10
9
 
11
10
  ### ToDo
12
11
  - Add update operation for `ContractorEntity`
13
12
  - Add currentOrganization.action
14
13
  - Analyse how to "DSL" currentOrganization.action.activities
14
+
15
15
  - review `path` tracking
16
16
 
17
+ ## [0.3.3] - 2023-04-02
18
+
19
+ ### Fixed
20
+ - `Ecoportal::API::GraphQL::Base::LocationNode` **added** attribute `archivedToken`
21
+
22
+ ## [0.3.2] - 2023-04-02
23
+
24
+ ### Changed
25
+ - `Ecoportal::API::GraphQL::Helpers::LocationsTree#treeify` added support for `archived_token`
26
+
27
+ ## [0.3.1] - 2023-03-09
28
+
29
+ ### Added
30
+ ### Changed
31
+ - Upgraded core gem dependency `ecoportal-api-v2`
32
+
33
+
34
+ ## [0.2.3] - 2023-02-27
35
+
36
+ ### Fixed
37
+ - Typo in tests LocationsStructures... should read `locationStructures`
38
+
17
39
  ## [0.2.2] - 2023-02-24
18
40
 
19
41
  ### Fixed
@@ -22,13 +22,13 @@ Gem::Specification.new do |spec|
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ["lib"]
24
24
 
25
- spec.add_development_dependency "bundler", ">= 2.2.17", "< 2.3"
25
+ spec.add_development_dependency "bundler", ">= 2.4.9", "< 2.5"
26
26
  spec.add_development_dependency "rspec", ">= 3.10.0", "< 3.11"
27
27
  spec.add_development_dependency "rake", ">= 13.0.3", "< 13.1"
28
28
  spec.add_development_dependency "yard", ">= 0.9.26", "< 0.10"
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.0.1', '< 1.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
@@ -8,6 +8,7 @@ module Ecoportal
8
8
  passthrough :weight
9
9
  embeds_one :parent, klass: Base::LocationNode, nullable: true
10
10
  passboolean :archived
11
+ passthrough :archivedToken
11
12
  end
12
13
  end
13
14
  end
@@ -8,6 +8,7 @@ module Ecoportal
8
8
  name
9
9
  weight
10
10
  archived
11
+ archivedToken
11
12
  parent {
12
13
  id
13
14
  name
@@ -19,11 +19,12 @@ module Ecoportal
19
19
  def get_children(node_id, parents)
20
20
  (parents[node_id] ||= []).each_with_object([]) do |child, results|
21
21
  results << {
22
- "id" => child.id,
23
- "name" => child.name,
24
- "weight" => child.weight,
22
+ "id" => child.id,
23
+ "name" => child.name,
24
+ "weight" => child.weight,
25
25
  "archived" => child.archived,
26
- "nodes" => get_children(child.id, parents).compact
26
+ "archived_token" => child.archivedToken,
27
+ "nodes" => get_children(child.id, parents).compact
27
28
  }
28
29
  end
29
30
  end
@@ -1,5 +1,5 @@
1
1
  module Ecoportal
2
2
  module API
3
- GRAPQL_VERSION = "0.2.3"
3
+ GRAPQL_VERSION = "0.3.3"
4
4
  end
5
5
  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.3
4
+ version: 0.3.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-27 00:00:00.000000000 Z
11
+ date: 2023-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,20 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 2.2.17
19
+ version: 2.4.9
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '2.3'
22
+ version: '2.5'
23
23
  type: :development
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 2.2.17
29
+ version: 2.4.9
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '2.3'
32
+ version: '2.5'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rspec
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -130,20 +130,20 @@ dependencies:
130
130
  requirements:
131
131
  - - ">="
132
132
  - !ruby/object:Gem::Version
133
- version: 1.0.1
133
+ version: 1.1.1
134
134
  - - "<"
135
135
  - !ruby/object:Gem::Version
136
- version: '1.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.0.1
143
+ version: 1.1.1
144
144
  - - "<"
145
145
  - !ruby/object:Gem::Version
146
- version: '1.1'
146
+ version: '1.2'
147
147
  - !ruby/object:Gem::Dependency
148
148
  name: graphlient
149
149
  requirement: !ruby/object:Gem::Requirement
@@ -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.0.3
320
- signing_key:
319
+ rubygems_version: 3.1.4
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: []