eac_ruby_utils 0.82.0 → 0.85.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eac_ruby_utils/context.rb +2 -0
- data/lib/eac_ruby_utils/patches/hash/to_struct.rb +10 -0
- data/lib/eac_ruby_utils/patches/pathname/if_exist.rb +10 -0
- data/lib/eac_ruby_utils/patches/pathname/readlink_r.rb +11 -0
- data/lib/eac_ruby_utils/rspec/stub_speaker.rb +39 -0
- data/lib/eac_ruby_utils/speaker/receiver.rb +7 -0
- data/lib/eac_ruby_utils/version.rb +1 -1
- metadata +14 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48f30b222067edfdcdc7d6a3656ceb73f0c8780d5a35830b9f0e5c8051a44b6b
|
4
|
+
data.tar.gz: f461e7f88ad988a472df1141a232e125e0ed29b9532e3c74992a5fad5f81867b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be9046e777c84bf2680f519e1aafe808c974eba21ba285cb2fa8ec6e4598973f14e959a2432077810b90cfcaca4f195baf82bda18ea3b8acfdf647ce6487b3ed
|
7
|
+
data.tar.gz: 6c9cdc45780225347171b3c4362f04af79b22f4fef2c1080d38d97001c1aace0226e111d0b02cb7f5e28d58acd2cea5d698457d57b07c0b2c8242f5af914b7ef
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_utils/speaker/receiver'
|
4
|
+
|
5
|
+
module EacRubyUtils
|
6
|
+
module Rspec
|
7
|
+
class StubSpeaker
|
8
|
+
include ::EacRubyUtils::Speaker::Receiver
|
9
|
+
|
10
|
+
def error(_string); end
|
11
|
+
|
12
|
+
def fatal_error(string)
|
13
|
+
error(string)
|
14
|
+
raise('Fatal error')
|
15
|
+
end
|
16
|
+
|
17
|
+
# @see EacRubyUtils::Speaker::Sender.input
|
18
|
+
def input(_question, _options = {})
|
19
|
+
raise 'Input requested'
|
20
|
+
end
|
21
|
+
|
22
|
+
def info(_string); end
|
23
|
+
|
24
|
+
def infom(_string); end
|
25
|
+
|
26
|
+
def infov(*_args); end
|
27
|
+
|
28
|
+
def out(_string = ''); end
|
29
|
+
|
30
|
+
def puts(_string = ''); end
|
31
|
+
|
32
|
+
def success(_string); end
|
33
|
+
|
34
|
+
def title(_string); end
|
35
|
+
|
36
|
+
def warn(_string); end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -5,8 +5,15 @@ require 'eac_ruby_utils/abstract_methods'
|
|
5
5
|
module EacRubyUtils
|
6
6
|
module Speaker
|
7
7
|
module Receiver
|
8
|
+
extend ::ActiveSupport::Concern
|
8
9
|
extend ::EacRubyUtils::AbstractMethods
|
9
10
|
|
11
|
+
module ClassMethods
|
12
|
+
def on(*args, &block)
|
13
|
+
::EacRubyUtils::Speaker.context.on(new(*args), &block)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
10
17
|
def error(_string)
|
11
18
|
raise_abstract_method(__method__)
|
12
19
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eac_ruby_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.85.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esquilo Azul Company
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,14 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '4
|
19
|
+
version: '4'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '7'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: '4
|
29
|
+
version: '4'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '7'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: addressable
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -172,6 +178,7 @@ files:
|
|
172
178
|
- lib/eac_ruby_utils/patches/hash.rb
|
173
179
|
- lib/eac_ruby_utils/patches/hash/options_consumer.rb
|
174
180
|
- lib/eac_ruby_utils/patches/hash/sym_keys_hash.rb
|
181
|
+
- lib/eac_ruby_utils/patches/hash/to_struct.rb
|
175
182
|
- lib/eac_ruby_utils/patches/kernel.rb
|
176
183
|
- lib/eac_ruby_utils/patches/kernel/nyi.rb
|
177
184
|
- lib/eac_ruby_utils/patches/module.rb
|
@@ -198,8 +205,10 @@ files:
|
|
198
205
|
- lib/eac_ruby_utils/patches/object/to_pathname.rb
|
199
206
|
- lib/eac_ruby_utils/patches/pathname.rb
|
200
207
|
- lib/eac_ruby_utils/patches/pathname/basename_sub.rb
|
208
|
+
- lib/eac_ruby_utils/patches/pathname/if_exist.rb
|
201
209
|
- lib/eac_ruby_utils/patches/pathname/mkpath_s.rb
|
202
210
|
- lib/eac_ruby_utils/patches/pathname/parent_n.rb
|
211
|
+
- lib/eac_ruby_utils/patches/pathname/readlink_r.rb
|
203
212
|
- lib/eac_ruby_utils/patches/regexp.rb
|
204
213
|
- lib/eac_ruby_utils/patches/regexp/if_match.rb
|
205
214
|
- lib/eac_ruby_utils/patches/regexp/to_parser.rb
|
@@ -216,6 +225,7 @@ files:
|
|
216
225
|
- lib/eac_ruby_utils/rspec/setup.rb
|
217
226
|
- lib/eac_ruby_utils/rspec/setup/conditionals.rb
|
218
227
|
- lib/eac_ruby_utils/rspec/setup_manager.rb
|
228
|
+
- lib/eac_ruby_utils/rspec/stub_speaker.rb
|
219
229
|
- lib/eac_ruby_utils/ruby.rb
|
220
230
|
- lib/eac_ruby_utils/ruby/command.rb
|
221
231
|
- lib/eac_ruby_utils/ruby/on_clean_environment.rb
|