rabbit-slide-rabbit-theme-benchmark-en 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.rabbit +1 -0
- data/GFDL +451 -0
- data/GPL +674 -0
- data/README.rd +37 -0
- data/Rakefile +83 -0
- data/config.yaml +11 -0
- data/lavie.png +0 -0
- data/theme-benchmark.rab +29 -0
- metadata +74 -0
data/README.rd
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
= Theme benchmark
|
2
|
+
|
3
|
+
It's a slide for checking a Rabbit's theme. It contains many
|
4
|
+
elements. So it's useful for confirming your theme.
|
5
|
+
|
6
|
+
== For author
|
7
|
+
|
8
|
+
=== Show
|
9
|
+
|
10
|
+
rake
|
11
|
+
|
12
|
+
=== Publish
|
13
|
+
|
14
|
+
rake publish
|
15
|
+
|
16
|
+
== For viewers
|
17
|
+
|
18
|
+
=== Install
|
19
|
+
|
20
|
+
gem install rabbit-slide-rabbit-theme-benchmark-en
|
21
|
+
|
22
|
+
=== Show
|
23
|
+
|
24
|
+
rabbit rabbit-slide-rabbit-theme-benchmark-en.gem
|
25
|
+
|
26
|
+
== License
|
27
|
+
|
28
|
+
This slide and related files are triple-licensed under the following
|
29
|
+
licenses:
|
30
|
+
|
31
|
+
* ((<GPL (version 3 or later)|URL:http://www.gnu.org/licenses/gpl.html>))
|
32
|
+
* ((<GFDL (no version, no invariant sections, no front-cover texts and no back-cover texts)|URL:http://www.gnu.org/copyleft/fdl.html>))
|
33
|
+
* ((<CC BY-SA 3.0|URL:http://creativecommons.org/licenses/by-sa/3.0/>))
|
34
|
+
|
35
|
+
Use the following as the author:
|
36
|
+
|
37
|
+
* Kouhei Sutou
|
data/Rakefile
ADDED
@@ -0,0 +1,83 @@
|
|
1
|
+
# Copyright (C) 2012 Kouhei Sutou <kou@cozmixng.org>
|
2
|
+
#
|
3
|
+
# License: GPLv3+, GFDL and/or CC BY-SA 3.0
|
4
|
+
#
|
5
|
+
# This program is free software: you can redistribute it and/or modify
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
7
|
+
# the Free Software Foundation, either version 3 of the License, or
|
8
|
+
# (at your option) any later version.
|
9
|
+
#
|
10
|
+
# This program is distributed in the hope that it will be useful,
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
+
# GNU General Public License for more details.
|
14
|
+
#
|
15
|
+
# You should have received a copy of the GNU General Public License
|
16
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
17
|
+
|
18
|
+
require "time"
|
19
|
+
require "yaml"
|
20
|
+
require "rabbit/task/slide"
|
21
|
+
|
22
|
+
config = YAML.load(File.read("config.yaml"))
|
23
|
+
|
24
|
+
slide_id = config["id"]
|
25
|
+
tags = config["tags"]
|
26
|
+
base_name = config["base_name"]
|
27
|
+
pdf_base_path = "#{base_name}.pdf"
|
28
|
+
|
29
|
+
version = nil
|
30
|
+
presentation_date = config["presentation_date"]
|
31
|
+
parsed_presentation_date = nil
|
32
|
+
if presentation_date
|
33
|
+
begin
|
34
|
+
parsed_presentation_date = Time.parse(presentation_date)
|
35
|
+
rescue ArgumentError
|
36
|
+
end
|
37
|
+
if parsed_presentation_date
|
38
|
+
version = parsed_presentation_date.strftime("%Y.%m.%d")
|
39
|
+
end
|
40
|
+
end
|
41
|
+
version ||= "1.0.0"
|
42
|
+
|
43
|
+
name = config["name"]
|
44
|
+
email = config["email"]
|
45
|
+
rubygems_user = config["rubygems_user"]
|
46
|
+
slideshare_user = config["slideshare_user"]
|
47
|
+
speaker_deck_user = config["speaker_deck_user"]
|
48
|
+
|
49
|
+
readme = File.read(Dir.glob("README*")[0])
|
50
|
+
|
51
|
+
readme_blocks = readme.split(/(?:\r?\n){2,}/)
|
52
|
+
summary = (readme_blocks[0] || "TODO").gsub(/\A(?:[=*!]+|h\d\.) */, "")
|
53
|
+
description = readme_blocks[1] || "TODO"
|
54
|
+
|
55
|
+
specification = Gem::Specification.new do |spec|
|
56
|
+
prefix = "rabbit-slide"
|
57
|
+
spec.name = "#{prefix}-#{rubygems_user}-#{slide_id}"
|
58
|
+
spec.version = version
|
59
|
+
spec.homepage = "http://slide.rabbit-shockers.org/#{rubygems_user}/#{slide_id}/"
|
60
|
+
spec.authors = [name]
|
61
|
+
spec.email = [email]
|
62
|
+
spec.summary = summary
|
63
|
+
spec.description = description
|
64
|
+
spec.licenses = ["GPLv3+", "GFDL", "CC BY-SA 3.0"]
|
65
|
+
|
66
|
+
spec.files = [".rabbit", "config.yaml", "Rakefile"]
|
67
|
+
spec.files += Dir.glob("{COPYING,GPL,GFDL,README*}")
|
68
|
+
spec.files += Dir.glob("rabbit/**/*.*")
|
69
|
+
spec.files += Dir.glob("**/*.{svg,png,jpg,jpeg,gif,eps,pdf}")
|
70
|
+
spec.files += Dir.glob("*.{rd,rab,hiki,md,pdf}")
|
71
|
+
spec.files -= Dir.glob("{pkg,pdf}/**/*.*")
|
72
|
+
|
73
|
+
spec.add_runtime_dependency("rabbit")
|
74
|
+
end
|
75
|
+
|
76
|
+
Rabbit::Task::Slide.new(specification) do |task|
|
77
|
+
task.rubygems_user = rubygems_user
|
78
|
+
task.slideshare_user = slideshare_user
|
79
|
+
task.speaker_deck_user = speaker_deck_user
|
80
|
+
task.pdf_base_path = pdf_base_path
|
81
|
+
task.tags = tags
|
82
|
+
task.presentation_date = parsed_presentation_date
|
83
|
+
end
|
data/config.yaml
ADDED
data/lavie.png
ADDED
Binary file
|
data/theme-benchmark.rab
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
= TITLE
|
2
|
+
|
3
|
+
# : subtitle
|
4
|
+
# SUBTITLE
|
5
|
+
: author
|
6
|
+
Rabbit
|
7
|
+
# : institution
|
8
|
+
# INSTITUTION
|
9
|
+
# : content-source
|
10
|
+
# EVENT NAME
|
11
|
+
# : date
|
12
|
+
# 2012/08/27
|
13
|
+
# : allotted-time
|
14
|
+
# 5m
|
15
|
+
# : theme
|
16
|
+
# default
|
17
|
+
|
18
|
+
|
19
|
+
= TITLE
|
20
|
+
|
21
|
+
* ITEM 1
|
22
|
+
* ITEM 2
|
23
|
+
* ITEM 3
|
24
|
+
|
25
|
+
= TITLE
|
26
|
+
|
27
|
+
# image
|
28
|
+
# src = https://raw.github.com/shockers/rabbit/master/sample/lavie.png
|
29
|
+
# relative_height = 100
|
metadata
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rabbit-slide-rabbit-theme-benchmark-en
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Rabbit
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-08-27 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rabbit
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
description: ! 'It''s a slide for checking a Rabbit''s theme. It contains many
|
31
|
+
|
32
|
+
elements. So it''s useful for confirming your theme.'
|
33
|
+
email:
|
34
|
+
- lavie@rabbit-shockers.org
|
35
|
+
executables: []
|
36
|
+
extensions: []
|
37
|
+
extra_rdoc_files: []
|
38
|
+
files:
|
39
|
+
- .rabbit
|
40
|
+
- config.yaml
|
41
|
+
- Rakefile
|
42
|
+
- GPL
|
43
|
+
- GFDL
|
44
|
+
- README.rd
|
45
|
+
- lavie.png
|
46
|
+
- theme-benchmark.rab
|
47
|
+
homepage: http://slide.rabbit-shockers.org/rabbit/theme-benchmark-en/
|
48
|
+
licenses:
|
49
|
+
- GPLv3+
|
50
|
+
- GFDL
|
51
|
+
- CC BY-SA 3.0
|
52
|
+
post_install_message:
|
53
|
+
rdoc_options: []
|
54
|
+
require_paths:
|
55
|
+
- lib
|
56
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
|
+
none: false
|
64
|
+
requirements:
|
65
|
+
- - ! '>='
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
requirements: []
|
69
|
+
rubyforge_project:
|
70
|
+
rubygems_version: 1.8.23
|
71
|
+
signing_key:
|
72
|
+
specification_version: 3
|
73
|
+
summary: Theme benchmark
|
74
|
+
test_files: []
|