usps-imis-api 0.3.2 → 0.3.3.pre.pre.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: 6196e7258629848261198d3277f1d21fd9bff4a3fd021daf7f7412fbe04e7b06
4
- data.tar.gz: 754a70f94ba0f03409c0021a4c416b581285c7574d12f5b9f686ff81491df540
3
+ metadata.gz: d71f733048ca34857ca8914e8591e44f5671d678e5644a67f877dac272712a0c
4
+ data.tar.gz: b960d8a2202168321cd1e9605bb5299c3fc21356ca299faf34b5799e44a8a53b
5
5
  SHA512:
6
- metadata.gz: 422554164e68b922847af8709c0f15cf24ba100cd19bab86dcab7cf125b54aefe157a8d128cfc2c7e08429a9ac549e326787e6a8a3941ab7ce37f4fd4c5fe28e
7
- data.tar.gz: 156d0e14d1a1d1c0d7724924adfa67a41e4e8caf006860bed5222156c47e2ce5d73ba72758c98e84ceb67ece8c7ba6ab8997338c9f4e54efdc4a9b66d8e3dd06
6
+ metadata.gz: 128b52d227155ebc4e4807354e0668c0929221c05738efade63afb428dd88b331c7c8611d159fdbbeba6b379ea36724e6defc1c8fa8e1fe510fde4401a5a5545
7
+ data.tar.gz: 546813a0c7a339e2a958f539feafa46c280e825cc2d8dc2d066998e8980627ead2757bf4a3e5d448be9d003c0972c96c0065d986ac665038742652de85396fa8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- usps-imis-api (0.3.2)
4
+ usps-imis-api (0.3.3.pre.pre.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/lib/usps/imis/api.rb CHANGED
@@ -10,8 +10,9 @@ module Usps
10
10
 
11
11
  attr_reader :token, :token_expiration, :imis_id
12
12
 
13
- def initialize(skip_authentication: false)
13
+ def initialize(skip_authentication: false, imis_id: nil)
14
14
  authenticate unless skip_authentication
15
+ self.imis_id = imis_id if imis_id
15
16
  end
16
17
 
17
18
  # Manually set the current ID, if you already have it for a given member
@@ -6,8 +6,9 @@ module Usps
6
6
  class BasePanel
7
7
  attr_reader :api
8
8
 
9
- def initialize(api = nil)
9
+ def initialize(api = nil, imis_id: nil)
10
10
  @api = api || Api.new
11
+ api.imis_id = imis_id if imis_id
11
12
  end
12
13
 
13
14
  def get(ordinal)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Usps
4
4
  module Imis
5
- VERSION = '0.3.2'
5
+ VERSION = '0.3.3-pre.1'
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.3.2
4
+ version: 0.3.3.pre.pre.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fiander