zendesk_apps_support 1.15.0 → 1.16.0
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: 9eaee4ce990428520205b4dbc2b1c6d4153c0a83
|
4
|
+
data.tar.gz: 2161fefd72307e1cff427e33efeaf0c767699cc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 676d60f2deeca1fe6d69abb73922b43ecfed36554c732ef82ceda05b847db77e555eb3808e9e17a08d290a0c5f233a8d3f3ac9a67e33a3528096065ac210dd7d
|
7
|
+
data.tar.gz: 22b0bf9f8fc94134dbd7318e6695a64177ae89da0405d8caeca133836093e30581bc5cf8644b80cd2acbcaf35bf29ec986c37f8f1a24ad7122d590e64ffbdf24
|
data/config/locales/en.yml
CHANGED
@@ -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 =
|
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
|
-
|
56
|
-
|
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
|
|
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.
|
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-
|
14
|
+
date: 2014-10-07 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: i18n
|