zendesk_apps_support 1.14.1 → 1.14.2
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a65ad117b4b76cb73350744aff8a7610232328d
|
4
|
+
data.tar.gz: d0c48b908ca459449a062c89ecbb2027ed04e269
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ff204e16b723f994bfd1b12821ed71c4cd936a6333f2235c1ad70917319a45aaa9022f443ab4415fa06d2599455b1ff2453846a33aff602f680c3c9ef89090d
|
7
|
+
data.tar.gz: 85fccefd5f869486d28ea3c4e7de81929f448301c1fd30c483a0b1af63e1f95a1c828084c1acd26884b1682c4e68220310311796c7b6d0a8aa6c020744ece5ea
|
data/config/locales/en.yml
CHANGED
@@ -9,12 +9,12 @@ en:
|
|
9
9
|
jshint:
|
10
10
|
one: 'JSHint error in %{file}: %{errors}'
|
11
11
|
other: 'JSHint errors in %{file}: %{errors}'
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
12
|
+
no_location_required: Locations can't be defined when you specify requirements
|
13
|
+
only
|
14
|
+
no_framework_version_required: Framework versions can't be set when you
|
15
|
+
specify requirements only
|
16
|
+
no_app_js_required: Do not set your app to requirements only if you need
|
17
|
+
app.js
|
18
18
|
manifest_not_json: manifest is not proper JSON. %{errors}
|
19
19
|
missing_manifest: Could not find manifest.json
|
20
20
|
missing_requirements: Could not find requirements.json
|
@@ -16,22 +16,18 @@ parts:
|
|
16
16
|
key: "txt.apps.admin.error.app_build.jshint.other"
|
17
17
|
title: "App builder job: JSHint error messages"
|
18
18
|
value: "JSHint errors in %{file}: %{errors}"
|
19
|
-
- translation:
|
20
|
-
key: "txt.apps.admin.error.app_build.missing_location_and_requirements"
|
21
|
-
title: "App builder job: missing location and requirements error"
|
22
|
-
value: "Missing app location or requirements"
|
23
19
|
- translation:
|
24
20
|
key: "txt.apps.admin.error.app_build.no_location_required"
|
25
21
|
title: "App builder job: ban location while requirements only"
|
26
|
-
value: "
|
22
|
+
value: "Locations can't be defined when you specify requirements only"
|
27
23
|
- translation:
|
28
24
|
key: "txt.apps.admin.error.app_build.no_framework_version_required"
|
29
25
|
title: "App builder job: ban framework version while requirements only"
|
30
|
-
value: "
|
26
|
+
value: "Framework versions can't be set when you specify requirements only"
|
31
27
|
- translation:
|
32
28
|
key: "txt.apps.admin.error.app_build.no_app_js_required"
|
33
29
|
title: "App builder job: ban app.js while requirements only"
|
34
|
-
value: "
|
30
|
+
value: "Do not set your app to requirements only if you need app.js"
|
35
31
|
- translation:
|
36
32
|
key: "txt.apps.admin.error.app_build.manifest_not_json"
|
37
33
|
title: "App builder job: manifest is invalid JSON error"
|
data/lib/zendesk_apps_support.rb
CHANGED
@@ -12,7 +12,6 @@ module ZendeskAppsSupport
|
|
12
12
|
|
13
13
|
module Validations
|
14
14
|
autoload :ValidationError, 'zendesk_apps_support/validations/validation_error'
|
15
|
-
autoload :Package, 'zendesk_apps_support/validations/package'
|
16
15
|
autoload :Manifest, 'zendesk_apps_support/validations/manifest'
|
17
16
|
autoload :Source, 'zendesk_apps_support/validations/source'
|
18
17
|
autoload :Templates, 'zendesk_apps_support/validations/templates'
|
@@ -25,10 +25,8 @@ module ZendeskAppsSupport
|
|
25
25
|
errors << Validations::Manifest.call(self)
|
26
26
|
|
27
27
|
if has_manifest?
|
28
|
-
errors << Validations::Package.call(self)
|
29
|
-
errors << Validations::Translations.call(self)
|
30
|
-
|
31
28
|
errors << Validations::Source.call(self)
|
29
|
+
errors << Validations::Translations.call(self)
|
32
30
|
|
33
31
|
unless @requirements_only
|
34
32
|
errors << Validations::Templates.call(self)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zendesk_apps_support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.14.
|
4
|
+
version: 1.14.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James A. Rosen
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2014-02-
|
14
|
+
date: 2014-02-25 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: i18n
|
@@ -163,7 +163,6 @@ files:
|
|
163
163
|
- lib/zendesk_apps_support/sass_functions.rb
|
164
164
|
- lib/zendesk_apps_support/stylesheet_compiler.rb
|
165
165
|
- lib/zendesk_apps_support/validations/manifest.rb
|
166
|
-
- lib/zendesk_apps_support/validations/package.rb
|
167
166
|
- lib/zendesk_apps_support/validations/requirements.rb
|
168
167
|
- lib/zendesk_apps_support/validations/source.rb
|
169
168
|
- lib/zendesk_apps_support/validations/stylesheets.rb
|
@@ -190,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
190
189
|
version: 1.3.6
|
191
190
|
requirements: []
|
192
191
|
rubyforge_project:
|
193
|
-
rubygems_version: 2.2.
|
192
|
+
rubygems_version: 2.2.2
|
194
193
|
signing_key:
|
195
194
|
specification_version: 4
|
196
195
|
summary: Support to help you develop Zendesk Apps.
|
@@ -1,24 +0,0 @@
|
|
1
|
-
module ZendeskAppsSupport
|
2
|
-
module Validations
|
3
|
-
module Package
|
4
|
-
|
5
|
-
class <<self
|
6
|
-
def call(package)
|
7
|
-
[].tap do |errors|
|
8
|
-
errors << has_location_or_requirements(package)
|
9
|
-
errors.compact!
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
private
|
14
|
-
|
15
|
-
def has_location_or_requirements(package)
|
16
|
-
if !package.has_location? && !package.has_requirements?
|
17
|
-
ValidationError.new('missing_location_and_requirements')
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|