zendesk_apps_support 1.15.0 → 1.16.0

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: 804155523a694d349fe6c9d511539158a019b989
4
- data.tar.gz: d910659f19c622b0035c88fd2cee2b124d24634c
3
+ metadata.gz: 9eaee4ce990428520205b4dbc2b1c6d4153c0a83
4
+ data.tar.gz: 2161fefd72307e1cff427e33efeaf0c767699cc7
5
5
  SHA512:
6
- metadata.gz: 0864c1dc53ae21a6b774e7ce67f95391cb4be00b8cb1edfb58acd9a24e4118e43ce88eec516b2db5e116d12e729ba405428f4f0ad1ad87c05f674ce2c442347c
7
- data.tar.gz: abb37387907268112b38391ad0e02d65364db3e536d698dfb72c2e612ab49f75a735a702c042eb3a3fb1f755545c3f157ea62ed9f022ff1681585dc3a3350486
6
+ metadata.gz: 676d60f2deeca1fe6d69abb73922b43ecfed36554c732ef82ceda05b847db77e555eb3808e9e17a08d290a0c5f233a8d3f3ac9a67e33a3528096065ac210dd7d
7
+ data.tar.gz: 22b0bf9f8fc94134dbd7318e6695a64177ae89da0405d8caeca133836093e30581bc5cf8644b80cd2acbcaf35bf29ec986c37f8f1a24ad7122d590e64ffbdf24
@@ -24,7 +24,7 @@ en:
24
24
  other: 'Missing required fields in manifest: %{missing_keys}'
25
25
  requirements_not_json: requirements.json is not proper JSON. %{errors}
26
26
  excessive_requirements: The requirements.json file contains too many requirements.
27
- The current limit is %{max} requirements.
27
+ The current limit is %{max} requirements. This app has %{count} requirements.
28
28
  missing_required_fields: 'Missing required fields in requirements.json:
29
29
  "%{field}" is required in "%{identifier}"'
30
30
  duplicate_requirements:
@@ -5,7 +5,7 @@ module ZendeskAppsSupport
5
5
  module Validations
6
6
  module Requirements
7
7
 
8
- MAX_REQUIREMENTS = 10
8
+ MAX_REQUIREMENTS = 5000
9
9
 
10
10
  class <<self
11
11
  def call(package)
@@ -52,8 +52,9 @@ module ZendeskAppsSupport
52
52
  end
53
53
 
54
54
  def excessive_requirements(requirements)
55
- if requirements.values.map(&:values).flatten.size > MAX_REQUIREMENTS
56
- ValidationError.new(:excessive_requirements, :max => MAX_REQUIREMENTS)
55
+ requirement_count = requirements.values.map(&:values).flatten.size
56
+ if requirement_count > MAX_REQUIREMENTS
57
+ ValidationError.new(:excessive_requirements, :max => MAX_REQUIREMENTS, :count => requirement_count)
57
58
  end
58
59
  end
59
60
 
@@ -12,6 +12,7 @@ module ZendeskAppsSupport
12
12
  # relaxing options:
13
13
  :eqnull => true,
14
14
  :laxcomma => true,
15
+ :sub => true,
15
16
 
16
17
  # predefined globals:
17
18
  :predef => %w(_ console services helpers alert window document 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.15.0
4
+ version: 1.16.0
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-05-09 00:00:00.000000000 Z
14
+ date: 2014-10-07 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: i18n