rhet-butler 0.11.0 → 0.11.1
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.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NzY5YWYyOTQ1YzZmNTczNGUyMDMxYTJiODFmYTQ5ZWIzYmY1NThkYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDU2YjFjMjE5M2ZmNTNiM2EyZGQxOTNkY2JjNTZhODMxYTA2ODhmYw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NGRmNjg0MmQ3MGQ4MjEwMGNmMWRiNzhiN2M5MGE4Y2JiYjUzODgyNWRiOGJm
|
10
|
+
ZDdjMjFkNGFmMTgzYjQ1ODJiZDQzZmY5ZWI4Yzc0MjVmMGNhNTg1NzI2MjAx
|
11
|
+
Y2ZhZTFhZWUxNjA1YTU2NDcxZTMxZmE3MjFmYjdhNWRlYTU3OGU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YWFkYWEwNzQxMTQ1YzBhNTdlNjg3OTQ4ODI5NWE1ZWNhZTQyNDJmMWIyMTEz
|
14
|
+
ZDQ1MmFhMjg2ZDk0NTRhNTliY2ZmYjRiNjBmMWI2MzZmOTg0MDQ3NDQ0OGIw
|
15
|
+
OGZkNmRlMTNmMzA2MDhhNjJkYTU1ODAzYzMxOWYyYzUwZjc0MzM=
|
@@ -8,7 +8,7 @@ module RhetButler
|
|
8
8
|
|
9
9
|
class <<self
|
10
10
|
def optional_config
|
11
|
-
%w[type slide_type]
|
11
|
+
%w[type slide_type html_class html_classes html_id]
|
12
12
|
end
|
13
13
|
|
14
14
|
def required_config
|
@@ -18,7 +18,7 @@ module RhetButler
|
|
18
18
|
|
19
19
|
def setup_defaults
|
20
20
|
@html_id = nil
|
21
|
-
@
|
21
|
+
@html_classes = ["group"]
|
22
22
|
@slides = []
|
23
23
|
@metadata = {}
|
24
24
|
end
|
@@ -52,7 +52,7 @@ module RhetButler
|
|
52
52
|
end
|
53
53
|
|
54
54
|
attr_accessor :slides
|
55
|
-
attr_reader :metadata, :
|
55
|
+
attr_reader :metadata, :html_classes
|
56
56
|
|
57
57
|
def each
|
58
58
|
if block_given?
|
data/spec/html-generation.rb
CHANGED
@@ -7,7 +7,11 @@ describe RhetButler::HTMLGenerator do
|
|
7
7
|
let :slides do
|
8
8
|
one = RhetButler::Slide.new
|
9
9
|
one.content = "A test slide"
|
10
|
-
|
10
|
+
one.html_classes << "with-class"
|
11
|
+
group = RhetButler::SlideGroup.new
|
12
|
+
group.slides = [ one ]
|
13
|
+
group.html_classes << "with-class"
|
14
|
+
[ group ]
|
11
15
|
end
|
12
16
|
|
13
17
|
let :prez do
|
@@ -46,9 +50,25 @@ describe RhetButler::HTMLGenerator do
|
|
46
50
|
html.should be_a(String)
|
47
51
|
end
|
48
52
|
|
49
|
-
|
50
|
-
|
53
|
+
describe "produced HTML" do
|
54
|
+
subject :doc do
|
51
55
|
Nokogiri::HTML::Document.parse(html, nil, nil, Nokogiri::XML::ParseOptions::DEFAULT_XML)
|
52
|
-
end
|
56
|
+
end
|
57
|
+
|
58
|
+
it "should include the group" do
|
59
|
+
doc.css('.group').should_not be_empty
|
60
|
+
end
|
61
|
+
|
62
|
+
it "should add the class to the group" do
|
63
|
+
doc.css('.group.with-class').should_not be_empty
|
64
|
+
end
|
65
|
+
|
66
|
+
it "should include the slide" do
|
67
|
+
doc.css('.slide').should_not be_empty
|
68
|
+
end
|
69
|
+
|
70
|
+
it "should add the class to the group" do
|
71
|
+
doc.css('.slide.with-class').should_not be_empty
|
72
|
+
end
|
53
73
|
end
|
54
74
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rhet-butler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Judson Lester
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: compass-core
|
@@ -394,7 +394,7 @@ rdoc_options:
|
|
394
394
|
- --main
|
395
395
|
- doc/README
|
396
396
|
- --title
|
397
|
-
- rhet-butler-0.11.
|
397
|
+
- rhet-butler-0.11.1 Documentation
|
398
398
|
require_paths:
|
399
399
|
- lib/
|
400
400
|
required_ruby_version: !ruby/object:Gem::Requirement
|