ehbrs_ruby_utils 0.44.1 → 0.44.3

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: 84117287c2474b8e4afd1bb62995ca8ae8d474e3d71c68a274c77a6426f3a969
4
- data.tar.gz: e66e87a6ca223f273a30944428bf5807656a32ca02fe93fd6ac9aee966e042d8
3
+ metadata.gz: c173ad62457bc36c5d7b1c958cae73c2e7232d51a305b31328b0e5547a61ee5f
4
+ data.tar.gz: 6da9dffbbbc8c0c3eb9a40bb7b71cbe671ea4037b523fe02c257bf96533f777f
5
5
  SHA512:
6
- metadata.gz: a151fde138411b7474943f6f107a929d469d46f51d0587313ee50e0ebb01b40112ab8635c7fcca95aab9432478864a57488ad31004b068a4cecf1e4f1cb0fe46
7
- data.tar.gz: 80725bd8cf232be1aca943c3e0fb834528296a6d86fb57bcf82a92bf30737ee61b3bd7bcf4565d0e5425d7368a90396d20e3c8688d9d71005e2fbd2375c138b5
6
+ metadata.gz: bf249492a50e264cf335f37218311459f649a6c48548d345f9dbb0fbb7af257caa054547e78c73d92ddf57ebad539128c7e6fe5e686831aa946af5d3e3a76372
7
+ data.tar.gz: 69ebaf62f67d957cbce34a90e71859ce21a8a881915e734f021dcffac7263aa0bb927327c032787dc1e1be97d2337d1b024579b35507a6fb5438c524aedb944a
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'eac_fs/core_ext'
3
4
  require 'eac_ruby_utils/core_ext'
4
5
 
5
6
  module EhbrsRubyUtils
@@ -22,7 +22,8 @@ module EhbrsRubyUtils
22
22
  field :address, :string, testid_xpath('address', 'text()')
23
23
  field :distance, :distance, testid_xpath('distance', 'text()')
24
24
  field :review_score, :float_optional, testid_xpath('review-score', 'div[1]/text()')
25
- field :review_count, :integer, testid_xpath('review-score', 'div[2]/div[2]/text()')
25
+ field :review_count, :integer_comma_optional,
26
+ testid_xpath('review-score', 'div[2]/div[2]/text()')
26
27
  field :unit_title, :string_recursive, testid_xpath('recommended-units',
27
28
  '/*[@role="link"]')
28
29
 
@@ -10,7 +10,7 @@ module EhbrsRubyUtils
10
10
  module Gjt1
11
11
  class Manager
12
12
  include ::Singleton
13
- acts_as_abstract :bga_usernam, :bga_password, :whatsapp_recipient
13
+ acts_as_abstract :bga_username, :bga_password, :whatsapp_recipient
14
14
 
15
15
  %w[beginning ending].each do |type|
16
16
  # @param table [EhbrsRubyUtils::Bga::Table]
@@ -56,10 +56,6 @@ module EhbrsRubyUtils
56
56
 
57
57
  private
58
58
 
59
- def mudslide_run(*args)
60
- ::EhbrsRubyUtils::Executables.mudslide.command(*args).system!
61
- end
62
-
63
59
  # @return [void]
64
60
  def whatsapp_formatter_send(formatter_class, formatter_owner)
65
61
  formatter = formatter_class.new(formatter_owner)
@@ -37,7 +37,14 @@ module EhbrsRubyUtils
37
37
 
38
38
  # @return [void]
39
39
  def mudslide_run(*args)
40
- ::EhbrsRubyUtils::Executables.mudslide.command(*args).system!
40
+ r = ::EhbrsRubyUtils::Executables.mudslide.command(*args).execute
41
+ raise_mudslide_run_error r, 'exit code not zero ' unless r.fetch(:exit_code).zero?
42
+ raise_mudslide_run_error r, 'blank stdout' if r.fetch(:stdout).blank?
43
+ raise_mudslide_run_error r, 'qrcode shown' if r.fetch(:stdout).include?('▄▄▄▄▄▄▄▄▄')
44
+ end
45
+
46
+ def raise_mudslide_run_error(result, reason)
47
+ raise result.merge(reason: reason).pretty_inspect
41
48
  end
