whitehouse 0.1.0 → 0.2.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 +4 -4
- data/.travis.yml +2 -0
- data/lib/whitehouse/order.rb +5 -4
- data/lib/whitehouse/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4bdbc7ebeca20454ff8db5fa0e50b0ee0e9a610d
|
|
4
|
+
data.tar.gz: 928784eb018b93684f0fbbe3ae89e2a615545fab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 922f729f61b02937f5b841b61f9199f1ab574efc567520ffc67f26c825d4d951e9ed06c11300049e8d556ecd9b4130a7955ee5a51bdffe6e7b695c977c9a99f9
|
|
7
|
+
data.tar.gz: f7406f8471f3a36867004f6816904e6c8087744b45c5256845a9d1b9285fd32d832ea5b1ea679ec900d119c35e8b94c08b3ab0b2ccb191697056f7e71da3f485
|
data/.travis.yml
CHANGED
data/lib/whitehouse/order.rb
CHANGED
|
@@ -4,7 +4,7 @@ module Whitehouse
|
|
|
4
4
|
class Order
|
|
5
5
|
|
|
6
6
|
attr_accessor :entry_id, :drop_ship, :from_address_value, :sequence_number,
|
|
7
|
-
:from_address, :to_address, :order_attributes
|
|
7
|
+
:from_address, :to_address, :order_attributes, :instructions
|
|
8
8
|
attr_reader :items
|
|
9
9
|
|
|
10
10
|
def initialize
|
|
@@ -24,7 +24,7 @@ module Whitehouse
|
|
|
24
24
|
"Y" => 50,
|
|
25
25
|
"ZoomX" => 100,
|
|
26
26
|
"ZoomY" => 100,
|
|
27
|
-
"ImageRotation" => 0,
|
|
27
|
+
"ImageRotation" => rotation || 0,
|
|
28
28
|
"isCoverAsset" => false,
|
|
29
29
|
"isJacketAsset" => false,
|
|
30
30
|
"ColorCorrect" => false}]
|
|
@@ -67,7 +67,7 @@ module Whitehouse
|
|
|
67
67
|
"FromAddressValue" => from_address_value,
|
|
68
68
|
"OrderAttributes" => order_attributes,
|
|
69
69
|
# "Reference" => reference,
|
|
70
|
-
|
|
70
|
+
"Instructions" => instructions,
|
|
71
71
|
"SequenceNumber" => sequence_number,
|
|
72
72
|
"ShipToAddress" => to_address,
|
|
73
73
|
# "ShipFromAddress" => from_address,
|
|
@@ -82,6 +82,7 @@ module Whitehouse
|
|
|
82
82
|
self.from_address_value = 1
|
|
83
83
|
self.sequence_number = 1
|
|
84
84
|
self.order_attributes = []
|
|
85
|
+
self.instructions = ""
|
|
85
86
|
@items = []
|
|
86
87
|
end
|
|
87
88
|
|
|
@@ -96,7 +97,7 @@ module Whitehouse
|
|
|
96
97
|
"ProductUID" => item.uid,
|
|
97
98
|
"Quantity" => 1,
|
|
98
99
|
"LineItemID" => i,
|
|
99
|
-
"LayoutRotation" =>
|
|
100
|
+
"LayoutRotation" => 0}
|
|
100
101
|
end
|
|
101
102
|
end
|
|
102
103
|
|
data/lib/whitehouse/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: whitehouse
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- travisdahlke
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-09-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -221,7 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
221
221
|
version: '0'
|
|
222
222
|
requirements: []
|
|
223
223
|
rubyforge_project:
|
|
224
|
-
rubygems_version: 2.2.
|
|
224
|
+
rubygems_version: 2.2.3
|
|
225
225
|
signing_key:
|
|
226
226
|
specification_version: 4
|
|
227
227
|
summary: White House Custom Colour API Client
|