rhet-butler 0.9.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YWU1ZjE0YzljN2FkM2YxZjk4NjA3NGQwYmY1YzkzOTFkOWRlZGNhNA==
4
+ MTRlYmMzNmVkMTA3NDQxMmJhODMyZmM2YTQ3Nzg2NzVjZTc2M2Q1MA==
5
5
  data.tar.gz: !binary |-
6
- M2VmZDJkOTdjNDBiZmJlNDE0ZjQ5NDZjODZkNTM4NTczNTM4MmMxZA==
7
- SHA512:
6
+ OGU3NWMzYzEyOTUyZjc0MDM1M2EwZjkzYzYyNTIwZjEzOTMxYWIzMA==
7
+ !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NWQ3NzlhZGFiNzNkM2Q5YTUwNTgwYzFlNTA3MGNhMTYxNmRiYzQxNjcyYTU0
10
- MzUwNTY0OTUwYWQ4YjZiZGJmOGQxNWVjZTQ0MDA3NzM4YzhlYTg2Mjg3NDIy
11
- MTg3Y2Q4ZmI3ZjBkNmQ4Nzg5OGZlOGM2NjYzMTI0YjUwN2I0NTk=
9
+ Y2Y4NWVjY2RiZjJiZTcyNGE4MDljZDVlZDIwZWRjMDE5NGU0NTJmODBhMGIz
10
+ YzdmMTJjN2U5OWQ0Y2ViMDYyM2FlNzg3YTY1NDdmY2ExNzEyYTQ1NjJlOGMz
11
+ NzNhZWVjOTJmNTY3NzkzOWZjM2NlODBjYzZkYWE5NDc0MmI3OGY=
12
12
  data.tar.gz: !binary |-
13
- YTYxZDA3ZTcyODE2MTRiZTYzYzdiMTc3OGNkZjI0MmFmYTIyMTM1YzJkNTU2
14
- YmM3NDYxYjM2MTE3N2NiY2EwYzkzOWZlMDE0NTAzYjMwY2EwYmJlMTA5OWIz
15
- OTZkNDNiMGRiMDgwZmY0N2JiN2Y1OGJkYmQ3YmIzMThmNmRiNTk=
13
+ OGM3OTIwM2MwODBmZTYxZjA3NTEyZjU3YzZmMTYyNDhiNWVhY2NkMTNiNDQ4
14
+ OGZkZjc0MDY5ZDJiYzY2NmI3NmQ4ZjRkYjdhZDc5ZTA2NDhmNzBhMTI3ZmQ5
15
+ NzUxNmNkMzBkNTViY2UyYzBjYjNiYzRhNTQxMTUwMmEyOWI3OWY=
@@ -61,8 +61,14 @@ body
61
61
 
62
62
  display: none
63
63
 
64
+
64
65
  &.current,&.next,&.previous
65
- display: block
66
+ display: table
67
+ > *
68
+ display: table-cell
69
+ vertical-align: middle
70
+ position: relative
71
+ top: -10vh
66
72
 
67
73
  &.previous
68
74
  z-index: 10
@@ -103,19 +109,34 @@ body
103
109
  max-width: 100%
104
110
  max-height: 100%
105
111
 
106
- pre
107
- font-family: 'Droid Sans Mono', monospace
108
- text-align: initial
109
- font-size: 6vh
110
- line-height: 1em
111
- code
112
+ em
113
+ font-style: italic
114
+
115
+ &.code
116
+ padding: 0
117
+ > pre
118
+ position: static
119
+ width: 100%
120
+ overflow: hidden
121
+ height: 100%
122
+ display: table
123
+
124
+
125
+ font-family: 'Droid Sans Mono', monospace
126
+ text-align: initial
127
+ font-size: 6vh
128
+ line-height: 1em
112
129
  border-radius: 10px
113
130
  +box-shadow(-2px -2px 8px 2px rgb(140,140,140) inset, 2px 2px 8px 2px rgb(40, 40, 40) inset)
114
131
 
115
- li
116
- opacity: 0
132
+ code
133
+ display: table-cell
134
+ vertical-align: middle
117
135
 
118
136
  @for $i from 1 through 10
137
+ li.cue-#{$i}
138
+ opacity: 0
139
+
119
140
  &.current-cue-#{$i}
120
141
  code span.cue-#{$i}
121
142
  border-radius: 5px
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Include this file early in your Sass project to
3
+ * get access to Solarized colors and functions.
4
+ *
5
+ * Adapted from the outstanding work by Ethan Schoonover:
6
+ * http://ethanschoonover.com/solarized
7
+
8
+ $base03: rgb(0, 43, 54)
9
+ $base02: rgb(7, 54, 66)
10
+ $base01: rgb(88, 110, 117)
11
+ $base00: rgb(101, 123, 131)
12
+ $base0: rgb(131, 148, 150)
13
+ $base1: rgb(147, 161, 161)
14
+ $base2: rgb(238, 232, 213)
15
+ $base3: rgb(253, 246, 227)
16
+ $yellow: rgb(181, 137, 0)
17
+ $orange: rgb(203, 75, 22)
18
+ $red: rgb(220, 50, 47)
19
+ $magenta: rgb(211, 54, 130)
20
+ $violet: rgb(108, 113, 196)
21
+ $blue: rgb(38, 139, 210)
22
+ $cyan: rgb(42, 161, 152)
23
+ $green: rgb(133, 153, 0)
24
+
25
+ =solarized-dark
26
+ background-color: $base03
27
+ color: $base0
28
+
29
+ =solarized-light
30
+ background-color: $base3
31
+ color: $base00
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Include this file early in your Sass project to
3
+ * get access to Solarized colors and functions.
4
+ *
5
+ * Adapted from the outstanding work by Ethan Schoonover:
6
+ * http://ethanschoonover.com/solarized
7
+ */
8
+
9
+ $base03: rgb(0, 43, 54);
10
+ $base02: rgb(7, 54, 66);
11
+ $base01: rgb(88, 110, 117);
12
+ $base00: rgb(101, 123, 131);
13
+ $base0: rgb(131, 148, 150);
14
+ $base1: rgb(147, 161, 161);
15
+ $base2: rgb(238, 232, 213);
16
+ $base3: rgb(253, 246, 227);
17
+ $yellow: rgb(181, 137, 0);
18
+ $orange: rgb(203, 75, 22);
19
+ $red: rgb(220, 50, 47);
20
+ $magenta: rgb(211, 54, 130);
21
+ $violet: rgb(108, 113, 196);
22
+ $blue: rgb(38, 139, 210);
23
+ $cyan: rgb(42, 161, 152);
24
+ $green: rgb(133, 153, 0);
25
+
26
+ @mixin solarized-dark() {
27
+ background-color: $base03;
28
+ color: $base0;
29
+ }
30
+ @mixin solarized-light() {
31
+ background-color: $base3;
32
+ color: $base00;
33
+ }
@@ -1,3 +1,4 @@
1
1
  <link href="/stylesheets/google-open-sans.css" rel="stylesheet" />
2
2
  <link href="/stylesheets/rhet.css" rel="stylesheet" />
3
+ <link href="/stylesheets/prez-local.css" rel="stylesheet" />
3
4
  <link href="/stylesheets/highlight/solarized_dark.css" rel="stylesheet" />
@@ -1,6 +1,7 @@
1
- !slide An awesome presentation
2
- !group
3
- !include whoami.yaml
4
- !group
5
- !slide |
1
+ ---
2
+ - !slide An awesome presentation
3
+ - !group
4
+ - !include whoami.yaml
5
+ - !group
6
+ - !slide |
6
7
  contents: It'll knock your socks off!
@@ -22,7 +22,13 @@ module RhetButler
22
22
  @loaded_paths[file.full_path] = true
23
23
  end
24
24
 
25
- return YAML.load_stream(file.contents).flatten
25
+ begin
26
+ return YAML.load_stream(file.contents).flatten
27
+ rescue => ex
28
+ puts "While processing `#{file.full_path}`"
29
+ puts ex.class
30
+ raise
31
+ end
26
32
  end
27
33
  end
28
34
  end
@@ -40,6 +40,9 @@ module RhetButler
40
40
  slide.html_classes += slide.content_filters.map do |filter|
41
41
  "note-" + filter.html_class unless filter.html_class.nil?
42
42
  end
43
+ rescue => ex
44
+ puts "While processing #{slide}:"
45
+ raise
43
46
  end
