active_shipping 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/active_shipping.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{active_shipping}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["James MacAulay", "Tobias Luetke", "Cody Fauser", "Jimmy Baker"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-03-29}
|
13
13
|
s.description = %q{Shipping API extension for Active Merchant.}
|
14
14
|
s.email = %q{jmacaulay@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -112,7 +112,7 @@ Gem::Specification.new do |s|
|
|
112
112
|
s.homepage = %q{http://github.com/Shopify/active_shipping}
|
113
113
|
s.rdoc_options = ["--charset=UTF-8"]
|
114
114
|
s.require_paths = ["lib"]
|
115
|
-
s.rubygems_version = %q{1.3.
|
115
|
+
s.rubygems_version = %q{1.3.6}
|
116
116
|
s.summary = %q{Shipping API extension for Active Merchant.}
|
117
117
|
s.test_files = [
|
118
118
|
"test/party_factory.rb",
|
@@ -453,11 +453,9 @@ module ActiveMerchant
|
|
453
453
|
:country => event.elements['Address'].get_text('CountryCode').to_s)
|
454
454
|
description = event.get_text('EventDescription').to_s
|
455
455
|
|
456
|
-
|
457
|
-
time = Time.parse("#{event.get_text('Timestamp').to_s}")
|
458
|
-
zoneless_time = Time.utc(time.year, time.month, time.mday, time.hour, time.min, time.sec)
|
456
|
+
time = Time.parse(event.get_text('Timestamp').to_s)
|
459
457
|
|
460
|
-
shipment_events << ShipmentEvent.new(description,
|
458
|
+
shipment_events << ShipmentEvent.new(description, time, location)
|
461
459
|
end
|
462
460
|
shipment_events = shipment_events.sort_by(&:time)
|
463
461
|
end
|
@@ -314,7 +314,7 @@ module ActiveMerchant
|
|
314
314
|
time, date = time.to_s, date.to_s
|
315
315
|
hour, minute, second = time.scan(/\d{2}/)
|
316
316
|
year, month, day = date[0..3], date[4..5], date[6..7]
|
317
|
-
Time.
|
317
|
+
Time.parse("#{date} {time} EST")
|
318
318
|
end
|
319
319
|
location = location_from_address_node(activity.elements['ActivityLocation/Address'])
|
320
320
|
ShipmentEvent.new(description, zoneless_time, location)
|
@@ -316,7 +316,7 @@ module ActiveMerchant
|
|
316
316
|
if (time = track_detail.get_text('EventTime')) &&
|
317
317
|
(date = track_detail.get_text('EventDate'))
|
318
318
|
|
319
|
-
event_time = Time.parse("#{date} #{time}")
|
319
|
+
event_time = Time.parse("#{date} #{time} EST")
|
320
320
|
end
|
321
321
|
|
322
322
|
location = Location.new(
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_shipping
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 1
|
8
|
+
- 2
|
9
|
+
version: 0.1.2
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- James MacAulay
|
@@ -12,19 +17,21 @@ autorequire:
|
|
12
17
|
bindir: bin
|
13
18
|
cert_chain: []
|
14
19
|
|
15
|
-
date: 2010-
|
20
|
+
date: 2010-03-29 00:00:00 -04:00
|
16
21
|
default_executable:
|
17
22
|
dependencies:
|
18
23
|
- !ruby/object:Gem::Dependency
|
19
24
|
name: activesupport
|
20
|
-
|
21
|
-
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
prerelease: false
|
26
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
23
27
|
requirements:
|
24
28
|
- - ">="
|
25
29
|
- !ruby/object:Gem::Version
|
30
|
+
segments:
|
31
|
+
- 0
|
26
32
|
version: "0"
|
27
|
-
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
28
35
|
description: Shipping API extension for Active Merchant.
|
29
36
|
email: jmacaulay@gmail.com
|
30
37
|
executables: []
|
@@ -139,18 +146,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
139
146
|
requirements:
|
140
147
|
- - ">="
|
141
148
|
- !ruby/object:Gem::Version
|
149
|
+
segments:
|
150
|
+
- 0
|
142
151
|
version: "0"
|
143
|
-
version:
|
144
152
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
145
153
|
requirements:
|
146
154
|
- - ">="
|
147
155
|
- !ruby/object:Gem::Version
|
156
|
+
segments:
|
157
|
+
- 0
|
148
158
|
version: "0"
|
149
|
-
version:
|
150
159
|
requirements: []
|
151
160
|
|
152
161
|
rubyforge_project:
|
153
|
-
rubygems_version: 1.3.
|
162
|
+
rubygems_version: 1.3.6
|
154
163
|
signing_key:
|
155
164
|
specification_version: 3
|
156
165
|
summary: Shipping API extension for Active Merchant.
|