bin_install 0.0.10 → 0.0.11

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
  SHA256:
3
- metadata.gz: b0b5c4e1da1cf7866c2d4ccae847c5d84e516f577cecc9336ad04929bac876a5
4
- data.tar.gz: e36d544469ba65dea1fb30d9dd95def323b1a59e58afe7eedff8ad7c50aaaec7
3
+ metadata.gz: 2690a798f72b41eff1125342940db0b5ed2d43aa337ae040316207545364ad43
4
+ data.tar.gz: a918abf1a51698d43b2c75d3bbea10be695196d2655228c73814f5f4af8d0e92
5
5
  SHA512:
6
- metadata.gz: 60f6665c838c69387ae072080bb2714168ef0c3ec8783b9b4c15e73ab8e06f2ff9a5d8f0c5fe9cc30f0c53c4735d1239d8b5b264f70402e65d1cbbb15d2d04f7
7
- data.tar.gz: 59e78736621de95717813a48f1c576bcf19c06f7840deb8745509d346e1292e94b57cbcdaf0a29ca10bced5f409fc3e3be8bd939e270593ac1bb7b90e6b9968e
6
+ metadata.gz: f5bb001b9cbc557ebc80d94dc8912d6e6884dc2021b80c2505772f62b39acb9d3ab446047bcf78f753bc11f29d39143105df8408e85803661b703ae293ea9e01
7
+ data.tar.gz: 74e177759c3e3a3c3e886bbb82e29791ca479c340c32f494a37ef77fa026f2a3d5a10d3ddb20d6c7a4e6d319628f4afff70dbe727ed92bd5ae013dff20d726f8
@@ -9,6 +9,14 @@ module BinInstall
9
9
  BinInstall.system!("brew install #{package}")
10
10
  end
11
11
 
12
+ def self.uninstall(package)
13
+ system("brew uninstall #{package}")
14
+ end
15
+
16
+ def self.uninstall!(package)
17
+ BinInstall.system!("brew uninstall #{package}")
18
+ end
19
+
12
20
  def self.upgrade(package)
13
21
  if latest_version?(package)
14
22
  puts "#{package} is already the latest version. Skipping.".blue
@@ -41,6 +49,14 @@ module BinInstall
41
49
  end
42
50
  end
43
51
 
52
+ def self.link(package)
53
+ system("brew link #{package}")
54
+ end
55
+
56
+ def self.link!(package)
57
+ BinInstall.system!("brew link #{package}")
58
+ end
59
+
44
60
  def self.installed?(package)
45
61
  system("brew list --versions #{package}")
46
62
  end
@@ -36,7 +36,7 @@ module BinInstall
36
36
  end
37
37
 
38
38
  def self.profile_paths
39
- [File.expand_path('~/.zshrc'), File.expand_path('.bash_profile')]
39
+ [File.expand_path('~/.zshrc'), File.expand_path('~/.bash_profile')]
40
40
  end
41
41
  end
42
42
  end
@@ -1,3 +1,3 @@
1
1
  module BinInstall
2
- VERSION = '0.0.10'.freeze
2
+ VERSION = '0.0.11'.freeze
3
3
  end
@@ -30,7 +30,7 @@ module BinInstall
30
30
 
31
31
  def self.print_reload_warning
32
32
  puts 'Warning Zsh requires reloading the shell.'.yellow
33
- puts 'After Zsh finishes installing you may to rerun the installer with:'
33
+ puts 'After Zsh finishes installing you may need to rerun the installer with:'
34
34
  puts '$ gem install bin_install'.cyan
35
35
  puts '$ bin/install'.cyan
36
36
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bin_install
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Singer