gitgem 0.1.5 → 0.1.6

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: da00c7cddc3099c5e27882730d94cc584f1fea96
4
- data.tar.gz: 3e8c4482b438d18287a991d8ce08b2276969bca9
3
+ metadata.gz: d28837c195c2975eb07a4d91017e5ee84b37f958
4
+ data.tar.gz: 6c27d9a0ad01f055ddc7cc378b544bd54f98cb9e
5
5
  SHA512:
6
- metadata.gz: 0da4eb07c9f9bde2d59bb4cd94cf6e76c6424104751bbf436aeb16ba1ec59c792d7ffd0e585dfbc2d382a742c60528c178e9e1ffa2fe93aeea2a0f7f4db5e1f2
7
- data.tar.gz: ab7cf298662857650c74c6f7a9d7d500958e3a1bf1001a6ca3ecbb7c4466229f09859c2b049dfbb9de8411d6433868c57dc4022a0f47e1faefdbd858791816e7
6
+ metadata.gz: 5ff7102a258726f8c6a5ffefed819a43e1a1072d8a1a9bcb9bf7e7cb7991d7be864fff990edbd18cc0efe31e9281ffc7c0e4796c5f8d4767ad0d82748a75963c
7
+ data.tar.gz: 9472c21f66f99e64827dc5e92c2c90e2f49731910840510b96b3a1400ce7633bdbd3cf7674593e337f4ab05b8cd6170715c3a7ebd4c2515475b050533eea7072
data/bin/gitgem CHANGED
@@ -52,7 +52,7 @@ end
52
52
 
53
53
  desc "Update gem from git repo"
54
54
  arg_name '-a alias -g gem -n bindir'
55
- command :install do |c|
55
+ command :update do |c|
56
56
 
57
57
  c.desc 'Alias of git repo'
58
58
  c.arg_name 'alias'
@@ -115,8 +115,8 @@ module GitGem
115
115
  # bin = "-n #{bindir}" unless bindir.nil?
116
116
  # gem_name = File.basename(gems.first, ".gem").split("-")[0...-1].join("-")
117
117
  # system("sudo gem unisntall #{gem_name} #{bin}")
118
-
119
- system("sudo gem uninstall #{gem_name} -n #{bindir}")
118
+ bin = "-n #{bindir}" unless bindir.nil?
119
+ system("sudo gem uninstall #{gem_name} #{bin}")
120
120
  end
121
121
 
122
122
  private
@@ -1,3 +1,3 @@
1
1
  module GitGem
2
- VERSION = '0.1.5'
2
+ VERSION = '0.1.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitgem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - saitjr