specjour 2.0.0.rc4 → 2.0.0.rc5

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
  SHA1:
3
- metadata.gz: 61c4d8827570f18da229414cdb4f14866631b8de
4
- data.tar.gz: f94548d40d81380a2cf4c5f205943e4a8278a791
3
+ metadata.gz: 6aa7f71797519b99faa0b75f1d0b5841603a63d1
4
+ data.tar.gz: 060dda338445ded3033eecb2b1506f6feaf7d0d3
5
5
  SHA512:
6
- metadata.gz: d672ab4cf9dbfdba270ace3d54161449206cbea694266864f451b7661c2dd547f721f4f2699bb0aeff8386de9cc820c14c960dba4a3518ceda42a2eb160d1157
7
- data.tar.gz: 3bdcdac401e7d96d550bd3b3109431fc48c81792b6dcb6fbf32f0439c45aee71942791faf5666931b98c6da86450a5f0ccbd24b7e737582a8a62f9540cac77d3
6
+ metadata.gz: aa9d82ec1fc7359f424777b0122ad9b798de1040a18a2ba57f72ba5e5fb37cc3dce9f60eebbd59f11461fdf6c824176cb4e27a4edbc3c9bfcb9c8f7c19ab7db4
7
+ data.tar.gz: 296ba51c95549b3343d9d027ef946be23386d09c26be5e826b2f99a9d615ce6d2ce45e4dfb7e2b284a8dcc5781d764cd4bd33a6da886dca175f7983c717dc30e
data/lib/specjour.rb CHANGED
@@ -32,7 +32,7 @@ module Specjour
32
32
 
33
33
  autoload :RSpec, 'specjour/rspec'
34
34
 
35
- VERSION ||= "2.0.0.rc4"
35
+ VERSION ||= "2.0.0.rc5"
36
36
  HOOKS_PATH ||= "./.specjour/hooks.rb"
37
37
  PROGRAM_NAME ||= $PROGRAM_NAME # keep a reference of the original program name
38
38
  Time = Time.dup
@@ -7,7 +7,7 @@ module Specjour
7
7
  attr_reader :uri, :retries
8
8
  attr_writer :socket
9
9
 
10
- def_delegators :socket, :flush, :close, :closed?, :gets, :puts, :each, :eof?, :tty?
10
+ def_delegators :socket, :flush, :close, :closed?, :each, :eof?, :tty?
11
11
 
12
12
  def self.wrap(established_connection)
13
13
  host, port = established_connection.peeraddr.values_at(3,1)
@@ -23,6 +23,14 @@ module Specjour
23
23
 
24
24
  alias to_str to_s
25
25
 
26
+ def gets(*args)
27
+ debug "#{__method__.inspect} called with #{args.inspect}"
28
+ end
29
+
30
+ def puts(*args)
31
+ debug "#{__method__.inspect} called with #{args.inspect}"
32
+ end
33
+
26
34
  def connect
27
35
  debug "connecting to socket #{host}:#{port}"
28
36
  timeout { connect_socket }
@@ -13,13 +13,13 @@ module Specjour
13
13
 
14
14
  def before_suite
15
15
  ::RSpec.configuration.instance_eval do
16
- run_hooks_with(@before_suite_hooks, ::RSpec::Core::SuiteHookContext.new)
16
+ run_suite_hooks("a `before(:suite)` hook", @before_suite_hooks)
17
17
  end
18
18
  end
19
19
 
20
20
  def after_suite
21
21
  ::RSpec.configuration.instance_eval do
22
- run_hooks_with(@after_suite_hooks, ::RSpec::Core::SuiteHookContext.new)
22
+ run_suite_hooks("an `after(:suite)` hook", @after_suite_hooks)
23
23
  end
24
24
  end
25
25
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specjour
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.rc4
4
+ version: 2.0.0.rc5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sandro Turriate
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-13 00:00:00.000000000 Z
11
+ date: 2018-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dnssd