ghn 2.3.0 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/lib/ghn/commands.rb +2 -0
- data/lib/ghn/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df97177d152adb7a6f35f5fb6d5dccd209846605
|
4
|
+
data.tar.gz: fe32698f9c8fd79c5f9a3712253cc228b1dfb5b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31896c7b338e06cabd4f4503b4eb6eef2aa075669ee1fa6c28b11b162e90913d0c496373a447b07aee6abacf73c319d1b3671d827b5197ffdedf13249a268fe3
|
7
|
+
data.tar.gz: 2a6dc13683f272e20a07465e15dd773ea0c812e240de795d44045d0725aebbc33cde5f59145f4d0f6b05f63734e24352249a37c5d87d0edde764e7da1e9cfec7
|
data/README.md
CHANGED
@@ -23,6 +23,7 @@ Options:
|
|
23
23
|
-a, [--all], [--no-all] # List/Open all unread notifications
|
24
24
|
-p, [--participating], [--no-participating] # List/Open notifications your are participating
|
25
25
|
[--follow-issuecomment], [--no-follow-issuecomment] # Follow issuecomment anchor URL
|
26
|
+
-s, [--sort], [--no-sort] # Sort notifications by url
|
26
27
|
```
|
27
28
|
|
28
29
|
NAME should be a username/reponame of repository.
|
@@ -35,6 +36,8 @@ NAME should be a username/reponame of repository.
|
|
35
36
|
|
36
37
|
`$ ghn open -p` opens notifications your are participating only.
|
37
38
|
|
39
|
+
`$ ghn open -s` opens notifications sorted by url.
|
40
|
+
|
38
41
|
## Aliases
|
39
42
|
|
40
43
|
You can set aliases as a shortcut of NAME.
|
data/lib/ghn/commands.rb
CHANGED
@@ -3,6 +3,7 @@ class Ghn
|
|
3
3
|
class_option :all, type: :boolean, aliases: '-a', desc: 'List/Open all unread notifications'
|
4
4
|
class_option :participating, type: :boolean, aliases: '-p', desc: 'List/Open notifications your are participating'
|
5
5
|
class_option :follow_issuecomment, type: :boolean, desc: 'Follow issuecomment anchor URL'
|
6
|
+
class_option :sort, type: :boolean, aliases: '-s', desc: 'Sort notifications by URL'
|
6
7
|
class_option :verbose, type: :boolean, aliases: '-v', desc: 'Verbose message'
|
7
8
|
|
8
9
|
desc 'list NAME', 'List unread notifications'
|
@@ -34,6 +35,7 @@ class Ghn
|
|
34
35
|
break unless collector.has_next?
|
35
36
|
end
|
36
37
|
|
38
|
+
threads.sort! if options['sort']
|
37
39
|
threads
|
38
40
|
end
|
39
41
|
|
data/lib/ghn/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ghn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kensuke Nagae
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|