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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ffefa6937d5400b1106dd9fe5fcbb632bfdaa1d1
4
- data.tar.gz: f5a1dddee91bcc53336e99ab562a2f82777ee3d0
3
+ metadata.gz: 3bc414eace11c6b78b3edce68eacd6a5bf945810
4
+ data.tar.gz: 2f7ebab968a1772c5ff9414a598e914cac9dc38b
5
5
  SHA512:
6
- metadata.gz: adef2cd82d6a4c26ceb86f7d2cbe489aaff6bef1f1b2fe781c00ce8f5be465bc9ecefd1d764f4bfb1809ed42bd5fcecec727e2e98dcbed9ca5059790d1a2f943
7
- data.tar.gz: 96e91f45863e3d43df3d9fdcec19fff2aa3b74392401289b981dcbd526e2660d19f842e6674c54977b22d7d9d16d8942cd2074515c66904f8c024c0325efbd36
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 Default. to change this, use the `set_theme` method in the
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 'solarized'
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 ||= 'default'
45
+ @theme ||= 'solarized'
46
46
  end
47
47
 
48
48
  def set_theme(theme)
@@ -1,3 +1,3 @@
1
1
  module SlideHero
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -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 'default'" do
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/default.css\" id=\"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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slide_hero
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Nunez