geocerts 0.0.13 → 0.0.14

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.13
1
+ 0.0.14
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{geocerts}
8
- s.version = "0.0.13"
8
+ s.version = "0.0.14"
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."]
@@ -4,7 +4,7 @@ module GeoCerts
4
4
  module Certificates # :nodoc:
5
5
 
6
6
  ELEMENTS = <<-CERTIFICATE
7
- element 'order-id', :as => :order_id, :type => Integer
7
+ element 'order-id', :as => :order_id
8
8
  element 'geotrust-order-id', :as => :geotrust_order_id
9
9
  element :status
10
10
  element :certificate
@@ -18,7 +18,7 @@ module GeoCerts
18
18
 
19
19
  elements :event do
20
20
  element 'event-id', :as => :id, :type => Integer
21
- element 'order-id', :as => :order_id, :type => Integer
21
+ element 'order-id', :as => :order_id
22
22
  element :name
23
23
  element 'created-at', :as => :created_at, :type => DateTime
24
24
  end
@@ -37,7 +37,7 @@ module GeoCerts
37
37
 
38
38
  elements :event do
39
39
  element 'event-id', :as => :id, :type => Integer
40
- element 'order-id', :as => :order_id, :type => Integer
40
+ element 'order-id', :as => :order_id
41
41
  element :name
42
42
  element 'created-at', :as => :created_at, :type => DateTime
43
43
  end
@@ -118,6 +118,7 @@ module GeoCerts
118
118
  class RequestFailed < AllowableExceptionWithResponse; end
119
119
  class RequestTimeout < Exception; end
120
120
  class ConnectionError < Exception; end
121
+ class ServerError < ExceptionWithResponse; end
121
122
 
122
123
  # :startdoc:
123
124
 
@@ -21,7 +21,7 @@ class GeoCerts::CertificateTest < Test::Unit::TestCase
21
21
  should 'properly populate the certificate data' do
22
22
  exclusively_mocked_request :get, '/certificates.xml', :response => Responses::Certificate::All do
23
23
  certificate = GeoCerts::Certificate.all.first
24
- assert_equal(422815, certificate.order_id)
24
+ assert_equal('422815', certificate.order_id)
25
25
  assert_equal('93520', certificate.geotrust_order_id)
26
26
  assert_equal('Renewed', certificate.status)
27
27
  assert_equal('www.example.com', certificate.common_name)
@@ -81,7 +81,7 @@ class GeoCerts::CertificateTest < Test::Unit::TestCase
81
81
  should 'properly populate the certificate data' do
82
82
  exclusively_mocked_request :get, '/orders/422815/certificate.xml', :response => Responses::Certificate::Certificate do
83
83
  certificate = GeoCerts::Certificate.find(422815)
84
- assert_equal(422815, certificate.order_id)
84
+ assert_equal('422815', certificate.order_id)
85
85
  assert_equal('93520', certificate.geotrust_order_id)
86
86
  assert_equal('Renewed', certificate.status)
87
87
  assert_equal('www.example.com', certificate.common_name)
@@ -131,7 +131,7 @@ class GeoCerts::CertificateTest < Test::Unit::TestCase
131
131
  should 'properly populate the certificate data' do
132
132
  exclusively_mocked_request :get, '/orders/422815/certificate.xml', :response => Responses::Certificate::Certificate do
133
133
  certificate = GeoCerts::Certificate.find_by_order_id(422815)
134
- assert_equal(422815, certificate.order_id)
134
+ assert_equal('422815', certificate.order_id)
135
135
  assert_equal('93520', certificate.geotrust_order_id)
136
136
  assert_equal('Renewed', certificate.status)
137
137
  assert_equal('www.example.com', certificate.common_name)
@@ -24,7 +24,7 @@ class GeoCerts::EventTest < Test::Unit::TestCase
24
24
  exclusively_mocked_request :get, '/events.xml', :response => Responses::Event::All do
25
25
  event = GeoCerts::Event.all.first
26
26
  assert_equal(795652, event.id)
27
- assert_equal(422800, event.order_id)
27
+ assert_equal('422800', event.order_id)
28
28
  assert_equal('Approver Confirmed', event.name)
29
29
  assert_equal(DateTime.parse('2009-08-12T16:38:14-04:00'), event.created_at)
30
30
  end
@@ -70,7 +70,7 @@ class GeoCerts::EventTest < Test::Unit::TestCase
70
70
  exclusively_mocked_request :get, '/orders/422815/events.xml', :response => Responses::Event::Order do
71
71
  event = GeoCerts::Event.find(422815).first
72
72
  assert_equal(795652, event.id)
73
- assert_equal(422815, event.order_id)
73
+ assert_equal('422815', event.order_id)
74
74
  assert_equal('Approver Confirmed', event.name)
75
75
  assert_equal(DateTime.parse('2009-08-12T16:38:14-04:00'), event.created_at)
76
76
  end
@@ -132,7 +132,7 @@ class GeoCerts::EventTest < Test::Unit::TestCase
132
132
  exclusively_mocked_request :get, '/orders/422815/events.xml', :response => Responses::Event::Order do
133
133
  event = GeoCerts::Event.find_by_order_id(422815).first
134
134
  assert_equal(795652, event.id)
135
- assert_equal(422815, event.order_id)
135
+ assert_equal('422815', event.order_id)
136
136
  assert_equal('Approver Confirmed', event.name)
137
137
  assert_equal(DateTime.parse('2009-08-12T16:38:14-04:00'), event.created_at)
138
138
  end
@@ -21,7 +21,7 @@ class GeoCerts::OrderTest < Test::Unit::TestCase
21
21
  should 'properly populate the order data' do
22
22
  exclusively_mocked_request :get, '/orders.xml', :response => Responses::Order::All do
23
23
  order = GeoCerts::Order.all.first
24
- assert_equal(422815, order.id)
24
+ assert_equal('422815', order.id)
25
25
  assert_equal('srv02.wavepath.com', order.domain)
26
26
  assert_equal('93520', order.geotrust_order_id)
27
27
  assert_equal('Complete', order.status_major)
@@ -78,7 +78,7 @@ class GeoCerts::OrderTest < Test::Unit::TestCase
78
78
  should 'properly populate the order data' do
79
79
  exclusively_mocked_request :get, "/orders/422815.xml", :response => Responses::Order::Order do
80
80
  order = GeoCerts::Order.find(422815)
81
- assert_equal(422815, order.id)
81
+ assert_equal('422815', order.id)
82
82
  assert_equal('srv02.wavepath.com', order.domain)
83
83
  assert_equal('93520', order.geotrust_order_id)
84
84
  assert_equal('Complete', order.status_major)
@@ -125,7 +125,7 @@ class GeoCerts::OrderTest < Test::Unit::TestCase
125
125
  should 'properly populate the order data' do
126
126
  exclusively_mocked_request :get, "/orders/422815.xml", :response => Responses::Order::Order do
127
127
  order = GeoCerts::Order.find_by_id(422815)
128
- assert_equal(422815, order.id)
128
+ assert_equal('422815', order.id)
129
129
  assert_equal('srv02.wavepath.com', order.domain)
130
130
  assert_equal('93520', order.geotrust_order_id)
131
131
  assert_equal('Complete', order.status_major)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 13
9
- version: 0.0.13
8
+ - 14
9
+ version: 0.0.14
10
10
  platform: ruby
11
11
  authors:
12
12
  - GeoCerts, Inc.