eco-helpers 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/eco-helpers.gemspec +1 -1
- data/lib/eco/api/session/batch.rb +3 -3
- data/lib/eco/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 755c80fde10e7cfe8239abc1aba2e10a57ca11a38a2a11ca04875da9c720323a
|
4
|
+
data.tar.gz: e6ed8d4bb8070ca11f57d62fbd5b082b02fc1cc8e8d9bed4d1f8823366b261f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 959ecabb772062eb6a0658bcbcc40a3f4043445ea33a2fc21fd32e505e842d164026aea23f55f3a480ee2769aceb9172df64d5ca4fef0a53415bb44f29957324
|
7
|
+
data.tar.gz: e959d47db5eba6b17149d54f29115855302084d92143ba93129ba626a8cc109aeeb7b7f2a93cfabf85377bfcc969a98c7c1b04b83f816db3572dd73c136ae422
|
data/eco-helpers.gemspec
CHANGED
@@ -28,7 +28,7 @@ Gem::Specification.new do |s|
|
|
28
28
|
s.add_development_dependency "yard", "~> 0.9", ">= 0.9.18"
|
29
29
|
s.add_development_dependency "redcarpet", "~> 3.5", ">= 3.5.0"
|
30
30
|
|
31
|
-
s.add_dependency 'ecoportal-api', '~> 0.5', '>= 0.5.
|
31
|
+
s.add_dependency 'ecoportal-api', '~> 0.5', '>= 0.5.5'
|
32
32
|
s.add_dependency 'aws-sdk-s3', '~> 1.30', '>= 1.30.1'
|
33
33
|
s.add_dependency 'aws-sdk-ses', '~> 1.14', '>= 1.14.0'
|
34
34
|
s.add_dependency 'dotenv', '~> 2.6', '>= 2.6.0'
|
@@ -100,9 +100,9 @@ module Eco
|
|
100
100
|
page = params[:page] || 1
|
101
101
|
|
102
102
|
people = []; total_pages = nil
|
103
|
-
|
103
|
+
cursor_id = nil
|
104
104
|
loop do
|
105
|
-
params.merge!(
|
105
|
+
params.merge!(cursor_id: cursor_id) unless !cursor_id
|
106
106
|
people_res, response = client_get(client, params: params.merge(page: page), silent: silent)
|
107
107
|
people += people_res
|
108
108
|
|
@@ -118,7 +118,7 @@ module Eco
|
|
118
118
|
msg = "search(q=#{params[:q]}) " + msg if params.key?(:q)
|
119
119
|
logger.info(msg) unless silent
|
120
120
|
|
121
|
-
iterate = (no_pages &&
|
121
|
+
iterate = (no_pages && cursor_id = response.body["cursor_id"]) || (looping && page < total_iterations)
|
122
122
|
break unless iterate
|
123
123
|
page += 1
|
124
124
|
end
|
data/lib/eco/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eco-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oscar Segura
|
@@ -107,7 +107,7 @@ dependencies:
|
|
107
107
|
version: '0.5'
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.5.
|
110
|
+
version: 0.5.5
|
111
111
|
type: :runtime
|
112
112
|
prerelease: false
|
113
113
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -117,7 +117,7 @@ dependencies:
|
|
117
117
|
version: '0.5'
|
118
118
|
- - ">="
|
119
119
|
- !ruby/object:Gem::Version
|
120
|
-
version: 0.5.
|
120
|
+
version: 0.5.5
|
121
121
|
- !ruby/object:Gem::Dependency
|
122
122
|
name: aws-sdk-s3
|
123
123
|
requirement: !ruby/object:Gem::Requirement
|