ghn 0.0.2 → 0.0.3

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: bc3b7051906643d8a41a23a0d870b1a3aa398711
4
- data.tar.gz: 28946552fecd43795a28bcb8f1b8a96d8246cf0c
3
+ metadata.gz: ac3293e8e2983ed886f9f990fda9ab4f4d6f3405
4
+ data.tar.gz: d45520cf2ee244f384f6489abf5e270b1577ab02
5
5
  SHA512:
6
- metadata.gz: 4cfba176f4db94be5cda8b7ee7c309f0271b8c686598b4299493d4f8c90dacf10d5ffda16f185f94e1fac5096b1be9c6f4b6a2303b7bdb8b08570da6a11e0e2b
7
- data.tar.gz: a2f5c8ef56b473919dcd932f1e50ca47eb23729a9d09796a84f0c8396da451e11b791369f8fd41f8a5030a7b4d2f2a6ef4a27487bcc1d438a30431714a1ca419
6
+ metadata.gz: 11dcd7cd8e9593b603b30afe7ba47b4cc3c231c0b43788196d47f1dbb8f7f6d5baacacb4e4455552ab2b870d7e8d6cfb613dc6d89986ac36c98c7ed10ef3adf8
7
+ data.tar.gz: ebb172bd8347aff3140fbe4b41fd0e740f804094c9c6aad6e8820eb196d2a78d4b466d2869e159d69d57bc2d827ba578777dacbf8ae80ee049131c7de1177c67
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.0.3
4
+
5
+ * Bugfix
6
+ * Add missing option `--usage`
7
+
8
+ ## v0.0.2
9
+
10
+ * 1st Refactor
11
+ * Refactor command and options processing
12
+ * Separate classes by its responsibility
13
+ * Add first tests
14
+
3
15
  ## v0.0.1
4
16
 
5
17
  * Initial release; Implement basic feature
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ghn
2
2
 
3
- [![Build Status](https://travis-ci.org/kyanny/ghn.png?branch=master)](https://travis-ci.org/kyanny/ghn) [![Coverage Status](https://coveralls.io/repos/kyanny/ghn/badge.png?branch=master)](https://coveralls.io/r/kyanny/ghn?branch=master) [![Code Climate](https://codeclimate.com/github/kyanny/ghn.png)](https://codeclimate.com/github/kyanny/ghn)
3
+ [![Build Status](https://travis-ci.org/kyanny/ghn.png?branch=master)](https://travis-ci.org/kyanny/ghn) [![Coverage Status](https://coveralls.io/repos/kyanny/ghn/badge.png?branch=master)](https://coveralls.io/r/kyanny/ghn?branch=master) [![Code Climate](https://codeclimate.com/repos/526ade18c7f3a32c9704ea51/badges/23a96bd170e0a9cee203/gpa.png)](https://codeclimate.com/repos/526ade18c7f3a32c9704ea51/feed)
4
4
 
5
5
  Commandline tool for GitHub notifications.
6
6
 
data/lib/ghn/options.rb CHANGED
@@ -24,18 +24,19 @@ class Ghn
24
24
 
25
25
  class << self
26
26
  def short_options
27
- 'omnh'
27
+ 'omh'
28
28
  end
29
29
 
30
30
  def long_options
31
- ['open', 'mark-as-read']
31
+ ['open', 'mark-as-read', 'help', 'usage']
32
32
  end
33
33
 
34
34
  def usage
35
35
  <<-USAGE
36
36
  Usage: #{File.basename $0} [options] [command] [user/repo]
37
- options: --open Open notifications in browser
38
- --mark-as-read Mark as read listed notifications
37
+ options: -o, --open Open notifications in browser
38
+ -m, --mark-as-read Mark as read listed notifications
39
+ -h, --help, --usage Show this message
39
40
 
40
41
  command: list List unread notifications
41
42
 
data/lib/ghn/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Ghn
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ghn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kensuke Nagae