zendesk-tools 0.0.7 → 0.0.8

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: a1c809bf314ac68b5cd817992131485d4df02194
4
- data.tar.gz: 16e2a802ac9cd969714f5eb2767cd9b4e7fe4f0a
3
+ metadata.gz: 65b0b85024f116c73811f1c436a8b6e7eafd017e
4
+ data.tar.gz: dc7e1e123d00f1a92f9043cfd538a3d5f1ff35b3
5
5
  SHA512:
6
- metadata.gz: 81753d360a0bac0b62a095508ed381e7f5f987bde0de365d7cc053f7cb5f99ab6b01e33e801968a53fd81a22279cc835e3838c9975476a43598aa2c6411c9bec
7
- data.tar.gz: 8ba4302d4d8f5c7976fd81e2c373dc52d20d5b096b990e86175634f2696274b4dc0656bb44790799633186f226dd696297d96823620f16c7a931b3023b83050f
6
+ metadata.gz: e151f5ad96c904b6529f3939cf5b93177cc6dfe97ea4e67de98462721e9ff9560f45c37a2edc22313834d384d79691c3be731dd2f287eea166b389ddedc8fc6a
7
+ data.tar.gz: 6addddd2a16e33d896c9f9d99c1573cccc0c510c2b724f69a0de6ea8561e100744235fff831a5d1693202728415c544db20243730777b0cd225e5700404c34c8
data/.gitignore CHANGED
@@ -3,7 +3,6 @@
3
3
  .bundle
4
4
  .config
5
5
  .yardoc
6
- Gemfile.lock
7
6
  InstalledFiles
8
7
  _yardoc
9
8
  coverage
@@ -0,0 +1,61 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ zendesk-tools (0.0.8)
5
+ geminabox
6
+ json
7
+ log4r
8
+ rake
9
+ zendesk_api (~> 1.3)
10
+
11
+ GEM
12
+ remote: https://rubygems.org/
13
+ specs:
14
+ builder (3.2.2)
15
+ coderay (1.1.0)
16
+ faraday (0.9.0)
17
+ multipart-post (>= 1.2, < 3)
18
+ geminabox (0.12.4)
19
+ builder
20
+ faraday
21
+ httpclient (>= 2.2.7)
22
+ nesty
23
+ sinatra (>= 1.2.7)
24
+ hashie (3.1.0)
25
+ httpclient (2.4.0)
26
+ inflection (1.0.0)
27
+ json (1.8.1)
28
+ log4r (1.1.10)
29
+ method_source (0.8.2)
30
+ mime-types (1.25.1)
31
+ multi_json (1.10.1)
32
+ multipart-post (2.0.0)
33
+ nesty (1.0.2)
34
+ pry (0.10.0)
35
+ coderay (~> 1.1.0)
36
+ method_source (~> 0.8.1)
37
+ slop (~> 3.4)
38
+ rack (1.5.2)
39
+ rack-protection (1.5.3)
40
+ rack
41
+ rake (10.3.2)
42
+ sinatra (1.4.5)
43
+ rack (~> 1.4)
44
+ rack-protection (~> 1.4)
45
+ tilt (~> 1.3, >= 1.3.4)
46
+ slop (3.5.0)
47
+ tilt (1.4.1)
48
+ zendesk_api (1.3.9)
49
+ faraday (~> 0.9)
50
+ hashie (>= 1.2)
51
+ inflection
52
+ mime-types (~> 1.0)
53
+ multi_json
54
+ multipart-post (~> 2.0)
55
+
56
+ PLATFORMS
57
+ ruby
58
+
59
+ DEPENDENCIES
60
+ pry
61
+ zendesk-tools!
@@ -20,6 +20,22 @@ module ZendeskTools
20
20
  @config ||= (
21
21
  if CONFIG_FILE.exist?
22
22
  JSON.parse(CONFIG_FILE.read)
23
+ elsif ENV['ZD_URL'] && ENV['ZD_TOKEN'] && ENV['ZD_USERNAME']
24
+ heroku_config = {
25
+ 'delete_causes' => ENV['delete_causes'],
26
+ 'delete_subjects' => ENV['delete_subjects'],
27
+ 'recover_causes' => ENV['recover_causes']
28
+ }
29
+ heroku_config.each do |key, value|
30
+ unless value.nil?
31
+ heroku_config[key] = value.split(';')
32
+ end
33
+ end
34
+ heroku_config['url'] = ENV['ZD_URL']
35
+ heroku_config['token'] = ENV['ZD_TOKEN']
36
+ heroku_config['username'] = ENV['ZD_USERNAME']
37
+
38
+ heroku_config
23
39
  else
24
40
  raise "Sorry, could not find JSON config in #{CONFIG_FILE}"
25
41
  end
@@ -1,3 +1,3 @@
1
1
  module ZendeskTools
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zendesk-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jari Bakken
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-07-01 00:00:00.000000000 Z
13
+ date: 2014-07-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: zendesk_api
@@ -109,6 +109,7 @@ files:
109
109
  - ".gitattributes"
110
110
  - ".gitignore"
111
111
  - Gemfile
112
+ - Gemfile.lock
112
113
  - LICENSE.txt
113
114
  - README.md
114
115
  - Rakefile