44
47
  end
45
48
  end
@@ -11,6 +11,10 @@ module RhetButler
11
11
  %w{class}
12
12
  end
13
13
 
14
+ def html_class
15
+ "code"
16
+ end
17
+
14
18
  def process(string)
15
19
  "<pre><code#{@config_hash ? " class='#{@config_hash['class']}'" : ""}>#{string}</code></pre>"
16
20
  end
@@ -133,6 +133,9 @@ module RhetButler
133
133
 
134
134
  value_from_config("filters") do |value|
135
135
  @content_filters = value
136
+ @html_classes += [*value].map do |filter|
137
+ filter.html_class
138
+ end.compact
136
139
  end
137
140
 
138
141
  value_from_config("note-filters") do |value|
@@ -149,6 +152,10 @@ module RhetButler
149
152
  attr_accessor :scale
150
153
  attr_reader :template_name
151
154
 
155
+ def to_s
156
+ "Slide: #{content[0..20]}"
157
+ end
158
+
152
159
  def id_attr
153
160
  if @html_id.nil?
154
161
  return ""
@@ -136,12 +136,15 @@ module RhetButler
136
136
  puts " http://#{interface[:inet_addr].to_s}:#{configuration.serve_port}/"
137
137
  puts " http://#{interface[:inet_addr].to_s}:#{configuration.serve_port}/qr"
138
138
  end
139
- EM.run do
140
- thin = Rack::Handler.get("thin")
141
- thin.run(builder.to_app, :Host => "0.0.0.0", :Port => configuration.serve_port) do |server|
142
- server.threaded = true
143
- end
144
- end
139
+ server = Thin::Server.new(builder.to_app, configuration.serve_port)
140
+ server.threaded = true
141
+ server.start
142
+ # EM.run do
143
+ # thin = Rack::Handler.get("thin")
144
+ # thin.run(builder.to_app, :Host => "0.0.0.0", :Port => configuration.serve_port) do |server|
145
+ # server.threaded = true
146
+ # end
147
+ # end
145
148
  end
146
149
  end
147
150
  end
@@ -41,6 +41,9 @@ module RhetButler
41
41
  check_config_hash(@config_hash)
42
42
 
43
43
  configure
44
+ rescue => ex
45
+ puts "Processing #{coder.inspect}"
46
+ raise
44
47
  end
45
48
  end
46
49
  end
metadata CHANGED
@@ -1,211 +1,211 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rhet-butler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Judson Lester
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-23 00:00:00.000000000 Z
11
+ date: 2014-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
+ name: compass-core
14
15
  requirement: !ruby/object:Gem::Requirement
15
16
  requirements:
16
17
  - - ~>
17
18
  - !ruby/object:Gem::Version
18
19
  version: 1.0.0.alpha
20
+ type: :runtime
19
21
  prerelease: false
20
- name: compass-core
21
22
  version_requirements: !ruby/object:Gem::Requirement
22
23
  requirements:
23
24
  - - ~>
24
25
  - !ruby/object:Gem::Version
25
26
  version: 1.0.0.alpha
26
- type: :runtime
27
27
  - !ruby/object:Gem::Dependency
28
- requirement: !ruby/object:Gem::Requirement
29
- requirements:
30
- - - ~>
31
- - !ruby/object:Gem::Version
32
- version: 1.0.1
33
- prerelease: false
34
28
  name: compass-import-once
35
- version_requirements: !ruby/object:Gem::Requirement
29
+ requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
31
  - - ~>
38
32
  - !ruby/object:Gem::Version
39
33
  version: 1.0.1
40
34
  type: :runtime
41
- - !ruby/object:Gem::Dependency
42
- requirement: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - ~>
45
- - !ruby/object:Gem::Version
46
- version: '1.4'
47
35
  prerelease: false
48
- name: tilt
49
36
  version_requirements: !ruby/object:Gem::Requirement
50
37
  requirements:
51
38
  - - ~>
52
39
  - !ruby/object:Gem::Version
53
- version: '1.4'
54
- type: :runtime
40
+ version: 1.0.1
55
41
  - !ruby/object:Gem::Dependency
42
+ name: thor
56
43
  requirement: !ruby/object:Gem::Requirement
57
44
  requirements:
