coruro-ruby 0.2.0 → 0.3.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: d1636eb84b5cd3b15f89f82c44c29a6b37bc5fc1ee162bbcb315e5d203f33d96
4
- data.tar.gz: 3561bdf90cd90d3e6f17b3cab0bc4663e5123b516124f4a855834a7506bbf7f2
3
+ metadata.gz: 35410c07f4be2bbfb10670dd91911a25cb1fd2c139f399e5edb36b7f52bbc561
4
+ data.tar.gz: 1ea76eb2a6bbdcfcfaa76666f6c731a2bfb6adafe621b49daac44c56543857a7
5
5
  SHA512:
6
- metadata.gz: 2011440906600e90104b50263b5394b6eb9be4d76dbc0b88966ab84afc7cedfb454cc377e6326fe5ca7be1dc220af3334216b786a3edf1a7ea286b3854eb4e20
7
- data.tar.gz: 064f4497aa06561f9b3b7d078e743435e0105312dbb5e64afe91207dcd81d000c99be8a6e414bde6a083ea7f3fff9b973476dc0294ea64b6f582346d58f64b2d
6
+ metadata.gz: 4899953ebfed2373e7cc2429821ae7c454985a06f358a62dca485f03c1c96c080448269b5ecf0bed7d20b999af932dfccfe951b864a93ba11d41af417c454fd8
7
+ data.tar.gz: ae7dbb9fece11a9c2c6bd3eae9c7b4d8b01ec3a9470a169ecac46820156e7acf1476812e41a08a9ee90bf2454e6af524f37b977ef1a689b1cd19c37b370375a6
@@ -1,3 +1,3 @@
1
1
  class Coruro
2
- VERSION="0.2.0"
2
+ VERSION="0.3.0"
3
3
  end
data/lib/coruro.rb CHANGED
@@ -15,7 +15,7 @@ class Coruro
15
15
  case adapter
16
16
  when :mailcatcher
17
17
  self.adapter = MailcatcherAdapter.new(timeout: timeout, config: adapter_config)
18
- self.adapter.start
18
+ self.adapter.start unless self.adapter.up?
19
19
  else
20
20
  raise UnrecognizedAdapterError, adapter
21
21
  end
@@ -28,6 +28,7 @@ class Coruro
28
28
  until adapter.up? || count > 5
29
29
  on_tick.call(count)
30
30
  sleep(1)
31
+ count = count + 1
31
32
  end
32
33
  end
33
34
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coruro-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zee Spencer