42
49
  end
43
50
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EhbrsRubyUtils
4
- VERSION = '0.44.1'
4
+ VERSION = '0.44.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ehbrs_ruby_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.44.1
4
+ version: 0.44.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo H. Bogoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-05 00:00:00.000000000 Z
11
+ date: 2024-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha
@@ -36,14 +36,14 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '0.22'
39
+ version: '0.25'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '0.22'
46
+ version: '0.25'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: aranha-selenium
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -70,14 +70,20 @@ dependencies:
70
70
  requirements:
71
71
  - - "~>"
72
72
  - !ruby/object:Gem::Version
73
- version: '0.92'
73
+ version: '0.94'
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: 0.94.1
74
77
  type: :runtime
75
78
  prerelease: false
76
79
  version_requirements: !ruby/object:Gem::Requirement
77
80
  requirements:
78
81
  - - "~>"
79
82
  - !ruby/object:Gem::Version
80
- version: '0.92'
83
+ version: '0.94'
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: 0.94.1
81
87
  - !ruby/object:Gem::Dependency
82
88
  name: avm-eac_rails_base0
83
89
  requirement: !ruby/object:Gem::Requirement
@@ -107,7 +113,7 @@ dependencies:
107
113
  version: '3.5'
108
114
  - - ">="
109
115
  - !ruby/object:Gem::Version
110
- version: 3.5.2
116
+ version: 3.5.4
111
117
  type: :runtime
112
118
  prerelease: false
113
119
  version_requirements: !ruby/object:Gem::Requirement
@@ -117,7 +123,7 @@ dependencies:
117
123
  version: '3.5'
118
124
  - - ">="
119
125
  - !ruby/object:Gem::Version
120
- version: 3.5.2
126
+ version: 3.5.4
121
127
  - !ruby/object:Gem::Dependency
122
128
  name: eac_fs
123
129
  requirement: !ruby/object:Gem::Requirement
@@ -125,6 +131,9 @@ dependencies:
125
131
  - - "~>"
126
132
  - !ruby/object:Gem::Version
127
133
  version: '0.18'
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: 0.18.1
128
137
  type: :runtime
129
138
  prerelease: false
130
139
  version_requirements: !ruby/object:Gem::Requirement
@@ -132,6 +141,9 @@ dependencies:
132
141
  - - "~>"
133
142
  - !ruby/object:Gem::Version
134
143
  version: '0.18'
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: 0.18.1
135
147
  - !ruby/object:Gem::Dependency
136
148
  name: eac_rest
137
149
  requirement: !ruby/object:Gem::Requirement
@@ -152,14 +164,14 @@ dependencies:
152
164
  requirements:
153
165
  - - "~>"
154
166
  - !ruby/object:Gem::Version
155
- version: '0.122'
167
+ version: '0.124'
156
168
  type: :runtime
157
169
  prerelease: false
158
170
  version_requirements: !ruby/object:Gem::Requirement
159
171
  requirements:
160
172
  - - "~>"
161
173
  - !ruby/object:Gem::Version
162
- version: '0.122'
174
+ version: '0.124'
163
175
  - !ruby/object:Gem::Dependency
164
176
  name: eac_templates
165
177
  requirement: !ruby/object:Gem::Requirement
@@ -167,6 +179,9 @@ dependencies:
167
179
  - - "~>"
168
180
  - !ruby/object:Gem::Version
169
181
  version: '0.7'
182
+ - - ">="
183
+ - !ruby/object:Gem::Version
184
+ version: 0.7.1
170
185
  type: :runtime
171
186
  prerelease: false
172
187
  version_requirements: !ruby/object:Gem::Requirement
@@ -174,6 +189,9 @@ dependencies:
174
189
  - - "~>"
175
190
  - !ruby/object:Gem::Version
176
191
  version: '0.7'
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: 0.7.1
177
195
  - !ruby/object:Gem::Dependency
178
196
  name: inifile
179
197
  requirement: !ruby/object:Gem::Requirement