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 +3 -1
- data/VERSION +1 -1
- data/agcod.gemspec +2 -2
- data/lib/agcod/create_gift_card.rb +16 -1
- metadata +2 -2
data/README.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
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.
|
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-
|
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
|
-
|
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.
|
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-
|
12
|
+
date: 2009-11-05 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|