diff --git a/lib/zendesk_apps_tools/theme.rb b/lib/zendesk_apps_tools/theme.rb index 4100ab53..27389fbe 100644 --- a/lib/zendesk_apps_tools/theme.rb +++ b/lib/zendesk_apps_tools/theme.rb @@ -96,6 +96,7 @@ def generate_payload payload['templates']['js'] = '' payload['templates']['assets'] = assets payload['templates']['variables'] = settings_hash + payload['templates']['metadata'] = metadata_hash payload end diff --git a/lib/zendesk_apps_tools/theming/common.rb b/lib/zendesk_apps_tools/theming/common.rb index ed1d5538..dfeb8a1f 100644 --- a/lib/zendesk_apps_tools/theming/common.rb +++ b/lib/zendesk_apps_tools/theming/common.rb @@ -45,6 +45,10 @@ def settings_hash end end + def metadata_hash + { 'api_version' => manifest['api_version'] } + end + def value_for_setting(variable) return variable.fetch('value') unless variable.fetch('type') == 'file'