boxy 0.2.0 → 0.2.1

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
- SHA1:
3
- metadata.gz: 96ea93773f02924916551a0d4e4a8bea59993af1
4
- data.tar.gz: a87b14c7e396a350ae37ac92f5c691c82ce0741b
2
+ SHA256:
3
+ metadata.gz: 1a4fe05ce77fb10838a7f2a8925125ac58a5c3f911b5f3879ec9408a6265bf7b
4
+ data.tar.gz: 4ec4355480c403ad016c0c216d78849c7a8e77fa9ca4478450037835f8da2221
5
5
  SHA512:
6
- metadata.gz: 715fc9ada77415f47b9a726dd996c44cb6e1ff4c76f1f16c8ccad98afcc2229d49efb50cd0311c18fc342101e9d720a7179d263ab3e40885a965534341aaf096
7
- data.tar.gz: 52321a4cb6cfe41d9bb0e3c53e606df9f8f7b64c25db1f6912776146562d41e3841a03ea46c78f4e8b73c9893081776337ece6246c19dd4a304e9a74ab3e98e4
6
+ metadata.gz: e1048eabef0b36c203cec1d16e32124cc3edc006c9981aeba2a4a7b4f6efb0a79761e1ccf7c07f40418e7dbca0e03c200e1885675fd1a3b292a589237cca34a0
7
+ data.tar.gz: 1768abb582543374d4ddafe4844954a2337d7c76972755723bc07c847e3e61b4493a78e27b1a1a5a1155d40b519aee56c3173011c36c082a9489c36dfdd1e4f0
@@ -60,6 +60,7 @@ end
60
60
 
61
61
  require 'boxy/brew'
62
62
  require 'boxy/brew_cask'
63
+ require 'boxy/brew_tap'
63
64
  require 'boxy/defaulty'
64
65
  require 'boxy/homesick'
65
66
  require 'boxy/luarock'
@@ -1,5 +1,8 @@
1
1
  module Boxy
2
2
  class BrewPackageHandler
3
+ @@brews ||= `brew list`.split
4
+ # puts "Brews: #{@@brews.inspect}"
5
+
3
6
  def install(name, options)
4
7
  unless formula_installed?(name)
5
8
  system "brew install #{name}"
@@ -11,8 +14,7 @@ module Boxy
11
14
  private
12
15
 
13
16
  def formula_installed?(name)
14
- `brew list #{name} > /dev/null 2>&1`
15
- $? == 0
17
+ @@brews.include?(name)
16
18
  end
17
19
  end
18
20
 
@@ -1,5 +1,8 @@
1
1
  module Boxy
2
2
  class BrewCaskHandler
3
+ @@casks ||= `brew cask list`.split
4
+ # puts "Casks: #{@@casks.inspect}"
5
+
3
6
  def install(name, options)
4
7
  unless formula_installed?(name)
5
8
  system "brew cask install #{name}"
@@ -11,8 +14,7 @@ module Boxy
11
14
  private
12
15
 
13
16
  def formula_installed?(name)
14
- `brew cask list #{name} > /dev/null 2>&1`
15
- $? == 0
17
+ @@casks.include?(name)
16
18
  end
17
19
  end
18
20
 
@@ -0,0 +1,10 @@
1
+ module Boxy
2
+ class BrewTapHandler
3
+ def install(name, options)
4
+ system "brew tap #{name}"
5
+ end
6
+ end
7
+
8
+ Boxy.register(:brew_tap, BrewTapHandler.new)
9
+ end
10
+
@@ -1,3 +1,3 @@
1
1
  module Boxy
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon-Erling Dahl
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-08-25 00:00:00.000000000 Z
12
+ date: 2018-09-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: defaulty
@@ -131,6 +131,7 @@ files:
131
131
  - lib/boxy.rb
132
132
  - lib/boxy/brew.rb
133
133
  - lib/boxy/brew_cask.rb
134
+ - lib/boxy/brew_tap.rb
134
135
  - lib/boxy/command.rb
135
136
  - lib/boxy/defaulty.rb
136
137
  - lib/boxy/dsl.rb
@@ -158,9 +159,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
159
  version: '0'
159
160
  requirements: []
160
161
  rubyforge_project:
161
- rubygems_version: 2.4.5.1
162
+ rubygems_version: 2.7.6
162
163
  signing_key:
163
164
  specification_version: 4
164
165
  summary: Automates installation of mac computers
165
166
  test_files: []
166
- has_rdoc: