geocerts 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +6 -0
- data/LICENSE +20 -0
- data/README.rdoc +71 -0
- data/Rakefile +70 -0
- data/VERSION +1 -0
- data/autotest/discover.rb +39 -0
- data/geocerts.gemspec +144 -0
- data/lib/geo_certs.rb +57 -0
- data/lib/geo_certs/agreement.rb +18 -0
- data/lib/geo_certs/api.rb +29 -0
- data/lib/geo_certs/api_object.rb +111 -0
- data/lib/geo_certs/certificate.rb +88 -0
- data/lib/geo_certs/collection.rb +12 -0
- data/lib/geo_certs/csr.rb +31 -0
- data/lib/geo_certs/email.rb +8 -0
- data/lib/geo_certs/endpoints/agreements.rb +23 -0
- data/lib/geo_certs/endpoints/certificates.rb +73 -0
- data/lib/geo_certs/endpoints/events.rb +56 -0
- data/lib/geo_certs/endpoints/orders.rb +181 -0
- data/lib/geo_certs/endpoints/products.rb +30 -0
- data/lib/geo_certs/errors.rb +30 -0
- data/lib/geo_certs/event.rb +67 -0
- data/lib/geo_certs/exceptions.rb +124 -0
- data/lib/geo_certs/hash_extension.rb +50 -0
- data/lib/geo_certs/order.rb +369 -0
- data/lib/geo_certs/order/administrator.rb +23 -0
- data/lib/geo_certs/order/contact.rb +30 -0
- data/lib/geo_certs/order/extended_validation_approver.rb +23 -0
- data/lib/geo_certs/order/organization.rb +39 -0
- data/lib/geo_certs/order/renewal_information.rb +31 -0
- data/lib/geo_certs/parsers/order_parser.rb +8 -0
- data/lib/geo_certs/product.rb +67 -0
- data/test/config/initializers/_remote_tests.rb +15 -0
- data/test/config/initializers/fakeweb.rb +2 -0
- data/test/config/initializers/geocerts.rb +13 -0
- data/test/config/initializers/responses.rb +3 -0
- data/test/config/test_credentials.example.yml +2 -0
- data/test/factories.rb +15 -0
- data/test/fixtures/responses.rb +80 -0
- data/test/fixtures/responses/agreement.rb +136 -0
- data/test/fixtures/responses/certificate.rb +227 -0
- data/test/fixtures/responses/event.rb +60 -0
- data/test/fixtures/responses/order.rb +272 -0
- data/test/fixtures/responses/product.rb +77 -0
- data/test/integrations/agreement_test.rb +40 -0
- data/test/integrations/api_test.rb +33 -0
- data/test/integrations/certificate_test.rb +195 -0
- data/test/integrations/event_test.rb +167 -0
- data/test/integrations/order_test.rb +510 -0
- data/test/integrations/product_test.rb +72 -0
- data/test/test_helper.rb +68 -0
- data/test/units/certificate_test.rb +21 -0
- data/test/units/collection_test.rb +27 -0
- data/test/units/csr_test.rb +27 -0
- data/test/units/geo_certs_test.rb +19 -0
- data/test/units/order/administrator_test.rb +24 -0
- data/test/units/order/extended_validation_approver_test.rb +24 -0
- data/test/units/order/organization_test.rb +0 -0
- data/test/units/order/renewal_information_test.rb +36 -0
- data/test/units/order_test.rb +59 -0
- data/test/units/product_test.rb +21 -0
- metadata +220 -0
@@ -0,0 +1,72 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class GeoCerts::ProductTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
context 'GeoCerts::Product (using the API)' do
|
6
|
+
|
7
|
+
context 'all' do
|
8
|
+
|
9
|
+
should 'return a collection of GeoCerts::Products' do
|
10
|
+
managed_server_request :get, '/products.xml', :response => Responses::Product::All do
|
11
|
+
products = GeoCerts::Product.all
|
12
|
+
assert_kind_of(GeoCerts::Collection, products)
|
13
|
+
assert products.all? { |product| product.kind_of?(GeoCerts::Product) }
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
should 'return 11 products' do
|
18
|
+
exclusively_mocked_request :get, '/products.xml', :response => Responses::Product::All do
|
19
|
+
assert_equal(11, GeoCerts::Product.all.size)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
should 'properly populate the products' do
|
24
|
+
exclusively_mocked_request :get, '/products.xml', :response => Responses::Product::All do
|
25
|
+
product = GeoCerts::Product.all.first
|
26
|
+
assert_equal('QuickSSL', product.name)
|
27
|
+
assert_equal('Q', product.sku)
|
28
|
+
assert_equal(6, product.max_years)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
|
34
|
+
context 'find' do
|
35
|
+
|
36
|
+
should 'return a GeoCerts::Product by SKU' do
|
37
|
+
managed_server_request :get, '/products.xml', :response => Responses::Product::All do
|
38
|
+
assert_equal('Q', GeoCerts::Product.find('Q').sku)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
should 'raise a GeoCerts::ResourceNotFound exception' do
|
43
|
+
managed_server_request :get, '/products.xml', :response => Responses::Product::All do
|
44
|
+
assert_responds_with_exception(GeoCerts::ResourceNotFound) do
|
45
|
+
GeoCerts::Product.find('BADSKU')
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
51
|
+
|
52
|
+
context 'find_by_sku' do
|
53
|
+
|
54
|
+
should 'return a GeoCerts::Product by SKU' do
|
55
|
+
managed_server_request :get, '/products.xml', :response => Responses::Product::All do
|
56
|
+
assert_equal('Q', GeoCerts::Product.find_by_sku('Q').sku)
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
should 'raise a GeoCerts::ResourceNotFound exception' do
|
61
|
+
managed_server_request :get, '/products.xml', :response => Responses::Product::All do
|
62
|
+
assert_responds_without_exception(GeoCerts::ResourceNotFound) do
|
63
|
+
assert_nil GeoCerts::Product.find_by_sku('BADSKU')
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
end
|
69
|
+
|
70
|
+
end
|
71
|
+
|
72
|
+
end
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
2
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
3
|
+
require 'rubygems'
|
4
|
+
|
5
|
+
require 'geo_certs'
|
6
|
+
|
7
|
+
require 'test/unit'
|
8
|
+
require 'uri'
|
9
|
+
require 'shoulda'
|
10
|
+
require 'factory_girl'
|
11
|
+
require 'factories'
|
12
|
+
require 'mocha'
|
13
|
+
|
14
|
+
# Load any initializers for testing.
|
15
|
+
Dir[File.dirname(__FILE__) + '/config/initializers/**/*.rb'].sort.each do |initializer|
|
16
|
+
require initializer
|
17
|
+
end
|
18
|
+
|
19
|
+
class Test::Unit::TestCase
|
20
|
+
|
21
|
+
def managed_server_request(method, path, options = {}, &block)
|
22
|
+
case path
|
23
|
+
when String
|
24
|
+
uri = URI.parse(GeoCerts::API::ENDPOINT.gsub(':version', '1') + path)
|
25
|
+
uri.user = GeoCerts.partner_id
|
26
|
+
uri.password = GeoCerts.api_token
|
27
|
+
FakeWeb.register_uri(method, uri.to_s, options)
|
28
|
+
when Regexp
|
29
|
+
FakeWeb.register_uri(method, path, options)
|
30
|
+
end unless use_remote_server?
|
31
|
+
|
32
|
+
yield
|
33
|
+
ensure
|
34
|
+
FakeWeb.clean_registry
|
35
|
+
end
|
36
|
+
|
37
|
+
def exclusively_mocked_request(method, url, options = {}, &block)
|
38
|
+
managed_server_request(method, url, options, &block) unless use_remote_server?
|
39
|
+
end
|
40
|
+
|
41
|
+
def assert_responds_with_exception(exception, *error_codes, &block)
|
42
|
+
raised = false
|
43
|
+
begin
|
44
|
+
yield
|
45
|
+
rescue exception => e
|
46
|
+
return unless e.respond_to?(:errors)
|
47
|
+
error_codes.each do |code|
|
48
|
+
assert e.errors.any? { |error| error.code == code }, "No error was returned with Code #{code}\n#{e.errors.inspect}"
|
49
|
+
end
|
50
|
+
raised = true
|
51
|
+
rescue Exception => e
|
52
|
+
flunk "A #{e} exception was thrown, rather than the #{exception} exception expected"
|
53
|
+
end
|
54
|
+
flunk "A #{exception} exception failed to be thrown" unless raised
|
55
|
+
end
|
56
|
+
|
57
|
+
def assert_responds_without_exception(exception, *error_codes, &block)
|
58
|
+
begin
|
59
|
+
yield
|
60
|
+
assert true # no exceptions were raised
|
61
|
+
rescue exception => e
|
62
|
+
flunk "A #{exception} exception was unexpectedly raised"
|
63
|
+
rescue Exception
|
64
|
+
assert true # it wasn't the watched for exception.
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class CertificateTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
context 'Certificate' do
|
6
|
+
|
7
|
+
context 'trial' do
|
8
|
+
|
9
|
+
should 'be true when set to "true"' do
|
10
|
+
assert_kind_of(TrueClass, GeoCerts::Certificate.new(:trial => 'true').trial)
|
11
|
+
end
|
12
|
+
|
13
|
+
should 'be false' do
|
14
|
+
assert_kind_of(FalseClass, GeoCerts::Certificate.new(:trial => 'false').trial)
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class CollectionTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
context 'GeoCerts::Collection' do
|
6
|
+
|
7
|
+
should 'carry a start_at attribute' do
|
8
|
+
collection = GeoCerts::Collection.new
|
9
|
+
time = Time.now
|
10
|
+
assert_respond_to(collection, :start_at=)
|
11
|
+
assert_respond_to(collection, :start_at)
|
12
|
+
collection.start_at = time
|
13
|
+
assert_equal(time, collection.start_at)
|
14
|
+
end
|
15
|
+
|
16
|
+
should 'carry an end_at attribute' do
|
17
|
+
collection = GeoCerts::Collection.new
|
18
|
+
time = Time.now
|
19
|
+
assert_respond_to(collection, :end_at=)
|
20
|
+
assert_respond_to(collection, :end_at)
|
21
|
+
collection.end_at = time
|
22
|
+
assert_equal(time, collection.end_at)
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class CSRTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
context 'CSR' do
|
6
|
+
|
7
|
+
[ :body,
|
8
|
+
:common_name,
|
9
|
+
:city,
|
10
|
+
:state,
|
11
|
+
:country,
|
12
|
+
:organization,
|
13
|
+
:organizational_unit ].each do |method|
|
14
|
+
|
15
|
+
should "respond to #{method}" do
|
16
|
+
assert_respond_to(GeoCerts::CSR.new, method)
|
17
|
+
end
|
18
|
+
|
19
|
+
should "properly set the #{method}" do
|
20
|
+
assert_equal('test', GeoCerts::CSR.new(method => 'test').__send__(method))
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class GeoCertsTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
context 'GeoCerts' do
|
6
|
+
|
7
|
+
should 'use the sandbox host' do
|
8
|
+
GeoCerts.sandbox = true
|
9
|
+
assert_equal('sandbox.geocerts.com', GeoCerts.host)
|
10
|
+
end
|
11
|
+
|
12
|
+
should 'use the production host' do
|
13
|
+
GeoCerts.sandbox = false
|
14
|
+
assert_equal('www.geocerts.com', GeoCerts.host)
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class GeoCerts::Order::AdministratorTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
context 'Order::Administrator' do
|
6
|
+
|
7
|
+
[ :email,
|
8
|
+
:first_name,
|
9
|
+
:last_name,
|
10
|
+
:phone ].each do |method|
|
11
|
+
|
12
|
+
should "respond to #{method}" do
|
13
|
+
assert_respond_to(GeoCerts::Order::Administrator.new, method)
|
14
|
+
end
|
15
|
+
|
16
|
+
should "properly set the #{method}" do
|
17
|
+
assert_equal('test', GeoCerts::Order::Administrator.new(method => 'test').__send__(method))
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class GeoCerts::Order::ExtendedValidationApproverTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
context 'Order::ExtendedValidationApprover' do
|
6
|
+
|
7
|
+
[ :email,
|
8
|
+
:first_name,
|
9
|
+
:last_name,
|
10
|
+
:phone ].each do |method|
|
11
|
+
|
12
|
+
should "respond to #{method}" do
|
13
|
+
assert_respond_to(GeoCerts::Order::ExtendedValidationApprover.new, method)
|
14
|
+
end
|
15
|
+
|
16
|
+
should "properly set the #{method}" do
|
17
|
+
assert_equal('test', GeoCerts::Order::ExtendedValidationApprover.new(method => 'test').__send__(method))
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
File without changes
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class GeoCerts::Order::RenewalInformationTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
context 'GeoCerts::Order::RenewalInformation' do
|
6
|
+
|
7
|
+
[ :months,
|
8
|
+
:serial_number,
|
9
|
+
:order_id,
|
10
|
+
:expires_at ].each do |method|
|
11
|
+
|
12
|
+
should "respond to #{method}" do
|
13
|
+
assert_respond_to(GeoCerts::Order::RenewalInformation.new, method)
|
14
|
+
end
|
15
|
+
|
16
|
+
should "properly set the #{method}" do
|
17
|
+
assert_equal('test', GeoCerts::Order::RenewalInformation.new(method => 'test').__send__(method))
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
|
22
|
+
should 'respond to indicator' do
|
23
|
+
assert_respond_to(GeoCerts::Order::RenewalInformation.new, :indicator)
|
24
|
+
end
|
25
|
+
|
26
|
+
should 'set the indicator to true' do
|
27
|
+
assert_kind_of TrueClass, GeoCerts::Order::RenewalInformation.new(:indicator => 'true').indicator
|
28
|
+
end
|
29
|
+
|
30
|
+
should 'set the indicator to false' do
|
31
|
+
assert_kind_of FalseClass, GeoCerts::Order::RenewalInformation.new(:indicator => 'false').indicator
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class OrderTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
context 'Order' do
|
6
|
+
|
7
|
+
should 'generate a collection of GeoCerts::Warnings' do
|
8
|
+
order = Factory.build(:order, {
|
9
|
+
:warnings => {
|
10
|
+
:warning => [
|
11
|
+
{:code => '123', :message => 'testing'}
|
12
|
+
]}
|
13
|
+
})
|
14
|
+
assert !order.warnings.empty?
|
15
|
+
assert_equal 1, order.warnings.size
|
16
|
+
assert order.warnings.all? { |warning| warning.kind_of?(GeoCerts::Warning) }
|
17
|
+
end
|
18
|
+
|
19
|
+
should 'accept a String for a CSR and assume it to be a CSR body when matches "-----BEGIN CERTIFICATE REQUEST-----"' do
|
20
|
+
body = Factory.attributes_for(:csr)[:body]
|
21
|
+
order = Factory.build(:order, :csr => body)
|
22
|
+
assert_equal(body, order.csr.body)
|
23
|
+
end
|
24
|
+
|
25
|
+
should 'accept a String for a CSR and assume it to be a CSR body when matches "-----BEGIN NEW CERTIFICATE REQUEST-----"' do
|
26
|
+
body = "-----BEGIN NEW CERTIFICATE REQUEST-----\nABCD1234\n-----END NEW CERTIFICATE REQUEST-----\n"
|
27
|
+
order = Factory.build(:order, :csr => body)
|
28
|
+
assert_equal(body, order.csr.body)
|
29
|
+
end
|
30
|
+
|
31
|
+
should 'raise an ArgumentError for an unrecognized CSR body string' do
|
32
|
+
assert_raise(ArgumentError) do
|
33
|
+
Factory.build(:order, :csr => 'BADBODY')
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
should 'accept a GeoCerts::CSR for a CSR' do
|
38
|
+
csr = Factory.build(:csr)
|
39
|
+
order = Factory.build(:order, :csr => csr)
|
40
|
+
assert_equal(csr, order.csr)
|
41
|
+
end
|
42
|
+
|
43
|
+
should 'accept a String for a Product and assume it to be a product SKU' do
|
44
|
+
sku = Factory.attributes_for(:product)[:sku]
|
45
|
+
GeoCerts::Product.stubs(:find).with(sku).returns(Factory.build(:product, :sku => sku))
|
46
|
+
order = Factory.build(:order, :product => sku)
|
47
|
+
assert_not_nil(order.product)
|
48
|
+
assert_equal(sku, order.product.sku)
|
49
|
+
end
|
50
|
+
|
51
|
+
should 'accept a GeoCerts::Product for a Product' do
|
52
|
+
product = Factory.build(:product)
|
53
|
+
order = Factory.build(:order, :product => product)
|
54
|
+
assert_equal(product, order.product)
|
55
|
+
end
|
56
|
+
|
57
|
+
end
|
58
|
+
|
59
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class ProductTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
context 'Product' do
|
6
|
+
|
7
|
+
[ :name, :sku, :max_years ].each do |method|
|
8
|
+
|
9
|
+
should "respond to #{method}" do
|
10
|
+
assert_respond_to(GeoCerts::Product.new, method)
|
11
|
+
end
|
12
|
+
|
13
|
+
should "properly set the #{method}" do
|
14
|
+
assert_equal('test', GeoCerts::Product.new(method => 'test').__send__(method))
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
metadata
ADDED
@@ -0,0 +1,220 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: geocerts
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 0
|
8
|
+
- 11
|
9
|
+
version: 0.0.11
|
10
|
+
platform: ruby
|
11
|
+
authors:
|
12
|
+
- GeoCerts, Inc.
|
13
|
+
autorequire:
|
14
|
+
bindir: bin
|
15
|
+
cert_chain: []
|
16
|
+
|
17
|
+
date: 2010-04-14 00:00:00 -04:00
|
18
|
+
default_executable:
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: relax
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 0
|
29
|
+
- 1
|
30
|
+
- 2
|
31
|
+
version: 0.1.2
|
32
|
+
type: :runtime
|
33
|
+
version_requirements: *id001
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: shoulda
|
36
|
+
prerelease: false
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
segments:
|
42
|
+
- 2
|
43
|
+
- 10
|
44
|
+
- 2
|
45
|
+
version: 2.10.2
|
46
|
+
type: :development
|
47
|
+
version_requirements: *id002
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: factory_girl
|
50
|
+
prerelease: false
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
segments:
|
56
|
+
- 1
|
57
|
+
- 2
|
58
|
+
- 2
|
59
|
+
version: 1.2.2
|
60
|
+
type: :development
|
61
|
+
version_requirements: *id003
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: mocha
|
64
|
+
prerelease: false
|
65
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
segments:
|
70
|
+
- 0
|
71
|
+
- 9
|
72
|
+
- 5
|
73
|
+
version: 0.9.5
|
74
|
+
type: :development
|
75
|
+
version_requirements: *id004
|
76
|
+
- !ruby/object:Gem::Dependency
|
77
|
+
name: fakeweb
|
78
|
+
prerelease: false
|
79
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
segments:
|
84
|
+
- 1
|
85
|
+
- 2
|
86
|
+
- 2
|
87
|
+
version: 1.2.2
|
88
|
+
type: :development
|
89
|
+
version_requirements: *id005
|
90
|
+
description: A Ruby library for interfacing with the GeoCerts REST API
|
91
|
+
email: sslsupport@geocerts.com
|
92
|
+
executables: []
|
93
|
+
|
94
|
+
extensions: []
|
95
|
+
|
96
|
+
extra_rdoc_files:
|
97
|
+
- LICENSE
|
98
|
+
- README.rdoc
|
99
|
+
files:
|
100
|
+
- .document
|
101
|
+
- .gitignore
|
102
|
+
- LICENSE
|
103
|
+
- README.rdoc
|
104
|
+
- Rakefile
|
105
|
+
- VERSION
|
106
|
+
- autotest/discover.rb
|
107
|
+
- geocerts.gemspec
|
108
|
+
- lib/geo_certs.rb
|
109
|
+
- lib/geo_certs/agreement.rb
|
110
|
+
- lib/geo_certs/api.rb
|
111
|
+
- lib/geo_certs/api_object.rb
|
112
|
+
- lib/geo_certs/certificate.rb
|
113
|
+
- lib/geo_certs/collection.rb
|
114
|
+
- lib/geo_certs/csr.rb
|
115
|
+
- lib/geo_certs/email.rb
|
116
|
+
- lib/geo_certs/endpoints/agreements.rb
|
117
|
+
- lib/geo_certs/endpoints/certificates.rb
|
118
|
+
- lib/geo_certs/endpoints/events.rb
|
119
|
+
- lib/geo_certs/endpoints/orders.rb
|
120
|
+
- lib/geo_certs/endpoints/products.rb
|
121
|
+
- lib/geo_certs/errors.rb
|
122
|
+
- lib/geo_certs/event.rb
|
123
|
+
- lib/geo_certs/exceptions.rb
|
124
|
+
- lib/geo_certs/hash_extension.rb
|
125
|
+
- lib/geo_certs/order.rb
|
126
|
+
- lib/geo_certs/order/administrator.rb
|
127
|
+
- lib/geo_certs/order/contact.rb
|
128
|
+
- lib/geo_certs/order/extended_validation_approver.rb
|
129
|
+
- lib/geo_certs/order/organization.rb
|
130
|
+
- lib/geo_certs/order/renewal_information.rb
|
131
|
+
- lib/geo_certs/parsers/order_parser.rb
|
132
|
+
- lib/geo_certs/product.rb
|
133
|
+
- test/config/initializers/_remote_tests.rb
|
134
|
+
- test/config/initializers/fakeweb.rb
|
135
|
+
- test/config/initializers/geocerts.rb
|
136
|
+
- test/config/initializers/responses.rb
|
137
|
+
- test/config/test_credentials.example.yml
|
138
|
+
- test/factories.rb
|
139
|
+
- test/fixtures/responses.rb
|
140
|
+
- test/fixtures/responses/agreement.rb
|
141
|
+
- test/fixtures/responses/certificate.rb
|
142
|
+
- test/fixtures/responses/event.rb
|
143
|
+
- test/fixtures/responses/order.rb
|
144
|
+
- test/fixtures/responses/product.rb
|
145
|
+
- test/integrations/agreement_test.rb
|
146
|
+
- test/integrations/api_test.rb
|
147
|
+
- test/integrations/certificate_test.rb
|
148
|
+
- test/integrations/event_test.rb
|
149
|
+
- test/integrations/order_test.rb
|
150
|
+
- test/integrations/product_test.rb
|
151
|
+
- test/test_helper.rb
|
152
|
+
- test/units/certificate_test.rb
|
153
|
+
- test/units/collection_test.rb
|
154
|
+
- test/units/csr_test.rb
|
155
|
+
- test/units/geo_certs_test.rb
|
156
|
+
- test/units/order/administrator_test.rb
|
157
|
+
- test/units/order/extended_validation_approver_test.rb
|
158
|
+
- test/units/order/organization_test.rb
|
159
|
+
- test/units/order/renewal_information_test.rb
|
160
|
+
- test/units/order_test.rb
|
161
|
+
- test/units/product_test.rb
|
162
|
+
has_rdoc: true
|
163
|
+
homepage: http://www.geocerts.com/
|
164
|
+
licenses: []
|
165
|
+
|
166
|
+
post_install_message:
|
167
|
+
rdoc_options:
|
168
|
+
- --charset=UTF-8
|
169
|
+
require_paths:
|
170
|
+
- lib
|
171
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
172
|
+
requirements:
|
173
|
+
- - ">="
|
174
|
+
- !ruby/object:Gem::Version
|
175
|
+
segments:
|
176
|
+
- 0
|
177
|
+
version: "0"
|
178
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
179
|
+
requirements:
|
180
|
+
- - ">="
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
segments:
|
183
|
+
- 0
|
184
|
+
version: "0"
|
185
|
+
requirements: []
|
186
|
+
|
187
|
+
rubyforge_project:
|
188
|
+
rubygems_version: 1.3.6
|
189
|
+
signing_key:
|
190
|
+
specification_version: 3
|
191
|
+
summary: A Ruby library for interfacing with the GeoCerts REST API
|
192
|
+
test_files:
|
193
|
+
- test/config/initializers/_remote_tests.rb
|
194
|
+
- test/config/initializers/fakeweb.rb
|
195
|
+
- test/config/initializers/geocerts.rb
|
196
|
+
- test/config/initializers/responses.rb
|
197
|
+
- test/factories.rb
|
198
|
+
- test/fixtures/responses/agreement.rb
|
199
|
+
- test/fixtures/responses/certificate.rb
|
200
|
+
- test/fixtures/responses/event.rb
|
201
|
+
- test/fixtures/responses/order.rb
|
202
|
+
- test/fixtures/responses/product.rb
|
203
|
+
- test/fixtures/responses.rb
|
204
|
+
- test/integrations/agreement_test.rb
|
205
|
+
- test/integrations/api_test.rb
|
206
|
+
- test/integrations/certificate_test.rb
|
207
|
+
- test/integrations/event_test.rb
|
208
|
+
- test/integrations/order_test.rb
|
209
|
+
- test/integrations/product_test.rb
|
210
|
+
- test/test_helper.rb
|
211
|
+
- test/units/certificate_test.rb
|
212
|
+
- test/units/collection_test.rb
|
213
|
+
- test/units/csr_test.rb
|
214
|
+
- test/units/geo_certs_test.rb
|
215
|
+
- test/units/order/administrator_test.rb
|
216
|
+
- test/units/order/extended_validation_approver_test.rb
|
217
|
+
- test/units/order/organization_test.rb
|
218
|
+
- test/units/order/renewal_information_test.rb
|
219
|
+
- test/units/order_test.rb
|
220
|
+
- test/units/product_test.rb
|