geocerts 0.0.17 → 0.0.18
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.18
|
data/geocerts.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{geocerts}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.18"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["GeoCerts, Inc."]
|
12
|
-
s.date = %q{2010-04-
|
12
|
+
s.date = %q{2010-04-16}
|
13
13
|
s.description = %q{A Ruby library for interfacing with the GeoCerts REST API}
|
14
14
|
s.email = %q{sslsupport@geocerts.com}
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/geo_certs/api_object.rb
CHANGED
@@ -2,6 +2,8 @@ module GeoCerts
|
|
2
2
|
|
3
3
|
class ApiObject # :nodoc:
|
4
4
|
|
5
|
+
attr_accessor :response_parameters
|
6
|
+
|
5
7
|
def initialize(attributes = {}, &block)
|
6
8
|
update_attributes(attributes)
|
7
9
|
yield(self) if block_given?
|
@@ -97,6 +99,7 @@ module GeoCerts
|
|
97
99
|
def store_exception_errors_and_warnings(exception)
|
98
100
|
self.warnings = exception.warnings if exception.respond_to?(:warnings)
|
99
101
|
self.errors = exception.errors if exception.respond_to?(:errors)
|
102
|
+
self.response_parameters = exception.parameters if exception.respond_to?(:parameters)
|
100
103
|
end
|
101
104
|
|
102
105
|
def update_attributes(attributes) # :nodoc:
|
@@ -18,8 +18,6 @@ module GeoCerts
|
|
18
18
|
element :organization
|
19
19
|
element 'organizational-unit', :as => :organizational_unit
|
20
20
|
element :country
|
21
|
-
element 'approver-email', :as => :approver_email
|
22
|
-
element 'reissue-email', :as => :reissue_email
|
23
21
|
element :trial
|
24
22
|
element :url
|
25
23
|
element 'dns-names', :as => :sans
|
data/lib/geo_certs/exceptions.rb
CHANGED
@@ -59,6 +59,14 @@ module GeoCerts
|
|
59
59
|
@warnings ||= []
|
60
60
|
end
|
61
61
|
|
62
|
+
def parameters
|
63
|
+
@parameters ||= {}
|
64
|
+
end
|
65
|
+
|
66
|
+
def parameters=(value)
|
67
|
+
@parameters = value
|
68
|
+
end
|
69
|
+
|
62
70
|
def response=(response) # :nodoc:
|
63
71
|
@response = response
|
64
72
|
|
@@ -92,6 +100,7 @@ module GeoCerts
|
|
92
100
|
[errors_and_warnings['errors']['warning']].compact.flatten.each do |error|
|
93
101
|
self.warnings << GeoCerts::Warning.new(:code => error['code'], :message => error['message'])
|
94
102
|
end
|
103
|
+
self.parameters = errors_and_warnings['errors']['parameters']
|
95
104
|
end
|
96
105
|
|
97
106
|
def decode(content_encoding, body)
|
@@ -8,7 +8,7 @@ Server: Mongrel 1.1.3
|
|
8
8
|
Status: 200 OK
|
9
9
|
Cache-Control: no-cache
|
10
10
|
Content-Type: application/xml; charset=utf-8
|
11
|
-
Content-Length:
|
11
|
+
Content-Length: 6071
|
12
12
|
Vary: Accept-Encoding
|
13
13
|
Connection: close
|
14
14
|
|
@@ -66,8 +66,6 @@ aWNhdGUgQXV0aG9yaXR5MQ0wCwYDVQQDEwRDUkwxMBoGA1UdEAQTMBGBDzIwMTgw
|
|
66
66
|
<organization>GeoCerts</organization>
|
67
67
|
<organizational-unit>Internet</organizational-unit>
|
68
68
|
<country>US</country>
|
69
|
-
<approver-email>ssladmin@example.com</approver-email>
|
70
|
-
<reissue-email>test@example.com</reissue-email>
|
71
69
|
<trial type="boolean">false</trial>
|
72
70
|
<url>https://api-test.geocerts.com/1/orders/422815/certificate.xml</url>
|
73
71
|
<dns-names></dns-names>
|
@@ -124,8 +122,6 @@ A4GBAFjOKer89961zgK5F7WF0bnj4JXMJTENAKaSbn+2kmOeUJXRmm/kEd5jhW6Y
|
|
124
122
|
<organization>srv02.wavepath.com</organization>
|
125
123
|
<organizational-unit>Domain Control Validated - QuickSSL Premium(R)</organizational-unit>
|
126
124
|
<country>US</country>
|
127
|
-
<approver-email>ssladmin@wavepath.com</approver-email>
|
128
|
-
<reissue-email>brooks.smith@geocerts.com</reissue-email>
|
129
125
|
<trial type="boolean">false</trial>
|
130
126
|
<url>https://api-test.geocerts.com/1/orders/422816/certificate.xml</url>
|
131
127
|
<dns-names></dns-names>
|
@@ -138,7 +134,7 @@ Server: Mongrel 1.1.3
|
|
138
134
|
Status: 200 OK
|
139
135
|
Cache-Control: no-cache
|
140
136
|
Content-Type: application/xml; charset=utf-8
|
141
|
-
Content-Length:
|
137
|
+
Content-Length: 2980
|
142
138
|
Vary: Accept-Encoding
|
143
139
|
Connection: close
|
144
140
|
|
@@ -195,8 +191,6 @@ aWNhdGUgQXV0aG9yaXR5MQ0wCwYDVQQDEwRDUkwxMBoGA1UdEAQTMBGBDzIwMTgw
|
|
195
191
|
<organization>GeoCerts</organization>
|
196
192
|
<organizational-unit>Internet</organizational-unit>
|
197
193
|
<country>US</country>
|
198
|
-
<approver-email>ssladmin@example.com</approver-email>
|
199
|
-
<reissue-email>test@example.com</reissue-email>
|
200
194
|
<trial type="boolean">false</trial>
|
201
195
|
<url>https://api-test.geocerts.com/1/orders/422815/certificate.xml</url>
|
202
196
|
<dns-names></dns-names>
|
@@ -31,8 +31,6 @@ class GeoCerts::CertificateTest < Test::Unit::TestCase
|
|
31
31
|
assert_equal('US', certificate.country)
|
32
32
|
assert_equal('GeoCerts', certificate.organization)
|
33
33
|
assert_equal('Internet', certificate.organizational_unit)
|
34
|
-
assert_equal('ssladmin@example.com',certificate.approver_email)
|
35
|
-
assert_equal('test@example.com', certificate.reissue_email)
|
36
34
|
assert_equal(DateTime.parse('2009-08-11T19:28:18-04:00'), certificate.start_at)
|
37
35
|
assert_equal(DateTime.parse('2009-08-20T00:59:16-04:00'), certificate.end_at)
|
38
36
|
assert_match(%r{/orders/422815/certificate\.xml$}, certificate.url)
|
@@ -91,8 +89,6 @@ class GeoCerts::CertificateTest < Test::Unit::TestCase
|
|
91
89
|
assert_equal('US', certificate.country)
|
92
90
|
assert_equal('GeoCerts', certificate.organization)
|
93
91
|
assert_equal('Internet', certificate.organizational_unit)
|
94
|
-
assert_equal('ssladmin@example.com',certificate.approver_email)
|
95
|
-
assert_equal('test@example.com', certificate.reissue_email)
|
96
92
|
assert_equal(DateTime.parse('2009-08-11T19:28:18-04:00'), certificate.start_at)
|
97
93
|
assert_equal(DateTime.parse('2009-08-20T00:59:16-04:00'), certificate.end_at)
|
98
94
|
assert_match(%r{/orders/422815/certificate\.xml$}, certificate.url)
|
@@ -141,8 +137,6 @@ class GeoCerts::CertificateTest < Test::Unit::TestCase
|
|
141
137
|
assert_equal('US', certificate.country)
|
142
138
|
assert_equal('GeoCerts', certificate.organization)
|
143
139
|
assert_equal('Internet', certificate.organizational_unit)
|
144
|
-
assert_equal('ssladmin@example.com',certificate.approver_email)
|
145
|
-
assert_equal('test@example.com', certificate.reissue_email)
|
146
140
|
assert_equal(DateTime.parse('2009-08-11T19:28:18-04:00'), certificate.start_at)
|
147
141
|
assert_equal(DateTime.parse('2009-08-20T00:59:16-04:00'), certificate.end_at)
|
148
142
|
assert_match(%r{/orders/422815/certificate\.xml$}, certificate.url)
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 18
|
9
|
+
version: 0.0.18
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- GeoCerts, Inc.
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-04-
|
17
|
+
date: 2010-04-16 00:00:00 -04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|