wco_models 3.5.0.3 → 3.5.0.5
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 300bd642756d7771c2847a115e9e1da94ccf0adb20828a8861e4d8f4b2902a3a
|
|
4
|
+
data.tar.gz: d18ca2fcd9faf8e366ae428d71bcbc69c906afd7ce36e9ff2c5f57e531bd68c2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d42dc3eb769b9efbce9e3b3fa2c15460baf8908beddead8909868a3c080a0ea4f420367d07b24462bd1d792d4d8405cf228bd46192d417be520af68318306b0c
|
|
7
|
+
data.tar.gz: 46cb57d0ea312183cb797dc156c70fb82d9263e117a37a072b32de9f97fda276f42ad505456bf2de1a84c55ccb78f3fedba4f710a22ed9728ed1719a5beebd8c
|
|
@@ -70,11 +70,10 @@ class Wco::Api::NewspartialsController < Wco::ApiController
|
|
|
70
70
|
config[:generate_video_url] = wco.api_newsproducer_studio_blue_url({
|
|
71
71
|
api_key: Wco::Setting.get('WASYACO_SIMPLE_API_KEY'),
|
|
72
72
|
api_secret: Wco::Setting.get('WASYACO_SIMPLE_API_SECRET'),
|
|
73
|
-
host:
|
|
73
|
+
host: Wco::Setting.get('WASYACO_ORIGIN'),
|
|
74
74
|
newspartial_id: @newspartial.id.to_s,
|
|
75
|
-
wco_origin:
|
|
75
|
+
wco_origin: Wco::Setting.get('WASYACO_ORIGIN'),
|
|
76
76
|
})
|
|
77
|
-
puts! config, 'ze config'
|
|
78
77
|
render json: JSON.generate(config, ascii_only: false, escape_html_entities: false)
|
|
79
78
|
end
|
|
80
79
|
|
|
@@ -151,9 +151,9 @@ class Wco::Newspartial
|
|
|
151
151
|
def generate_video_url
|
|
152
152
|
newspartial = self
|
|
153
153
|
url = Wco::Engine.routes.url_helpers.api_newspartial_config_url({ id: newspartial.id,
|
|
154
|
-
host:
|
|
155
|
-
wco_origin:
|
|
156
|
-
api_key:
|
|
154
|
+
host: Wco::Setting.get('WASYACO_ORIGIN'),
|
|
155
|
+
wco_origin: Wco::Setting.get('WASYACO_ORIGIN'),
|
|
156
|
+
api_key: Wco::Setting.get('WASYACO_SIMPLE_API_KEY'),
|
|
157
157
|
api_secret: Wco::Setting.get('WASYACO_SIMPLE_API_SECRET'),
|
|
158
158
|
})
|
|
159
159
|
end
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
|
|
32
32
|
-# = link_to 'Generate video 1', api_newsproducer_studio_1_path({ newspartial_id: newspartial.id.to_s, wco_origin: request.base_url, api_key: Wco::Setting.get('WASYACO_SIMPLE_API_KEY'), api_secret: Wco::Setting.get('WASYACO_SIMPLE_API_SECRET') }), target: :_blank, class: 'btn btn-primary', data: { confirm: 'Are you sure?' }
|
|
33
33
|
-# = link_to 'Generate video green', api_newsproducer_studio_green_path({ newspartial_id: newspartial.id.to_s, wco_origin: request.base_url, api_key: Wco::Setting.get('WASYACO_SIMPLE_API_KEY'), api_secret: Wco::Setting.get('WASYACO_SIMPLE_API_SECRET') }), target: :_blank, class: 'btn btn-primary', data: { confirm: 'Are you sure?' }
|
|
34
|
-
= link_to '_blue 2', api_newsproducer_studio_blue_path({ newspartial_id: newspartial.id.to_s, wco_origin:
|
|
34
|
+
= link_to '_blue 2', api_newsproducer_studio_blue_path({ newspartial_id: newspartial.id.to_s, wco_origin: Wco::Setting.get('WASYACO_ORIGIN'), api_key: Wco::Setting.get('WASYACO_SIMPLE_API_KEY'), api_secret: Wco::Setting.get('WASYACO_SIMPLE_API_SECRET') }), target: :_blank, class: 'btn btn-primary' # , data: { confirm: 'Are you sure?' }
|
|
35
35
|
= button_to 'generate video', newspartial_generate_video_path( newspartial )
|
|
36
36
|
Video:
|
|
37
37
|
- if newspartial.video
|