ghn 2.1.2 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- 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: 2ed762c11d7e13db047fe91e4b4cf8899193b4c1
|
4
|
+
data.tar.gz: a7e69b07a0ae615e999e57668bf5df2c256b9e7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 708f5d3f3ec8b0c14da1116e8de8d70111d8725aa99a7860940607a9ad8a70a28b02b2dc0a501896eff3e5cb05a029968ed891c0bd848a54a2b0ee04e7457d52
|
7
|
+
data.tar.gz: 40d9dc4e10d03ff4893d3806deb18c3ee256a5d3cdce8b465a5c2a07766a70547eb179b411086b3d66e6fc8dccbc0d102e23e1ad0431f8cd2de6e96d8ef48507
|
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 :verbose, type: :boolean, aliases: '-v', desc: 'Verbose message'
|
6
7
|
|
7
8
|
desc 'list NAME', 'List unread notifications'
|
8
9
|
def list(name = nil)
|
@@ -14,6 +15,7 @@ class Ghn
|
|
14
15
|
def open(name = nil)
|
15
16
|
repo_full_name = aliases.find(name) || name
|
16
17
|
collect(repo_full_name).each do |url|
|
18
|
+
puts "Opening.. #{url}" if options["verbose"]
|
17
19
|
system "#{open_command} #{url}"
|
18
20
|
sleep 0.5 # prevent `LSOpenURLsWithRole() failed with error` on Mac OSX Yosemite
|
19
21
|
end
|
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.2.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: 2014-11-
|
11
|
+
date: 2014-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|