slipmate 0.1.7 → 0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/slipmate/customer.rb +1 -1
- data/lib/slipmate/item.rb +1 -1
- data/lib/slipmate/order.rb +10 -3
- data/slipmate.gemspec +1 -1
- metadata +5 -17
data/lib/slipmate/customer.rb
CHANGED
data/lib/slipmate/item.rb
CHANGED
data/lib/slipmate/order.rb
CHANGED
@@ -13,14 +13,21 @@ module Slipmate
|
|
13
13
|
:order_date,
|
14
14
|
:shipping_company,
|
15
15
|
:shipping_special_instructions,
|
16
|
-
:shipping_gift_message,
|
17
16
|
:origin_type,
|
18
17
|
:xc_identifier,
|
19
18
|
:store_code,
|
20
19
|
:supplier,
|
21
20
|
:is_held,
|
22
21
|
:status_hash,
|
23
|
-
:tax
|
22
|
+
:tax,
|
23
|
+
:message
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
def bang
|
29
|
+
|
30
|
+
end
|
24
31
|
|
25
32
|
def initialize(attributes={})
|
26
33
|
attributes.reverse_merge! :order_date => DateTime.now, :is_held => false
|
@@ -32,7 +39,7 @@ module Slipmate
|
|
32
39
|
def serialize
|
33
40
|
h={}
|
34
41
|
self.instance_variables.each do |variab|
|
35
|
-
h[variab.
|
42
|
+
h[variab.[1..-1].to_sym] = self.instance_variable_get(variab)
|
36
43
|
end
|
37
44
|
h
|
38
45
|
end
|
data/slipmate.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slipmate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
- 7
|
10
|
-
version: 0.1.7
|
4
|
+
prerelease:
|
5
|
+
version: "0.2"
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Spencer Markowski
|
@@ -15,7 +10,7 @@ autorequire:
|
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
12
|
|
18
|
-
date: 2010-07-21 00:00:00 -
|
13
|
+
date: 2010-07-21 00:00:00 -05:00
|
19
14
|
default_executable:
|
20
15
|
dependencies: []
|
21
16
|
|
@@ -36,7 +31,7 @@ files:
|
|
36
31
|
- lib/slipmate/customer.rb
|
37
32
|
- lib/slipmate/order.rb
|
38
33
|
- lib/slipmate/item.rb
|
39
|
-
has_rdoc:
|
34
|
+
has_rdoc: true
|
40
35
|
homepage: http://slipmate.biz/
|
41
36
|
licenses: []
|
42
37
|
|
@@ -50,24 +45,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
50
45
|
requirements:
|
51
46
|
- - ">="
|
52
47
|
- !ruby/object:Gem::Version
|
53
|
-
hash: 3
|
54
|
-
segments:
|
55
|
-
- 0
|
56
48
|
version: "0"
|
57
49
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
58
50
|
none: false
|
59
51
|
requirements:
|
60
52
|
- - ">="
|
61
53
|
- !ruby/object:Gem::Version
|
62
|
-
hash: 11
|
63
|
-
segments:
|
64
|
-
- 1
|
65
|
-
- 2
|
66
54
|
version: "1.2"
|
67
55
|
requirements: []
|
68
56
|
|
69
57
|
rubyforge_project: slipmate
|
70
|
-
rubygems_version: 1.
|
58
|
+
rubygems_version: 1.6.2
|
71
59
|
signing_key:
|
72
60
|
specification_version: 3
|
73
61
|
summary: Create and manage orders in Slipmate
|