slide_hero 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/slide_hero/presentation.rb +2 -2
- data/lib/slide_hero/version.rb +1 -1
- data/test/slide_hero/presentation_spec.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bc414eace11c6b78b3edce68eacd6a5bf945810
|
4
|
+
data.tar.gz: 2f7ebab968a1772c5ff9414a598e914cac9dc38b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 172e12639c495f7d6f0e615b1d4fc0c8219a30a3e17fd083ec537b4a8a958c4656cff0f3d2687fed99ac5ef2a7933d693f0824547c4627807c8ddae277b7ad15
|
7
|
+
data.tar.gz: 307d6e04ddf5d51090ab81a82a179eb13e091f41d9c02c9e22d34b1f8b84fc81508baac8fe2f81d276fae4e9d001437653c8a7429f646e7a8d6756d1995d232e
|
data/README.md
CHANGED
@@ -126,12 +126,12 @@ end
|
|
126
126
|
```
|
127
127
|
|
128
128
|
You can set slide defaults for `headline_size` or `transition` by using `#defaults`. A slide default applies to all slides unless an individual slide overrides it.
|
129
|
-
The theme is set to
|
129
|
+
The theme is set to Solarized. to change this, use the `set_theme` method in the
|
130
130
|
presentation block.
|
131
131
|
|
132
132
|
``` ruby
|
133
133
|
presentation "My Presentation" do
|
134
|
-
set_theme '
|
134
|
+
set_theme 'beige'
|
135
135
|
end
|
136
136
|
```
|
137
137
|
|
@@ -151,7 +151,7 @@ end
|
|
151
151
|
Currently supported plugins are `:class_list`, `:markdown`, `:highlight`, `:zoom`,
|
152
152
|
`:notes`, `:remote`, and `:leap`.
|
153
153
|
|
154
|
-
`:class_list`, `:highlight`, and `:notes` are used if `set_plugins` is
|
154
|
+
`:class_list`, `:highlight`, `:remote`, and `:notes` are used if `set_plugins` is
|
155
155
|
not called.
|
156
156
|
|
157
157
|
See Reveal.js [documentation](https://github.com/hakimel/reveal.js/#dependencies) for more info on these plugins.
|
@@ -11,7 +11,7 @@ module SlideHero
|
|
11
11
|
|
12
12
|
def set_plugins(*plugin_list)
|
13
13
|
if plugin_list.empty?
|
14
|
-
defaults = %i{class_list highlight notes}
|
14
|
+
defaults = %i{class_list highlight notes remote}
|
15
15
|
plugin_list = defaults
|
16
16
|
end
|
17
17
|
|
@@ -42,7 +42,7 @@ module SlideHero
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def theme
|
45
|
-
@theme ||= '
|
45
|
+
@theme ||= 'solarized'
|
46
46
|
end
|
47
47
|
|
48
48
|
def set_theme(theme)
|
data/lib/slide_hero/version.rb
CHANGED
@@ -83,10 +83,10 @@ module SlideHero
|
|
83
83
|
assert pres.compile.include? "<link rel=\"stylesheet\" href=\"css/theme/sky.css\" id=\"theme\">"
|
84
84
|
end
|
85
85
|
|
86
|
-
it "sets the default theme to '
|
86
|
+
it "sets the default theme to 'solarized'" do
|
87
87
|
pres = Presentation.new("New stuff") {}
|
88
88
|
|
89
|
-
assert pres.compile.include? "<link rel=\"stylesheet\" href=\"css/theme/
|
89
|
+
assert pres.compile.include? "<link rel=\"stylesheet\" href=\"css/theme/solarized.css\" id=\"theme\">"
|
90
90
|
end
|
91
91
|
|
92
92
|
it "allows plugins to be set" do
|
@@ -100,7 +100,7 @@ module SlideHero
|
|
100
100
|
|
101
101
|
it "sets default plugins if not provided" do
|
102
102
|
pres = Presentation.new("New stuff") {}
|
103
|
-
assert pres.compile.include?("{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },{ src: 'plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }"), pres.compile
|
103
|
+
assert pres.compile.include?("{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },{ src: 'plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } },{ src: 'plugin/remotes/remotes.js', async: true, condition: function() { return !!document.body.classList; } }"), pres.compile
|
104
104
|
end
|
105
105
|
|
106
106
|
it "ignores invalid plugins" do
|