smartsend-ruby 0.2.2 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3d0a71056fc1baf5862d64d8fe53d41779690d4ebdd770604c5c52c18fb629e7
4
- data.tar.gz: 7188a6fda24fc2f84de96fc49aaaeb1bf51f204eab9335ccd599c327e72dc4c4
3
+ metadata.gz: bd44755c68468afb9cd1f69b71dcb6e58d165bae78139372fe7e4bf973a48b0c
4
+ data.tar.gz: 13470b8e487cb9987ebb04d736bbea860999ecf1835afa8b04c606ad0c3dc2f6
5
5
  SHA512:
6
- metadata.gz: ede260aa74ffb80693c54edce1c1a1bdd327b8ece506bf3bf57d27ababcfbaab44253f56d833bc78a670ddaaec59a84317d7aecb1c570fbea714f8b73083e4d2
7
- data.tar.gz: 285f598bace76201dcb089cd85d6e7e8efe2ed6f67bc38067dea5e021cf594d325743f3dca6648308bcb86ef1e4cb461e0bb9bbb527bde7a2ac24ab285dc7399
6
+ metadata.gz: 04170b4f36833aa17340d47066238b12e5203b95a0ade34d801706ee34d0e528b4622df2d312326e4dd565a87f1163585475d60be5465abd887fb56b3972ef7b
7
+ data.tar.gz: '08f8ba3a9f05d1bb74dacdb24bb913643e6679ee518613092cee91fd8fc3fed96c6af345a3236dc28fd4be96293f416e0274fa0c9bd4e96ad3e3718a0919219b'
@@ -19,7 +19,7 @@ class Smartsend::Shipment
19
19
  success
20
20
  end
21
21
 
22
- def save!(account: nil)
22
+ def save_and_create_label!(account: nil)
23
23
  response = Smartsend::Client.new(account).post('shipments/labels', self.serialize)
24
24
 
25
25
  if response.success?
@@ -1,3 +1,3 @@
1
1
  module Smartsend
2
- VERSION = "0.2.2"
2
+ VERSION = "0.3"
3
3
  end
@@ -111,7 +111,7 @@ class ShipmentTest < Minitest::Test
111
111
  shipment.parcels << parcel2
112
112
 
113
113
  # send the shipment to Smartsend.io
114
- shipment.save!
114
+ shipment.save_and_create_label!
115
115
 
116
116
  assert shipment.success?
117
117
 
@@ -213,7 +213,7 @@ class ShipmentTest < Minitest::Test
213
213
  shipment.parcels << parcel
214
214
 
215
215
  # send the shipment to Smartsend.io
216
- shipment.save!
216
+ shipment.save_and_create_label!
217
217
 
218
218
  assert !shipment.success?
219
219
  assert_equal 5, shipment.error.errors.count
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smartsend-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: '0.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aske Hansen