reveal-ck 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -15,10 +15,11 @@ Feature: Generate slides
15
15
  """
16
16
  When I run `reveal-ck generate`
17
17
  Then the exit status should be 0
18
+ And the output should contain exactly ""
18
19
  And the following files should exist:
19
- | slides.html |
20
- | slides/index.html |
21
- And the file "slides.html" should contain exactly:
20
+ | slides/slides.html |
21
+ | slides/index.html |
22
+ And the file "slides/slides.html" should contain exactly:
22
23
  """
23
24
  <section>
24
25
  <h1>
@@ -52,7 +53,7 @@ Feature: Generate slides
52
53
  When I run `reveal-ck generate`
53
54
  Then the exit status should be 0
54
55
  And the following files should exist:
55
- | slides.html |
56
+ | slides/slides.html |
56
57
  | slides/index.html |
57
58
  | slides/images/ruby100.png |
58
59
  And the file "slides/index.html" should contain:
@@ -8,26 +8,27 @@ REVEAL_FILES = FileList["#{revealjs}/**/*"]
8
8
 
9
9
  #
10
10
  # task: slides
11
- directory 'slides'
11
+ task 'slides' do
12
+ mkdir_p 'slides', verbose: false
13
+ end
12
14
  CLEAN.include 'slides'
13
15
 
14
16
  #
15
17
  # task: slides.html
16
18
  desc 'Build slides.html'
17
- file 'slides.html' => 'slides.haml' do
19
+ file 'slides/slides.html' => [ 'slides.haml', 'slides' ] do
18
20
  processor = HamlProcessor.open 'slides.haml'
19
- File.open('slides.html', 'w') { |f| f << processor.html }
21
+ File.open('slides/slides.html', 'w') { |f| f << processor.html }
20
22
  end
21
- CLEAN.include 'slides.html'
23
+ CLEAN.include 'slides/slides.html'
22
24
 
23
25
  #
24
26
  # task: presentation
25
27
  desc 'Build presentation'
26
- task :presentation => [ 'slides', 'slides.html'] do
27
- cp 'slides.html', 'slides'
28
- cp_r REVEAL_FILES, 'slides'
29
- mkdir_p 'slides/images'
30
- cp_r DIR_IMAGES_FILES, 'slides/images'
28
+ task :presentation => [ 'slides/slides.html'] do
29
+ cp_r REVEAL_FILES, 'slides', verbose: false
30
+ mkdir_p 'slides/images', verbose: false
31
+ cp_r DIR_IMAGES_FILES, 'slides/images', verbose: false
31
32
  line_nums = {
32
33
  default_slides: {
33
34
  first: 37,
@@ -36,5 +37,5 @@ task :presentation => [ 'slides', 'slides.html'] do
36
37
  }
37
38
  default_slides = line_nums[:default_slides][:first]..line_nums[:default_slides][:last]
38
39
  FileSlicer.remove! 'slides/index.html', default_slides
39
- FileSplicer.insert! 'slides.html', into: 'slides/index.html', after: '<div class="slides">'
40
+ FileSplicer.insert! 'slides/slides.html', into: 'slides/index.html', after: '<div class="slides">'
40
41
  end
data/reveal-ck.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "reveal-ck"
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jed Northridge"]
12
- s.date = "2013-02-12"
12
+ s.date = "2013-02-15"
13
13
  s.description = "A reveal.js construction kit"
14
14
  s.email = "northridge@gmail.com"
15
15
  s.executables = ["reveal-ck"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reveal-ck
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-12 00:00:00.000000000 Z
12
+ date: 2013-02-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: haml
@@ -254,7 +254,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
254
254
  version: '0'
255
255
  segments:
256
256
  - 0
257
- hash: 2970207072739408718
257
+ hash: -3708275726439485503
258
258
  required_rubygems_version: !ruby/object:Gem::Requirement
259
259
  none: false
260
260
  requirements: