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: ff91ddf8a42e1a811c7977b9a2fb85ea82aa13c6
4
- data.tar.gz: 1039d296431910264fba28bd36680e43303b0853
3
+ metadata.gz: 1a65ad117b4b76cb73350744aff8a7610232328d
4
+ data.tar.gz: d0c48b908ca459449a062c89ecbb2027ed04e269
5
5
  SHA512:
6
- metadata.gz: d8136eda748d759dab69601755fd0ee0c3715e720b1b6e8dc5e613f77814095e262f8f73823fbf15956525a79de9fdc6a25b969c548fc71779e3787db0c14ab3
7
- data.tar.gz: abf65acc9c675aa0646c4b4efe9ff59aecc6b54e2373eb3d62de0983f4be6864261a45bea8ac04f0652d58a75a9cb0e464e00ed0dd4289addaff2420613ae6a4
6
+ metadata.gz: 8ff204e16b723f994bfd1b12821ed71c4cd936a6333f2235c1ad70917319a45aaa9022f443ab4415fa06d2599455b1ff2453846a33aff602f680c3c9ef89090d
7
+ data.tar.gz: 85fccefd5f869486d28ea3c4e7de81929f448301c1fd30c483a0b1af63e1f95a1c828084c1acd26884b1682c4e68220310311796c7b6d0a8aa6c020744ece5ea
@@ -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
- missing_location_and_requirements: Missing app location or requirements
13
- no_location_required: Having location defined while requirements only
14
- is true
15
- no_framework_version_required: Having framework version defined while
16
- requirements only is true
17
- no_app_js_required: Having app.js present while requirements only is true
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: "Having location defined while requirements only is true"
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: "Having framework version defined while requirements only is true"
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: "Having app.js present while requirements only is true"
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"
@@ -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.1
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-21 00:00:00.000000000 Z
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.0
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