ups_time_in_transit_plus 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/README +21 -0
- data/lib/ups_time_in_transit_plus.rb +1 -1
- data/ups_time_in_transit_plus.gemspec +2 -2
- metadata +12 -11
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
MGYyZmE3MjBmMGRiNjcxZjU4Y2VkMThkOTU0MTVjZmRmODk4MzhhNQ==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 76ac28a96f254d13df6d8ba2093f826fc1d36ce0
|
4
|
+
data.tar.gz: 48d277952c222aff99b374299d1da9f1466d1e95
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
YzQxMzNmOWY4YmM4ZWM0YjkyYTlmZDRkOWI5YWI0ZTY0MDM5MzRhZWIzYjYx
|
11
|
-
NWY2ODBiNjNlYTE2YWEwNGUwNGMwNjY1NTFiMWE4MGViMmJjYzc=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
MzIwYWIxYTM3ZDA5ZDYyMmJmYzhmZTJmOGQ3NGRlYTdhYmFlZDI1MWJiNTA5
|
14
|
-
YmZkOWJkZDM1NzlmNmQyZjMyYzYwM2NjZmM5ODk0NmQzZDc2NGI4OGFmMWUx
|
15
|
-
ZGYxOTcxYmE4Nzc2ZjIwMDczYjQ5MTIyYzJkNWVkOWI2OGZhZjU=
|
6
|
+
metadata.gz: 3bf820b34196ca5b3ec9d314a2e081ad5ed359e516acd8195883b6507d3fca6290fbc272d8525d6fe6c2f4dc1c6693536ed649b99b49c1923492907e7ad5175d
|
7
|
+
data.tar.gz: b5b6a3a3d40c744721aaae7df7f6ae5d5a3ff8bc89d9b7c46761ec2387dd3276ee58237a94839508d5fd9bedc6fb37d12dbc733da5f6540a1e576d388e2259a7
|
data/README
CHANGED
@@ -49,10 +49,31 @@ rescue => error
|
|
49
49
|
end
|
50
50
|
|
51
51
|
== changelog ==
|
52
|
+
v.0.1.5
|
53
|
+
Added the ability to optionally specify the date you are shipping the package on, instead of assuming it's today. If you specify a shipping date that is ivalid, the first available pick-up time will be used (calculated in a function based on the last daily pick-up time and day of the week).
|
54
|
+
When adding the pick-up date you must specify it in the following string format --> YYYYMMDD, i.e. 20151225 --> Christmas day 2015.
|
52
55
|
|
56
|
+
Example of usage:
|
57
|
+
request_options = {
|
58
|
+
:pickup_date => "20151225",
|
59
|
+
...
|
60
|
+
}
|
61
|
+
|
62
|
+
v.0.1.4
|
63
|
+
Minor bug fix to project files.
|
64
|
+
|
65
|
+
v.0.1.3
|
66
|
+
First working version by Ben Crudo.
|
67
|
+
Extracting more data from the UPS API: Response now contains a hash with the delivery date as well as the number business days the package would be in transit.
|
68
|
+
|
69
|
+
v.0.1.2
|
70
|
+
First pass by Ben Crudo to modify the Gem and release it on RubyGems. Yanked it though for having a bug.
|
71
|
+
|
53
72
|
v.0.1.1
|
54
73
|
some erroneous documentation
|
55
74
|
|
56
75
|
v.0.1.0
|
57
76
|
initial release
|
77
|
+
|
78
|
+
|
58
79
|
|
@@ -109,7 +109,7 @@ module UPS
|
|
109
109
|
def request(options)
|
110
110
|
|
111
111
|
# build our request xml
|
112
|
-
pickup_date = calculate_pickup_date
|
112
|
+
pickup_date = options[:pickup_date] || calculate_pickup_date
|
113
113
|
options[:pickup_date] = pickup_date.strftime('%Y%m%d')
|
114
114
|
xml = @access_xml + generate_xml(build_transit_attributes(options))
|
115
115
|
|
@@ -2,13 +2,13 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{ups_time_in_transit_plus}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.5"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Joe Stelmach, Benjamin Crudo"]
|
9
9
|
# s.cert_chain = ["/Users/joe/workspace/personal/gem-public_cert.pem"]
|
10
10
|
s.date = %q{2013-10-07}
|
11
|
-
s.description = %q{Provides an easy to use interface to the UPS time in transit API}
|
11
|
+
s.description = %q{Provides an easy to use interface to the UPS time in transit API. See change log in README}
|
12
12
|
s.email = %q{gems @nospam@ gmail.com}
|
13
13
|
s.extra_rdoc_files = ["LICENSE", "README", "lib/ups_time_in_transit_plus.rb"]
|
14
14
|
s.files = ["LICENSE", "Manifest", "README", "Rakefile", "lib/ups_time_in_transit_plus.rb", "ups_time_in_transit_plus.gemspec"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ups_time_in_transit_plus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Stelmach, Benjamin Crudo
|
@@ -14,17 +14,18 @@ dependencies:
|
|
14
14
|
name: activesupport
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
-
description: Provides an easy to use interface to the UPS time in transit API
|
27
|
+
description: Provides an easy to use interface to the UPS time in transit API. See
|
28
|
+
change log in README
|
28
29
|
email: gems @nospam@ gmail.com
|
29
30
|
executables: []
|
30
31
|
extensions: []
|
@@ -44,27 +45,27 @@ licenses: []
|
|
44
45
|
metadata: {}
|
45
46
|
post_install_message:
|
46
47
|
rdoc_options:
|
47
|
-
- --line-numbers
|
48
|
-
- --inline-source
|
49
|
-
- --title
|
48
|
+
- "--line-numbers"
|
49
|
+
- "--inline-source"
|
50
|
+
- "--title"
|
50
51
|
- Ups_time_in_transit
|
51
|
-
- --main
|
52
|
+
- "--main"
|
52
53
|
- README
|
53
54
|
require_paths:
|
54
55
|
- lib
|
55
56
|
required_ruby_version: !ruby/object:Gem::Requirement
|
56
57
|
requirements:
|
57
|
-
- -
|
58
|
+
- - ">="
|
58
59
|
- !ruby/object:Gem::Version
|
59
60
|
version: '0'
|
60
61
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
61
62
|
requirements:
|
62
|
-
- -
|
63
|
+
- - ">="
|
63
64
|
- !ruby/object:Gem::Version
|
64
65
|
version: '1.2'
|
65
66
|
requirements: []
|
66
67
|
rubyforge_project: ups_time_in_transit_plus
|
67
|
-
rubygems_version: 2.1
|
68
|
+
rubygems_version: 2.5.1
|
68
69
|
signing_key:
|
69
70
|
specification_version: 3
|
70
71
|
summary: Provides an easy to use interface to the UPS time in transit API
|