aus_post_api 1.0.0
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.
- checksums.yaml +7 -0
- data/.gitignore +2 -0
- data/.rspec +1 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +37 -0
- data/LICENSE.txt +21 -0
- data/README.md +147 -0
- data/Rakefile +32 -0
- data/aus_post_api.gemspec +14 -0
- data/lib/aus_post_api.rb +7 -0
- data/lib/aus_post_api/dce.rb +15 -0
- data/lib/aus_post_api/dce/endpoint.rb +80 -0
- data/lib/aus_post_api/dce/validate_australian_address.rb +12 -0
- data/lib/aus_post_api/endpoint.rb +66 -0
- data/lib/aus_post_api/endpoint/attributes.rb +54 -0
- data/lib/aus_post_api/pac.rb +83 -0
- data/lib/aus_post_api/pac/country.rb +9 -0
- data/lib/aus_post_api/pac/domestic_letter_size.rb +9 -0
- data/lib/aus_post_api/pac/domestic_letter_thickness.rb +9 -0
- data/lib/aus_post_api/pac/domestic_letter_weight.rb +9 -0
- data/lib/aus_post_api/pac/domestic_parcel_size.rb +9 -0
- data/lib/aus_post_api/pac/domestic_parcel_type.rb +9 -0
- data/lib/aus_post_api/pac/domestic_parcel_weight.rb +9 -0
- data/lib/aus_post_api/pac/domestic_postcode_search.rb +12 -0
- data/lib/aus_post_api/pac/endpoint.rb +76 -0
- data/lib/aus_post_api/pac/international_letter_weight.rb +9 -0
- data/lib/aus_post_api/pac/international_parcel_weight.rb +9 -0
- data/lib/aus_post_api/pac/postage_letter_domestic_calculate.rb +12 -0
- data/lib/aus_post_api/pac/postage_letter_domestic_service.rb +11 -0
- data/lib/aus_post_api/pac/postage_letter_international_calculate.rb +12 -0
- data/lib/aus_post_api/pac/postage_letter_international_service.rb +11 -0
- data/lib/aus_post_api/pac/postage_parcel_domestic_calculate.rb +13 -0
- data/lib/aus_post_api/pac/postage_parcel_domestic_service.rb +12 -0
- data/lib/aus_post_api/pac/postage_parcel_international_calculate.rb +12 -0
- data/lib/aus_post_api/pac/postage_parcel_international_service.rb +11 -0
- data/lib/aus_post_api/uri_handler.rb +35 -0
- data/spec/aus_post_api/dce/endpoint_spec.rb +86 -0
- data/spec/aus_post_api/dce/validate_australian_address_spec.rb +18 -0
- data/spec/aus_post_api/dce_spec.rb +33 -0
- data/spec/aus_post_api/endpoint/attributes_spec.rb +35 -0
- data/spec/aus_post_api/endpoint_spec.rb +43 -0
- data/spec/aus_post_api/pac/country_spec.rb +8 -0
- data/spec/aus_post_api/pac/domestic_letter_size_spec.rb +8 -0
- data/spec/aus_post_api/pac/domestic_letter_thickness_spec.rb +8 -0
- data/spec/aus_post_api/pac/domestic_letter_weight_spec.rb +8 -0
- data/spec/aus_post_api/pac/domestic_parcel_size_spec.rb +8 -0
- data/spec/aus_post_api/pac/domestic_parcel_type_spec.rb +8 -0
- data/spec/aus_post_api/pac/domestic_parcel_weight_spec.rb +8 -0
- data/spec/aus_post_api/pac/endpoint_spec.rb +109 -0
- data/spec/aus_post_api/pac/international_letter_weight_spec.rb +8 -0
- data/spec/aus_post_api/pac/international_parcel_weight_spec.rb +8 -0
- data/spec/aus_post_api/pac/postage_letter_domestic_calculate_spec.rb +19 -0
- data/spec/aus_post_api/pac/postage_letter_domestic_service_spec.rb +15 -0
- data/spec/aus_post_api/pac/postage_letter_international_calculate_spec.rb +20 -0
- data/spec/aus_post_api/pac/postage_letter_international_service_spec.rb +13 -0
- data/spec/aus_post_api/pac/postage_parcel_domestic_calculate_spec.rb +24 -0
- data/spec/aus_post_api/pac/postage_parcel_domestic_service_spec.rb +17 -0
- data/spec/aus_post_api/pac/postage_parcel_international_calculate_spec.rb +15 -0
- data/spec/aus_post_api/pac/postage_parcel_international_service_spec.rb +8 -0
- data/spec/aus_post_api/pac/postcode_search_spec.rb +17 -0
- data/spec/aus_post_api/pac_spec.rb +101 -0
- data/spec/aus_post_api/uri_handler_spec.rb +14 -0
- data/spec/shared_examples/shared_examples_for_endpoint_classes.rb +37 -0
- data/spec/spec_helper.rb +41 -0
- metadata +136 -0
| @@ -0,0 +1,20 @@ | |
| 1 | 
            +
            require 'spec_helper'
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            describe AusPostAPI::PAC::PostageLetterInternationalCalculate do
         | 
