postmen 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/postmen/label.rb +1 -1
- data/lib/postmen/parcel.rb +2 -2
- data/lib/postmen/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd3345c73725437b09257d74afd6ea1f3310cc58
|
4
|
+
data.tar.gz: 2f0065813ffb298f21f5a8ac6b45412b9a0318b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2d029f23496a01e948d20a95107e2ae6490d979370584a3b1e730d486bdf92480046cb2c079e37be321082fd4a18c52992af20c12709b517d68be5e55ff1f70
|
7
|
+
data.tar.gz: cf12ab5121d8882c703bdd1235a4bb837db1a3dcc793210c8d5fdced982398f2fef19ebb1eb7e2255d121ab9acfd745e700aa7a13089302d1a28e794dcf717bc
|
data/lib/postmen/label.rb
CHANGED
@@ -3,7 +3,7 @@ class Postmen
|
|
3
3
|
#
|
4
4
|
# @see https://docs.postmen.com/api.html#labels API documentation
|
5
5
|
class Label < Dry::Struct
|
6
|
-
attribute :id, Types::UUID
|
6
|
+
attribute :id, Types::Strict::Nil | Types::UUID
|
7
7
|
attribute :status, Types::String
|
8
8
|
attribute :tracking_numbers, Types::Array.member(Types::String)
|
9
9
|
attribute :files, Types::Strict::Nil | Types::Array.member(Types::Hash)
|
data/lib/postmen/parcel.rb
CHANGED
@@ -3,9 +3,9 @@ class Postmen
|
|
3
3
|
#
|
4
4
|
# @see https://docs.postmen.com/api.html#parcel API Documentation
|
5
5
|
class Parcel < Dry::Struct
|
6
|
-
attribute :description, Types::String
|
6
|
+
attribute :description, Types::String.optional
|
7
7
|
attribute :box_type, Types::String
|
8
|
-
attribute :weight, Types::Weight
|
8
|
+
attribute :weight, Types::Strict::Nil | Types::Weight
|
9
9
|
attribute :dimension, Types::Dimension
|
10
10
|
attribute :items, Types::Array.member(Types::Item)
|
11
11
|
end
|
data/lib/postmen/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: postmen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- postmen.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|