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 +4 -4
- data/.gitignore +0 -1
- data/Gemfile.lock +61 -0
- data/lib/zendesk-tools.rb +16 -0
- data/lib/zendesk-tools/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65b0b85024f116c73811f1c436a8b6e7eafd017e
|
4
|
+
data.tar.gz: dc7e1e123d00f1a92f9043cfd538a3d5f1ff35b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e151f5ad96c904b6529f3939cf5b93177cc6dfe97ea4e67de98462721e9ff9560f45c37a2edc22313834d384d79691c3be731dd2f287eea166b389ddedc8fc6a
|
7
|
+
data.tar.gz: 6addddd2a16e33d896c9f9d99c1573cccc0c510c2b724f69a0de6ea8561e100744235fff831a5d1693202728415c544db20243730777b0cd225e5700404c34c8
|
data/.gitignore
CHANGED
data/Gemfile.lock
ADDED
@@ -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!
|
data/lib/zendesk-tools.rb
CHANGED
@@ -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
|
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.
|
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-
|
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
|