zend 0.2.0 → 0.2.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: 569025529a2b72949ec733dc002712f204df3e15
4
- data.tar.gz: 45853b228420b586e9c5ca1f49c67c5e75c2b6f8
3
+ metadata.gz: a74a891e4846e2f82af9c9f393d9ef35378d810c
4
+ data.tar.gz: d0206a442cea994d46fb6584e58ca97ef34fd864
5
5
  SHA512:
6
- metadata.gz: 42181dc73eeb21a99cedf82e46794663373d37072fb5e3cafde14145071d5ce7f6a053411ebb0a3a6480011521edaba75e9b95d3feb3e0e9f17d2ae01f4e702e
7
- data.tar.gz: 93412a371f3d6737b13f3bf79e640a75622deb8d9076cef634ebaf1ecb034ea72f9cec410f75adf8160b277ecd59c96b9755f9a600a684585ba761e2680f54c1
6
+ metadata.gz: d5e9297e6ed6cb4607992e5d6fa18417ecfec2732911e7f0a6d7a6592135f45d61110592fca23fb03063216281747401a75c9ba16e76990cf364811ac9655932
7
+ data.tar.gz: 960093e804db3da56f18ca731a6ea7d2fce77c24080cd9596f1de0c932e17cebac8634db9c578d4a340e1c31ff847172d9f80aa0175d984c14f958186bace567
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.2.1 (September 10, 2013)
2
+
3
+ Bugfixes:
4
+
5
+ - fix `zend help` output
6
+
1
7
  ## 0.2.0 (September 10, 2013)
2
8
 
3
9
  Features:
data/lib/zend/cli.rb CHANGED
@@ -1,4 +1,27 @@
1
1
  module Zend
2
+ class Tickets < Thor
3
+ desc 'tickets list [string]', 'Print list of tickets'
4
+ option :new, aliases: '-n', type: :boolean, desc: 'include new tickets'
5
+ option :open, aliases: '-o', type: :boolean, desc: 'include open tickets'
6
+ option :pending, aliases: '-p', type: :boolean, desc: 'include pending tickets'
7
+ option :solved, aliases: '-s', type: :boolean, desc: 'include solved tickets'
8
+ option :closed, aliases: '-c', type: :boolean, desc: 'include closed tickets'
9
+ option :tags, aliases: '-t', type: :array, desc: 'only list tickets containing these tags'
10
+ def list(query='')
11
+ Zend::Command::Ticket::List.new(query, options)
12
+ end
13
+
14
+ desc 'show ID', 'Get details of a Zendesk ticket'
15
+ def show(id)
16
+ Zend::Command::Ticket::Show.new(id)
17
+ end
18
+
19
+ desc 'description ID [DESCRIPTION]', 'Get single line ticket description'
20
+ def description(id, description=nil)
21
+ Zend::Command::Ticket::Description.new(id, description)
22
+ end
23
+ end
24
+
2
25
  class CLI < Thor
3
26
 
4
27
  desc 'login', 'Starts prompt to login to your Zendesk account'
@@ -11,29 +34,7 @@ module Zend
11
34
  Zend::Auth.logout
12
35
  end
13
36
 
14
- class Tickets < Thor
15
- desc 'tickets list [string]', 'Print list of tickets'
16
- option :new, aliases: '-n', type: :boolean, desc: 'include new tickets'
17
- option :open, aliases: '-o', type: :boolean, desc: 'include open tickets'
18
- option :pending, aliases: '-p', type: :boolean, desc: 'include pending tickets'
19
- option :solved, aliases: '-s', type: :boolean, desc: 'include solved tickets'
20
- option :closed, aliases: '-c', type: :boolean, desc: 'include closed tickets'
21
- option :tags, aliases: '-t', type: :array, desc: 'only list tickets containing these tags'
22
- def list(query='')
23
- Zend::Command::Ticket::List.new(query, options)
24
- end
25
-
26
- desc 'show ID', 'Get details of a Zendesk ticket'
27
- def show(id)
28
- Zend::Command::Ticket::Show.new(id)
29
- end
30
-
31
- desc 'description ID [DESCRIPTION]', 'Get single line ticket description'
32
- def description(id, description=nil)
33
- Zend::Command::Ticket::Description.new(id, description)
34
- end
35
- end
36
37
  desc 'tickets SUBCOMMAND ...ARGS', 'manage tickets'
37
- subcommand 'tickets', CLI::Tickets
38
+ subcommand 'tickets', Tickets
38
39
  end
39
40
  end
data/lib/zend/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Zend
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zend
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Mertz