ehbrs-tools 0.44.3 → 0.45.0

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: 566618bb4cb68e79687ede4555d4d9960399373db6b5cd3ae9908bee9a46cd43
4
- data.tar.gz: da7cab639199bf3342da873d3ea5166c1bc500bfff8e1b8ad79e376acde686b6
3
+ metadata.gz: 4871fdbe39fd4c1ff63a67d28e24fa050a4c78351b26942d483c3c1d0b9e8a45
4
+ data.tar.gz: 52a686bec03dff223e5b5993129bb4e776a064aa14b6049e5d34ce946560fb0e
5
5
  SHA512:
6
- metadata.gz: f4c845faf41024eaf76c6189da7e572008ecd1154bf65c8154366435a6238844cab86730c7609fa4b717f46c3d04e2f1c766b9354414bcb2dc3b679b8904aeab
7
- data.tar.gz: 6ac6a72355ea48e6b7f07bb489308f213221f0424445a387e676b5e94106ff87191cf03c81d36bcefee7355f0aaeb5ab2881b7a456c999ea886108accb2a89ba
6
+ metadata.gz: 865bb626af3aa09df3452e531b9944fe0bb66c672dd9e89f607879e95dd657e9da9b6ba362c7d92d2f3d92cf5d0f76a83ce0fdf4ba353de9b395137a5f9a3b17
7
+ data.tar.gz: 62be3d1cbe06e7c68c788e9ea6919071dafc40ef25caa44c1429a5053f39e383afa7bdb42e8b299aabb23af258628ec037c80f791825348d451b79d084dd2220
data/Gemfile.lock CHANGED
@@ -1,53 +1,58 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ehbrs-tools (0.44.3)
5
- avm-tools (~> 0.163, >= 0.163.6)
6
- eac_cli (~> 0.45)
7
- eac_fs (~> 0.20)
4
+ ehbrs-tools (0.45.0)
5
+ avm-tools (~> 0.164)
6
+ eac_cli (~> 0.46)
7
+ eac_fs (~> 0.20, >= 0.20.2)
8
8
  eac_ruby_base0 (~> 0.19, >= 0.19.3)
9
- eac_ruby_utils (~> 0.129)
10
- ehbrs_ruby_utils (~> 0.48, >= 0.48.1)
9
+ eac_ruby_utils (~> 0.131)
10
+ ehbrs_ruby_utils (~> 0.49)
11
11
  filesize (~> 0.2)
12
12
  os (~> 1.1, >= 1.1.4)
13
13
  telegram-bot-ruby (~> 0.23)
14
14
 
15
15
  PATH
16
- remote: sub/eac_ruby_utils
16
+ remote: sub/aranha-parsers
17
17
  specs:
18
- eac_ruby_utils (0.129.1)
19
- activesupport (>= 4, < 7)
20
- addressable (~> 2.8, >= 2.8.8)
21
- bundler
22
- net-ssh (~> 4.2)
23
- zeitwerk (~> 2.7, >= 2.7.4)
18
+ aranha-parsers (0.28.0)
19
+ activesupport (>= 4.0.0)
20
+ addressable (~> 2.9)
21
+ aranha (~> 0.20)
22
+ eac_envs-http (~> 0.7, >= 0.7.1)
23
+ eac_ruby_utils (~> 0.131)
24
+ nokogiri (~> 1.19, >= 1.19.3)
25
+
26
+ PATH
27
+ remote: sub/aranha-selenium
28
+ specs:
29
+ aranha-selenium (0.14.0)
30
+ aranha (~> 0.20)
31
+ eac_fs (~> 0.20, >= 0.20.1)
32
+ eac_ruby_utils (~> 0.130)
33
+ eac_templates (~> 0.8, >= 0.8.3)
34
+ rexml (~> 3.4, >= 3.4.4)
35
+ selenium-webdriver (~> 4.43)
24
36
 
