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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e4486cb3463983faf77c5682fc9aee30cacc173
4
- data.tar.gz: de2beddf490b4cb3b1453365eb5c963ed34033e3
3
+ metadata.gz: df97177d152adb7a6f35f5fb6d5dccd209846605
4
+ data.tar.gz: fe32698f9c8fd79c5f9a3712253cc228b1dfb5b7
5
5
  SHA512:
6
- metadata.gz: 46209cff8be58a14945a8ec8181f37c73204723814d6653dd54da5c4310d4eeb9e7921f52c41fe77fa60c7f8b5c54a6937c3f3d4c57b2e64f734de94292bf45a
7
- data.tar.gz: b55a36637d7a488d49755d0cdce380906e502c28b6c1e40c30899720274c46391fdd9899e18220900959a097e13afb06886fc30c4e0fee6ca8978f8237d16f9f
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
@@ -1,3 +1,3 @@
1
1
  class Ghn
2
- VERSION = "2.3.0"
2
+ VERSION = "2.4.0"
3
3
  end
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.3.0
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-05-15 00:00:00.000000000 Z
11
+ date: 2015-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor