stubby 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/stubby/extensions/smtp.rb +7 -11
  2. metadata +1 -1
@@ -12,22 +12,18 @@ module Extensions
12
12
  HTTPI.post("http://#{STUBBY_MASTER}:9000/stubs/transient/activate.json",
13
13
  options: MultiJson.dump(smtp_stub), key: "_smtp")
14
14
 
15
- while true
16
- begin
17
- MailCatcher.run! smtp_ip: STUBBY_MASTER,
18
- smtp_port: 25,
19
- http_ip: STUBBY_MASTER,
20
- http_port: 9001,
21
- daemon: false
22
- rescue
23
- puts $!
24
- end
25
- end
15
+ MailCatcher.run! smtp_ip: STUBBY_MASTER,
16
+ smtp_port: 25,
17
+ http_ip: STUBBY_MASTER,
18
+ http_port: 9001,
19
+ daemon: false
26
20
  }
27
21
 
28
22
  trap("INT", important: true){
29
23
  stop!
30
24
  }
25
+
26
+ sleep
31
27
  end
32
28
 
33
29
  def smtp_stub
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stubby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: