ghn 2.1.2 → 2.2.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: 1901838f0e25977a8b155fbae34d213c2159d351
4
- data.tar.gz: 20e83aac8762550db196f8f3371c4741702038fe
3
+ metadata.gz: 2ed762c11d7e13db047fe91e4b4cf8899193b4c1
4
+ data.tar.gz: a7e69b07a0ae615e999e57668bf5df2c256b9e7e
5
5
  SHA512:
6
- metadata.gz: bfeaf705fefbadc87d75a815f28bc7ddd2bf01863534af04dd1e25912ce23f74d4c5b987c975f6013dbe585ac4841b66a0993e4e87119b50644d1a286417a656
7
- data.tar.gz: 3e6889fb6b16f79bc18ba962e98ec41bb3a6d12323798a9d1358500d6383a42ca2d3bb15afd8bd313d59ea013778195c2115186590a57f499bbcbbaeadd87932
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
@@ -1,3 +1,3 @@
1
1
  class Ghn
2
- VERSION = "2.1.2"
2
+ VERSION = "2.2.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.1.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 00:00:00.000000000 Z
11
+ date: 2014-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor