diff options
Diffstat (limited to 'Library/Homebrew/dev-cmd/create.rb')
| -rw-r--r-- | Library/Homebrew/dev-cmd/create.rb | 14 | 
1 files changed, 7 insertions, 7 deletions
| diff --git a/Library/Homebrew/dev-cmd/create.rb b/Library/Homebrew/dev-cmd/create.rb index 908f65f8f..802e7b900 100644 --- a/Library/Homebrew/dev-cmd/create.rb +++ b/Library/Homebrew/dev-cmd/create.rb @@ -101,13 +101,13 @@ class FormulaCreator      if @name.nil?        case url        when %r{github\.com/(\S+)/(\S+)\.git} -        @user = $1 -        @name = $2 +        @user = Regexp.last_match(1) +        @name = Regexp.last_match(2)          @head = true          @github = true        when %r{github\.com/(\S+)/(\S+)/(archive|releases)/} -        @user = $1 -        @name = $2 +        @user = Regexp.last_match(1) +        @name = Regexp.last_match(2)          @github = true        else          @name = path.basename.to_s[/(.*?)[-_.]?#{Regexp.escape(path.version.to_s)}/, 1] @@ -226,9 +226,9 @@ class FormulaCreator        test do          # `test do` will create, run in and delete a temporary directory.          # -        # This test will fail and we won't accept that! It's enough to just replace -        # "false" with the main program this formula installs, but it'd be nice if you -        # were more thorough. Run the test with `brew test #{name}`. Options passed +        # This test will fail and we won't accept that! For Homebrew/homebrew-core +        # this will need to be a test that verifies the functionality of the +        # software. Run the test with `brew test #{name}`. Options passed          # to `brew install` such as `--HEAD` also need to be provided to `brew test`.          #          # The installed folder is not in the path, so use the entire path to any | 
