easypost 2.0.2 → 2.0.3

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.
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ === 2.0.3 2013-07-31
2
+
3
+ * API Addition: Tracker resource added. Trackers can be used to register any tracking code with EasyPost webhooks.
4
+
5
+
1
6
  === 2.0.2 2013-07-23
2
7
 
3
8
  * API Addition: Shipment.track_with_code returns tracking details for any tracking code.
@@ -8,4 +13,4 @@
8
13
  * API Addition: Address.create_and_verify returns a verified address in one step.
9
14
  * API Addition: Shipment.label forces the creation of additional label formats (pdf, epl2, zpl).
10
15
  * API Addition: Shipment.insure purchases insurance for a shipment.
11
- * Library Update: Added the ability to negatively filter carriers and services with Shipment.lowest_rate (e.g. '!usps').
16
+ * Library Update: Added the ability to negatively filter carriers and services with Shipment.lowest_rate (e.g. '!usps').
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- easypost (2.0.1)
4
+ easypost (2.0.2)
5
5
  multi_json (>= 1.0.4, < 2)
6
6
  rest-client (~> 1.4)
7
7
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.2
1
+ 2.0.3
data/easypost.gemspec CHANGED
@@ -6,7 +6,7 @@ require 'easypost/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'easypost'
8
8
  spec.version = EasyPost::VERSION
9
- spec.date = '2013-07-23'
9
+ spec.date = '2013-07-31'
10
10
  spec.summary = 'EasyPost Ruby Client Library'
11
11
  spec.description = 'Client library for accessing the EasyPost shipping API via Ruby.'
12
12
  spec.authors = ['Jon Calhoun', 'Sawyer Bateman']
data/lib/easypost.rb CHANGED
@@ -19,6 +19,7 @@ require 'easypost/postage_label'
19
19
  require 'easypost/scan_form'
20
20
  require 'easypost/refund'
21
21
  require 'easypost/batch'
22
+ require 'easypost/tracker'
22
23
 
23
24
  require 'easypost/error'
24
25
 
@@ -0,0 +1,5 @@
1
+ module EasyPost
2
+ class Tracker < Resource
3
+
4
+ end
5
+ end
data/lib/easypost/util.rb CHANGED
@@ -25,6 +25,7 @@ module EasyPost
25
25
  'Rate' => Rate,
26
26
  'Refund' => Refund,
27
27
  'Batch' => Batch,
28
+ 'Tracker' => Tracker,
28
29
  'PostageLabel' => PostageLabel }
29
30
 
30
31
  prefixes = { 'adr' => Address,
@@ -36,6 +37,7 @@ module EasyPost
36
37
  'rate' => Rate,
37
38
  'rfnd' => Refund,
38
39
  'batch' => Batch,
40
+ 'trk' => Tracker,
39
41
  'pl' => PostageLabel }
40
42
 
41
43
  case response
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easypost
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-07-23 00:00:00.000000000 Z
13
+ date: 2013-07-31 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client
@@ -97,6 +97,7 @@ files:
97
97
  - lib/easypost/resource.rb
98
98
  - lib/easypost/scan_form.rb
99
99
  - lib/easypost/shipment.rb
100
+ - lib/easypost/tracker.rb
100
101
  - lib/easypost/util.rb
101
102
  - lib/easypost/version.rb
102
103
  - spec/address_spec.rb