25
37
  PATH
26
38
  remote: sub/ehbrs_ruby_utils
27
39
  specs:
28
- ehbrs_ruby_utils (0.48.1)
40
+ ehbrs_ruby_utils (0.49.0)
29
41
  aranha (~> 0.20)
30
- aranha-parsers (~> 0.26, >= 0.26.2)
31
- aranha-selenium (~> 0.13)
32
- avm (~> 0.98, >= 0.98.4)
33
- avm-eac_rails_base0 (~> 0.11, >= 0.11.1)
42
+ aranha-parsers (~> 0.28)
43
+ aranha-selenium (~> 0.14)
44
+ avm (~> 0.100)
45
+ avm-eac_rails_base0 (~> 0.11, >= 0.11.2)
34
46
  dentaku (~> 3.5, >= 3.5.7)
35
- eac_fs (~> 0.20)
36
- eac_rest (~> 0.12)
37
- eac_ruby_utils (~> 0.129)
47
+ eac_fs (~> 0.20, >= 0.20.2)
48
+ eac_rest (~> 0.13)
49
+ eac_ruby_utils (~> 0.131)
38
50
  eac_templates (~> 0.8, >= 0.8.3)
39
51
  inifile (~> 3.0)
40
52
  srt (~> 0.1, >= 0.1.5)
41
53
  taglib-ruby (~> 1.1, >= 1.1.3)
42
54
  ultimate_lyrics (~> 0.2)
43
55
 
44
- PATH
45
- remote: sub/ultimate_lyrics
46
- specs:
47
- ultimate_lyrics (0.2.0)
48
- aranha-parsers (~> 0.26, >= 0.26.2)
49
- eac_ruby_utils (~> 0.129)
50
-
51
56
  GEM
52
57
  remote: https://rubygems.org/
53
58
  specs:
@@ -57,75 +62,60 @@ GEM
57
62
  minitest (>= 5.1)
58
63
  tzinfo (~> 2.0)
59
64
  zeitwerk (~> 2.3)
60
- addressable (2.8.8)
65
+ addressable (2.9.0)
61
66
  public_suffix (>= 2.0.2, < 8.0)
62
67
  aranha (0.20.0)
63
68
  eac_ruby_utils (~> 0.128)
64
- aranha-parsers (0.26.2)
65
- activesupport (>= 4.0.0)
66
- addressable (~> 2.8, >= 2.8.8)
67
- aranha (~> 0.20)
68
- eac_envs-http (~> 0.7, >= 0.7.1)
69
- eac_ruby_utils (~> 0.129)
70
- nokogiri (~> 1.19)
71
- ofx-parser (~> 1.1)
72
- aranha-selenium (0.13.0)
73
- aranha (~> 0.20)
74
- eac_fs (~> 0.20)
75
- eac_ruby_utils (~> 0.128, >= 0.128.5)
76
- eac_templates (~> 0.8, >= 0.8.3)
77
- rexml
78
- selenium-webdriver (~> 4.40)
79
69
  ast (2.4.3)
80
70
  attr_extras (7.1.0)
81
- avm (0.98.4)
82
- eac_cli (~> 0.45)
71
+ avm (0.100.0)
72
+ eac_cli (~> 0.46)
83
73
  eac_config (~> 0.15)
84
74
  eac_docker (~> 0.8)
85
- eac_fs (~> 0.20)
86
- eac_ruby_utils (~> 0.129)
75
+ eac_fs (~> 0.20, >= 0.20.1)
76
+ eac_ruby_utils (~> 0.130)
87
77
  eac_templates (~> 0.8, >= 0.8.3)
88
78
  minitar (~> 0.12, >= 0.12.1)
89
79
  avm-eac_generic_base0 (0.15.2)
90
80
  avm (~> 0.98, >= 0.98.2)
91
81
  eac_ruby_utils (~> 0.128, >= 0.128.6)
