zendesk_apps_support 3.4.4 → 3.4.5

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: 210d2c41a69c34a581d90a402ca33633e077a2fc
4
- data.tar.gz: 49cdbdb923ddb2827e7b9e7cbcd253bf1edf63eb
3
+ metadata.gz: 99f78e45efd544037efc8773f9c6bc6573864e0d
4
+ data.tar.gz: 5b5fdbc2f694b12aeb30abcdaee2776b4d35cf40
5
5
  SHA512:
6
- metadata.gz: 4e8a419723b0e5305b2a9d5ec751a8a5dd1c21895551e13a0aa9eb17cc4e6127726005c0b7d6b6c494f5109c44712ba0d60c8650d032c489ebb0479d12760846
7
- data.tar.gz: 4f2762d0fed749825596873f33ec599f2459ffdd83fb3b5bdbd14ce0c849501f805c37f27e6e27edb7b439ff52018849f5913b97e0cd231d8b640b571f37449d
6
+ metadata.gz: 16869dd1c60567d06c63756cb72007701f97627d63974bdfd7078e60b329eb7b62bb91a0acbd7b63965d1941884ef0bb7cceb56166e5e4c8a9fe9c7d169e4ddc
7
+ data.tar.gz: 1eec8327b122efc60ea8f918bac97750252d0a552a1bb6a705c51d9ecd6023c7740afee1055be5de248dcac8e714d530cd669bd73c3cec233599821a8ae53847
@@ -4,7 +4,7 @@ module ZendeskAppsSupport
4
4
  # * deprecated -- we will still serve apps targeting the deprecated version,
5
5
  # but newly created or updated apps CANNOT target it
6
6
  # * sunsetting -- we will soon be removing support for this version;
7
- # newly created or updated apps SHOULD target the current version
7
+ # updated apps SHOULD target the current version, no new apps allowed
8
8
  # * current -- we will serve apps targeting the current version;
9
9
  # newly created or updated apps SHOULD target it
10
10
  # * future -- we will serve apps targeting the future version;
@@ -18,6 +18,7 @@ module ZendeskAppsSupport
18
18
 
19
19
  TO_BE_SERVED = [DEPRECATED, SUNSETTING, CURRENT, FUTURE].compact.freeze
20
20
  VALID_FOR_UPDATE = [SUNSETTING, CURRENT, FUTURE].compact.freeze
21
+ VALID_FOR_CREATE = [CURRENT, FUTURE].compact.freeze
21
22
 
22
23
  attr_reader :current
23
24
 
@@ -35,6 +36,10 @@ module ZendeskAppsSupport
35
36
  VALID_FOR_UPDATE.include?(@version)
36
37
  end
37
38
 
39
+ def valid_for_create?
40
+ VALID_FOR_CREATE.include?(@version)
41
+ end
42
+
38
43
  def deprecated?
39
44
  @version == DEPRECATED
40
45
  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: 3.4.4
4
+ version: 3.4.5
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: 2017-06-26 00:00:00.000000000 Z
14
+ date: 2017-07-17 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: i18n