| 4 | 
            +
              let(:required_attributes) {
         | 
| 5 | 
            +
                {
         | 
| 6 | 
            +
                  country_code: 'NZ',
         | 
| 7 | 
            +
                  service_code: 'INTL_SERVICE_AIR_MAIL'
         | 
| 8 | 
            +
                }
         | 
| 9 | 
            +
              }
         | 
| 10 | 
            +
              let(:optional_attributes) {
         | 
| 11 | 
            +
                {
         | 
| 12 | 
            +
                  weight:         100,
         | 
| 13 | 
            +
                  option_code:    'INTL_SERVICE_OPTION_EXTRA_COVER',
         | 
| 14 | 
            +
                  suboption_code: 'INTL_SERVICE_OPTION_CONFIRM_DELIVERY',
         | 
| 15 | 
            +
                  extra_cover:    1000,
         | 
| 16 | 
            +
                }
         | 
| 17 | 
            +
              }
         | 
| 18 | 
            +
             | 
| 19 | 
            +
              it_behaves_like 'an endpoint'
         | 
| 20 | 
            +
            end
         | 
| @@ -0,0 +1,24 @@ | |
| 1 | 
            +
            require 'spec_helper'
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            describe AusPostAPI::PAC::PostageParcelDomesticCalculate do
         | 
| 4 | 
            +
              let(:required_attributes) do
         | 
| 5 | 
            +
                {
         | 
| 6 | 
            +
                  from_postcode: '2000',
         | 
| 7 | 
            +
                  to_postcode:   '3000',
         | 
| 8 | 
            +
                  length:        '10',
         | 
| 9 | 
            +
                  width:         '10',
         | 
| 10 | 
            +
                  height:        '10',
         | 
| 11 | 
            +
                  weight:        '10',
         | 
| 12 | 
            +
                  service_code:  'AUS_PARCEL_REGULAR'
         | 
| 13 | 
            +
                }
         | 
| 14 | 
            +
              end
         | 
| 15 | 
            +
              let(:optional_attributes) do
         | 
| 16 | 
            +
                {
         | 
| 17 | 
            +
                  option_code:    'AUS_SERVICE_OPTION_SIGNATURE_ON_DELIVERY',
         | 
| 18 | 
            +
                  suboption_code: 'AUS_SERVICE_OPTION_EXTRA_COVER',
         | 
| 19 | 
            +
                  extra_cover:    100
         | 
| 20 | 
            +
                }
         | 
| 21 | 
            +
              end
         | 
| 22 | 
            +
             | 
| 23 | 
            +
              it_behaves_like 'an endpoint'
         | 
| 24 | 
            +
            end
         | 
| @@ -0,0 +1,17 @@ | |
| 1 | 
            +
            require 'spec_helper'
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            describe AusPostAPI::PAC::PostageParcelDomesticService do
         | 
| 4 | 
            +
              let(:required_attributes) do
         | 
| 5 | 
            +
                {
         | 
| 6 | 
            +
                  from_postcode: '2000',
         | 
| 7 | 
            +
                  to_postcode:   '3000',
         | 
| 8 | 
            +
                  length:        '10',
         | 
| 9 | 
            +
                  width:         '10',
         | 
| 10 | 
            +
                  height:        '10',
         | 
| 11 | 
            +
                  weight:        '10'
         | 
| 12 | 
            +
                }
         | 
| 13 | 
            +
              end
         | 
| 14 | 
            +
              let(:optional_attributes) { {} }
         | 
| 15 | 
            +
             | 
| 16 | 
            +
              it_behaves_like 'an endpoint'
         | 
| 17 | 
            +
            end
         | 
| @@ -0,0 +1,15 @@ | |
| 1 | 
            +
            require 'spec_helper'
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            describe AusPostAPI::PAC::PostageParcelInternationalCalculate do
         | 
| 4 | 
            +
              let(:required_attributes) do
         | 
