easypost 1.1.3 → 2.0.0

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.
metadata CHANGED
@@ -1,24 +1,25 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easypost
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 2.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jon Calhoun
9
+ - Sawyer Bateman
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2013-06-04 00:00:00.000000000 Z
13
+ date: 2013-06-25 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
- name: typhoeus
16
+ name: rest-client
16
17
  requirement: !ruby/object:Gem::Requirement
17
18
  none: false
18
19
  requirements:
19
20
  - - ~>
20
21
  - !ruby/object:Gem::Version
21
- version: 0.6.3
22
+ version: '1.4'
22
23
  type: :runtime
23
24
  prerelease: false
24
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,15 +27,18 @@ dependencies:
26
27
  requirements:
27
28
  - - ~>
28
29
  - !ruby/object:Gem::Version
29
- version: 0.6.3
30
+ version: '1.4'
30
31
  - !ruby/object:Gem::Dependency
31
- name: json
32
+ name: multi_json
32
33
  requirement: !ruby/object:Gem::Requirement
33
34
  none: false
34
35
  requirements:
35
36
  - - ! '>='
36
37
  - !ruby/object:Gem::Version
37
- version: '0'
38
+ version: 1.0.4
39
+ - - <
40
+ - !ruby/object:Gem::Version
41
+ version: '2'
38
42
  type: :runtime
39
43
  prerelease: false
40
44
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,19 +46,66 @@ dependencies:
42
46
  requirements:
43
47
  - - ! '>='
44
48
  - !ruby/object:Gem::Version
45
- version: '0'
46
- description: Client library for accessing the EasyPost Shipping API via Ruby
49
+ version: 1.0.4
50
+ - - <
51
+ - !ruby/object:Gem::Version
52
+ version: '2'
53
+ - !ruby/object:Gem::Dependency
54
+ name: rspec
55
+ requirement: !ruby/object:Gem::Requirement
56
+ none: false
57
+ requirements:
58
+ - - ~>
59
+ - !ruby/object:Gem::Version
60
+ version: 2.13.0
61
+ type: :development
62
+ prerelease: false
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ none: false
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: 2.13.0
69
+ description: Client library for accessing the EasyPost shipping API via Ruby.
47
70
  email: contact@easypost.com
48
- executables: []
71
+ executables:
72
+ - easypost-irb
49
73
  extensions: []
50
74
  extra_rdoc_files: []
51
75
  files:
76
+ - .gitignore
77
+ - CHANGELOG
78
+ - Gemfile
79
+ - Gemfile.lock
80
+ - LICENSE
81
+ - README.md
82
+ - Rakefile
83
+ - VERSION
84
+ - bin/easypost-irb
85
+ - easypost.gemspec
52
86
  - lib/easypost.rb
53
87
  - lib/easypost/address.rb
54
- - lib/easypost/postage.rb
55
- - lib/easypost/errors/easypost_error.rb
56
- - lib/easypost/errors/authentication_error.rb
57
- homepage: https://www.geteasypost.com/docs
88
+ - lib/easypost/batch.rb
89
+ - lib/easypost/customs_info.rb
90
+ - lib/easypost/customs_item.rb
91
+ - lib/easypost/error.rb
92
+ - lib/easypost/object.rb
93
+ - lib/easypost/parcel.rb
94
+ - lib/easypost/postage_label.rb
95
+ - lib/easypost/rate.rb
96
+ - lib/easypost/refund.rb
97
+ - lib/easypost/resource.rb
98
+ - lib/easypost/scan_form.rb
99
+ - lib/easypost/shipment.rb
100
+ - lib/easypost/util.rb
101
+ - lib/easypost/version.rb
102
+ - spec/address_spec.rb
103
+ - spec/batch_spec.rb
104
+ - spec/refund_spec.rb
105
+ - spec/scan_form_spec.rb
106
+ - spec/shipment_spec.rb
107
+ - spec/spec_helper.rb
108
+ homepage: https://easypost.com/docs
58
109
  licenses: []
59
110
  post_install_message:
60
111
  rdoc_options: []
@@ -77,5 +128,5 @@ rubyforge_project:
77
128
  rubygems_version: 1.8.25
78
129
  signing_key:
79
130
  specification_version: 3
80
- summary: EasyPost
131
+ summary: EasyPost Ruby Client Library
81
132
  test_files: []
@@ -1,4 +0,0 @@
1
- module EasyPost
2
- class AuthenticationError < EasyPostError
3
- end
4
- end
@@ -1,52 +0,0 @@
1
- module EasyPost
2
- class Postage
3
- @@type = "postage"
4
- @@usps_package_types = %w(
5
- Card
6
- Letter
7
- Flat
8
- Parcel
9
- LargeParcel
10
- IrregularParcel
11
- FlatRateEnvelope
12
- FlatRateLegalEnvelope
13
- FlatRatePaddedEnvelope
14
- FlatRateGiftCardEnvelope
15
- FlatRateWindowEnvelope
16
- FlatRateCardboardEnvelope
17
- SmallFlatRateEnvelope
18
- SmallFlatRateBox
19
- MediumFlatRateBox
20
- LargeFlatRateBox
21
- RegionalRateBoxA
22
- RegionalRateBoxB
23
- RegionalRateBoxC
24
- LargeFlatRateBoardGameBox
25
- )
26
-
27
- def self.usps_package_types
28
- return @@usps_package_types
29
- end
30
-
31
- def self.rates(data={})
32
- @rates = EasyPost.get(EasyPost.api_url(:type => @@type, :action => "rates"), data)
33
- end
34
-
35
- def self.compare(data={})
36
- return rates(data)
37
- end
38
-
39
- def self.buy(data={})
40
- @rates = EasyPost.post(EasyPost.api_url(:type => @@type, :action => "buy"), data)
41
- end
42
-
43
- def self.get(filename)
44
- @rates = EasyPost.get(EasyPost.api_url(:type => @@type, :action => "get"), :label_file_name => filename)
45
- end
46
-
47
- def self.list()
48
- @rates = EasyPost.get(EasyPost.api_url(:type => @@type, :action => "list"))
49
- end
50
-
51
- end
52
- end