slipmate 0.1.7 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,7 +23,7 @@ module Slipmate
23
23
  def serialize
24
24
  h={}
25
25
  self.instance_variables.each do |variab|
26
- h[variab.gsub("@","").to_sym] = self.instance_variable_get(variab)
26
+ h[variab.[1..-1].to_sym] = self.instance_variable_get(variab)
27
27
  end
28
28
  h
29
29
  end
@@ -14,7 +14,7 @@ module Slipmate
14
14
  def serialize
15
15
  h={}
16
16
  self.instance_variables.each do |variab|
17
- h[variab.gsub("@","").to_sym] = self.instance_variable_get(variab)
17
+ h[variab.[1..-1].to_sym] = self.instance_variable_get(variab)
18
18
  end
19
19
  h
20
20
  end
@@ -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.gsub("@","").to_sym] = self.instance_variable_get(variab)
42
+ h[variab.[1..-1].to_sym] = self.instance_variable_get(variab)
36
43
  end
37
44
  h
38
45
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{slipmate}
3
- s.version = "0.1.7"
3
+ s.version = "0.2"
4
4
 
5
5
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
6
6
  s.authors = ["Spencer Markowski"]
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slipmate
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
5
- prerelease: false
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 -04: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: false
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.3.7
58
+ rubygems_version: 1.6.2
71
59
  signing_key:
72
60
  specification_version: 3
73
61
  summary: Create and manage orders in Slipmate