rabbit-theme-clear-code 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +7 -0
- data/config.yaml +1 -1
- data/pdf/theme-benchmark-en.pdf +0 -0
- data/pdf/theme-benchmark-ja.pdf +0 -0
- data/theme.rb +12 -4
- metadata +2 -2
data/Rakefile
CHANGED
@@ -17,5 +17,12 @@
|
|
17
17
|
|
18
18
|
require "rabbit/task/theme"
|
19
19
|
|
20
|
+
spec = nil
|
20
21
|
Rabbit::Task::Theme.new do |task|
|
22
|
+
spec = task.spec
|
23
|
+
end
|
24
|
+
|
25
|
+
desc "Tag the current version"
|
26
|
+
task :tag do
|
27
|
+
sh("git", "tag", "-a", "-m", "#{spec.version} released!!!", spec.version.to_s)
|
21
28
|
end
|
data/config.yaml
CHANGED
data/pdf/theme-benchmark-en.pdf
CHANGED
Binary file
|
data/pdf/theme-benchmark-ja.pdf
CHANGED
Binary file
|
data/theme.rb
CHANGED
@@ -17,7 +17,11 @@
|
|
17
17
|
# You should have received a copy of the GNU General Public License
|
18
18
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
19
19
|
|
20
|
-
@
|
20
|
+
@clear_code_font_family ||= nil
|
21
|
+
@font_family =
|
22
|
+
@clear_code_font_family ||
|
23
|
+
find_font_family("MotoyaLMaru") ||
|
24
|
+
@font_family
|
21
25
|
|
22
26
|
@title_slide_title_font_size = @x_large_font_size * 0.75
|
23
27
|
|
@@ -53,13 +57,17 @@ match(Slide, Body) do |bodies|
|
|
53
57
|
bodies.each do |body|
|
54
58
|
if body.elements.collect {|element| element.class} == [Paragraph]
|
55
59
|
body.elements.each do |element|
|
56
|
-
|
57
|
-
|
60
|
+
have_align_tag = false
|
61
|
+
have_align_tag = true if element.have_tag?("left")
|
62
|
+
have_align_tag = true if element.have_tag?("right")
|
63
|
+
element.horizontal_centering = true unless have_align_tag
|
64
|
+
if element.have_tag?("as-large-as-possible")
|
65
|
+
element.as_large_as_possible("one-paragraph")
|
66
|
+
elsif element.text.size < 50 or element.elements.any? {|e| e.is_a?(Note)}
|
58
67
|
element.prop_set("size", @x_large_font_size)
|
59
68
|
else
|
60
69
|
element.prop_set("size", @large_font_size)
|
61
70
|
end
|
62
|
-
# element.as_large_as_possible("one-paragraph")
|
63
71
|
end
|
64
72
|
end
|
65
73
|
body.margin_left *= 0.7
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rabbit-theme-clear-code
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-05-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rabbit
|