slippery 0.4.0 → 0.4.1

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: a33c6a5cdeb602e16ef4c7d0c1ceb5fe763bb811
4
- data.tar.gz: b5c409cac6a708f574c3e420da283e5a2eec009a
3
+ metadata.gz: a24b676794fa94896ad8e22ede9475201b245988
4
+ data.tar.gz: d3e05f4f2c786fdcd1a6c764444230cd92d0575e
5
5
  SHA512:
6
- metadata.gz: 0abfe01bb453a3aba48525cb9bbabfa0cd45080af9182f6ce7c307ca2279a66e4c2763b9c2663ec3b35f6efab09a4a24220a0607f17c6098a2dc7e5bfd9b59b8
7
- data.tar.gz: f9966e83b34989a70ecf431e0dde7d20371a7427a2a2b9916135455aea15fc03f2d696f30196c6b41e335ebaad2ae918e701384dfcab0995de1daa788f0fa7d4
6
+ metadata.gz: 93511e6ac1188cf9e15fcaf0d5c6cfdfe4e46f11380a11e5fdcdb0fdbd8cd6e99b874fc488b007961e32bd900476423c35ad0c1a318725e31cfdf1ad634e386b
7
+ data.tar.gz: e586d25d5d0d236c74c73cf5bd8a9e383d35fa58fe54707ceca29c402cff1f10dfcb096f9d6981d5fe6bcb09ee100e3876aff95d5de8aa19722026a57406d07e
data/README.md CHANGED
@@ -10,12 +10,18 @@
10
10
  [codeclimate]: https://codeclimate.com/github/plexus/slippery
11
11
  [coveralls]: https://coveralls.io/r/plexus/slippery
12
12
 
13
- #Slippery
13
+ # Slippery
14
14
 
15
- Marries the flexible [Kramdown](https://kramdown.rubyforge.org) parser for Markdown with the flexibility of DOM manipulation with [Hexp](https://github.com/plexus/hexp) to generate HTML slides backed by either Reveal.js or Impress.js.
15
+ Create HTML slides from Markdown, backed by Reveal.js, Impress.js, or Deck.js.
16
16
 
17
17
  Because Slippery slides are the best slides.
18
18
 
19
+ When doing conferences you might find yourself on trains, planes, or
20
+ flaky conference wifi. Slippery finds all assets used by your
21
+ presentation and stores them locally, including CSS, Javascript,
22
+ images, and webfonts. You can drop the result on a thumb drive and run
23
+ anywhere, no network required.
24
+
19
25
  ## How to use
20
26
 
21
27
  Create a markdown file, say `presentation.md`, that will be the source of your presentation. use `---` to separate slides.
@@ -35,27 +41,38 @@ rake slippery:build # build all
35
41
  rake slippery:build:presentation # build presentation
36
42
  ```
37
43
 
38
-
39
- You can use a block to configure Slippery:
44
+ You can use a block to configure Slippery. If the block takes an
45
+ argument it will receive the slippery config object, otherwise the
46
+ block is instance_evaled in the right scope.
40
47
 
41
48
  ```ruby
42
49
  require 'slippery'
43
50
 
44
- Slippery::RakeTasks.new do |s|
45
- s.options = {
46
- type: :reveal_js,
47
- theme: 'beige',
48
- controls: false,
49
- backgroundTransition: 'slide',
50
- history: true,
51
- plugins: [:notes]
52
- }
53
-
54
- s.processor 'head' do |head|
55
- head <<= H[:title, 'Web Services, Past Present Future']
51
+ Slippery::RakeTasks.new do
52
+ title "Hypermedia in Practice | @plexus"
53
+ type :reveal_js
54
+ add_highlighting :default, '8.2'
55
+
56
+ js_options theme: 'sky', # beige default moon night serif simple sky solarized
57
+ transition: 'none',
58
+ backgroundTransition: 'none',
59
+ width: 1500, #1680,
60
+ height: 1000, #1050
61
+ loop: true
62
+
63
+
64
+ pack_assets
65
+
66
+ processor 'head' do |head|
67
+ H[:head, head.attributes, head.children + [
68
+ H[:meta, charset: 'utf-8'],
69
+ H[:meta, name: 'viewport', content: 'width=1024'],
70
+ H[:meta, "http-equiv" => 'X-UA-Compatible', content: 'IE=edge,chrome=1'],
71
+ H[:link, rel: 'stylesheet', type: 'text/css', href: 'style.css'],
72
+ H[:script, {type: 'text/javascript'}, File.read('ga.js')],
73
+ ]
74
+ ]
56
75
  end
57
-
58
- s.include_assets
59
76
  end
60
77
  ```
61
78
 
@@ -1,3 +1,3 @@
1
1
  module Slippery
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
@@ -23,7 +23,7 @@ Gem::Specification.new do |gem|
23
23
  gem.add_runtime_dependency 'rake' , '~> 10.1'
24
24
  gem.add_runtime_dependency 'listen' , '~> 2.7'
25
25
  gem.add_runtime_dependency 'concord' , '~> 0.1.4'
26
- gem.add_runtime_dependency 'asset_packer' , '~> 0.2.0'
26
+ gem.add_runtime_dependency 'asset_packer' , '~> 0.3.0'
27
27
 
28
28
  gem.add_development_dependency 'rspec'
29
29
  gem.add_development_dependency 'mutant-rspec'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slippery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arne Brasseur
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-14 00:00:00.000000000 Z
11
+ date: 2015-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hexp
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.2.0
103
+ version: 0.3.0
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.2.0
110
+ version: 0.3.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rspec
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -428,7 +428,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
428
428
  version: '0'
429
429
  requirements: []
430
430
  rubyforge_project:
431
- rubygems_version: 2.4.5
431
+ rubygems_version: 2.2.2
432
432
  signing_key:
433
433
  specification_version: 4
434
434
  summary: Make presentations with Markdown