| 5 | 
            +
                {
         | 
| 6 | 
            +
                  country_code:  'NZ',
         | 
| 7 | 
            +
                  weight:        '10',
         | 
| 8 | 
            +
                  service_code:  'INTL_SERVICE_EPI'
         | 
| 9 | 
            +
                }
         | 
| 10 | 
            +
              end
         | 
| 11 | 
            +
             | 
| 12 | 
            +
              let(:optional_attributes) { { } }
         | 
| 13 | 
            +
             | 
| 14 | 
            +
              it_behaves_like 'an endpoint'
         | 
| 15 | 
            +
            end
         | 
| @@ -0,0 +1,17 @@ | |
| 1 | 
            +
            require 'spec_helper'
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            describe AusPostAPI::PAC::DomesticPostcodeSearch do
         | 
| 4 | 
            +
              let(:required_attributes) do
         | 
| 5 | 
            +
                {
         | 
| 6 | 
            +
                  q: 'Melbourne'
         | 
| 7 | 
            +
                }
         | 
| 8 | 
            +
              end
         | 
| 9 | 
            +
              let(:optional_attributes) do
         | 
| 10 | 
            +
                {
         | 
| 11 | 
            +
                  state: 'VIC',
         | 
| 12 | 
            +
                  excludepostboxflag: 'true'
         | 
| 13 | 
            +
                }
         | 
| 14 | 
            +
              end
         | 
| 15 | 
            +
             | 
| 16 | 
            +
              it_behaves_like 'an endpoint'
         | 
| 17 | 
            +
            end
         | 
| @@ -0,0 +1,101 @@ | |
| 1 | 
            +
            require 'spec_helper'
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            RSpec.shared_examples_for "a PAC endpoint wrapper" do |wrapped_api_class|
         | 
| 4 | 
            +
              let(:api_instance) { instance_double(wrapped_api_class) }
         | 
| 5 | 
            +
              let(:api_method)   { convert_class_to_method(wrapped_api_class) }
         | 
| 6 | 
            +
              let(:params)       { { test: :param } }
         | 
| 7 | 
            +
              let(:config)       { { test: :config } }
         | 
| 8 | 
            +
             | 
| 9 | 
            +
              it "should call execute on the appropriate api class" do
         | 
| 10 | 
            +
                expect(wrapped_api_class).to receive(:new).with(params, config) { api_instance }
         | 
| 11 | 
            +
                expect(api_instance).to      receive(:execute)
         | 
| 12 | 
            +
             | 
| 13 | 
            +
                AusPostAPI::PAC.new(config).send(api_method, params)
         | 
| 14 | 
            +
              end
         | 
| 15 | 
            +
            end
         | 
| 16 | 
            +
             | 
| 17 | 
            +
            def convert_class_to_method(klass)
         | 
| 18 | 
            +
              klass = klass.to_s.gsub(/AusPostAPI::PAC/, '')
         | 
| 19 | 
            +
             | 
| 20 | 
            +
              # underscores -> camel case
         | 
| 21 | 
            +
              klass
         | 
| 22 | 
            +
                .to_s
         | 
| 23 | 
            +
                .gsub(/.*::/, '')
         | 
| 24 | 
            +
                .split(/(?=[A-Z])/)
         | 
| 25 | 
            +
                .map(&:downcase)
         | 
| 26 | 
            +
                .join('_')
         | 
| 27 | 
            +
            end
         | 
| 28 | 
            +
             | 
| 29 | 
            +
            describe AusPostAPI::PAC do
         | 
| 30 | 
            +
              describe "#pac_domestic_postcode_search" do
         | 
| 31 | 
            +
                it_behaves_like 'a PAC endpoint wrapper', AusPostAPI::PAC::DomesticPostcodeSearch
         | 
| 32 | 
            +
              end
         | 
| 33 | 
            +
             | 
| 34 | 
            +
              describe "#pac_country" do
         | 
| 35 | 
            +
                it_behaves_like 'a PAC endpoint wrapper', AusPostAPI::PAC::Country
         | 
| 36 | 
            +
              end
         | 
| 37 | 
            +
             | 
| 38 | 
            +
              describe "#pac_domestic_letter_thickness" do
         | 
| 39 | 
            +
                it_behaves_like 'a PAC endpoint wrapper', AusPostAPI::PAC::DomesticLetterThickness
         | 
| 40 | 
            +
              end
         | 
| 41 | 
            +
             | 
| 42 | 
            +
              describe "#pac_domestic_letter_weight" do
         | 
