agcod 0.0.2 → 0.0.3

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.
data/README.rdoc CHANGED
@@ -1,6 +1,8 @@
1
1
  = agcod
2
2
 
3
- Description goes here.
3
+ sudo gem install gemcutter
4
+ sudo gem tumble
5
+ sudo gem install agcod
4
6
 
5
7
  == Copyright
6
8
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
data/agcod.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{agcod}
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dan Pickett"]
12
- s.date = %q{2009-10-14}
12
+ s.date = %q{2009-11-05}
13
13
  s.email = %q{dpickett@enlightsolutions.com}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
@@ -56,7 +56,8 @@ module Agcod
56
56
  Errno::EHOSTDOWN,
57
57
  Errno::EHOSTUNREACH
58
58
 
59
- attempt_to_void
59
+ sleep(15)
60
+ attempt_to_void_with_retry
60
61
  end
61
62
  end
62
63
 
@@ -82,6 +83,20 @@ module Agcod
82
83
  end
83
84
  end
84
85
 
86
+ def attempt_to_void_with_retry
87
+ begin
88
+ attempt_to_void
89
+ rescue SocketError,
90
+ Timeout::Error,
91
+ ActiveResource::TimeoutError,
92
+ Errno::ECONNREFUSED,
93
+ Errno::EHOSTDOWN,
94
+ Errno::EHOSTUNREACH
95
+ sleep(15)
96
+ attempt_to_void
97
+ end
98
+ end
99
+
85
100
  def attempt_to_void
86
101
  Agcod::VoidGiftCardCreation.new("request_id" => self.request_id).submit
87
102
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agcod
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Pickett
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-14 00:00:00 -04:00
12
+ date: 2009-11-05 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies: []
15
15