git-feats 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.0.4 (2012-12-11)
2
+
3
+ * adds `version` command
4
+ * fixes various output bugs
5
+
1
6
  ## 0.0.3 (2012-12-10)
2
7
 
3
8
  * adds `update-feats` command
@@ -17,15 +17,33 @@ module GitFeats
17
17
 
18
18
  # Execute git command
19
19
  def run
20
- puts @args[0]
20
+
21
+ # Check for git-feats commands
21
22
  case @args[0]
22
23
  when "update-feats"
23
- if Config.exists?
24
- API.upload_feats
25
- end
24
+ update_feats
25
+ when "version" || "--version"
26
+ version
26
27
  else
27
- exec(*@args.to_exec)
28
+ exec_args
28
29
  end
29
30
  end
31
+
32
+ private
33
+
34
+ def update_feats
35
+ if Config.exists?
36
+ API.upload_feats
37
+ end
38
+ end
39
+
40
+ def version
41
+ puts "git-feats version #{GitFeats::VERSION}"
42
+ exec_args
43
+ end
44
+
45
+ def exec_args
46
+ exec(*@args.to_exec)
47
+ end
30
48
  end
31
49
  end
@@ -1,3 +1,3 @@
1
1
  module GitFeats
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-feats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: