-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsimple-kvs.rb
42 lines (38 loc) · 1.33 KB
/
simple-kvs.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#
# simple-kvs.rb
#
# Copyright (c) 2017 Junpei Kawamoto
#
# This file is part of simple-kvs.
#
# simple-kvs is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# simple-kvs 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with simple-kvs. If not, see <http:#www.gnu.org/licenses/>.
#
class Simple-Kvs < Formula
desc "Simple Key-Value Storage"
homepage "https://github.com/itslab-kyushu/simple-kvs"
version "0.2.0"
if Hardware::CPU.is_64_bit?
url "https://github.com/itslab-kyushu/simple-kvs/releases/download/v0.2.0/kvs_0.2.0_darwin_amd64.zip"
sha256 "399b4ea42458034b337a06f632d266bbe475d24823c14c9b8475c15976f95ebc"
else
url "https://github.com/itslab-kyushu/simple-kvs/releases/download/v0.2.0/kvs_0.2.0_darwin_386.zip"
sha256 "3c6c1c9958f06759afa5f3c52f2a4115ef8b5487177346469032e9096ed6a68f"
end
def install
bin.install "simple-kvs"
end
test do
system "simple-kvs"
end
end