solon 0.2.0 → 0.2.1

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.
@@ -1,6 +1,5 @@
1
1
  module Solon
2
2
  class CustomerData
3
- # attr_accessor :address, :post_code, :name, :contact_number, :email
4
3
  attr_accessor :surname, :firstnames, :address1, :address2, :city, :post_code, :country, :state, :phone, :email
5
4
 
6
5
  def initialize(attrs = {})
@@ -353,6 +353,7 @@ private
353
353
  @post["BillingPostCode"] = options[:billing].post_code
354
354
  @post["BillingCountry"] = options[:billing].country
355
355
  @post["BillingPhone"] = options[:billing].phone
356
+ @post["BillingState"] = options[:billing].state if options[:billing].country == 'US'
356
357
  end
357
358
  end
358
359
 
@@ -367,6 +368,7 @@ private
367
368
  @post["DeliveryPostCode"] = options[:delivery].post_code
368
369
  @post["DeliveryCountry"] = options[:delivery].country
369
370
  @post["DeliveryPhone"] = options[:delivery].phone
371
+ @post["DeliveryState"] = options[:delivery].state if options[:delivery].country == 'US'
370
372
  end
371
373
  end
372
374
 
data/solon.gemspec CHANGED
@@ -4,7 +4,7 @@ $:.unshift lib unless $:.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "solon"
7
- s.version = "0.2.0"
7
+ s.version = "0.2.1"
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Alastair Brunton"]
10
10
  s.email = ["info@simplyexcited.co.uk"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solon
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alastair Brunton
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-02-09 00:00:00 +01:00
18
+ date: 2012-05-19 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies: []
21
21