| 43 | 
            +
                it_behaves_like 'a PAC endpoint wrapper', AusPostAPI::PAC::DomesticLetterWeight
         | 
| 44 | 
            +
              end
         | 
| 45 | 
            +
             | 
| 46 | 
            +
              describe "#pac_domestic_letter_size" do
         | 
| 47 | 
            +
                it_behaves_like 'a PAC endpoint wrapper', AusPostAPI::PAC::DomesticLetterSize
         | 
| 48 | 
            +
              end
         | 
| 49 | 
            +
             | 
| 50 | 
            +
              describe "#pac_international_letter_weight" do
         | 
| 51 | 
            +
                it_behaves_like 'a PAC endpoint wrapper', AusPostAPI::PAC::InternationalLetterWeight
         | 
| 52 | 
            +
              end
         | 
| 53 | 
            +
             | 
| 54 | 
            +
              describe "#pac_international_parcel_weight" do
         | 
| 55 | 
            +
                it_behaves_like 'a PAC endpoint wrapper', AusPostAPI::PAC::InternationalParcelWeight
         | 
| 56 | 
            +
              end
         | 
| 57 | 
            +
             | 
| 58 | 
            +
              describe "#pac_domestic_parcel_weight" do
         | 
| 59 | 
            +
                it_behaves_like 'a PAC endpoint wrapper', AusPostAPI::PAC::DomesticParcelWeight
         | 
| 60 | 
            +
              end
         | 
| 61 | 
            +
             | 
| 62 | 
            +
              describe "#pac_domestic_parcel_type" do
         | 
| 63 | 
            +
                it_behaves_like 'a PAC endpoint wrapper', AusPostAPI::PAC::DomesticParcelType
         | 
| 64 | 
            +
              end
         | 
| 65 | 
            +
             | 
| 66 | 
            +
              describe "#pac_domestic_parcel_size" do
         | 
| 67 | 
            +
                it_behaves_like 'a PAC endpoint wrapper', AusPostAPI::PAC::DomesticParcelSize
         | 
| 68 | 
            +
              end
         | 
| 69 | 
            +
             | 
| 70 | 
            +
              describe "#pac_postage_letter_domestic_service" do
         | 
| 71 | 
            +
                it_behaves_like 'a PAC endpoint wrapper', AusPostAPI::PAC::PostageLetterDomesticService
         | 
| 72 | 
            +
              end
         | 
| 73 | 
            +
             | 
| 74 | 
            +
              describe "#pac_postage_parcel_domestic_service" do
         | 
| 75 | 
            +
                it_behaves_like 'a PAC endpoint wrapper', AusPostAPI::PAC::PostageParcelDomesticService
         | 
| 76 | 
            +
              end
         | 
| 77 | 
            +
             | 
| 78 | 
            +
              describe "#pac_postage_letter_international_service" do
         | 
| 79 | 
            +
                it_behaves_like 'a PAC endpoint wrapper', AusPostAPI::PAC::PostageLetterInternationalService
         | 
| 80 | 
            +
              end
         | 
| 81 | 
            +
             | 
| 82 | 
            +
              describe "#pac_postage_parcel_international_service" do
         | 
| 83 | 
            +
                it_behaves_like 'a PAC endpoint wrapper', AusPostAPI::PAC::PostageParcelInternationalService
         | 
| 84 | 
            +
              end
         | 
| 85 | 
            +
             | 
| 86 | 
            +
              describe "#pac_postage_parcel_domestic_calculate" do
         | 
| 87 | 
            +
                it_behaves_like 'a PAC endpoint wrapper', AusPostAPI::PAC::PostageParcelDomesticCalculate
         | 
| 88 | 
            +
              end
         | 
| 89 | 
            +
             | 
| 90 | 
            +
              describe "#pac_postage_parcel_international_calculate" do
         | 
| 91 | 
            +
                it_behaves_like 'a PAC endpoint wrapper', AusPostAPI::PAC::PostageParcelInternationalCalculate
         | 
| 92 | 
            +
              end
         | 
| 93 | 
            +
             | 
| 94 | 
            +
              describe "#pac_postage_letter_domestic_calculate" do
         | 
| 95 | 
            +
                it_behaves_like 'a PAC endpoint wrapper', AusPostAPI::PAC::PostageLetterDomesticCalculate
         | 
| 96 | 
            +
              end
         | 
| 97 | 
            +
             | 
| 98 | 
            +
              describe "#pac_postage_letter_international_calculate" do
         | 
