wolas_channel 0.1.8 → 0.1.9
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 +4 -4
- data/lib/wolas_channel/version.rb +1 -1
- data/lib/wolas_channel.rb +6 -3
- data/wolas_channel-0.1.8.gem +0 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21f5f8d4e8c4dcbbbfc94adcab34412896b08fda
|
4
|
+
data.tar.gz: fcdbe13357c3b39d41a0691fde4515894d27be11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a374d26e5bcb424d86265e6667ebaba64344398201616c5e9e5fa25693668eac830c94d6b21da62674c16cc47da45225440f2ee37bd1f9166f72f3aa5b21b484
|
7
|
+
data.tar.gz: cce6d67059aee34667ff901303bafd04c9c8f4094ad698e720308e75181cb7461d663c6ddd8f972b1463f8aecd94e87b32e27391715f78134e68626f1f5323ea
|
data/lib/wolas_channel.rb
CHANGED
@@ -258,8 +258,9 @@ class WolasChannel
|
|
258
258
|
# Throw errors if Video and Image types do not have required field
|
259
259
|
if type == 'Video' || type == 'Image'
|
260
260
|
bucket_key = obj[:bucket_key] || obj['bucket_key']
|
261
|
-
|
262
|
-
|
261
|
+
link = obj[:link] || obj['link']
|
262
|
+
unless bucket_key || link
|
263
|
+
message = 'A video or image entity object must include an S3 bucketkey or link'
|
263
264
|
raise ErrorHandling::InvalidObject, message
|
264
265
|
end
|
265
266
|
end
|
@@ -297,7 +298,9 @@ class WolasChannel
|
|
297
298
|
prepare_exe(@connect, insert, channel_id, entity_id)
|
298
299
|
end
|
299
300
|
|
300
|
-
|
301
|
+
# Now the entity that was inserted is requested
|
302
|
+
entity = entity_construct(entity_id)
|
303
|
+
return entity
|
301
304
|
ensure
|
302
305
|
@connect.close
|
303
306
|
end
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wolas_channel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- WOLAS
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -99,6 +99,7 @@ files:
|
|
99
99
|
- lib/connection.rb
|
100
100
|
- lib/wolas_channel.rb
|
101
101
|
- lib/wolas_channel/version.rb
|
102
|
+
- wolas_channel-0.1.8.gem
|
102
103
|
- wolas_channel.gemspec
|
103
104
|
homepage: https://bitbucket.org/wolas-revolution/srvc-channel
|
104
105
|
licenses: []
|