-
-
Notifications
You must be signed in to change notification settings - Fork 12.1k
/
emojify.rb
23 lines (20 loc) 路 843 Bytes
/
emojify.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class Emojify < Formula
desc "Emoji on the command-line :scream:"
homepage "https://github.com/mrowa44/emojify"
url "https://github.com/mrowa44/emojify/archive/v1.0.2.tar.gz"
sha256 "a75d49d623f92974d7852526591d5563c27b7655c20ebdd66a07b8a47dae861c"
license "MIT"
head "https://github.com/mrowa44/emojify.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, all: "525c599c9e16d63627d5b4afca9f43d22e456d21a8e00a05b5e4a4e2acded629"
end
def install
bin.install "emojify"
end
test do
input = "Hey, I just :raising_hand: you, and this is :scream: , but here's my :calling: , " \
"so :telephone_receiver: me, maybe?"
assert_equal "Hey, I just 馃檵 you, and this is 馃槺 , but here's my 馃摬 , so 馃摓 me, maybe?",
shell_output("#{bin}/emojify \"#{input}\"").strip
end
end