ecoportal-api-graphql 0.4.5 → 0.4.6

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: a3e3519f253819b10dad7bd065d244dd90a3d7cd3e2ebe224f20bc4ccb83185d
4
- data.tar.gz: 2045d67da3b50b55feaab8bce0fbd67935c79e9947878e4d9483df1fd2cad596
3
+ metadata.gz: 9f67bbd1cbfe0ea5ae4148e7b7fc5a72ed37dc0fc05515c0769fe99c5f666712
4
+ data.tar.gz: 41523d77adf9e48a66c7f159b037cbac4ebd5b4da5079649b8f7c90afbd3b825
5
5
  SHA512:
6
- metadata.gz: 0f64880b73ca0cc855d1d8cbe179e1dda7f79f73b88b9f9d4e41883ef631ee7fac41ced10dc3c1a56f821afe7d9bb4faa239aae86703ffcf4a55a564145c3788
7
- data.tar.gz: 1cb72054839f0aa37d35f86c6ba1a55914c65c721bddc03ea6100d0126a4a42c176fecfb917c35e8b0302db85a726ffa59f12d7dbf0a8e07b3a57f28612fdd3f
6
+ metadata.gz: eca1f49081c066069dd9422acef0cbc86bd236c402aaa16245c5deea920436dce6704a7870d0d20782849ac25f8c73263f11f48cf74667b49f85282c0ae91573
7
+ data.tar.gz: c70722b5d1020897d7673f7b5d9af15dbc02b1d963cdcaeea4a2cebf3fa8c0b2d960ba694e36edbaf920f2a0fcfe69665508ac472c0c1f25ae8cbc2334293b5c
data/CHANGELOG.md CHANGED
@@ -9,7 +9,7 @@ All notable changes to this project will be documented in this file.
9
9
  - Analyse how to "DSL" currentOrganization.action.activities
10
10
  - review `path` tracking
11
11
 
12
- ## [0.4.6] - 2025-03-xx
12
+ ## [0.4.7] - 2025-04-xx
13
13
 
14
14
  ### Added
15
15
 
@@ -17,6 +17,19 @@ All notable changes to this project will be documented in this file.
17
17
 
18
18
  ### Fixed
19
19
 
20
+ ## [0.4.6] - 2025-04-02
21
+
22
+ ### Added
23
+
24
+ - `Ecoportal::API::GraphQL::Logic::QueryConnection`
25
+ - **Require** `default_connection_block` to child classes
26
+ - This aims to **not** having have client code having to define the block for `#each`
27
+
28
+ ### Changed
29
+
30
+ - upgraded `ecoportal-api` gem
31
+ - upgraded `ecoportal-api-v2` gem
32
+
20
33
  ## [0.4.5] - 2025-03-14
21
34
 
22
35
  ### Added
@@ -32,8 +32,8 @@ Gem::Specification.new do |spec|
32
32
  spec.add_development_dependency 'rubocop-rake', '~> 0'
33
33
  spec.add_development_dependency 'yard', '>= 0.9.34', '< 1'
34
34
 
35
- spec.add_dependency 'ecoportal-api', '~> 0.10', '>= 0.10.8'
36
- spec.add_dependency 'ecoportal-api-v2', '~> 2.0', '>= 2.0.15'
35
+ spec.add_dependency 'ecoportal-api', '~> 0.10', '>= 0.10.9'
36
+ spec.add_dependency 'ecoportal-api-v2', '~> 2.0', '>= 2.0.16'
37
37
  spec.add_dependency 'graphlient', '>= 0.8.0', '< 0.9'
38
38
  end
39
39
 
@@ -31,6 +31,10 @@ module Ecoportal
31
31
  dateTime
32
32
  timeZone
33
33
  }
34
+ updatedAt {
35
+ dateTime
36
+ timeZone
37
+ }
34
38
  dueDate {
35
39
  dateTime
36
40
  timeZone
@@ -24,6 +24,7 @@ module Ecoportal
24
24
 
25
25
  def each(&block)
26
26
  return to_enum(:each) unless block
27
+
27
28
  nodes.each(&block)
28
29
  end
29
30
  end
@@ -9,6 +9,8 @@ module Ecoportal
9
9
  def each(connection_block: nil, **kargs, &block)
10
10
  return to_enum(:each, **kargs, connection_block: connection_block) unless block
11
11
 
12
+ connection_block ||= default_connection_block
13
+
12
14
  cursor = nil
13
15
  loop do
14
16
  kargs.update(after: cursor) if cursor
@@ -30,6 +32,12 @@ module Ecoportal
30
32
  ) do |klass|
31
33
  klass.item_class = item_class
32
34
  end
35
+
36
+ privae
37
+
38
+ def default_connection_block
39
+ raise 'You should defined this method'
40
+ end
33
41
  end
34
42
  end
35
43
  end
@@ -17,10 +17,10 @@ module Ecoportal
17
17
  currentOrganization {
18
18
  actions(
19
19
  searchConf: :searchConf,
20
- after: :after,
21
- before: :before,
22
- first: :first,
23
- last: :last,
20
+ after: :after,
21
+ before: :before,
22
+ first: :first,
23
+ last: :last,
24
24
  &connection_block
25
25
  )
26
26
  }
@@ -1,5 +1,5 @@
1
1
  module Ecoportal
2
2
  module API
3
- GRAPQL_VERSION = '0.4.5'.freeze
3
+ GRAPQL_VERSION = '0.4.6'.freeze
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.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-03-13 00:00:00.000000000 Z
11
+ date: 2025-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -141,7 +141,7 @@ dependencies:
141
141
  version: '0.10'
142
142
  - - ">="
143
143
  - !ruby/object:Gem::Version
144
- version: 0.10.8
144
+ version: 0.10.9
145
145
  type: :runtime
146
146
  prerelease: false
147
147
  version_requirements: !ruby/object:Gem::Requirement
@@ -151,7 +151,7 @@ dependencies:
151
151
  version: '0.10'
152
152
  - - ">="
153
153
  - !ruby/object:Gem::Version
154
- version: 0.10.8
154
+ version: 0.10.9
155
155
  - !ruby/object:Gem::Dependency
156
156
  name: ecoportal-api-v2
157
157
  requirement: !ruby/object:Gem::Requirement
@@ -161,7 +161,7 @@ dependencies:
161
161
  version: '2.0'
162
162
  - - ">="
163
163
  - !ruby/object:Gem::Version
164
- version: 2.0.15
164
+ version: 2.0.16
165
165
  type: :runtime
166
166
  prerelease: false
167
167
  version_requirements: !ruby/object:Gem::Requirement
@@ -171,7 +171,7 @@ dependencies:
171
171
  version: '2.0'
172
172
  - - ">="
173
173
  - !ruby/object:Gem::Version
174
- version: 2.0.15
174
+ version: 2.0.16
175
175
  - !ruby/object:Gem::Dependency
176
176
  name: graphlient
177
177
  requirement: !ruby/object:Gem::Requirement