easypost 4.7.0 → 4.7.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e9995cfcc5bc7cce1ebefa6343fc31ba18f6f0f4b36dfb7502225b7abb1b40f8
4
- data.tar.gz: 64d814764933ba53e3de2b01f39ba6fd2195a3a65ec4ec6c01b720078750fc42
3
+ metadata.gz: 33802b8af58e7efc3e5592c6559dd48dfa5a58cc9338f719c78bc97639f73c51
4
+ data.tar.gz: 1ec9df3da15eb1169817db4d3610f78826388836995615ec928a80d60e17fcf1
5
5
  SHA512:
6
- metadata.gz: 44179f3818dd5d9098eed96f3263b12a67dd7ec415c49fb9efc976b07b858e63ed326c68b0a07415a62da8311cd5b4e72c406bf6650e197ad69956c674b03d76
7
- data.tar.gz: 86007bac46665593dc205c9c231409698401af9b58da3d2d22049c0510b29528303a625c2be2945814ceffd7ee93838049dba5a8a34dcbf3afe3879f583cee80
6
+ metadata.gz: 8f66b559d5f34005ad16151f3b32b168254efaff625ab06eba13a97ebe1aade1ff40f3d281fed9f32f80016bf662337be2053dc9a74d0f748bff47c67c3f6dd8
7
+ data.tar.gz: a22e6a0c850f686807aae90db0d81a24f963c045e043dbd497a5078b9b4f5806124782906d78b3e30b760a13cd78daf9c99b4252c58760205d5b7364472f3310
data/CHANGELOG.md CHANGED
@@ -1,9 +1,13 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v4.7.1 (2022-09-06)
4
+
5
+ - Makes not implemented `all` calls match the `EasyPost::Resource` interface so that one can call `.to_json` on them and receive the proper error
6
+
3
7
  ## v4.7.0 (2022-08-25)
4
8
 
5
9
  - Moves EndShipper out of beta to the general library namespace
6
- - Ensure the Easypost object will respond to `.id` when it has one in @values
10
+ - Ensure the Easypost object will respond to `.id` when it has one in `@values`
7
11
 
8
12
  ## v4.6.0 (2022-08-02)
9
13
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.7.0
1
+ 4.7.1
@@ -3,7 +3,7 @@
3
3
  # CustomsInfo objects contain CustomsItem objects and all necessary information for the generation of customs forms required for international shipping.
4
4
  class EasyPost::CustomsInfo < EasyPost::Resource
5
5
  # Retrieve a list of CustomsInfo objects
6
- def self.all
6
+ def self.all(_filters = {}, _api_key = nil)
7
7
  raise NotImplementedError.new('CustomsInfo.all not implemented.')
8
8
  end
9
9
  end
@@ -3,7 +3,7 @@
3
3
  # A CustomsItem object describes goods for international shipment and should be created then included in a CustomsInfo object.
4
4
  class EasyPost::CustomsItem < EasyPost::Resource
5
5
  # Retrieve a list of CustomsItem objects
6
- def self.all
6
+ def self.all(_filters = {}, _api_key = nil)
7
7
  raise NotImplementedError.new('CustomsItem.all not implemented.')
8
8
  end
9
9
  end
@@ -26,7 +26,7 @@ class EasyPost::Order < EasyPost::Resource
26
26
  end
27
27
 
28
28
  # Retrieve a list of Order objects.
29
- def self.all
29
+ def self.all(_filters = {}, _api_key = nil)
30
30
  raise NotImplementedError.new('Order.all not implemented.')
31
31
  end
32
32
 
@@ -3,7 +3,7 @@
3
3
  # Parcel objects represent the physical container being shipped.
4
4
  class EasyPost::Parcel < EasyPost::Resource
5
5
  # Retrieving all Parcel objects is not supported.
6
- def self.all
6
+ def self.all(_filters = {}, _api_key = nil)
7
7
  raise NotImplementedError.new('Parcel.all not implemented.')
8
8
  end
9
9
  end
@@ -4,7 +4,7 @@
4
4
  class EasyPost::PaymentMethod < EasyPost::Resource
5
5
  # <b>DEPRECATED:</b> Please use <tt>Billing class</tt> instead.
6
6
  # Deprecated: v4.5.0 - v6.0.0
7
- def self.all(api_key = nil)
7
+ def self.all(_filters = {}, api_key = nil)
8
8
  warn '[DEPRECATION] `all` is deprecated. Please use `Billing.retrieve_payment_methods` instead.'
9
9
  EasyPost::Billing.retrieve_payment_methods(api_key)
10
10
  end
@@ -26,7 +26,7 @@ class EasyPost::Pickup < EasyPost::Resource
26
26
  end
27
27
 
28
28
  # Retrieve a list of all Pickup objects.
29
- def self.all
29
+ def self.all(_filters = {}, _api_key = nil)
30
30
  raise NotImplementedError.new('Pickup.all not implemented.')
31
31
  end
32
32
 
data/lib/easypost/rate.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  # A Rate object contains all the details about the rate of a Shipment.
4
4
  class EasyPost::Rate < EasyPost::Resource
5
5
  # Retrieving all Rate objects is not supported.
6
- def self.all
6
+ def self.all(_filters = {}, _api_key = nil)
7
7
  raise NotImplementedError.new('Rate.all not implemented.')
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easypost
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.7.0
4
+ version: 4.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - EasyPost Developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-25 00:00:00.000000000 Z
11
+ date: 2022-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: brakeman