ehbrs_ruby_utils 0.44.0 → 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: 478c8b2a993c8da6facb45e2809c7210b0eaad73ad1379aa9653aba242ab7bb6
4
- data.tar.gz: d9edd9c0400135a534d1f45077635fa6399d0b536925a4da02a5f9784730a937
3
+ metadata.gz: db886db2d70fa4d7cc1c9369ff182bd21c274d8c0b8247eae700d9bc7e706043
4
+ data.tar.gz: eec8dd68a2974688cf83c860e4b5da3c2d3babe5eedb64cab88d400571baf7f2
5
5
  SHA512:
6
- metadata.gz: 31f4b15a837c816399ce97cf3cd89bcd0563c2c2b6f4e415221d95b8c50b260efc91489bc7b68e0341a9711238f8247b6e958b44c52f13959fb8eef5dcd5d1f7
7
- data.tar.gz: e6cc85c4297ddf52ac3f6ba0b0ee5f1c6227b0a17eea3b44977dd91ed180b48b67c1e6956c02932dd17c9f631ca6fe759ff6c30f985be726eed0d2c8bb6ae55e
6
+ metadata.gz: 69ad185ac44bc714796db991cd6153307ec5c982ebf26f67357d74b23e3e31c5a1010dc64a9150b7b1a5007d1d834aa3003bac1c64a152040a0c3e6711004e2a
7
+ data.tar.gz: 67df3daf1ccad9ae5e9d3ad7cf510d82b59bce3bbddaba7803bc6bba9d3f0ca68fbef52e5ed848e84c43bd04dfe0db847048df4823ff9605f3b588d0ddc24a0d
@@ -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
@@ -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.0'
4
+ VERSION = '0.44.2'
5
5
  end
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/instances/base'
3
+ require 'avm/eac_rails_base0/instances/base'
4
4
  require 'avm/result'
5
5
  require 'eac_ruby_utils/core_ext'
6
6
 
7
7
  module EhbrsRubyUtils
8
8
  module WebUtils
9
- class Instance < ::Avm::Instances::Base
9
+ class Instance < ::Avm::EacRailsBase0::Instances::Base
10
10
  class Finances
11
11
  class Bills
12
12
  class Consume
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/instances/base'
3
+ require 'avm/eac_rails_base0/instances/base'
4
4
  require 'eac_ruby_utils/core_ext'
5
5
 
6
6
  module EhbrsRubyUtils
7
7
  module WebUtils
8
- class Instance < ::Avm::Instances::Base
8
+ class Instance < ::Avm::EacRailsBase0::Instances::Base
9
9
  class Finances
10
10
  class Bills
11
11
  class Consume
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/instances/base'
3
+ require 'avm/eac_rails_base0/instances/base'
4
4
  require 'eac_ruby_utils/core_ext'
5
5
 
6
6
  module EhbrsRubyUtils
7
7
  module WebUtils
8
- class Instance < ::Avm::Instances::Base
8
+ class Instance < ::Avm::EacRailsBase0::Instances::Base
9
9
  class Finances
10
10
  class Bills
11
11
  require_sub __FILE__
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/instances/base'
3
+ require 'avm/eac_rails_base0/instances/base'
4
4
  require 'eac_ruby_utils/core_ext'
5
5
 
6
6
  module EhbrsRubyUtils
7
7
  module WebUtils
8
- class Instance < ::Avm::Instances::Base
8
+ class Instance < ::Avm::EacRailsBase0::Instances::Base
9
9
  class Finances
10
10
  require_sub __FILE__
11
11
  enable_simple_cache
@@ -3,11 +3,11 @@
3
3
  require 'eac_rest/api'
4
4
  require 'eac_ruby_utils/core_ext'
5
5
  require 'ehbrs_ruby_utils/web_utils/request_error'
6
- require 'avm/instances/base'
6
+ require 'avm/eac_rails_base0/instances/base'
7
7
 
8
8
  module EhbrsRubyUtils
9
9
  module WebUtils
10
- class Instance < ::Avm::Instances::Base
10
+ class Instance < ::Avm::EacRailsBase0::Instances::Base
11
11
  class HttpRequest
12
12
  enable_method_class
13
13
  enable_simple_cache
@@ -2,11 +2,11 @@
2
2
 
3
3
  require 'eac_rest/api'
4
4
  require 'eac_ruby_utils/core_ext'
5
- require 'avm/instances/base'
5
+ require 'avm/eac_rails_base0/instances/base'
6
6
 
7
7
  module EhbrsRubyUtils
8
8
  module WebUtils
9
- class Instance < ::Avm::Instances::Base
9
+ class Instance < ::Avm::EacRailsBase0::Instances::Base
10
10
  require_sub __FILE__, require_dependency: true
11
11
 
12
12
  # @return [EacRest::Api]
@@ -19,7 +19,7 @@ module EhbrsRubyUtils
19
19
  end
20
20
 
21
21
  def root_url
22
- read_entry(::Avm::Instances::EntryKeys::WEB_URL)
22
+ web_url
23
23
  end
24
24
  end