| 99 | 
            +
                it_behaves_like 'a PAC endpoint wrapper', AusPostAPI::PAC::PostageLetterInternationalCalculate
         | 
| 100 | 
            +
              end
         | 
| 101 | 
            +
            end
         | 
| @@ -0,0 +1,14 @@ | |
| 1 | 
            +
            require_relative '../../lib/aus_post_api/uri_handler'
         | 
| 2 | 
            +
            require 'webmock/rspec'
         | 
| 3 | 
            +
             | 
| 4 | 
            +
            describe AusPostAPI::UriHandler do
         | 
| 5 | 
            +
              it 'should make the call to the uri with the given headers' do
         | 
| 6 | 
            +
                stub_request(:get, "https://www.test.com:80/")
         | 
| 7 | 
            +
                  .with(headers: { test: 'test' })
         | 
| 8 | 
            +
                  .to_return(status: 200, body: "response", headers: {})
         | 
| 9 | 
            +
             | 
| 10 | 
            +
                expect(
         | 
| 11 | 
            +
                  AusPostAPI::UriHandler.call('http://www.test.com', test: 'test').body
         | 
| 12 | 
            +
                ).to eql('response')
         | 
| 13 | 
            +
              end
         | 
| 14 | 
            +
            end
         | 
| @@ -0,0 +1,37 @@ | |
| 1 | 
            +
            RSpec.shared_examples 'an endpoint' do
         | 
| 2 | 
            +
              subject { described_class }
         | 
| 3 | 
            +
             | 
| 4 | 
            +
              let(:attributes) { required_attributes.merge(optional_attributes) }
         | 
| 5 | 
            +
             | 
| 6 | 
            +
              describe "#execute", :vcr do
         | 
| 7 | 
            +
                it "should call the api endpoint" do
         | 
| 8 | 
            +
                  response = JSON.parse(subject.new(attributes, json_config).execute.body)
         | 
| 9 | 
            +
                  expect(response).to_not      eql(nil)
         | 
| 10 | 
            +
                  expect(response["error"]).to eql(nil)
         | 
| 11 | 
            +
                end
         | 
| 12 | 
            +
              end
         | 
| 13 | 
            +
             | 
| 14 | 
            +
              describe "Attributes" do
         | 
| 15 | 
            +
                context "required" do
         | 
| 16 | 
            +
                  described_class.required_attributes.each do |attr|
         | 
| 17 | 
            +
                    it "should raise a required argument error if #{attr} is not given" do
         | 
| 18 | 
            +
                      attributes.delete(attr)
         | 
| 19 | 
            +
                      expect { subject.new(attributes, json_config) }.to raise_error(
         | 
| 20 | 
            +
                        AusPostAPI::Endpoint::RequiredArgumentError
         | 
| 21 | 
            +
                      )
         | 
| 22 | 
            +
                    end
         | 
| 23 | 
            +
                  end
         | 
| 24 | 
            +
                end
         | 
| 25 | 
            +
             | 
| 26 | 
            +
                context "optional" do
         | 
| 27 | 
            +
                  described_class.optional_attributes.each do |attr|
         | 
| 28 | 
            +
                    it "should not raise a required argument error if #{attr} is not given" do
         | 
| 29 | 
            +
                      optional_attributes.delete(attr)
         | 
| 30 | 
            +
                      expect {
         | 
| 31 | 
            +
                        subject.new(attributes.merge(optional_attributes), json_config)
         | 
| 32 | 
            +
                      }.to_not raise_error
         | 
| 33 | 
            +
                    end
         | 
| 34 | 
            +
                  end
         | 
| 35 | 
            +
                end
         | 
| 36 | 
            +
              end
         | 
| 37 | 
            +
            end
         | 
    
        data/spec/spec_helper.rb
    ADDED
    
    | @@ -0,0 +1,41 @@ | |
| 1 | 
            +
            require 'vcr'
         | 
| 2 | 
            +
            require 'json'
         | 
| 3 | 
            +
            require 'require_all'
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            require_all 'lib'
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            Dir[(File.dirname(__dir__)) + "/spec/shared_examples/**/*.rb"].each { |f| require f}
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            VCR.configure do |config|
         | 
| 10 | 
            +
              config.cassette_library_dir = "spec/fixtures/vcr_cassettes"
         | 
| 11 | 
            +
              config.hook_into :webmock
         | 
| 12 | 
            +
              config.configure_rspec_metadata!
         | 
| 13 | 
            +
            end
         | 
| 14 | 
            +
             | 
