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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a87a05e0b6be791a7cb630afb3fce8405447aca9f130a4940d3a042b8ccf0720
4
- data.tar.gz: fc315306e49cfe9be73c67b61b9a2bd1f59fbc6b74850e82400399ebd6255377
3
+ metadata.gz: 755c80fde10e7cfe8239abc1aba2e10a57ca11a38a2a11ca04875da9c720323a
4
+ data.tar.gz: e6ed8d4bb8070ca11f57d62fbd5b082b02fc1cc8e8d9bed4d1f8823366b261f4
5
5
  SHA512:
6
- metadata.gz: 18f83a3a064dd30033519d3df486e1d9839a87abc1161bf9f2d42b1378dcfe4ae20b40d018968c5fed6b8e3e6310202f2545dd4a2c2de85281de93a8d7b662f5
7
- data.tar.gz: 2ac3597409e546f5d931264b5cfa8a4f39b3ad4665c4d37f5349da12bbf3af9d42fe3f261b379f0c0e74cbcc8399a1d832578e83b26eeca4f0c419024a59cacd
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.1'
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
- results_from = nil
103
+ cursor_id = nil
104
104
  loop do
105
- params.merge!(results_from: results_from) unless !results_from
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 && results_from = response.body["next_results_from"]) || (looping && page < total_iterations)
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
@@ -1,3 +1,3 @@
1
1
  module Eco
2
- VERSION = "1.0.6"
2
+ VERSION = "1.0.7"
3
3
  end
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.6
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.1
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.1
120
+ version: 0.5.5
121
121
  - !ruby/object:Gem::Dependency
122
122
  name: aws-sdk-s3
123
123
  requirement: !ruby/object:Gem::Requirement