Skip to content

Commit

Permalink
glyr: fix test, update license
Browse files Browse the repository at this point in the history
This fixes CI failures found in Homebrew#66450, Homebrew#70319, Homebrew#70419, etc.

Also, update the license. From src/glyrc/glryc.c:

    /***********************************************************
     * This file is part of glyr
     * + a commnadline tool and library to download various sort of music related metadata.
     * + Copyright (C) [2011]  [Christopher Pahl]
     * + Hosted at: https://github.com/sahib/glyr
     *
     * glyr is free software: you can redistribute it and/or modify
     * it under the terms of the GNU Lesser General Public License as published by
     * the Free Software Foundation, either version 3 of the License, or
     * (at your option) any later version.
     *
     * glyr is distributed in the hope that it will be useful,
     * but WITHOUT ANY WARRANTY; without even the implied warranty of
     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
     * GNU Lesser General Public License for more details.
     *
     * You should have received a copy of the GNU Lesser General Public License
     * along with glyr. If not, see <http://www.gnu.org/licenses/>.
     **************************************************************/
  • Loading branch information
carlocab committed Feb 5, 2021
1 parent 8fd6ba7 commit f3a1995
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Formula/glyr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Glyr < Formula
homepage "https://github.com/sahib/glyr"
url "https://github.com/sahib/glyr/archive/1.0.10.tar.gz"
sha256 "77e8da60221c8d27612e4a36482069f26f8ed74a1b2768ebc373c8144ca806e8"
license "LGPL-3.0"
license "LGPL-3.0-or-later"
revision 1

bottle do
Expand All @@ -26,8 +26,8 @@ def install
end

test do
search = "--artist Beatles --album \"Please Please Me\""
cmd = "#{bin}/glyrc cover --no-download #{search} -w stdout"
assert_match %r{^https?://}, pipe_output(cmd, nil, 0)
search = "--artist Beatles --title 'Eight Days A Week'"
cmd = "#{bin}/glyrc lyrics --no-download #{search} -w stdout"
assert_match /love you all the time/i, pipe_output(cmd, nil, 0)
end
end

0 comments on commit f3a1995

Please sign in to comment.