lita-zendesk 0.0.2 → 0.0.3

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: d43bbcb23d728e8dacadafd95b55d9b690c401fa
4
- data.tar.gz: 271b4548d8a5b7d96a0eb883cf5bb2d84e03f63f
3
+ metadata.gz: b10b5b00ca9242332338a1f6db58649ce4dea82c
4
+ data.tar.gz: 59664b2616af985a7050a74ebb697da11562d52d
5
5
  SHA512:
6
- metadata.gz: 25f684ab7dfcce374ea4b68f30c39242ab2fab390652043a9ab7e2f4be5aa3a39733d3fff3ec805ef4e9ab3c65c52ddb3a6d3ea84d6e6d63b1f361f96335049e
7
- data.tar.gz: 3abc1bdf0d124711b6332df4f7cc43ae38ada6cfb89628a7c537a85524924027647cd71cb3277330f66a50bbedd42d50b4b1474ea4efaa9f2000536e70382448
6
+ metadata.gz: c9e0973398b2aaec6c4cdb32e87fee5bb4e0b170759bed0f08567308abcae664e05e8ddd8d4ba64bfeeef3071ff7255b962a704a747c650ddeeae66e6a760393
7
+ data.tar.gz: 708c04937632b5109af5526ae4110e07dbb6dd5f486691783d82c068dae5808ac101f56d98b2355c196a9da779ec69411ee483b9961d9f7c1d9779b75f0921d4
@@ -0,0 +1,4 @@
1
+ CHANGELOG
2
+ ---------
3
+ - **2016-08-30**: 0.0.1
4
+ - Initial commit
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
@@ -0,0 +1,99 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ lita-zendesk (0.0.1)
5
+ lita (>= 4.4.3)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ byebug (9.0.5)
11
+ coderay (1.1.1)
12
+ coveralls (0.8.15)
13
+ json (>= 1.8, < 3)
14
+ simplecov (~> 0.12.0)
15
+ term-ansicolor (~> 1.3)
16
+ thor (~> 0.19.1)
17
+ tins (>= 1.6.0, < 2)
18
+ diff-lcs (1.2.5)
19
+ docile (1.1.5)
20
+ faraday (0.9.2)
21
+ multipart-post (>= 1.2, < 3)
22
+ http_router (0.11.2)
23
+ rack (>= 1.0.0)
24
+ url_mount (~> 0.2.1)
25
+ i18n (0.7.0)
26
+ ice_nine (0.11.2)
27
+ json (1.8.3)
28
+ lita (4.7.0)
29
+ bundler (>= 1.3)
30
+ faraday (>= 0.8.7)
31
+ http_router (>= 0.11.2)
32
+ i18n (>= 0.6.9)
33
+ ice_nine (>= 0.11.0)
34
+ multi_json (>= 1.7.7)
35
+ puma (>= 2.7.1)
36
+ rack (>= 1.5.2)
37
+ rb-readline (>= 0.5.1)
38
+ redis-namespace (>= 1.3.0)
39
+ thor (>= 0.18.1)
40
+ method_source (0.8.2)
41
+ multi_json (1.12.1)
42
+ multipart-post (2.0.0)
43
+ pry (0.10.4)
44
+ coderay (~> 1.1.0)
45
+ method_source (~> 0.8.1)
46
+ slop (~> 3.4)
47
+ pry-byebug (3.4.0)
48
+ byebug (~> 9.0)
49
+ pry (~> 0.10)
50
+ puma (3.6.0)
51
+ rack (2.0.1)
52
+ rack-test (0.6.3)
53
+ rack (>= 1.0)
54
+ rake (11.2.2)
55
+ rb-readline (0.5.3)
56
+ redis (3.3.1)
57
+ redis-namespace (1.5.2)
58
+ redis (~> 3.0, >= 3.0.4)
59
+ rspec (3.5.0)
60
+ rspec-core (~> 3.5.0)
61
+ rspec-expectations (~> 3.5.0)
62
+ rspec-mocks (~> 3.5.0)
63
+ rspec-core (3.5.2)
64
+ rspec-support (~> 3.5.0)
65
+ rspec-expectations (3.5.0)
66
+ diff-lcs (>= 1.2.0, < 2.0)
67
+ rspec-support (~> 3.5.0)
68
+ rspec-mocks (3.5.0)
69
+ diff-lcs (>= 1.2.0, < 2.0)
70
+ rspec-support (~> 3.5.0)
71
+ rspec-support (3.5.0)
72
+ simplecov (0.12.0)
73
+ docile (~> 1.1.0)
74
+ json (>= 1.8, < 3)
75
+ simplecov-html (~> 0.10.0)
76
+ simplecov-html (0.10.0)
77
+ slop (3.6.0)
78
+ term-ansicolor (1.3.2)
79
+ tins (~> 1.0)
80
+ thor (0.19.1)
81
+ tins (1.12.0)
82
+ url_mount (0.2.1)
83
+ rack
84
+
85
+ PLATFORMS
86
+ ruby
87
+
88
+ DEPENDENCIES
89
+ bundler (~> 1.3)
90
+ coveralls
91
+ lita-zendesk!
92
+ pry-byebug
93
+ rack-test
94
+ rake
95
+ rspec (>= 3.0.0)
96
+ simplecov (>= 0.9.2)
97
+
98
+ BUNDLED WITH
99
+ 1.12.5
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 John Wang
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,113 @@
1
+ Lita Zendesk Handler
2
+ ====================
3
+
4
+ [![Gem Version][gem-version-svg]][gem-version-link]
5
+ [![Build Status][build-status-svg]][build-status-link]
6
+ [![Coverage Status][coverage-status-svg]][coverage-status-link]
7
+ [![Dependency Status][dependency-status-svg]][dependency-status-link]
8
+ [![Code Climate][codeclimate-status-svg]][codeclimate-status-link]
9
+ [![Scrutinizer Code Quality][scrutinizer-status-svg]][scrutinizer-status-link]
10
+ [![Downloads][downloads-svg]][downloads-link]
11
+ [![Docs][docs-rubydoc-svg]][docs-rubydoc-link]
12
+ [![License][license-svg]][license-link]
13
+
14
+ `lita-zendesk` is an handler for [Lita](https://www.lita.io/) that allows you to use the robot with [Zendesk](https://zendesk.com/) ticket queries.
15
+
16
+ ## Installation
17
+
18
+ Add `lita-zendesk` to your Lita instance's Gemfile:
19
+
20
+ ``` ruby
21
+ gem "lita-zendesk"
22
+ ```
23
+
24
+ ## Configuration
25
+
26
+ Both Token and Password authentication are supported using the `config.handlers.zendesk.auth_type` property which can be set to `token` or `password`.
27
+
28
+ ``` ruby
29
+ Lita.configure do |config|
30
+
31
+ # Zendesk user info
32
+ config.handlers.zendesk.subdomain = 'my_zendesk_subdomain'
33
+ config.handlers.zendesk.auth_type = 'password' # set to 'password' or 'token'
34
+ config.handlers.zendesk.user = 'my_zendesk_user' # required for both 'password' and 'token'
35
+ config.handlers.zendesk.password = 'my_zendesk_password'
36
+ config.handlers.zendesk.token = 'my_zendesk_token'
37
+
38
+ end
39
+ ```
40
+
41
+ ## Usage
42
+
43
+ `zd` or `zendesk` both work for signaling the handler.
44
+
45
+ ```
46
+ Lita > @lita help
47
+ Lita: zd tickets - returns the total count of all unsolved tickets
48
+ Lita: zd all tickets - returns the count of all tickets
49
+ Lita: zd pending tickets - returns a count of tickets that are pending
50
+ Lita: zd new tickets - returns the count of all new (unassigned) tickets
51
+ Lita: zd escalated tickets - returns a count of tickets with escalated tag that are open or pending
52
+ Lita: zd open tickets - returns the count of all open tickets
53
+ Lita: zd on hold tickets - returns the count of all on hold tickets
54
+ Lita: zd list tickets - returns a list of unsolved tickets
55
+ Lita: zd list all tickets - returns a list of all tickets
56
+ Lita: zd list pending tickets - returns a list of pending tickets
57
+ Lita: zd list new tickets - returns a list of new tickets
58
+ Lita: zd list esclated tickets - returns a list of escalated tickets
59
+ Lita: zd list open tickets - returns a list of open tickets
60
+ Lita: zd list onhold tickets - returns a list of on hold tickets
61
+ Lita: zd ticket <ID> - returns information about the specified ticket
62
+ ```
63
+
64
+ ## Change Log
65
+
66
+ See [CHANGELOG.md](CHANGELOG.md)
67
+
68
+ ## Links
69
+
70
+ Project Repo
71
+
72
+ * https://github.com/grokify/lita-zendesk
73
+
74
+ Lita
75
+
76
+ * https://www.lita.io/
77
+
78
+ Ported and adapted from `hubot-scripts/zendesk.coffee`:
79
+
80
+ * https://github.com/github/hubot-scripts/blob/master/src/scripts/zendesk.coffee
81
+
82
+ ## Contributing
83
+
84
+ 1. Fork it ( http://github.com/grokify/lita-zendesk/fork )
85
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
86
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
87
+ 4. Push to the branch (`git push origin my-new-feature`)
88
+ 5. Create new Pull Request
89
+
90
+ ## License
91
+
92
+ Lita Zendesk Handler is available under the MIT license. See [LICENSE.txt](LICENSE.txt) for details.
93
+
94
+ Lita Zendesk Handler &copy; 2016 by John Wang
95
+
96
+ [gem-version-svg]: https://badge.fury.io/rb/lita-zendesk.svg
97
+ [gem-version-link]: http://badge.fury.io/rb/lita-zendesk
98
+ [downloads-svg]: http://ruby-gem-downloads-badge.herokuapp.com/lita-zendesk
99
+ [downloads-link]: https://rubygems.org/gems/lita-zendesk
100
+ [build-status-svg]: https://api.travis-ci.org/grokify/lita-zendesk.svg?branch=master
101
+ [build-status-link]: https://travis-ci.org/grokify/lita-zendesk
102
+ [coverage-status-svg]: https://coveralls.io/repos/grokify/lita-zendesk/badge.svg?branch=master
103
+ [coverage-status-link]: https://coveralls.io/r/grokify/lita-zendesk?branch=master
104
+ [dependency-status-svg]: https://gemnasium.com/grokify/lita-zendesk.svg
105
+ [dependency-status-link]: https://gemnasium.com/grokify/lita-zendesk
106
+ [codeclimate-status-svg]: https://codeclimate.com/github/grokify/lita-zendesk/badges/gpa.svg
107
+ [codeclimate-status-link]: https://codeclimate.com/github/grokify/lita-zendesk
108
+ [scrutinizer-status-svg]: https://scrutinizer-ci.com/g/grokify/lita-zendesk/badges/quality-score.png?b=master
109
+ [scrutinizer-status-link]: https://scrutinizer-ci.com/g/grokify/lita-zendesk/?branch=master
110
+ [docs-rubydoc-svg]: https://img.shields.io/badge/docs-rubydoc-blue.svg
111
+ [docs-rubydoc-link]: http://www.rubydoc.info/gems/lita-zendesk/
112
+ [license-svg]: https://img.shields.io/badge/license-MIT-blue.svg
113
+ [license-link]: https://github.com/grokify/lita-zendesk/blob/master/LICENSE.txt
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task default: :spec
@@ -0,0 +1,22 @@
1
+ require 'simplecov'
2
+ require 'coveralls'
3
+ Coveralls.wear!
4
+
5
+ SimpleCov.formatters = [
6
+ SimpleCov::Formatter::HTMLFormatter,
7
+ Coveralls::SimpleCov::Formatter
8
+ ]
9
+ SimpleCov.start { add_filter "/spec/" }
10
+
11
+ require "lita-zendesk"
12
+ require "lita/rspec"
13
+
14
+ require "pry"
15
+
16
+ Lita.version_3_compatibility_mode = false
17
+
18
+ RSpec.configure do |config|
19
+ config.mock_with :rspec do |mocks|
20
+ mocks.verify_partial_doubles = true
21
+ end
22
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-zendesk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Wang
@@ -129,8 +129,15 @@ executables: []
129
129
  extensions: []
130
130
  extra_rdoc_files: []
131
131
  files:
132
+ - CHANGELOG.md
133
+ - Gemfile
134
+ - Gemfile.lock
135
+ - LICENSE.txt
136
+ - README.md
137
+ - Rakefile
132
138
  - lib/lita-zendesk.rb
133
139
  - lib/lita/handlers/zendesk.rb
140
+ - spec/spec_helper.rb
134
141
  homepage: https://github.com/grokify/lita-zendesk
135
142
  licenses:
136
143
  - MIT
@@ -156,4 +163,5 @@ rubygems_version: 2.5.1
156
163
  signing_key:
157
164
  specification_version: 4
158
165
  summary: A Zendesk handler for the Lita chatbot.
159
- test_files: []
166
+ test_files:
167
+ - spec/spec_helper.rb