usps-imis-api 0.11.3 → 0.11.4

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: 12f51db70652669afdc29f5d0a753f053a4e7228eb7f88a14e570bbcf1de5488
4
- data.tar.gz: 97035afafa222607b44fd8b015fa88895d575ad73241d2a6d17f7fa4c560a258
3
+ metadata.gz: e8eb337744ecc5e0a04d0bcb6d7b0dc6f0a71652dcb419d2ad401fac4d2ebd62
4
+ data.tar.gz: 94cd6355d822afb03d72d17c038b4be0a4afd163ffe0c686654be3617fec355a
5
5
  SHA512:
6
- metadata.gz: 69aa7c6c29a177db4b8bc06889207def81698678e707362bab433911f17f32f62414e03a4571cfd23ffe2dc009f2deb6c285da87cce0b497ae6a59ad3ce2ccbe
7
- data.tar.gz: 5beeb62eb417b69dbcf2cc576cd994663464dd61fc6243732322862b60a72c4a57b3fed7de9ca70d009b7f6a2b687164598456415b518600164b41d8d37122f7
6
+ metadata.gz: 6d9c4765758a516a7119dd43dc7d2681b09eef01d00ade3967cb0495c88b1b7b09579df78e8cb35e7bf035bcb487ed03c3aeff8cf3915f890451a560cb75d003
7
+ data.tar.gz: fb012df3006fddd40566eca42371452c98908e88dd869c2733fe90ee858b1cffe44f087639787433534a9e1dc9a37cb8bd5c773e78441d5a6ea6d4ff9019c41b
@@ -65,6 +65,7 @@ module Usps
65
65
  # rubocop:disable Metrics
66
66
  def perform!
67
67
  case options
68
+ in mapper: true, data: then api.mapper.update(data)
68
69
  in map:, data: then api.mapper[map.to_sym] = data
69
70
  in map: then api.mapper[map.to_sym]
70
71
 
@@ -18,6 +18,7 @@ module Usps
18
18
  field: ['Specific field to return or update', { type: :string }],
19
19
  fields: ['Specific field(s) to return', { type: :strings, short: :F }],
20
20
  map: ['Mapped field name to return or update', { type: :string }],
21
+ mapper: ['Multiple mapped fields to update together', { short: :M }],
21
22
  data: ['JSON string input', { type: :string }],
22
23
  config: ['Path to the JSON config file to use', { type: :string, short: :C }],
23
24
  raw: ['Return raw JSON output, rather than simplified data', { short: :R }],
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Usps
4
4
  module Imis
5
- VERSION = '0.11.3'
5
+ VERSION = '0.11.4'
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.11.3
4
+ version: 0.11.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fiander