58
45
  - - ! '>'
59
46
  - !ruby/object:Gem::Version
60
47
  version: '0'
48
+ type: :runtime
61
49
  prerelease: false
62
- name: thor
63
50
  version_requirements: !ruby/object:Gem::Requirement
64
51
  requirements:
65
52
  - - ! '>'
66
53
  - !ruby/object:Gem::Version
67
54
  version: '0'
68
- type: :runtime
69
55
  - !ruby/object:Gem::Dependency
56
+ name: rack
70
57
  requirement: !ruby/object:Gem::Requirement
71
58
  requirements:
72
59
  - - ! '>'
73
60
  - !ruby/object:Gem::Version
74
61
  version: '0'
62
+ type: :runtime
75
63
  prerelease: false
76
- name: rack
77
64
  version_requirements: !ruby/object:Gem::Requirement
78
65
  requirements:
79
66
  - - ! '>'
80
67
  - !ruby/object:Gem::Version
81
68
  version: '0'
82
- type: :runtime
83
69
  - !ruby/object:Gem::Dependency
70
+ name: thin
84
71
  requirement: !ruby/object:Gem::Requirement
85
72
  requirements:
86
73
  - - ! '>'
87
74
  - !ruby/object:Gem::Version
88
75
  version: '0'
76
+ type: :runtime
89
77
  prerelease: false
90
- name: thin
91
78
  version_requirements: !ruby/object:Gem::Requirement
92
79
  requirements:
93
80
  - - ! '>'
94
81
  - !ruby/object:Gem::Version
95
82
  version: '0'
96
- type: :runtime
97
83
  - !ruby/object:Gem::Dependency
84
+ name: sockjs
98
85
  requirement: !ruby/object:Gem::Requirement
99
86
  requirements:
100
87
  - - ~>
101
88
  - !ruby/object:Gem::Version
102
89
  version: 0.2.1
90
+ type: :runtime
103
91
  prerelease: false
104
- name: sockjs
105
92
  version_requirements: !ruby/object:Gem::Requirement
106
93
  requirements:
107
94
  - - ~>
108
95
  - !ruby/object:Gem::Version
109
96
  version: 0.2.1
110
- type: :runtime
111
97
  - !ruby/object:Gem::Dependency
98
+ name: valise
112
99
  requirement: !ruby/object:Gem::Requirement
113
100
  requirements:
114
101
  - - ~>
115
102
  - !ruby/object:Gem::Version
116
- version: 1.0.0
103
+ version: '1.0'
104
+ type: :runtime
117
105
  prerelease: false
118
- name: valise
119
106
  version_requirements: !ruby/object:Gem::Requirement
120
107
  requirements:
121
108
  - - ~>
122
109
  - !ruby/object:Gem::Version
123
- version: 1.0.0
110
+ version: '1.0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: tilt
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - <
116
+ - !ruby/object:Gem::Version
117
+ version: '2.0'
124
118
  type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - <
123
+ - !ruby/object:Gem::Version
124
+ version: '2.0'
125
125
  - !ruby/object:Gem::Dependency
126
+ name: nokogiri
126
127
  requirement: !ruby/object:Gem::Requirement
127
128
  requirements:
128
129
  - - ! '>='
129
130
  - !ruby/object:Gem::Version
130
131
  version: '0'
132
+ type: :runtime
131
133
  prerelease: false
132
- name: nokogiri
133
134
  version_requirements: !ruby/object:Gem::Requirement
134
135
  requirements:
135
136
  - - ! '>='
136
137
  - !ruby/object:Gem::Version
137
138
  version: '0'
138
- type: :runtime
139
139
  - !ruby/object:Gem::Dependency
140
+ name: crass
140
141
  requirement: !ruby/object:Gem::Requirement
141
142
  requirements:
142
143
  - - ! '>='
143
144
  - !ruby/object:Gem::Version
144
145
  version: '0'
146
+ type: :runtime
145
147
  prerelease: false
146
- name: crass
147
148
  version_requirements: !ruby/object:Gem::Requirement
148
149
  requirements:
149
150
  - - ! '>='
150
151
  - !ruby/object:Gem::Version
151
152
  version: '0'
152
- type: :runtime
153
153
  - !ruby/object:Gem::Dependency
