git_topic 0.1.0 → 0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3976cf9eb95427cfeb1de1250c4bc6f9a4dc5c02
4
- data.tar.gz: cf643d76a74dff7d435e8cab834f71f049d6eed4
3
+ metadata.gz: 641a5a5103d04fea68b2e853638088cbda986c37
4
+ data.tar.gz: a1bbc3bad3b3d42694cc988513f05aac265cfa8e
5
5
  SHA512:
6
- metadata.gz: fc63ccd35623fc0272c4686e926e0d2f835ae11bcd8caa26f793f59ec391f0bec8793b7d7e48e7c48c29e53378a5206f9b9a80a4436dfd61c2aab32d47deb0a2
7
- data.tar.gz: 543aa2d0e736ee57f97cffcf35e17e9b5dbf8be5e5294817647fe98d0eb3727d6357109fb2d794feb170b1e754bd53d519f99cd32613f68dd6c79ddde43fd95b
6
+ metadata.gz: bddec46ca7f2b53fd2768d970f3df3eb3a711bd2b59023a3be3956ca466afcc794d34a950af84fce643bacbe6321fee5fd58afa9f1d5a4e5d4ffec90a72e2775
7
+ data.tar.gz: a1dcb32097ef7cd580dd6434938f9389e23011298250de99be996649a0a743f855f12a374107ee611917bc43587ee9c5732da5fb21d6ebb648903d2b66aadfb9
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # GitTopic
1
+ # git_topic
2
2
 
3
- ![Travis CI](https://travis-ci.org/kompiro/git-topic.svg?branch=master)
3
+ ![Travis CI](https://travis-ci.org/kompiro/git_topic.svg?branch=master)
4
4
 
5
5
  `git topic` is a subcommand of git to manage your topic branches by branch description.
6
6
 
@@ -8,14 +8,14 @@
8
8
 
9
9
  Install it yourself as:
10
10
 
11
- $ gem install git-topic
11
+ $ gem install git_topic
12
12
 
13
13
  ## Usage
14
14
 
15
15
  Commands:
16
+ git-topic [list] # Show managed topics
16
17
  git-topic edit [branch_name] # Edit topic description
17
18
  git-topic show [branch_name] # Show topic description
18
- git-topic list # Show managed topics
19
19
 
20
20
  Plan to support:
21
21
  git-topic add topic_name # Remember topic
data/git_topic.gemspec CHANGED
@@ -10,10 +10,10 @@ Gem::Specification.new do |spec|
10
10
 
11
11
  spec.summary = 'Manage your topic branches'
12
12
  spec.description = <<'DESC'
13
- git-topic enables you to manage your topic branches by simple sub commands like "git topic (add/list/delete)".
13
+ git-topic enables you to manage your topic branches by simple sub commands like "git topic (list/edit/show)".
14
14
  This sub commands use branch description.
15
15
  DESC
16
- spec.homepage = 'https://github.com/kompiro/git-topic'
16
+ spec.homepage = 'https://github.com/kompiro/git_topic'
17
17
  spec.license = 'MIT'
18
18
 
19
19
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
data/lib/git_topic/cli.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require 'thor'
2
2
  require 'open3'
3
3
 
4
+ require 'git_topic/version'
4
5
  require 'git_topic/commands/list'
5
6
  require 'git_topic/commands/edit'
6
7
  require 'git_topic/commands/show'
@@ -11,7 +12,14 @@ module GitTopic
11
12
  default_command :list
12
13
 
13
14
  desc 'list', 'Show managed topics'
15
+ option :version, aliases: 'v'
14
16
  def list
17
+ # Show version if -v specified
18
+ if options[:version]
19
+ version and return if options[:version]
20
+ return
21
+ end
22
+
15
23
  command = GitTopic::Commands::List.new
16
24
  command.execute
17
25
  end
@@ -28,6 +36,11 @@ module GitTopic
28
36
  command.execute
29
37
  end
30
38
 
39
+ desc 'version', 'Show version'
40
+ def version
41
+ puts GitTopic::VERSION
42
+ end
43
+
31
44
  desc 'add topic_name', 'Remember topic'
32
45
  def add(topic_name)
33
46
  puts "add #{topic_name}"
@@ -1,3 +1,3 @@
1
1
  module GitTopic
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.2.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_topic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroki Kondo
@@ -123,7 +123,7 @@ dependencies:
123
123
  - !ruby/object:Gem::Version
124
124
  version: 1.17.1
125
125
  description: |2
126
- git-topic enables you to manage your topic branches by simple sub commands like "git topic (add/list/delete)".
126
+ git-topic enables you to manage your topic branches by simple sub commands like "git topic (list/edit/show)".
127
127
  This sub commands use branch description.
128
128
  email:
129
129
  - kompiro@gmail.com
@@ -155,7 +155,7 @@ files:
155
155
  - lib/git_topic/commands/list.rb
156
156
  - lib/git_topic/commands/show.rb
157
157
  - lib/git_topic/version.rb
158
- homepage: https://github.com/kompiro/git-topic
158
+ homepage: https://github.com/kompiro/git_topic
159
159
  licenses:
160
160
  - MIT
161
161
  metadata: {}