92
- avm-eac_postgresql_base0 (0.5.3)
93
- avm (~> 0.85)
94
- eac_ruby_utils (~> 0.121)
95
- avm-eac_rails_base0 (0.11.1)
96
- avm-eac_rails_base1 (~> 0.10)
97
- eac_ruby_utils (~> 0.121)
98
- avm-eac_rails_base1 (0.11.1)
99
- avm (~> 0.98, >= 0.98.2)
100
- avm-eac_ruby_base1 (~> 0.38, >= 0.38.1)
101
- avm-eac_webapp_base0 (~> 0.21, >= 0.21.3)
102
- eac_ruby_utils (~> 0.128, >= 0.128.6)
103
- avm-eac_ruby_base1 (0.39.0)
104
- aranha-parsers (~> 0.26, >= 0.26.2)
82
+ avm-eac_postgresql_base0 (0.6.0)
83
+ avm (~> 0.98, >= 0.98.4)
84
+ eac_ruby_utils (~> 0.129, >= 0.129.1)
85
+ avm-eac_rails_base0 (0.11.2)
86
+ avm-eac_rails_base1 (~> 0.11, >= 0.11.2)
87
+ eac_ruby_utils (~> 0.129, >= 0.129.1)
88
+ avm-eac_rails_base1 (0.12.0)
105
89
  avm (~> 0.98, >= 0.98.4)
90
+ avm-eac_ruby_base1 (~> 0.39)
91
+ avm-eac_webapp_base0 (~> 0.22)
92
+ eac_ruby_utils (~> 0.130)
93
+ avm-eac_ruby_base1 (0.41.1)
94
+ aranha-parsers (~> 0.27)
95
+ avm (~> 0.100)
106
96
  avm-eac_generic_base0 (~> 0.15, >= 0.15.2)
107
97
  eac_envs-http (~> 0.7, >= 0.7.1)
108
- eac_ruby_utils (~> 0.129)
98
+ eac_ruby_utils (~> 0.131)
109
99
  avm-eac_ubuntu_base0 (0.7.0)
110
100
  avm (~> 0.98, >= 0.98.2)
111
101
  eac_ruby_utils (~> 0.128, >= 0.128.6)
112
102
  eac_templates (~> 0.8, >= 0.8.3)
113
- avm-eac_webapp_base0 (0.21.3)
114
- avm (~> 0.98, >= 0.98.2)
103
+ avm-eac_webapp_base0 (0.22.1)
104
+ avm (~> 0.98, >= 0.98.5)
115
105
  avm-eac_generic_base0 (~> 0.15, >= 0.15.2)
116
- avm-eac_postgresql_base0 (~> 0.5, >= 0.5.3)
117
- avm-eac_ubuntu_base0 (~> 0.6)
118
- eac_ruby_utils (~> 0.128, >= 0.128.6)
106
+ avm-eac_postgresql_base0 (~> 0.6)
107
+ avm-eac_ubuntu_base0 (~> 0.7)
108
+ eac_ruby_utils (~> 0.130)
119
109
  htmlbeautifier (~> 1.4, >= 1.4.3)
120
- avm-tools (0.163.6)
121
- avm (~> 0.98, >= 0.98.4)
110
+ avm-tools (0.164.0)
111
+ avm (~> 0.98, >= 0.98.5)
122
112
  eac_ruby_base0 (~> 0.19, >= 0.19.3)
123
113
  axiom-types (0.1.1)
124
114
  descendants_tracker (~> 0.0.4)
125
115
  ice_nine (~> 0.11.0)
126
116
  thread_safe (~> 0.3, >= 0.3.1)
127
117
  base64 (0.3.0)
128
- bigdecimal (4.0.1)
118
+ bigdecimal (4.1.2)
129
119
  clipboard (2.0.0)
130
120
  coercible (1.0.0)
131
121
  descendants_tracker (~> 0.0.1)
@@ -139,12 +129,13 @@ GEM
139
129
  descendants_tracker (0.0.4)
140
130
  thread_safe (~> 0.3, >= 0.3.1)
141
131
  diff-lcs (1.6.2)
132
+ drb (2.2.3)
142
133
  dry-inflector (1.3.1)
143
- eac_cli (0.45.0)
134
+ eac_cli (0.46.0)
144
135
  clipboard (~> 2.0)
145
136
  colorize (~> 0.8, >= 0.8.1)
146
137
  eac_config (~> 0.15)
147
- eac_ruby_utils (~> 0.128, >= 0.128.6)
138
+ eac_ruby_utils (~> 0.130)
148
139
  tty-table (~> 0.12)
149
140
  eac_config (0.15.0)
150
141
  addressable (~> 2.8, >= 2.8.7)
@@ -162,26 +153,34 @@ GEM
162
153
  faraday-retry (~> 2.4)
163
154
  random-port (~> 0.7, >= 0.7.6)
164
155
  webrick
165
- eac_fs (0.20.0)
156
+ eac_fs (0.20.2)
166
157
  content-type (~> 0.0, >= 0.0.2)
167
- eac_ruby_utils (~> 0.128, >= 0.128.5)
158
+ eac_ruby_utils (~> 0.131)
159
+ filesize (~> 0.2)
168
160
  ruby-filemagic (~> 0.7, >= 0.7.3)
169
- eac_rest (0.12.0)
170
- eac_envs-http (~> 0.5)
171
- eac_fs (~> 0.16)
172
- eac_ruby_utils (~> 0.120)
161
+ eac_rest (0.13.0)
162
+ eac_envs-http (~> 0.7, >= 0.7.1)
163
+ eac_fs (~> 0.20, >= 0.20.1)
164
+ eac_ruby_utils (~> 0.130)
173
165
  eac_ruby_base0 (0.19.3)
174
166
  avm-eac_ruby_base1 (~> 0.39)
175
167
  eac_cli (~> 0.45)
176
168
  eac_fs (~> 0.20)
177
169
  eac_ruby_utils (~> 0.129)
178
- eac_ruby_gem_support (0.12.1)
179
- eac_ruby_utils (~> 0.129)
170
+ eac_ruby_gem_support (0.13.0)
171
+ eac_ruby_utils (~> 0.131)
180
172
  rspec (~> 3.13, >= 3.13.2)
181
- rubocop (~> 1.84, >= 1.84.1)
173
+ rubocop (~> 1.86, >= 1.86.1)
182
174
  rubocop-rails (~> 2.34, >= 2.34.3)
183
175
  rubocop-rspec (~> 3.9)
184
- super_diff (~> 0.18)
176
+ super_diff (~> 0.19)
177
+ eac_ruby_utils (0.131.0)
178
+ activesupport (>= 4, < 7)
179
+ addressable (~> 2.9)
180
+ bundler
181
+ memoized (~> 1.1, >= 1.1.3)
182
+ net-ssh (~> 4.2)
183
+ zeitwerk (~> 2.7, >= 2.7.5)
185
184
  eac_templates (0.8.3)
186
185
  eac_config (~> 0.15)
187
186
  eac_ruby_utils (~> 0.128, >= 0.128.5)
@@ -201,31 +200,30 @@ GEM
201
200
  faraday-retry (2.4.0)
202
201
  faraday (~> 2.0)
203
202
  filesize (0.2.0)
204
- hpricot (0.8.6)
205
203
  htmlbeautifier (1.4.3)
206
204
  i18n (1.14.8)
207
205
  concurrent-ruby (~> 1.0)
208
206
  ice_nine (0.11.2)
209
207
  inifile (3.0.0)
210
- json (2.18.1)
208
+ json (2.19.5)
211
209
  language_server-protocol (3.17.0.5)
212
210
  lint_roller (1.1.0)
213
211
  logger (1.7.0)
212
+ memoized (1.1.3)
214
213
  minitar (0.12.1)
215
- minitest (6.0.1)
214
+ minitest (6.0.6)
215
+ drb (~> 2.0)
216
216
  prism (~> 1.5)
217
217
  multipart-post (2.4.1)
218
218
  net-http (0.9.1)
219
219
  uri (>= 0.11.1)
220
220
  net-ssh (4.2.0)
221
- nokogiri (1.19.0-x86_64-linux-gnu)
221
+ nokogiri (1.19.3-x86_64-linux-gnu)
222
222
  racc (~> 1.4)
223
- ofx-parser (1.1.0)
224
- hpricot (>= 0.6)
225
223
  optimist (3.2.1)
226
224
  os (1.1.4)
227
- parallel (1.27.0)
228
- parser (3.3.10.1)
225
+ parallel (1.28.0)
226
+ parser (3.3.11.1)
229
227
  ast (~> 2.4.1)
230
228
  racc
231
229
  parslet (2.0.0)
@@ -234,13 +232,13 @@ GEM
234
232
  patience_diff (1.2.0)
235
233
  optimist (~> 3.0)
236
234
  prism (1.9.0)
237
- public_suffix (7.0.2)
235
+ public_suffix (7.0.5)
238
236
  racc (1.8.1)
239
- rack (3.2.4)
237
+ rack (3.2.6)
240
238
  rainbow (3.1.1)
241
239
  random-port (0.8.0)
242
240
  tago (~> 0.0)
243
- regexp_parser (2.11.3)
241
+ regexp_parser (2.12.0)
244
242
  rexml (3.4.4)
245
243
  rspec (3.13.2)
246
244
  rspec-core (~> 3.13.0)
@@ -251,25 +249,25 @@ GEM
251
249
  rspec-expectations (3.13.5)
252
250
  diff-lcs (>= 1.2.0, < 2.0)
253
251
  rspec-support (~> 3.13.0)
254
- rspec-mocks (3.13.7)
252
+ rspec-mocks (3.13.8)
255
253
  diff-lcs (>= 1.2.0, < 2.0)
256
254
  rspec-support (~> 3.13.0)
257
255
  rspec-support (3.13.7)
258
- rubocop (1.84.1)
256
+ rubocop (1.86.2)
259
257
  json (~> 2.3)
260
258
  language_server-protocol (~> 3.17.0.2)
261
259
  lint_roller (~> 1.1.0)
262
- parallel (~> 1.10)
260
+ parallel (>= 1.10)
263
261
  parser (>= 3.3.0.2)
264
262
  rainbow (>= 2.2.2, < 4.0)
265
263
  regexp_parser (>= 2.9.3, < 3.0)
266
264
  rubocop-ast (>= 1.49.0, < 2.0)
267
265
  ruby-progressbar (~> 1.7)
268
266
  unicode-display_width (>= 2.4.0, < 4.0)
269
- rubocop-ast (1.49.0)
267
+ rubocop-ast (1.49.1)
270
268
  parser (>= 3.3.7.2)
271
269
  prism (~> 1.7)
272
- rubocop-rails (2.34.3)
270
+ rubocop-rails (2.35.0)
273
271
  activesupport (>= 4.2.0)
274
272
  lint_roller (~> 1.1)
275
273
  rack (>= 1.1)
@@ -280,8 +278,8 @@ GEM
280
278
  rubocop (~> 1.81)
281
279
  ruby-filemagic (0.7.3)
282
280
  ruby-progressbar (1.13.0)
283
- rubyzip (3.2.2)
284
- selenium-webdriver (4.40.0)
281
+ rubyzip (3.3.0)
282
+ selenium-webdriver (4.44.0)
285
283
  base64 (~> 0.2)
286
284
  logger (~> 1.4)
287
285
  rexml (~> 3.2, >= 3.2.5)