154
+ name: addressable
154
155
  requirement: !ruby/object:Gem::Requirement
155
156
  requirements:
156
157
  - - ! '>='
157
158
  - !ruby/object:Gem::Version
158
159
  version: '0'
160
+ type: :runtime
159
161
  prerelease: false
160
- name: addressable
161
162
  version_requirements: !ruby/object:Gem::Requirement
162
163
  requirements:
163
164
  - - ! '>='
164
165
  - !ruby/object:Gem::Version
165
166
  version: '0'
166
- type: :runtime
167
167
  - !ruby/object:Gem::Dependency
168
+ name: system-getifaddrs
168
169
  requirement: !ruby/object:Gem::Requirement
169
170
  requirements:
170
171
  - - ~>
171
172
  - !ruby/object:Gem::Version
172
173
  version: 0.2.0
174
+ type: :runtime
173
175
  prerelease: false
174
- name: system-getifaddrs
175
176
  version_requirements: !ruby/object:Gem::Requirement
176
177
  requirements:
177
178
  - - ~>
178
179
  - !ruby/object:Gem::Version
179
180
  version: 0.2.0
180
- type: :runtime
181
181
  - !ruby/object:Gem::Dependency
182
+ name: rqrcode
182
183
  requirement: !ruby/object:Gem::Requirement
183
184
  requirements:
184
185
  - - ~>
185
186
  - !ruby/object:Gem::Version
186
187
  version: 0.4.2
188
+ type: :runtime
187
189
  prerelease: false
188
- name: rqrcode
189
190
  version_requirements: !ruby/object:Gem::Requirement
190
191
  requirements:
191
192
  - - ~>
192
193
  - !ruby/object:Gem::Version
193
194
  version: 0.4.2
194
- type: :runtime
195
195
  - !ruby/object:Gem::Dependency
196
+ name: RedCloth
196
197
  requirement: !ruby/object:Gem::Requirement
197
198
  requirements:
198
199
  - - ~>
199
200
  - !ruby/object:Gem::Version
200
201
  version: 4.2.9
202
+ type: :runtime
201
203
  prerelease: false
202
- name: RedCloth
203
204
  version_requirements: !ruby/object:Gem::Requirement
204
205
  requirements:
205
206
  - - ~>
206
207
  - !ruby/object:Gem::Version
207
208
  version: 4.2.9
208
- type: :runtime
209
209
  description: ! " Rhet Butler is a presentation assistant. Build a slide deck in simple
210
210
  YAML,\n design it in CSS, run the presentation with your smartphone over Websockets.\n"
211
211
  email:
@@ -285,6 +285,9 @@ files:
285
285
  - default-configuration/assets/themes.googleusercontent.com/static/fonts/arimo/v5/K-bXE71xZHgbUS_UdQjugvesZW2xOQ-xsNqO47m55DA.ttf
286
286
  - default-configuration/assets/themes.googleusercontent.com/static/fonts/slackey/v3/bJZDrYrGx8atJRHR9DVdqg.ttf
287
287
  - default-configuration/assets/themes.googleusercontent.com/static/fonts/droidsansmono/v4/ns-m2xQYezAtqh7ai59hJYW_AySPyikQrZReizgrnuw.ttf
288
+ - default-configuration/assets/stylesheets/prez-local.css
289
+ - default-configuration/assets/stylesheets/solarized.sass
290
+ - default-configuration/assets/stylesheets/solarized.scss
288
291
  - default-configuration/assets/stylesheets/google-open-sans.css
289
292
  - default-configuration/assets/stylesheets/rhet.css.sass
290
293
  - default-configuration/assets/stylesheets/font.css
@@ -391,7 +394,7 @@ rdoc_options:
391
394
  - --main
392
395
  - doc/README
393
396
  - --title
394
- - rhet-butler-0.9.0 Documentation
397
+ - rhet-butler-0.10.0 Documentation
395
398
  require_paths:
396
399
  - lib/
397
400
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -406,7 +409,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
406
409
  version: '0'
407
410
  requirements: []
408
411
  rubyforge_project: rhet-butler
409
- rubygems_version: 2.1.10
412
+ rubygems_version: 2.0.14
410
413
  signing_key:
411
414
  specification_version: 4
412
415
  summary: A web tech presentation system