25
25
  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.0
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-06-09 00:00:00.000000000 Z
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.22'
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.22'
46
+ version: '0.24'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: aranha-selenium
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -51,6 +51,9 @@ dependencies:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
53
  version: '0.11'
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: 0.11.1
54
57
  type: :runtime
55
58
  prerelease: false
56
59
  version_requirements: !ruby/object:Gem::Requirement
@@ -58,20 +61,43 @@ dependencies:
58
61
  - - "~>"
59
62
  - !ruby/object:Gem::Version
60
63
  version: '0.11'
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: 0.11.1
61
67
  - !ruby/object:Gem::Dependency
62
68
  name: avm
63
69
  requirement: !ruby/object:Gem::Requirement
64
70
  requirements:
65
71
  - - "~>"
66
72
  - !ruby/object:Gem::Version
67
- version: '0.92'
73
+ version: '0.94'
68
74
  type: :runtime
69
75
  prerelease: false
70
76
  version_requirements: !ruby/object:Gem::Requirement
71
77
  requirements:
72
78
  - - "~>"
73
79
  - !ruby/object:Gem::Version
74
- version: '0.92'
80
+ version: '0.94'
81
+ - !ruby/object:Gem::Dependency
82
+ name: avm-eac_rails_base0
83
+ requirement: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - "~>"
86
+ - !ruby/object:Gem::Version
87
+ version: '0.11'
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: 0.11.1
91
+ type: :runtime
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: '0.11'
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: 0.11.1
75
101
  - !ruby/object:Gem::Dependency
76
102
  name: dentaku
77
103
  requirement: !ruby/object:Gem::Requirement
@@ -81,7 +107,7 @@ dependencies:
81
107
  version: '3.5'
82
108
  - - ">="
83
109
  - !ruby/object:Gem::Version
84
- version: 3.5.2
110
+ version: 3.5.4
85
111
  type: :runtime
86
112
  prerelease: false
87
113
  version_requirements: !ruby/object:Gem::Requirement
@@ -91,21 +117,27 @@ dependencies:
91
117
  version: '3.5'
92
118
  - - ">="
93
119
  - !ruby/object:Gem::Version
94
- version: 3.5.2
120
+ version: 3.5.4
95
121
  - !ruby/object:Gem::Dependency
96
122
  name: eac_fs
97
123
  requirement: !ruby/object:Gem::Requirement
98
124
  requirements:
99
125
  - - "~>"
100
126
  - !ruby/object:Gem::Version
101
- version: '0.17'
127
+ version: '0.18'
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: 0.18.1
102
131
  type: :runtime
103
132
  prerelease: false
104
133
  version_requirements: !ruby/object:Gem::Requirement
105
134
  requirements:
106
135
  - - "~>"
107
136
  - !ruby/object:Gem::Version
108
- version: '0.17'
137
+ version: '0.18'
138
+ - - ">="
139
+ - !ruby/object:Gem::Version
140
+ version: 0.18.1
109
141
  - !ruby/object:Gem::Dependency
110
142
  name: eac_rest
111
143
  requirement: !ruby/object:Gem::Requirement
@@ -126,14 +158,14 @@ dependencies:
126
158
  requirements:
127
159
  - - "~>"
128
160
  - !ruby/object:Gem::Version
129
- version: '0.122'
161
+ version: '0.123'
130
162
  type: :runtime
131
163
  prerelease: false
132
164
  version_requirements: !ruby/object:Gem::Requirement
133
165
  requirements:
134
166
  - - "~>"
135
167
  - !ruby/object:Gem::Version
136
- version: '0.122'
168
+ version: '0.123'
137
169
  - !ruby/object:Gem::Dependency
138
170
  name: eac_templates
139
171
  requirement: !ruby/object:Gem::Requirement
@@ -141,6 +173,9 @@ dependencies:
141
173
  - - "~>"
142
174
  - !ruby/object:Gem::Version
143
175
  version: '0.7'
176
+ - - ">="
177
+ - !ruby/object:Gem::Version
178
+ version: 0.7.1
144
179
  type: :runtime
145
180
  prerelease: false
146
181
  version_requirements: !ruby/object:Gem::Requirement
@@ -148,6 +183,9 @@ dependencies:
148
183
  - - "~>"
149
184
  - !ruby/object:Gem::Version
150
185
  version: '0.7'
186
+ - - ">="
187
+ - !ruby/object:Gem::Version
188
+ version: 0.7.1
151
189
  - !ruby/object:Gem::Dependency
152
190
  name: inifile
153
191
  requirement: !ruby/object:Gem::Requirement
@@ -228,14 +266,14 @@ dependencies:
228
266
  requirements:
229
267
  - - "~>"
230
268
  - !ruby/object:Gem::Version
231
- version: '0.9'
269
+ version: '0.10'
232
270
  type: :development
233
271
  prerelease: false
234
272
  version_requirements: !ruby/object:Gem::Requirement
235
273
  requirements:
236
274
  - - "~>"
237
275
  - !ruby/object:Gem::Version
238
- version: '0.9'
276
+ version: '0.10'
239
277
  description:
240
278
  email:
241
279
  executables: []