Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imgur-album-downloader (new formula) #936

Closed
wants to merge 5 commits into from
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Formula/imgur-album-downloader.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
class ImgurAlbumDownloader < Formula
desc "Command Line Utility to Download Imgur Albums"
homepage "https://github.com/sgsunder/imgur-album-downloader"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This gives a 404; should probably be https://github.com/alexgisby/imgur-album-downloader instead.

url "https://github.com/alexgisby/imgur-album-downloader.git", :revision => "dbaee1e342c1b46c022fccd26c294e251ac04015"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need a tagged release here.

version "1"

bottle :unneeded

depends_on "python3"

def install
mv "imguralbum.py", "imgur-album-downloader" # Rename Command Line Script
bin.install "imgur-album-downloader"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use bin.install "imguralbum.py" => "imgur-album-downloader".

end

test do
system "#{bin}/imgur-album-downloader" # This should print the help message and return with exit code 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can’t we do something more substantial that just printing the help? E.g. download a small album?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if one of the preexisting test fixtures could be uploaded and then re-downloaded here

end
end