eivid 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eivid/engine.rb +14 -18
- data/lib/eivid/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9246a571186c117fe8a8cedba5908a275eaa74b0bea191fd69f557431a18201a
|
4
|
+
data.tar.gz: 860c7a305e0909d59b093cd33fb063542edf0a49632f7c1db83889681a6029a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff72ebf02f8a5f89bb2ffa3ac1e92f7001900588fbbf54fe3764dd2a680003c06776a2100f68952ae4f2515b2213a5b8bbdc423dc01b2f28e9f241cca3bf839c
|
7
|
+
data.tar.gz: a62b3655af2be692f16f71fb3bb029000cefff28575eb2f480f900037d11a41924a7dfab8d737a91714b1b345e5a29aa260c09a7a1aceabed1c9bcf6063493b3
|
data/lib/eivid/engine.rb
CHANGED
@@ -7,27 +7,23 @@ module Eivid
|
|
7
7
|
|
8
8
|
end
|
9
9
|
|
10
|
-
|
10
|
+
mattr_accessor :owner_model, :infer_external_owner_id, :notify_front_enabled, :notify_method_on_upload,
|
11
|
+
:notify_method_on_video_available, :notify_method_on_versions_available
|
11
12
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
# sets how to extract the owner_id in controller actions
|
19
|
-
self.infer_external_owner_id = "params['external_owner_id'].to_i"
|
20
|
-
|
21
|
-
# sets front end notifiers
|
22
|
-
self.notify_front_enabled = false
|
23
|
-
self.notify_method_on_upload = nil
|
24
|
-
self.notify_method_on_video_available = nil
|
25
|
-
self.notify_method_on_versions_available = nil
|
13
|
+
#sets video owner in the main app
|
14
|
+
self.owner_model = nil
|
15
|
+
|
16
|
+
# sets how to extract the owner_id in controller actions
|
17
|
+
self.infer_external_owner_id = "params['external_owner_id'].to_i"
|
26
18
|
|
27
|
-
|
28
|
-
|
29
|
-
|
19
|
+
# sets front end notifiers
|
20
|
+
self.notify_front_enabled = false
|
21
|
+
self.notify_method_on_upload = nil
|
22
|
+
self.notify_method_on_video_available = nil
|
23
|
+
self.notify_method_on_versions_available = nil
|
30
24
|
|
25
|
+
def self.set_mattr_accessors(&block)
|
26
|
+
yield self
|
31
27
|
end
|
32
28
|
|
33
29
|
end
|
data/lib/eivid/version.rb
CHANGED