usps-imis-api 0.9.1 → 0.9.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 303b15f935a8eada8e8cbe1d22448e6c863c7d3dff017df0ccd4b77a48928727
4
- data.tar.gz: f53472c5476db6312cfac1d0fdb0defbe5e972bf358451cab3b3ad0cf7ba527e
3
+ metadata.gz: e19af888058a7e7b952269cf44ca87dcd50c733e5ad4c97760c80fee73e713b6
4
+ data.tar.gz: 85c743311d63b29d85ebab874e174446d452a4e0679bdc7c8191d5cdb1557a22
5
5
  SHA512:
6
- metadata.gz: ba3063a80b49011442528694ffab0901e5562d340ee65ec8ddc1a0bf9d07ec8a59e6930e7002154b51c421ec83bdc3ee8cf089c3818f0ffd32affd277d7c573e
7
- data.tar.gz: 116fa8f0b62b65ec78ca7dbc56b7cc9f9cd557e5522a321a5b0904dfb76d65e5f1d3564ad66c5671f54f5db217321d7029f6899d0f49e472d72cf41d00a90c0d
6
+ metadata.gz: eebcd44785ae1a0d021ff01a7205b2fe9db7546c73dd3f47e3e4c34db90c1344bc2dee97283f67a484764b87b1b8ade9e04811a848caece4bd7287df3297e55c
7
+ data.tar.gz: 52dc9356735c0d972096fefe3de91c5acb2f3cf4698f5fe2a4ac711e655b15f384c7a815a9c4eff7ac12db09f9e425f03de2f318df2d45b99bc14b84e49ce7e7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- usps-imis-api (0.9.1)
4
+ usps-imis-api (0.9.3)
5
5
  activesupport (~> 8.0)
6
6
 
7
7
  GEM
@@ -102,6 +102,10 @@ module Usps
102
102
  def delete = submit(uri, authorize(Net::HTTP::Delete.new(uri))).body == '' # rubocop:disable Naming/PredicateMethod
103
103
  alias destroy delete
104
104
 
105
+ # Ruby 3.5 instance variable filter
106
+ #
107
+ def instance_variables_to_inspect = instance_variables - %i[@api]
108
+
105
109
  private
106
110
 
107
111
  def token = api.token
@@ -159,7 +163,9 @@ module Usps
159
163
  def raw_object
160
164
  request = Net::HTTP::Get.new(uri)
161
165
  result = submit(uri, authorize(request))
162
- Data.from_json(result.body)
166
+ result = Data.from_json(result.body)
167
+ JSON.pretty_generate(result).split("\n").each { Imis.logger.debug " -> #{it}" }
168
+ result
163
169
  end
164
170
 
165
171
  # Upload an object to the API
@@ -167,7 +173,9 @@ module Usps
167
173
  def put_object(request, body)
168
174
  request.body = JSON.dump(body)
169
175
  result = submit(uri, authorize(request))
170
- Data.from_json(result.body)
176
+ result = Data.from_json(result.body)
177
+ JSON.pretty_generate(result).split("\n").each { Imis.logger.debug " -> #{it}" }
178
+ result
171
179
  end
172
180
  end
173
181
  end
@@ -51,6 +51,10 @@ module Usps
51
51
  end
52
52
  end
53
53
 
54
+ # Ruby 3.5 instance variable filter
55
+ #
56
+ def instance_variables_to_inspect = instance_variables - %i[@api]
57
+
54
58
  private
55
59
 
56
60
  def map_update(field_name)
@@ -87,6 +87,10 @@ module Usps
87
87
  def delete(ordinal) = api.on(business_object, ordinal:).delete
88
88
  alias destroy delete
89
89
 
90
+ # Ruby 3.5 instance variable filter
91
+ #
92
+ def instance_variables_to_inspect = instance_variables - %i[@api]
93
+
90
94
  private
91
95
 
92
96
  def business_object
@@ -75,6 +75,10 @@ module Usps
75
75
  nil
76
76
  end
77
77
 
78
+ # Ruby 3.5 instance variable filter
79
+ #
80
+ def instance_variables_to_inspect = instance_variables - %i[@api]
81
+
78
82
  private
79
83
 
80
84
  def token = api.token
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Usps
4
4
  module Imis
5
- VERSION = '0.9.1'
5
+ VERSION = '0.9.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: usps-imis-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fiander