zendesk_apps_support 1.13.0 → 1.13.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 98a8a5e9ae9adf2d6f9ff72b7245bcda107eaa99
4
- data.tar.gz: 917035d5d9622e79422d82faf385819a1ca90650
3
+ metadata.gz: 2865d2a5904f7c81d33e611b0e81577782e8c7b1
4
+ data.tar.gz: 50cb5050e1c0fd28fcaf2585391bfc1efc32f1a6
5
5
  SHA512:
6
- metadata.gz: 4c67cbc1a9d897390b1f74985008eec6f97370a8271b883021a03a67dc5e194bd676011fbfb8dae8ee363192d094b52cd2ad5182c58051a853e6c01667443eab
7
- data.tar.gz: 24d926b6e780372cd93b94bf7b08e6d116ac73518763d2eb8d44706fa1d92fe458ab38429b4d311bc4c5d7df76dad9ad27782f3216516ed8b23b9dc1f55e9e2f
6
+ metadata.gz: 2ee743704a038fd5df2b1ad62c3c24615bbd5760a8144e27d3db8d11e2ec9112856c9dc5223f93ce50afd788d99cc4c75286c690d8abb55fd9633432a1f0a522
7
+ data.tar.gz: b7c048132f56b68db4487c06773c64f817ede39be34be846aca38c4c6567ce2a5c4627595cabcd21c189a7b05d093eaad1dd12301bc0ac7cecde2eb40689e2a5
@@ -20,18 +20,21 @@ module ZendeskAppsSupport
20
20
  def validate
21
21
  [].tap do |errors|
22
22
 
23
- errors << Validations::Package.call(self)
24
23
  errors << Validations::Manifest.call(self)
25
- errors << Validations::Translations.call(self)
26
24
 
27
- if has_location?
28
- errors << Validations::Source.call(self)
29
- errors << Validations::Templates.call(self)
30
- errors << Validations::Stylesheets.call(self)
31
- end
25
+ if has_manifest?
26
+ errors << Validations::Package.call(self)
27
+ errors << Validations::Translations.call(self)
28
+
29
+ if has_location?
30
+ errors << Validations::Source.call(self)
31
+ errors << Validations::Templates.call(self)
32
+ errors << Validations::Stylesheets.call(self)
33
+ end
32
34
 
33
- if has_requirements?
34
- errors << Validations::Requirements.call(self)
35
+ if has_requirements?
36
+ errors << Validations::Requirements.call(self)
37
+ end
35
38
  end
36
39
 
37
40
  errors.flatten!
@@ -98,6 +101,10 @@ module ZendeskAppsSupport
98
101
  customer_css = File.exist?(css_file) ? File.read(css_file) : ""
99
102
  end
100
103
 
104
+ def has_manifest?
105
+ File.exist?(File.join(root, "manifest.json"))
106
+ end
107
+
101
108
  def has_location?
102
109
  manifest_json[:location]
103
110
  end
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.13.0
4
+ version: 1.13.1
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-05 00:00:00.000000000 Z
14
+ date: 2014-02-10 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: i18n
@@ -132,6 +132,11 @@ executables: []
132
132
  extensions: []
133
133
  extra_rdoc_files: []
134
134
  files:
135
+ - LICENSE
136
+ - README.md
137
+ - config/locales/en.yml
138
+ - config/locales/translations/zendesk_apps_support.yml
139
+ - lib/zendesk_apps_support.rb
135
140
  - lib/zendesk_apps_support/app_file.rb
136
141
  - lib/zendesk_apps_support/app_version.rb
137
142
  - lib/zendesk_apps_support/assets/default_styles.scss
@@ -151,11 +156,6 @@ files:
151
156
  - lib/zendesk_apps_support/validations/templates.rb
152
157
  - lib/zendesk_apps_support/validations/translations.rb
153
158
  - lib/zendesk_apps_support/validations/validation_error.rb
154
- - lib/zendesk_apps_support.rb
155
- - config/locales/en.yml
156
- - config/locales/translations/zendesk_apps_support.yml
157
- - README.md
158
- - LICENSE
159
159
  homepage: http://github.com/zendesk/zendesk_apps_support
160
160
  licenses:
161
161
  - Apache License Version 2.0
@@ -176,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
176
  version: 1.3.6
177
177
  requirements: []
178
178
  rubyforge_project:
179
- rubygems_version: 2.0.14
179
+ rubygems_version: 2.2.2
180
180
  signing_key:
181
181
  specification_version: 4
182
182
  summary: Support to help you develop Zendesk Apps.