@@ -293,10 +291,10 @@ GEM
293
291
  unicode-display_width (>= 1.5, < 3.0)
294
292
  unicode_utils (~> 1.4)
295
293
  strings-ansi (0.2.0)
296
- super_diff (0.18.0)
297
- attr_extras (>= 6.2.4)
298
- diff-lcs
299
- patience_diff
294
+ super_diff (0.19.0)
295
+ attr_extras (>= 6.2.4, < 8)
296
+ diff-lcs (~> 1.5)
297
+ patience_diff (~> 1.2)
300
298
  taglib-ruby (1.1.3)
301
299
  tago (0.7.0)
302
300
  telegram-bot-ruby (0.23.0)
@@ -313,6 +311,9 @@ GEM
313
311
  tty-screen (~> 0.8)
314
312
  tzinfo (2.0.6)
315
313
  concurrent-ruby (~> 1.0)
314
+ ultimate_lyrics (0.2.0)
315
+ aranha-parsers (~> 0.26, >= 0.26.2)
316
+ eac_ruby_utils (~> 0.129)
316
317
  unicode-display_width (2.6.0)
317
318
  unicode_utils (1.4.0)
318
319
  uri (1.1.1)
@@ -322,18 +323,18 @@ GEM
322
323
  descendants_tracker (~> 0.0, >= 0.0.3)
323
324
  webrick (1.9.2)
324
325
  websocket (1.2.11)
325
- zeitwerk (2.7.4)
326
+ zeitwerk (2.7.5)
326
327
  zlib (2.1.1)
327
328
 
328
329
  PLATFORMS
329
330
  x86_64-linux-gnu
330
331
 
331
332
  DEPENDENCIES
332
- eac_ruby_gem_support (~> 0.12, >= 0.12.1)
333
- eac_ruby_utils!
333
+ aranha-parsers!
334
+ aranha-selenium!
335
+ eac_ruby_gem_support (~> 0.13)
334
336
  ehbrs-tools!
335
337
  ehbrs_ruby_utils!
336
- ultimate_lyrics!
337
338
 
338
339
  BUNDLED WITH
339
340
  2.7.1
@@ -0,0 +1,73 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Ehbrs
4
+ module Tools
5
+ module Accommodations
6
+ class Runner
7
+ class << self
8
+ # @return [String]
9
+ def organization_name
10
+ module_parent.name.demodulize
11
+ end
12
+ end
13
+
14
+ the_class = self
15
+
16
+ runner_with :help, :output_list do
17
+ desc "Extrai as acomodações de uma página-lista do #{the_class.organization_name}."
18
+ pos_arg :url
19
+ end
20
+
21
+ def run
22
+ run_output
23
+ infov 'Actual count found', list_rows.count
24
+ infov 'Declared count', processor.declared_count
25
+ result, message = counts_result
26
+ send(result, message)
27
+ end
28
+
29
+ protected
30
+
31
+ # @return [Array]
32
+ def counts_result
33
+ if list_rows.count == processor.declared_count
34
+ [:success, 'Ok!']
35
+ else
36
+ [:warn, 'Actual and declared counts are different']
37
+ end
38
+ end
39
+
40
+ # @return [Enumerable<Array<String>>]
41
+ def fields
42
+ self.class.const_get('FIELDS')
43
+ end
44
+
45
+ # @return [Class]
46
+ def processor_class
47
+ [self.class.organization_name, 'Processors', 'List']
48
+ .inject(::EhbrsRubyUtils) { |a, e| a.const_get(e) }
49
+ end
50
+
51
+ # @return [Object]
52
+ def processor_uncached
53
+ processor_class.new(url)
54
+ end
55
+
56
+ # @return [Array<Symbol>]
57
+ def list_columns
58
+ fields.map(&:first)
59
+ end
60
+
61
+ # @return [Array<Object>]
62
+ def list_rows
63
+ processor.accommodations
64
+ end
65
+
66
+ # @return [Addressable::URI]
67
+ def url
68
+ parsed.url.to_uri
69
+ end
70
+ end
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Ehbrs
4
+ module Tools
5
+ class Runner
6
+ class Airbnb
7
+ class Accommodations < ::Ehbrs::Tools::Accommodations::Runner
8
+ FIELDS = [
9
+ [:link, 'Link'],
10
+ [:price, 'Total'],
11
+ [:type, 'Tipo'],
12
+ [:address, 'Endereço'],
13
+ [:review_score, 'Nota'],
14
+ [:review_count, 'Avaliações']
15
+ ].freeze
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Ehbrs
4
+ module Tools
5
+ class Runner
6
+ class Airbnb
7
+ runner_with :help, :subcommands do
8
+ desc 'Utilidades para o site airbnb.com.'
9
+ subcommands
10
+ end
11
+ end
12
+ end
13
+ end
14
+ end
@@ -4,7 +4,7 @@ module Ehbrs
4
4
  module Tools
