-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathrabbit.gemspec
84 lines (75 loc) · 3.29 KB
/
rabbit.gemspec
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Copyright (C) 2012-2024 Kouhei Sutou <[email protected]>
#
# This program 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 2 of the License, or
# (at your option) any later version.
#
# This program 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 this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
require_relative "lib/rabbit/version"
Gem::Specification.new do |spec|
spec.name = "rabbit"
spec.version = Rabbit::VERSION.dup
spec.homepage = "http://rabbit-shocker.org/"
spec.authors = ["Kouhei Sutou"]
spec.email = ["[email protected]"]
spec.summary = "Rabbit is a presentation tool for Rubyist"
normalize_new_lines = lambda do |text|
paragraphs = text.split("\n\n").collect do |paragraph|
paragraph.gsub("\n", "")
end
paragraphs.join("\n\n")
end
spec.description = normalize_new_lines.call(<<-DESCRIPTION)
You can create your slide as a text file. It means that you can version control
your slide like your Ruby scripts. You can custom your slide style by Ruby.
So Rabbit is for Rubyist.
You can use RD, Markdown and Wiki format as slide source.
Rabbit provides programmer friendly keyboard interface. It uses Emacs and Vi
style keybindings by default.
You can use PDF and image as slide source. Rabbit can show PDF and image
directly. You can create your slide by other presentation tool and show your
slide by Rabbit. If you show your slide by Rabbit, you can use programmer
friendly keyboard interface provided by Rabbit to control your slide.
You can upload your slide as a gem. If you publish your slide as a gem, you
can see your slide at https://slide.rabbit-shocker.org/ .
DESCRIPTION
spec.license = "GPLv2+"
spec.files = ["Rakefile", "COPYING", "GPL", "README", "Gemfile"]
spec.files += ["#{spec.name}.gemspec"]
spec.files += Dir.glob("lib/**/*.{rb,erb,ui}")
spec.files += Dir.glob("{data,entities,sample,misc,doc}/**/*")
spec.files += Dir.glob("po/*/*.po")
spec.files -= Dir.glob("doc/_site/**/*")
spec.files += Dir.glob("*.rb")
spec.files.reject! do |file|
not File.file?(file)
end
spec.test_files = Dir.glob("test/**/*.rb")
Dir.chdir("bin") do
spec.executables = Dir.glob("*")
end
spec.required_ruby_version = ">= 2.4.0"
spec.add_runtime_dependency("coderay", ">= 1.0.0")
spec.add_runtime_dependency("csv")
spec.add_runtime_dependency("gdk_pixbuf2", ">= 3.0.9")
spec.add_runtime_dependency("gettext", ">= 3.0.1")
# spec.add_runtime_dependency("gstreamer")
spec.add_runtime_dependency("gtk3")
spec.add_runtime_dependency("hikidoc")
spec.add_runtime_dependency("kramdown-parser-gfm")
spec.add_runtime_dependency("nokogiri")
spec.add_runtime_dependency("ostruct")
spec.add_runtime_dependency("poppler", ">= 3.2.5")
spec.add_runtime_dependency("rdtool")
spec.add_runtime_dependency("rouge")
spec.add_runtime_dependency("rsvg2", ">= 3.1.4")
spec.add_runtime_dependency("rttool")
end