eac_ruby_utils 0.83.0 → 0.84.0
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: fe70166b1c7ab7701947e23296770c81623de9468b35db56dd56cb170c82aaea
|
4
|
+
data.tar.gz: e2a691d4f517604d700b18f44ed5068cb226e94bf6ec5b861015de3a44a86c56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6aa220366d7d011386ba49d49578aa769bdbe55e727aa391a5de5b2af7c1a564ee38435d2cdd9eb320d580e1cbc320c2bf2c4d7fc4229db0413e4c38d69434d2
|
7
|
+
data.tar.gz: 8dc484964808a092679ad9b221d565a5831f591ef4587fa01e3a030ac306d98206ff028d91c0277bb437b2153dd1a327601b91cb4a0de8c84f5faa6841a9ccc7
|
@@ -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,7 +1,7 @@
|
|
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.84.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esquilo Azul Company
|
@@ -223,6 +223,7 @@ files:
|
|
223
223
|
- lib/eac_ruby_utils/rspec/setup.rb
|
224
224
|
- lib/eac_ruby_utils/rspec/setup/conditionals.rb
|
225
225
|
- lib/eac_ruby_utils/rspec/setup_manager.rb
|
226
|
+
- lib/eac_ruby_utils/rspec/stub_speaker.rb
|
226
227
|
- lib/eac_ruby_utils/ruby.rb
|
227
228
|
- lib/eac_ruby_utils/ruby/command.rb
|
228
229
|
- lib/eac_ruby_utils/ruby/on_clean_environment.rb
|