5
5
  class Runner
6
6
  class Booking
7
- class Accommodations
7
+ class Accommodations < ::Ehbrs::Tools::Accommodations::Runner
8
8
  FIELDS = [
9
9
  [:link, 'Link'],
10
10
  [:price, 'Diárias'],
@@ -16,44 +16,6 @@ module Ehbrs
16
16
  [:review_count, 'Avaliações'],
17
17
  [:unit_title, 'Descrição']
18
18
  ].freeze
19
-
20
- runner_with :help, :output_list do
21
- desc 'Extrai as acomodações de uma página-lista do Booking.'
22
- pos_arg :url
23
- end
24
-
25
- def run
26
- run_output
27
- infov 'Actual count found', list_rows.count
28
- infov 'Declared count', processor.declared_count
29
- if list_rows.count == processor.declared_count
30
- success 'Ok!'
31
- else
32
- fatal_error 'Actual and declared counts are different'
33
- end
34
- end
35
-
36
- protected
37
-
38
- # @return [EhbrsRubyUtils::Booking::Processors::List]
39
- def processor_uncached
40
- ::EhbrsRubyUtils::Booking::Processors::List.new(url)
41
- end
42
-
43
- # @return [Array<Symbol>]
44
- def list_columns
45
- FIELDS.map(&:first)
46
- end
47
-
48
- # @return [Array<Object>]
49
- def list_rows
50
- processor.accommodations
51
- end
52
-
53
- # @return [Addressable::URI]
54
- def url
55
- parsed.url.to_uri
56
- end
57
19
  end
58
20
  end
59
21
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ehbrs
4
4
  module Tools
5
- VERSION = '0.44.3'
5
+ VERSION = '0.45.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ehbrs-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.44.3
4
+ version: 0.45.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esquilo Azul Company
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-02-11 00:00:00.000000000 Z
11
+ date: 2026-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm-tools
@@ -16,34 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.163'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 0.163.6
19
+ version: '0.164'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '0.163'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 0.163.6
26
+ version: '0.164'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: eac_cli
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
31
  - - "~>"
38
32
  - !ruby/object:Gem::Version
39
- version: '0.45'
33
+ version: '0.46'
40
34
  type: :runtime
41
35
  prerelease: false
42
36
  version_requirements: !ruby/object:Gem::Requirement
43
37
  requirements:
44
38
  - - "~>"
45
39
  - !ruby/object:Gem::Version
46
- version: '0.45'
40
+ version: '0.46'
47
41
  - !ruby/object:Gem::Dependency
48
42
  name: eac_fs
49
43
  requirement: !ruby/object:Gem::Requirement
@@ -51,6 +45,9 @@ dependencies:
51
45
  - - "~>"
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0.20'
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: 0.20.2
54
51
  type: :runtime
55
52
  prerelease: false
56
53
  version_requirements: !ruby/object:Gem::Requirement
