|
@ -12,7 +12,7 @@ module Cask::Scopes |
|
|
cask_titles = Dir[tapspath.join("*", "Casks", "*.rb")] |
|
|
cask_titles = Dir[tapspath.join("*", "Casks", "*.rb")] |
|
|
cask_titles.map { |c| |
|
|
cask_titles.map { |c| |
|
|
# => "/usr/local/Library/Taps/example-tap/Casks/example.rb" |
|
|
# => "/usr/local/Library/Taps/example-tap/Casks/example.rb" |
|
|
c.sub! /\.rb$/, '' |
|
|
c.sub!(/\.rb$/, '') |
|
|
# => ".../example" |
|
|
# => ".../example" |
|
|
c = c.split("/").last 3 |
|
|
c = c.split("/").last 3 |
|
|
# => ["example-tap", "Casks", "example"] |
|
|
# => ["example-tap", "Casks", "example"] |
|
|