| 15 | 
            +
            def config
         | 
| 16 | 
            +
              # This uses a live endpoint. The key used is not used in any production
         | 
| 17 | 
            +
              # environments. The test endpoint is broken...
         | 
| 18 | 
            +
              {
         | 
| 19 | 
            +
                TEST: false,
         | 
| 20 | 
            +
                USERNAME: "fake",
         | 
| 21 | 
            +
                PASSWORD: "fake",
         | 
| 22 | 
            +
                PAC_AUTH_KEY: 'f9c917c2-33bf-468b-824a-6739702505f9'
         | 
| 23 | 
            +
              }
         | 
| 24 | 
            +
            end
         | 
| 25 | 
            +
             | 
| 26 | 
            +
            def dce_config
         | 
| 27 | 
            +
              {
         | 
| 28 | 
            +
                USERNAME: "fake",
         | 
| 29 | 
            +
                PASSWORD: "fake",
         | 
| 30 | 
            +
                FORMAT:   'json'
         | 
| 31 | 
            +
              }
         | 
| 32 | 
            +
            end
         | 
| 33 | 
            +
             | 
| 34 | 
            +
            def json_config
         | 
| 35 | 
            +
              config.merge(FORMAT: 'json')
         | 
| 36 | 
            +
            end
         | 
| 37 | 
            +
             | 
| 38 | 
            +
            def xml_config
         | 
| 39 | 
            +
              config.merge(FORMAT: 'xml')
         | 
| 40 | 
            +
            end
         | 
| 41 | 
            +
             | 
    
        metadata
    ADDED
    
    | @@ -0,0 +1,136 @@ | |
| 1 | 
            +
            --- !ruby/object:Gem::Specification
         | 
| 2 | 
            +
            name: aus_post_api
         | 
| 3 | 
            +
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            +
              version: 1.0.0
         | 
| 5 | 
            +
            platform: ruby
         | 
| 6 | 
            +
            authors:
         | 
| 7 | 
            +
            - JaredShay
         | 
| 8 | 
            +
            autorequire: 
         | 
| 9 | 
            +
            bindir: bin
         | 
| 10 | 
            +
            cert_chain: []
         | 
| 11 | 
            +
            date: 2015-08-16 00:00:00.000000000 Z
         | 
| 12 | 
            +
            dependencies: []
         | 
| 13 | 
            +
            description: Wrapper for Australia Post's developer API
         | 
| 14 | 
            +
            email:
         | 
| 15 | 
            +
            - jared.shay@gmail.com
         | 
| 16 | 
            +
            executables: []
         | 
| 17 | 
            +
            extensions: []
         | 
| 18 | 
            +
            extra_rdoc_files: []
         | 
| 19 | 
            +
            files:
         | 
| 20 | 
            +
            - ".gitignore"
         | 
| 21 | 
            +
            - ".rspec"
         | 
| 22 | 
            +
            - Gemfile
         | 
| 23 | 
            +
            - Gemfile.lock
         | 
| 24 | 
            +
            - LICENSE.txt
         | 
| 25 | 
            +
            - README.md
         | 
| 26 | 
            +
            - Rakefile
         | 
| 27 | 
            +
            - aus_post_api.gemspec
         | 
| 28 | 
            +
            - lib/aus_post_api.rb
         | 
| 29 | 
            +
            - lib/aus_post_api/dce.rb
         | 
| 30 | 
            +
            - lib/aus_post_api/dce/endpoint.rb
         | 
| 31 | 
            +
            - lib/aus_post_api/dce/validate_australian_address.rb
         | 
| 32 | 
            +
            - lib/aus_post_api/endpoint.rb
         | 
| 33 | 
            +
            - lib/aus_post_api/endpoint/attributes.rb
         | 
| 34 | 
            +
            - lib/aus_post_api/pac.rb
         | 
| 35 | 
            +
            - lib/aus_post_api/pac/country.rb
         | 
| 36 | 
            +
            - lib/aus_post_api/pac/domestic_letter_size.rb
         | 
| 37 | 
            +
            - lib/aus_post_api/pac/domestic_letter_thickness.rb
         | 
| 38 | 
            +
            - lib/aus_post_api/pac/domestic_letter_weight.rb
         | 
| 39 | 
            +
            - lib/aus_post_api/pac/domestic_parcel_size.rb
         | 
| 40 | 
            +
            - lib/aus_post_api/pac/domestic_parcel_type.rb
         | 
| 41 | 
            +
            - lib/aus_post_api/pac/domestic_parcel_weight.rb
         | 
| 42 | 
            +
            - lib/aus_post_api/pac/domestic_postcode_search.rb
         | 
| 43 | 
            +
            - lib/aus_post_api/pac/endpoint.rb
         | 
| 44 | 
            +
            - lib/aus_post_api/pac/international_letter_weight.rb
         | 
| 45 | 
            +
            - lib/aus_post_api/pac/international_parcel_weight.rb
         | 
| 46 | 
            +
            - lib/aus_post_api/pac/postage_letter_domestic_calculate.rb
         | 
| 47 | 
            +
            - lib/aus_post_api/pac/postage_letter_domestic_service.rb
         | 
| 48 | 
            +
            - lib/aus_post_api/pac/postage_letter_international_calculate.rb
         | 
| 49 | 
            +
            - lib/aus_post_api/pac/postage_letter_international_service.rb
         | 
| 50 | 
            +
            - lib/aus_post_api/pac/postage_parcel_domestic_calculate.rb
         | 
| 51 | 
            +
            - lib/aus_post_api/pac/postage_parcel_domestic_service.rb
         | 
| 52 | 
            +
            - lib/aus_post_api/pac/postage_parcel_international_calculate.rb
         | 
| 53 | 
            +
            - lib/aus_post_api/pac/postage_parcel_international_service.rb
         | 
| 54 | 
            +
            - lib/aus_post_api/uri_handler.rb
         | 
| 55 | 
            +
            - spec/aus_post_api/dce/endpoint_spec.rb
         | 
| 56 | 
            +
            - spec/aus_post_api/dce/validate_australian_address_spec.rb
         | 
| 57 | 
            +
            - spec/aus_post_api/dce_spec.rb
         | 
| 58 | 
            +
            - spec/aus_post_api/endpoint/attributes_spec.rb
         | 
| 59 | 
            +
            - spec/aus_post_api/endpoint_spec.rb
         | 
| 60 | 
            +
            - spec/aus_post_api/pac/country_spec.rb
         | 
| 61 | 
            +
            - spec/aus_post_api/pac/domestic_letter_size_spec.rb
         | 
| 62 | 
            +
            - spec/aus_post_api/pac/domestic_letter_thickness_spec.rb
         | 
| 63 | 
            +
            - spec/aus_post_api/pac/domestic_letter_weight_spec.rb
         | 
| 64 | 
            +
            - spec/aus_post_api/pac/domestic_parcel_size_spec.rb
         | 
| 65 | 
            +
            - spec/aus_post_api/pac/domestic_parcel_type_spec.rb
         | 
| 66 | 
            +
            - spec/aus_post_api/pac/domestic_parcel_weight_spec.rb
         | 
| 67 | 
            +
            - spec/aus_post_api/pac/endpoint_spec.rb
         | 
| 68 | 
            +
            - spec/aus_post_api/pac/international_letter_weight_spec.rb
         | 
| 69 | 
            +
            - spec/aus_post_api/pac/international_parcel_weight_spec.rb
         | 
| 70 | 
            +
            - spec/aus_post_api/pac/postage_letter_domestic_calculate_spec.rb
         | 
| 71 | 
            +
            - spec/aus_post_api/pac/postage_letter_domestic_service_spec.rb
         | 
| 72 | 
            +
            - spec/aus_post_api/pac/postage_letter_international_calculate_spec.rb
         | 
| 73 | 
            +
            - spec/aus_post_api/pac/postage_letter_international_service_spec.rb
         | 
| 74 | 
            +
            - spec/aus_post_api/pac/postage_parcel_domestic_calculate_spec.rb
         | 
| 75 | 
            +
            - spec/aus_post_api/pac/postage_parcel_domestic_service_spec.rb
         | 
| 76 | 
            +
            - spec/aus_post_api/pac/postage_parcel_international_calculate_spec.rb
         | 
| 77 | 
            +
            - spec/aus_post_api/pac/postage_parcel_international_service_spec.rb
         | 
| 78 | 
            +
            - spec/aus_post_api/pac/postcode_search_spec.rb
         | 
| 79 | 
            +
            - spec/aus_post_api/pac_spec.rb
         | 
| 80 | 
            +
            - spec/aus_post_api/uri_handler_spec.rb
         | 
| 81 | 
            +
            - spec/shared_examples/shared_examples_for_endpoint_classes.rb
         | 
| 82 | 
            +
            - spec/spec_helper.rb
         | 
| 83 | 
            +
            homepage: https://github.com/jaredshay/aus_post_api
         | 
| 84 | 
            +
            licenses:
         | 
| 85 | 
            +
            - MIT
         | 
| 86 | 
            +
            metadata: {}
         | 
| 87 | 
            +
            post_install_message: 
         | 
| 88 | 
            +
            rdoc_options: []
         | 
| 89 | 
            +
            require_paths:
         | 
| 90 | 
            +
            - lib
         | 
| 91 | 
            +
            required_ruby_version: !ruby/object:Gem::Requirement
         | 
| 92 | 
            +
              requirements:
         | 
| 93 | 
            +
              - - ">="
         | 
| 94 | 
            +
                - !ruby/object:Gem::Version
         | 
| 95 | 
            +
                  version: '0'
         | 
| 96 | 
            +
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 97 | 
            +
              requirements:
         | 
| 98 | 
            +
              - - ">="
         | 
| 99 | 
            +
                - !ruby/object:Gem::Version
         | 
| 100 | 
            +
                  version: '0'
         | 
| 101 | 
            +
            requirements: []
         | 
| 102 | 
            +
            rubyforge_project: 
         | 
| 103 | 
            +
            rubygems_version: 2.4.5
         | 
| 104 | 
            +
            signing_key: 
         | 
| 105 | 
            +
            specification_version: 4
         | 
| 106 | 
            +
            summary: Wrapper for Australia Post's developer API
         | 
| 107 | 
            +
            test_files:
         | 
| 108 | 
            +
            - spec/aus_post_api/dce/endpoint_spec.rb
         | 
| 109 | 
            +
            - spec/aus_post_api/dce/validate_australian_address_spec.rb
         | 
| 110 | 
            +
            - spec/aus_post_api/dce_spec.rb
         | 
| 111 | 
            +
            - spec/aus_post_api/endpoint/attributes_spec.rb
         | 
| 112 | 
            +
            - spec/aus_post_api/endpoint_spec.rb
         | 
| 113 | 
            +
            - spec/aus_post_api/pac/country_spec.rb
         | 
| 114 | 
            +
            - spec/aus_post_api/pac/domestic_letter_size_spec.rb
         | 
| 115 | 
            +
            - spec/aus_post_api/pac/domestic_letter_thickness_spec.rb
         | 
| 116 | 
            +
            - spec/aus_post_api/pac/domestic_letter_weight_spec.rb
         | 
| 117 | 
            +
            - spec/aus_post_api/pac/domestic_parcel_size_spec.rb
         | 
| 118 | 
            +
            - spec/aus_post_api/pac/domestic_parcel_type_spec.rb
         | 
| 119 | 
            +
            - spec/aus_post_api/pac/domestic_parcel_weight_spec.rb
         | 
| 120 | 
            +
            - spec/aus_post_api/pac/endpoint_spec.rb
         | 
| 121 | 
            +
            - spec/aus_post_api/pac/international_letter_weight_spec.rb
         | 
| 122 | 
            +
            - spec/aus_post_api/pac/international_parcel_weight_spec.rb
         | 
| 123 | 
            +
            - spec/aus_post_api/pac/postage_letter_domestic_calculate_spec.rb
         | 
| 124 | 
            +
            - spec/aus_post_api/pac/postage_letter_domestic_service_spec.rb
         | 
| 125 | 
            +
            - spec/aus_post_api/pac/postage_letter_international_calculate_spec.rb
         | 
| 126 | 
            +
            - spec/aus_post_api/pac/postage_letter_international_service_spec.rb
         | 
| 127 | 
            +
            - spec/aus_post_api/pac/postage_parcel_domestic_calculate_spec.rb
         | 
| 128 | 
            +
            - spec/aus_post_api/pac/postage_parcel_domestic_service_spec.rb
         | 
| 129 | 
            +
            - spec/aus_post_api/pac/postage_parcel_international_calculate_spec.rb
         | 
| 130 | 
            +
            - spec/aus_post_api/pac/postage_parcel_international_service_spec.rb
         | 
| 131 | 
            +
            - spec/aus_post_api/pac/postcode_search_spec.rb
         | 
| 132 | 
            +
            - spec/aus_post_api/pac_spec.rb
         | 
| 133 | 
            +
            - spec/aus_post_api/uri_handler_spec.rb
         | 
| 134 | 
            +
            - spec/shared_examples/shared_examples_for_endpoint_classes.rb
         | 
| 135 | 
            +
            - spec/spec_helper.rb
         | 
| 136 | 
            +
            has_rdoc: 
         |