zendesk_apps_support 1.29.0 → 1.29.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: 25f1e2c5fce9029754afc61ff77cd1f4d4819d4a
4
- data.tar.gz: 633e28f6cde6310341774d26a339ed58804f359f
3
+ metadata.gz: 23855f2580588842e6bcec3e79d59b3750190f6c
4
+ data.tar.gz: 31875fdaa047cdedc2080dcbb670d6af352bdc84
5
5
  SHA512:
6
- metadata.gz: 8f86a5d9b99d6a41256494702233c2855e28aced1f6a0e6f6b4f1a3f7bc4a95e876c593245b1824d2d3bd68dbf203377ea4bdd1a6a91a848148d1c05847647b6
7
- data.tar.gz: e37e6cfb331a42b3fa3e62ff365b22a057dbd1e0abaaf0a2429167f3a59a6cce090e188297e7e3f975a4af015c0fba8c665ba3443dcf29cf723a0932c112c9a8
6
+ metadata.gz: 2e94f1b6db8489972e94a2ae592d4de9ce6e166a3e2892963f3b21a202228ded2380dc8677fa381ba9d55b0b3e8a0b1c0f8116fb26e16c491f0c976f47ee6d72
7
+ data.tar.gz: ad965fdbe44e5406c491e4f8f8a270ade3e54d72bfcefd7df347f38fcfcfbfdd560f02e9f9bf04cfff68e67a5d49a1cf7f6e0f5d158d4bbe825c4b3b26d11367
data/README.md CHANGED
@@ -1,6 +1,25 @@
1
- ## Zendesk Apps Support
1
+ # Zendesk Apps Support
2
2
 
3
- Classes to manage and validate zendesk apps
3
+ ## Description
4
+ Classes to manage and validate zendesk apps. This is a gem used in [Zendesk Apps Tools](https://github.com/zendesk/zendesk_apps_tools/).
5
+
6
+ ## Owners
7
+ This repo is owned and maintained by the Zendesk Apps team. You can reach us on vegemite@zendesk.com. We are located in Melbourne!
8
+
9
+ ## Getting Started
10
+ When you want to help **develop** this tool, you will need to clone this repo.
11
+
12
+ Very likely you want to try out your changes with the use of ZAT. See [ZAT](https://github.com/zendesk/zendesk_apps_tools/) for how to get ZAT/ZAS in development.
13
+
14
+ ## Testing
15
+ This project uses rspec, which can be run with `bundle exec rake`.
16
+
17
+ ## Contribute
18
+ * Put up a PR into the master branch.
19
+ * CC and get two +1 from @zendesk/vegemite.
20
+
21
+ ## Bugs
22
+ Bugs can be reported as an issue here on github, or submitted to support@zendesk.com. By mentioning this project it will assigned to the right team.
4
23
 
5
24
  ## Copyright and license
6
25
  Copyright 2013 Zendesk
@@ -206,12 +206,15 @@ module ZendeskAppsSupport
206
206
 
207
207
  def locations
208
208
  locations = manifest_json['location']
209
- if locations.is_a?(Hash)
209
+ case locations
210
+ when Hash
210
211
  locations
211
- elsif locations.is_a?(Array)
212
+ when Array
212
213
  { 'zendesk' => Hash[locations.map { |location| [ location, LEGACY_URI_STUB ] }] }
213
- else # String
214
+ when String
214
215
  { 'zendesk' => { locations => LEGACY_URI_STUB } }
216
+ else # NilClass
217
+ { 'zendesk' => {} }
215
218
  end
216
219
  end
217
220
 
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.29.0
4
+ version: 1.29.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: 2016-04-28 00:00:00.000000000 Z
14
+ date: 2016-05-27 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: i18n
@@ -197,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
197
  version: 1.3.6
198
198
  requirements: []
199
199
  rubyforge_project:
200
- rubygems_version: 2.4.8
200
+ rubygems_version: 2.6.3
201
201
  signing_key:
202
202
  specification_version: 4
203
203
  summary: Support to help you develop Zendesk Apps.