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 +4 -4
- data/lib/wcc/media/client.rb +2 -0
- data/lib/wcc/media/message.rb +2 -0
- data/lib/wcc/media/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: 7b0bb878ef43f1e2ed0a4a8929db6e18063e7b2b
|
4
|
+
data.tar.gz: d2c30258b9fee601430be4cb256ecb2bc5eb40f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 369cd6994057f1466a7bd085373f1f0906f756b9118981b1d7cbd603618a6ea669ae406d588a3560df107e337dc04aaba81287cddbd705b7077d20f20f571e03
|
7
|
+
data.tar.gz: 3e31c0e1aa7291519ce94698feead6805f9bda0f2760a2e4b98e45244a48875b857ead352b2c42b2a58baf00dce2dde7384df873228d79f887a9681e63c24205
|
data/lib/wcc/media/client.rb
CHANGED
@@ -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)
|
data/lib/wcc/media/message.rb
CHANGED
data/lib/wcc/media/version.rb
CHANGED
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.
|
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
|
+
date: 2019-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: wcc-api
|