ehbrs_ruby_utils 0.44.1 → 0.44.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db886db2d70fa4d7cc1c9369ff182bd21c274d8c0b8247eae700d9bc7e706043
|
4
|
+
data.tar.gz: eec8dd68a2974688cf83c860e4b5da3c2d3babe5eedb64cab88d400571baf7f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69ad185ac44bc714796db991cd6153307ec5c982ebf26f67357d74b23e3e31c5a1010dc64a9150b7b1a5007d1d834aa3003bac1c64a152040a0c3e6711004e2a
|
7
|
+
data.tar.gz: 67df3daf1ccad9ae5e9d3ad7cf510d82b59bce3bbddaba7803bc6bba9d3f0ca68fbef52e5ed848e84c43bd04dfe0db847048df4823ff9605f3b588d0ddc24a0d
|
@@ -10,7 +10,7 @@ module EhbrsRubyUtils
|
|
10
10
|
module Gjt1
|
11
11
|
class Manager
|
12
12
|
include ::Singleton
|
13
|
-
acts_as_abstract :
|
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).
|
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
|
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.
|
4
|
+
version: 0.44.2
|
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-
|
11
|
+
date: 2024-11-04 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.
|
39
|
+
version: '0.24'
|
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.
|
46
|
+
version: '0.24'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: aranha-selenium
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -70,14 +70,14 @@ dependencies:
|
|
70
70
|
requirements:
|
71
71
|
- - "~>"
|
72
72
|
- !ruby/object:Gem::Version
|
73
|
-
version: '0.
|
73
|
+
version: '0.94'
|
74
74
|
type: :runtime
|
75
75
|
prerelease: false
|
76
76
|
version_requirements: !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
78
78
|
- - "~>"
|
79
79
|
- !ruby/object:Gem::Version
|
80
|
-
version: '0.
|
80
|
+
version: '0.94'
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
82
|
name: avm-eac_rails_base0
|
83
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -107,7 +107,7 @@ dependencies:
|
|
107
107
|
version: '3.5'
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 3.5.
|
110
|
+
version: 3.5.4
|
111
111
|
type: :runtime
|
112
112
|
prerelease: false
|
113
113
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -117,7 +117,7 @@ dependencies:
|
|
117
117
|
version: '3.5'
|
118
118
|
- - ">="
|
119
119
|
- !ruby/object:Gem::Version
|
120
|
-
version: 3.5.
|
120
|
+
version: 3.5.4
|
121
121
|
- !ruby/object:Gem::Dependency
|
122
122
|
name: eac_fs
|
123
123
|
requirement: !ruby/object:Gem::Requirement
|
@@ -125,6 +125,9 @@ dependencies:
|
|
125
125
|
- - "~>"
|
126
126
|
- !ruby/object:Gem::Version
|
127
127
|
version: '0.18'
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: 0.18.1
|
128
131
|
type: :runtime
|
129
132
|
prerelease: false
|
130
133
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -132,6 +135,9 @@ dependencies:
|
|
132
135
|
- - "~>"
|
133
136
|
- !ruby/object:Gem::Version
|
134
137
|
version: '0.18'
|
138
|
+
- - ">="
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: 0.18.1
|
135
141
|
- !ruby/object:Gem::Dependency
|
136
142
|
name: eac_rest
|
137
143
|
requirement: !ruby/object:Gem::Requirement
|
@@ -152,14 +158,14 @@ dependencies:
|
|
152
158
|
requirements:
|
153
159
|
- - "~>"
|
154
160
|
- !ruby/object:Gem::Version
|
155
|
-
version: '0.
|
161
|
+
version: '0.123'
|
156
162
|
type: :runtime
|
157
163
|
prerelease: false
|
158
164
|
version_requirements: !ruby/object:Gem::Requirement
|
159
165
|
requirements:
|
160
166
|
- - "~>"
|
161
167
|
- !ruby/object:Gem::Version
|
162
|
-
version: '0.
|
168
|
+
version: '0.123'
|
163
169
|
- !ruby/object:Gem::Dependency
|
164
170
|
name: eac_templates
|
165
171
|
requirement: !ruby/object:Gem::Requirement
|
@@ -167,6 +173,9 @@ dependencies:
|
|
167
173
|
- - "~>"
|
168
174
|
- !ruby/object:Gem::Version
|
169
175
|
version: '0.7'
|
176
|
+
- - ">="
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
version: 0.7.1
|
170
179
|
type: :runtime
|
171
180
|
prerelease: false
|
172
181
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -174,6 +183,9 @@ dependencies:
|
|
174
183
|
- - "~>"
|
175
184
|
- !ruby/object:Gem::Version
|
176
185
|
version: '0.7'
|
186
|
+
- - ">="
|
187
|
+
- !ruby/object:Gem::Version
|
188
|
+
version: 0.7.1
|
177
189
|
- !ruby/object:Gem::Dependency
|
178
190
|
name: inifile
|
179
191
|
requirement: !ruby/object:Gem::Requirement
|