wcc-media-client 0.4.3 → 0.4.4

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
  SHA1:
3
- metadata.gz: 62b489a071fa2cb5ad5e5afdf4a970364fb96bae
4
- data.tar.gz: ea19048322dfc1206a5723ee16849b28d47a1d22
3
+ metadata.gz: 7b0bb878ef43f1e2ed0a4a8929db6e18063e7b2b
4
+ data.tar.gz: d2c30258b9fee601430be4cb256ecb2bc5eb40f3
5
5
  SHA512:
6
- metadata.gz: 8d18ced6d413da9a64493510cc6c5147074361e771c7d1586b2d52dbf5743e59e0418cafc8055006f264a2461503cd563718eda7ff3aed6ba384035ca1db3733
7
- data.tar.gz: 4438d9438816c76aba2870764a1223909fe3855a52669b8095f792c88325ee6089c34985d155a01862e314d14549f5f6bd76c75805784b89c59429495b3d4749
6
+ metadata.gz: 369cd6994057f1466a7bd085373f1f0906f756b9118981b1d7cbd603618a6ea669ae406d588a3560df107e337dc04aaba81287cddbd705b7077d20f20f571e03
7
+ data.tar.gz: 3e31c0e1aa7291519ce94698feead6805f9bda0f2760a2e4b98e45244a48875b857ead352b2c42b2a58baf00dce2dde7384df873228d79f887a9681e63c24205
@@ -56,6 +56,8 @@ module WCC
56
56
  Resource =
57
57
  Struct.new(:client, :model, :options) do
58
58
  def find(id, **params)
59
+ raise ArgumentError, "id param must be present, got: #{id}" unless id && /\S/.match(id.to_s)
60
+
59
61
  resp = client.get(
60
62
  "#{model.endpoint}/#{id}",
61
63
  default_params('target').merge(params)
@@ -17,6 +17,7 @@ class WCC::Media::Message < WCC::Media::Base
17
17
 
18
18
  %w[
19
19
  date
20
+ duration
20
21
  title
21
22
  subtitle
22
23
  description
@@ -52,6 +53,7 @@ class WCC::Media::Message < WCC::Media::Base
52
53
  end
53
54
 
54
55
  %w[
56
+ meta
55
57
  embeds
56
58
  assets
57
59
  images
@@ -1,5 +1,5 @@
1
1
  module WCC
2
2
  module Media
3
- VERSION = '0.4.3'.freeze
3
+ VERSION = '0.4.4'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wcc-media-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Watermark Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-05 00:00:00.000000000 Z
11
+ date: 2019-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: wcc-api