@@ -58,6 +55,9 @@ dependencies:
58
55
  - - "~>"
59
56
  - !ruby/object:Gem::Version
60
57
  version: '0.20'
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: 0.20.2
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: eac_ruby_base0
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -84,34 +84,28 @@ dependencies:
84
84
  requirements:
85
85
  - - "~>"
86
86
  - !ruby/object:Gem::Version
87
- version: '0.129'
87
+ version: '0.131'
88
88
  type: :runtime
89
89
  prerelease: false
90
90
  version_requirements: !ruby/object:Gem::Requirement
91
91
  requirements:
92
92
  - - "~>"
93
93
  - !ruby/object:Gem::Version
94
- version: '0.129'
94
+ version: '0.131'
95
95
  - !ruby/object:Gem::Dependency
96
96
  name: ehbrs_ruby_utils
97
97
  requirement: !ruby/object:Gem::Requirement
98
98
  requirements:
99
99
  - - "~>"
100
100
  - !ruby/object:Gem::Version
101
- version: '0.48'
102
- - - ">="
103
- - !ruby/object:Gem::Version
104
- version: 0.48.1
101
+ version: '0.49'
105
102
  type: :runtime
106
103
  prerelease: false
107
104
  version_requirements: !ruby/object:Gem::Requirement
108
105
  requirements:
109
106
  - - "~>"
110
107
  - !ruby/object:Gem::Version
111
- version: '0.48'
112
- - - ">="
113
- - !ruby/object:Gem::Version
114
- version: 0.48.1
108
+ version: '0.49'
115
109
  - !ruby/object:Gem::Dependency
116
110
  name: filesize
117
111
  requirement: !ruby/object:Gem::Requirement
@@ -166,20 +160,14 @@ dependencies:
166
160
  requirements:
167
161
  - - "~>"
168
162
  - !ruby/object:Gem::Version
169
- version: '0.12'
170
- - - ">="
171
- - !ruby/object:Gem::Version
172
- version: 0.12.1
163
+ version: '0.13'
173
164
  type: :development
174
165
  prerelease: false
175
166
  version_requirements: !ruby/object:Gem::Requirement
176
167
  requirements:
177
168
  - - "~>"
178
169
  - !ruby/object:Gem::Version
179
- version: '0.12'
180
- - - ">="
181
- - !ruby/object:Gem::Version
182
- version: 0.12.1
170
+ version: '0.13'
183
171
  description:
184
172
  email:
185
173
  executables:
@@ -193,6 +181,7 @@ files:
193
181
  - exe/ehbrs
194
182
  - lib/ehbrs.rb
195
183
  - lib/ehbrs/tools.rb
184
+ - lib/ehbrs/tools/accommodations/runner.rb
196
185
  - lib/ehbrs/tools/application.rb
197
186
  - lib/ehbrs/tools/executables.rb
198
187
  - lib/ehbrs/tools/google/translate/session.rb
@@ -200,6 +189,8 @@ files:
200
189
  - lib/ehbrs/tools/observers/base.rb
201
190
  - lib/ehbrs/tools/observers/with_persistence.rb
202
191
  - lib/ehbrs/tools/runner.rb
192
+ - lib/ehbrs/tools/runner/airbnb.rb
193
+ - lib/ehbrs/tools/runner/airbnb/accommodations.rb
203
194
  - lib/ehbrs/tools/runner/booking.rb
204
195
  - lib/ehbrs/tools/runner/booking/accommodations.rb
205
196
  - lib/ehbrs/tools/runner/cooking_book.rb
@@ -270,7 +261,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
270
261
  requirements:
271
262
  - - ">="
272
263
  - !ruby/object:Gem::Version
273
- version: 2.7.0
264
+ version: '3.2'
274
265
  required_rubygems_version: !ruby/object:Gem::Requirement
275
266
  requirements:
276
267
  - - ">="