middleman-presentation 0.15.8 → 0.16.0.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +31 -4
- data/Rakefile +8 -3
- data/bin/middleman-presentation +9 -1
- data/bin/mp +9 -1
- data/lib/middleman-presentation.rb +1 -71
- data/middleman-presentation.gemspec +7 -20
- metadata +14 -357
- data/.gitignore +0 -33
- data/.rdebugrc +0 -7
- data/.rspec +0 -5
- data/.simplecov +0 -8
- data/.travis.yml +0 -8
- data/.yardopts +0 -5
- data/CONTRIBUTING.md +0 -44
- data/Gemfile +0 -49
- data/Gemfile.lock +0 -328
- data/Guardfile +0 -13
- data/LICENSE.software +0 -21
- data/README.md +0 -608
- data/RELEASE_NOTES.md +0 -36
- data/config/license_finder.yml +0 -13
- data/config/rubocop/exclude.yml +0 -25
- data/config/rubocop/include.yml +0 -142
- data/cucumber.yml +0 -2
- data/doc/licenses/dependencies.csv +0 -55
- data/doc/licenses/dependencies.db +0 -0
- data/doc/licenses/dependencies.html +0 -1415
- data/doc/licenses/dependencies.md +0 -603
- data/doc/licenses/dependencies_detailed.csv +0 -190
- data/features/create_presentation-cli.feature +0 -312
- data/features/create_theme-cli.feature +0 -62
- data/features/grouping_slides.feature +0 -116
- data/features/ignore_slides.feature +0 -86
- data/features/image_gallery.feature +0 -58
- data/features/init_application-cli.feature +0 -91
- data/features/init_predefined_slides.feature +0 -13
- data/features/presentation.feature +0 -113
- data/features/show_config-cli.feature +0 -27
- data/features/show_style-cli.feature +0 -21
- data/features/show_support_information-cli.feature +0 -12
- data/features/slide-cli.feature +0 -311
- data/features/step_definitions.rb +0 -135
- data/features/support/ci.rb +0 -3
- data/features/support/env.rb +0 -19
- data/features/support/reporting.rb +0 -2
- data/features/version_number.feature +0 -18
- data/fixtures/images/image01.png +0 -0
- data/fixtures/images/image02.png +0 -0
- data/lib/middleman-presentation/cli/create.rb +0 -14
- data/lib/middleman-presentation/cli/create_presentation.rb +0 -308
- data/lib/middleman-presentation/cli/create_theme.rb +0 -77
- data/lib/middleman-presentation/cli/init.rb +0 -34
- data/lib/middleman-presentation/cli/reset_thor.rb +0 -18
- data/lib/middleman-presentation/cli/runner.rb +0 -18
- data/lib/middleman-presentation/cli/show.rb +0 -37
- data/lib/middleman-presentation/commands/presentation.rb +0 -23
- data/lib/middleman-presentation/commands/slide.rb +0 -86
- data/lib/middleman-presentation/commands/style.rb +0 -29
- data/lib/middleman-presentation/comparable_slide.rb +0 -69
- data/lib/middleman-presentation/css_class_extracter.rb +0 -41
- data/lib/middleman-presentation/custom_template.rb +0 -11
- data/lib/middleman-presentation/erb_template.rb +0 -11
- data/lib/middleman-presentation/existing_slide.rb +0 -133
- data/lib/middleman-presentation/extension.rb +0 -12
- data/lib/middleman-presentation/file_extensions.rb +0 -60
- data/lib/middleman-presentation/frontend_component.rb +0 -82
- data/lib/middleman-presentation/group_template.rb +0 -11
- data/lib/middleman-presentation/helpers.rb +0 -11
- data/lib/middleman-presentation/helpers/images.rb +0 -38
- data/lib/middleman-presentation/helpers/slides.rb +0 -31
- data/lib/middleman-presentation/helpers/tests.rb +0 -13
- data/lib/middleman-presentation/ignore_file.rb +0 -52
- data/lib/middleman-presentation/liquid_template.rb +0 -11
- data/lib/middleman-presentation/logger.rb +0 -8
- data/lib/middleman-presentation/main.rb +0 -40
- data/lib/middleman-presentation/markdown_template.rb +0 -11
- data/lib/middleman-presentation/new_slide.rb +0 -145
- data/lib/middleman-presentation/predefined_slide_templates_directory.rb +0 -11
- data/lib/middleman-presentation/presentation_config.rb +0 -48
- data/lib/middleman-presentation/slide_group.rb +0 -38
- data/lib/middleman-presentation/slide_list.rb +0 -46
- data/lib/middleman-presentation/transformers/file_keeper.rb +0 -13
- data/lib/middleman-presentation/transformers/group_slides.rb +0 -34
- data/lib/middleman-presentation/transformers/ignore_slides.rb +0 -28
- data/lib/middleman-presentation/transformers/remove_duplicate_slides.rb +0 -32
- data/lib/middleman-presentation/transformers/sort_slides.rb +0 -13
- data/lib/middleman-presentation/version.rb +0 -8
- data/locales/de.yml +0 -9
- data/locales/en.yml +0 -18
- data/script/bootstrap +0 -11
- data/script/ci +0 -3
- data/spec/css_class_extracter_spec.rb +0 -28
- data/spec/existing_slide_spec.rb +0 -158
- data/spec/frontend_resource_spec.rb +0 -87
- data/spec/ignore_file_spec.rb +0 -74
- data/spec/new_slide_spec.rb +0 -136
- data/spec/shared_examples/.keep +0 -0
- data/spec/slide_group_spec.rb +0 -69
- data/spec/slide_list_spec.rb +0 -90
- data/spec/spec_helper.rb +0 -19
- data/spec/support/ci.rb +0 -20
- data/spec/support/environment.rb +0 -18
- data/spec/support/filesystem.rb +0 -22
- data/spec/support/reporting.rb +0 -2
- data/spec/support/rspec.rb +0 -9
- data/spec/support/string.rb +0 -2
- data/spec/transformers/file_keeper_spec.rb +0 -23
- data/spec/transformers/group_slides_spec.rb +0 -44
- data/spec/transformers/ignore_slides_spec.rb +0 -64
- data/spec/transformers/remove_duplicate_slides_spec.rb +0 -120
- data/spec/transformers/sort_slides_spec.rb +0 -17
- data/templates/.bowerrc.tt +0 -4
- data/templates/.gitignore +0 -5
- data/templates/LICENSE.presentation +0 -1
- data/templates/Rakefile +0 -59
- data/templates/bower.json.tt +0 -8
- data/templates/config.yaml.tt +0 -41
- data/templates/data/config.yml.tt +0 -9
- data/templates/data/metadata.yml.tt +0 -77
- data/templates/predefined_slides.d/00.html.erb.tt +0 -23
- data/templates/predefined_slides.d/999980.html.erb.tt +0 -4
- data/templates/predefined_slides.d/999981.html.erb.tt +0 -21
- data/templates/predefined_slides.d/999982.html.erb.tt +0 -3
- data/templates/presentation_theme/bower.json.tt +0 -20
- data/templates/presentation_theme/images/.keep +0 -0
- data/templates/presentation_theme/javascripts/%theme_name%.js.tt +0 -0
- data/templates/presentation_theme/stylesheets/%theme_name%.scss.tt +0 -9
- data/templates/presentation_theme/stylesheets/_fonts.scss.tt +0 -0
- data/templates/presentation_theme/stylesheets/_images.scss.tt +0 -5
- data/templates/presentation_theme/stylesheets/_theme.scss.tt +0 -251
- data/templates/script/bootstrap +0 -5
- data/templates/script/build +0 -3
- data/templates/script/export +0 -34
- data/templates/script/presentation +0 -3
- data/templates/script/slide +0 -3
- data/templates/script/start +0 -43
- data/templates/slides/custom.md.tt +0 -3
- data/templates/slides/erb.tt +0 -5
- data/templates/slides/group.tt +0 -3
- data/templates/slides/liquid.tt +0 -5
- data/templates/slides/markdown.tt +0 -3
- data/templates/source/index.html.erb +0 -1
- data/templates/source/javascripts/application.js.tt +0 -3
- data/templates/source/layout.erb +0 -89
- data/templates/source/stylesheets/application.scss.tt +0 -3
@@ -1,62 +0,0 @@
|
|
1
|
-
Feature: Create new presentation theme
|
2
|
-
|
3
|
-
As a presentator
|
4
|
-
I want to create my own presentation template
|
5
|
-
In order to have a default theme for all presentations created with middleman-presentation
|
6
|
-
|
7
|
-
Background:
|
8
|
-
Given a mocked home directory
|
9
|
-
And git is configured with username "User" and email-address "email@example.com"
|
10
|
-
|
11
|
-
Scenario: Non existing template
|
12
|
-
Given a presentation theme named "new_theme" does not exist
|
13
|
-
When I successfully run `middleman-presentation create theme new_theme`
|
14
|
-
Then a presentation theme named "new_theme" should exist with default files/directories created
|
15
|
-
And a directory named "middleman-presentation-theme-new_theme" is a git repository
|
16
|
-
|
17
|
-
Scenario: No javascripts
|
18
|
-
Given a presentation theme named "new_theme" does not exist
|
19
|
-
When I successfully run `middleman-presentation create theme new_theme --no-javascripts-directory`
|
20
|
-
Then a presentation theme named "new_theme" should exist
|
21
|
-
And a directory named "middleman-presentation-theme-new_theme/javascripts" should not exist
|
22
|
-
|
23
|
-
Scenario: No stylesheets
|
24
|
-
Given a presentation theme named "new_theme" does not exist
|
25
|
-
When I successfully run `middleman-presentation create theme new_theme --no-stylesheets-directory`
|
26
|
-
Then a presentation theme named "new_theme" should exist
|
27
|
-
And a directory named "middleman-presentation-theme-new_theme/stylesheets" should not exist
|
28
|
-
|
29
|
-
Scenario: No images
|
30
|
-
Given a presentation theme named "new_theme" does not exist
|
31
|
-
When I successfully run `middleman-presentation create theme new_theme --no-images-directory`
|
32
|
-
Then a presentation theme named "new_theme" should exist
|
33
|
-
And a directory named "middleman-presentation-theme-new_theme/images" should not exist
|
34
|
-
|
35
|
-
Scenario: Cleaned css classes
|
36
|
-
Given a presentation theme named "new_theme" does not exist
|
37
|
-
When I successfully run `middleman-presentation create theme new_theme --clean-css`
|
38
|
-
Then the file "middleman-presentation-theme-new_theme/stylesheets/_theme.scss" should contain:
|
39
|
-
"""
|
40
|
-
// "999981.html.erb.tt"
|
41
|
-
.mp-external-url {
|
42
|
-
}
|
43
|
-
"""
|
44
|
-
|
45
|
-
Scenario: No prefix for theme directory
|
46
|
-
Given a presentation theme named "new_theme" does not exist
|
47
|
-
When I successfully run `middleman-presentation create theme new_theme --no-theme-prefix`
|
48
|
-
Then a directory named "new_theme" should exist
|
49
|
-
|
50
|
-
Scenario: Predefined css classes
|
51
|
-
Given a presentation theme named "new_theme" does not exist
|
52
|
-
When I successfully run `middleman-presentation create theme new_theme`
|
53
|
-
Then the file "middleman-presentation-theme-new_theme/stylesheets/_theme.scss" should contain:
|
54
|
-
"""
|
55
|
-
a.mp-external-url:after {
|
56
|
-
font-family: "FontAwesome";
|
57
|
-
content: "\f08e";
|
58
|
-
margin-left: 12px;
|
59
|
-
margin-right: 12px;
|
60
|
-
font-size: 0.7em;
|
61
|
-
}
|
62
|
-
"""
|
@@ -1,116 +0,0 @@
|
|
1
|
-
Feature: Grouping slides
|
2
|
-
|
3
|
-
As a presentator
|
4
|
-
I want to group slides
|
5
|
-
In order to use vertical slides feature
|
6
|
-
|
7
|
-
Background:
|
8
|
-
Given a mocked home directory
|
9
|
-
And git is configured with username "User" and email-address "email@example.com"
|
10
|
-
And I successfully run `middleman-presentation create presentation presentation1 --title "My Presentation"`
|
11
|
-
And I cd to "presentation1"
|
12
|
-
|
13
|
-
Scenario: Read slides from filesystem
|
14
|
-
Given a slide named "01namespace/01.html.erb" with:
|
15
|
-
"""
|
16
|
-
<section>
|
17
|
-
<h1>Hello World</h1>
|
18
|
-
</section>
|
19
|
-
"""
|
20
|
-
And the Server is running
|
21
|
-
When I go to "/"
|
22
|
-
Then I should see:
|
23
|
-
"""
|
24
|
-
<section>
|
25
|
-
<!-- slides/01namespace/01.html.erb -->
|
26
|
-
<section>
|
27
|
-
<h1>Hello World</h1>
|
28
|
-
</section>
|
29
|
-
</section>
|
30
|
-
"""
|
31
|
-
|
32
|
-
Scenario: Read multiple slides from filesystem
|
33
|
-
Given a slide named "01namespace/01.html.erb" with:
|
34
|
-
"""
|
35
|
-
<section>
|
36
|
-
<h1>Hello World #1</h1>
|
37
|
-
</section>
|
38
|
-
"""
|
39
|
-
And a slide named "01namespace/02.html.erb" with:
|
40
|
-
"""
|
41
|
-
<section>
|
42
|
-
<h1>Hello World #2</h1>
|
43
|
-
</section>
|
44
|
-
"""
|
45
|
-
And the Server is running
|
46
|
-
And I go to "/"
|
47
|
-
Then I should see:
|
48
|
-
"""
|
49
|
-
<section>
|
50
|
-
<!-- slides/01namespace/01.html.erb -->
|
51
|
-
<section>
|
52
|
-
<h1>Hello World #1</h1>
|
53
|
-
</section>
|
54
|
-
<!-- slides/01namespace/02.html.erb -->
|
55
|
-
<section>
|
56
|
-
<h1>Hello World #2</h1>
|
57
|
-
</section>
|
58
|
-
</section>
|
59
|
-
"""
|
60
|
-
|
61
|
-
Scenario: Read multiple slides within multiple groups from filesystem
|
62
|
-
Given a slide named "01.html.md" with:
|
63
|
-
"""
|
64
|
-
<section>
|
65
|
-
# Test
|
66
|
-
</section>
|
67
|
-
"""
|
68
|
-
And a slide named "01namespace/01.html.erb" with:
|
69
|
-
"""
|
70
|
-
<section>
|
71
|
-
<h1>Hello World #1.1</h1>
|
72
|
-
</section>
|
73
|
-
"""
|
74
|
-
And a slide named "01namespace/02.html.md" with:
|
75
|
-
"""
|
76
|
-
<section>
|
77
|
-
# Hello World #1.2
|
78
|
-
</section>
|
79
|
-
"""
|
80
|
-
And a slide named "02namespace/01.html.erb" with:
|
81
|
-
"""
|
82
|
-
<section>
|
83
|
-
<h1>Hello World #2.1</h1>
|
84
|
-
</section>
|
85
|
-
"""
|
86
|
-
And a slide named "02namespace/02.html.erb" with:
|
87
|
-
"""
|
88
|
-
<section>
|
89
|
-
<h1>Hello World #2.2</h1>
|
90
|
-
</section>
|
91
|
-
"""
|
92
|
-
And the Server is running
|
93
|
-
And I go to "/"
|
94
|
-
Then I should see:
|
95
|
-
"""
|
96
|
-
<section>
|
97
|
-
<!-- slides/01namespace/01.html.erb -->
|
98
|
-
<section>
|
99
|
-
<h1>Hello World #1.1</h1>
|
100
|
-
</section>
|
101
|
-
<!-- slides/01namespace/02.html.md -->
|
102
|
-
<section>
|
103
|
-
<h1 id="hello-world-12">Hello World #1.2</h1>
|
104
|
-
</section>
|
105
|
-
</section>
|
106
|
-
<section>
|
107
|
-
<!-- slides/02namespace/01.html.erb -->
|
108
|
-
<section>
|
109
|
-
<h1>Hello World #2.1</h1>
|
110
|
-
</section>
|
111
|
-
<!-- slides/02namespace/02.html.erb -->
|
112
|
-
<section>
|
113
|
-
<h1>Hello World #2.2</h1>
|
114
|
-
</section>
|
115
|
-
</section>
|
116
|
-
"""
|
@@ -1,86 +0,0 @@
|
|
1
|
-
Feature: Ignore slides
|
2
|
-
|
3
|
-
As a presentator
|
4
|
-
I want to ignore some slides in output
|
5
|
-
In order to make them invisible
|
6
|
-
|
7
|
-
Background:
|
8
|
-
Given a mocked home directory
|
9
|
-
And git is configured with username "User" and email-address "email@example.com"
|
10
|
-
And I successfully run `middleman-presentation create presentation presentation1 --title "My Presentation"`
|
11
|
-
And I cd to "presentation1"
|
12
|
-
|
13
|
-
Scenario: Ignore a slide by basename
|
14
|
-
When I successfully run `middleman slide 01 --title "Slide 01"`
|
15
|
-
And I successfully run `middleman slide 02 --title "Slide 02"`
|
16
|
-
And the Server is running
|
17
|
-
And a file named ".slidesignore" with:
|
18
|
-
"""
|
19
|
-
01
|
20
|
-
"""
|
21
|
-
Then the following files should exist:
|
22
|
-
| source/slides/01.html.md |
|
23
|
-
| source/slides/02.html.md |
|
24
|
-
When I go to "/"
|
25
|
-
Then I should not see:
|
26
|
-
"""
|
27
|
-
Slide 01
|
28
|
-
"""
|
29
|
-
Then I should see:
|
30
|
-
"""
|
31
|
-
Slide 02
|
32
|
-
"""
|
33
|
-
When I go to "javascripts/application.js"
|
34
|
-
Then I should see:
|
35
|
-
"""
|
36
|
-
jQuery JavaScript Library
|
37
|
-
"""
|
38
|
-
When I go to "stylesheets/application.css"
|
39
|
-
Then I should see:
|
40
|
-
"""
|
41
|
-
Hakim El Hattab
|
42
|
-
"""
|
43
|
-
#When I go to "images/lightbox2/img/close.png"
|
44
|
-
#Then the status code should be "200"
|
45
|
-
|
46
|
-
Scenario: Unignore a slide
|
47
|
-
When I successfully run `middleman slide 01 --title "Slide 01"`
|
48
|
-
And I successfully run `middleman slide 02 --title "Slide 02"`
|
49
|
-
And the Server is running
|
50
|
-
And a file named ".slidesignore" with:
|
51
|
-
"""
|
52
|
-
\.md
|
53
|
-
!02
|
54
|
-
"""
|
55
|
-
Then the following files should exist:
|
56
|
-
| source/slides/01.html.md |
|
57
|
-
| source/slides/02.html.md |
|
58
|
-
When I go to "/"
|
59
|
-
Then I should not see:
|
60
|
-
"""
|
61
|
-
Slide 01
|
62
|
-
"""
|
63
|
-
Then I should see:
|
64
|
-
"""
|
65
|
-
Slide 02
|
66
|
-
"""
|
67
|
-
When I go to "javascripts/application.js"
|
68
|
-
Then I should see:
|
69
|
-
"""
|
70
|
-
jQuery JavaScript Library
|
71
|
-
"""
|
72
|
-
When I go to "stylesheets/application.css"
|
73
|
-
Then I should see:
|
74
|
-
"""
|
75
|
-
Hakim El Hattab
|
76
|
-
"""
|
77
|
-
#When I go to "images/lightbox2/img/close.png"
|
78
|
-
#Then the status code should be "200"
|
79
|
-
|
80
|
-
Scenario: Warning on invalid ignore file
|
81
|
-
Given an empty file named ".slideignore"
|
82
|
-
When I run `middleman build`
|
83
|
-
Then the output should contain:
|
84
|
-
"""
|
85
|
-
Invalid ignore file
|
86
|
-
"""
|
@@ -1,58 +0,0 @@
|
|
1
|
-
Feature: Image Gallery
|
2
|
-
|
3
|
-
As a creator of a presentation
|
4
|
-
I want to create image galleries easily
|
5
|
-
In order to spent as less time as possible on it
|
6
|
-
|
7
|
-
Background:
|
8
|
-
Given a mocked home directory
|
9
|
-
And git is configured with username "User" and email-address "email@example.com"
|
10
|
-
And I successfully run `middleman-presentation create presentation --title "My Presentation"`
|
11
|
-
And an image "image01.png" at "images/image01.png"
|
12
|
-
And an image "image02.png" at "images/image02.png"
|
13
|
-
|
14
|
-
Scenario: Images only
|
15
|
-
Given a slide named "01.html.erb" with:
|
16
|
-
"""
|
17
|
-
<section>
|
18
|
-
<h1>Image Gallery</h1>
|
19
|
-
<%= image_gallery %W{images/image01.png images/image02.png}, image_gallery_id: 'test-gallery' %>
|
20
|
-
</section>
|
21
|
-
"""
|
22
|
-
And the Server is running
|
23
|
-
And I go to "/"
|
24
|
-
Then I should see:
|
25
|
-
"""
|
26
|
-
<section>
|
27
|
-
<h1>Image Gallery</h1>
|
28
|
-
<a href="images/image01.png" data-lightbox="test-gallery">
|
29
|
-
<img src="images/image01.png" class="mp-preview-image">
|
30
|
-
</a>
|
31
|
-
<a href="images/image02.png" data-lightbox="test-gallery">
|
32
|
-
<img src="images/image02.png" class="mp-preview-image">
|
33
|
-
</a>
|
34
|
-
</section>
|
35
|
-
"""
|
36
|
-
|
37
|
-
Scenario: Images with titles
|
38
|
-
Given a slide named "01.html.erb" with:
|
39
|
-
"""
|
40
|
-
<section>
|
41
|
-
<h1>Image Gallery</h1>
|
42
|
-
<%= image_gallery({'images/image01.png' => 'Title 1', 'images/image02.png' => 'Title 2'}, image_gallery_id: 'test-gallery') %>
|
43
|
-
</section>
|
44
|
-
"""
|
45
|
-
And the Server is running
|
46
|
-
And I go to "/"
|
47
|
-
Then I should see:
|
48
|
-
"""
|
49
|
-
<section>
|
50
|
-
<h1>Image Gallery</h1>
|
51
|
-
<a href="images/image01.png" data-lightbox="test-gallery">
|
52
|
-
<img src="images/image01.png" alt="Title 1" class="mp-preview-image">
|
53
|
-
</a>
|
54
|
-
<a href="images/image02.png" data-lightbox="test-gallery">
|
55
|
-
<img src="images/image02.png" alt="Title 2" class="mp-preview-image">
|
56
|
-
</a>
|
57
|
-
</section>
|
58
|
-
"""
|
@@ -1,91 +0,0 @@
|
|
1
|
-
Feature: Initialize middleman-presentation
|
2
|
-
|
3
|
-
As a presentator
|
4
|
-
I want to initialize middleman-presentation
|
5
|
-
In order to have defaults for all presentations created with middleman-presentation
|
6
|
-
|
7
|
-
Background:
|
8
|
-
Given a mocked home directory
|
9
|
-
And git is configured with username "User" and email-address "email@example.com"
|
10
|
-
|
11
|
-
Scenario: Before init
|
12
|
-
Given I set the environment variables to:
|
13
|
-
| variable | value |
|
14
|
-
| USER | my_user|
|
15
|
-
When I successfully run `middleman-presentation init application`
|
16
|
-
Then the file "~/.config/middleman/presentation/presentations.yaml" should contain:
|
17
|
-
"""
|
18
|
-
# activate_center: true
|
19
|
-
# activate_controls: true
|
20
|
-
# activate_history: true
|
21
|
-
# activate_progress: true
|
22
|
-
# activate_slide_number: true
|
23
|
-
# audience:
|
24
|
-
# author: my_user
|
25
|
-
# bower_directory: vendor/assets/components
|
26
|
-
# check_for_bower: true
|
27
|
-
# clear_source: true
|
28
|
-
# company:
|
29
|
-
# components: []
|
30
|
-
# create_predefined_slides: true
|
31
|
-
# default_transition_speed: default
|
32
|
-
# default_transition_type: linear
|
33
|
-
# default_version_number: v0.0.1
|
34
|
-
# description:
|
35
|
-
# edit: false
|
36
|
-
# editor_command: vim
|
37
|
-
# email_address:
|
38
|
-
# error_on_duplicates: true
|
39
|
-
# homepage:
|
40
|
-
# initialize_git: true
|
41
|
-
# install_assets: true
|
42
|
-
# language: de
|
43
|
-
# license: CC BY 4.0
|
44
|
-
# location:
|
45
|
-
# phone_number:
|
46
|
-
# speaker: my_user
|
47
|
-
# theme: {}
|
48
|
-
"""
|
49
|
-
|
50
|
-
Scenario: Overwrite existing config file
|
51
|
-
Given I set the environment variables to:
|
52
|
-
| variable | value |
|
53
|
-
| USER | my_user|
|
54
|
-
And a file named "~/.config/middleman/presentation/presentations.yaml" with:
|
55
|
-
"""
|
56
|
-
# activate_center: true
|
57
|
-
"""
|
58
|
-
When I successfully run `middleman-presentation init application --force`
|
59
|
-
Then the file "~/.config/middleman/presentation/presentations.yaml" should contain:
|
60
|
-
"""
|
61
|
-
# activate_center: true
|
62
|
-
# activate_controls: true
|
63
|
-
# activate_history: true
|
64
|
-
# activate_progress: true
|
65
|
-
# activate_slide_number: true
|
66
|
-
# audience:
|
67
|
-
# author: my_user
|
68
|
-
# bower_directory: vendor/assets/components
|
69
|
-
# check_for_bower: true
|
70
|
-
# clear_source: true
|
71
|
-
# company:
|
72
|
-
# components: []
|
73
|
-
# create_predefined_slides: true
|
74
|
-
# default_transition_speed: default
|
75
|
-
# default_transition_type: linear
|
76
|
-
# default_version_number: v0.0.1
|
77
|
-
# description:
|
78
|
-
# edit: false
|
79
|
-
# editor_command: vim
|
80
|
-
# email_address:
|
81
|
-
# error_on_duplicates: true
|
82
|
-
# homepage:
|
83
|
-
# initialize_git: true
|
84
|
-
# install_assets: true
|
85
|
-
# language: de
|
86
|
-
# license: CC BY 4.0
|
87
|
-
# location:
|
88
|
-
# phone_number:
|
89
|
-
# speaker: my_user
|
90
|
-
# theme: {}
|
91
|
-
"""
|
@@ -1,13 +0,0 @@
|
|
1
|
-
Feature: Initialize predefined slides
|
2
|
-
|
3
|
-
As a presentator
|
4
|
-
I want to initialize predefined slides
|
5
|
-
In order to have defaults for all presentations created with middleman-presentation
|
6
|
-
|
7
|
-
Background:
|
8
|
-
Given a mocked home directory
|
9
|
-
And git is configured with username "User" and email-address "email@example.com"
|
10
|
-
|
11
|
-
Scenario: Default directory
|
12
|
-
When I successfully run `middleman-presentation init predefined_slides`
|
13
|
-
Then a file named "~/.config/middleman/presentation/templates/predefined_slides.d/00.html.erb.tt" should exist
|
@@ -1,113 +0,0 @@
|
|
1
|
-
Feature: Run presentation
|
2
|
-
|
3
|
-
As a presentator
|
4
|
-
I want to run an already created presentation
|
5
|
-
In order to use it
|
6
|
-
|
7
|
-
Background:
|
8
|
-
Given a mocked home directory
|
9
|
-
And git is configured with username "User" and email-address "email@example.com"
|
10
|
-
And I successfully run `middleman-presentation create presentation presentation1 --title "My Presentation"`
|
11
|
-
And I cd to "presentation1"
|
12
|
-
|
13
|
-
Scenario: Simple Slide
|
14
|
-
Given a slide named "01.html.erb" with:
|
15
|
-
"""
|
16
|
-
<section>
|
17
|
-
</section>
|
18
|
-
<section>
|
19
|
-
<h1>Hello World</h1>
|
20
|
-
</section>
|
21
|
-
"""
|
22
|
-
And the Server is running
|
23
|
-
And I go to "/"
|
24
|
-
Then I should see:
|
25
|
-
"""
|
26
|
-
Hello World
|
27
|
-
"""
|
28
|
-
|
29
|
-
Scenario: Malformed Slide
|
30
|
-
Given a slide named "01.html.erb" with:
|
31
|
-
"""
|
32
|
-
<section>
|
33
|
-
<%= asdfasdf() %>
|
34
|
-
</section>
|
35
|
-
"""
|
36
|
-
And the Server is running
|
37
|
-
And I go to "/" and see the following error message:
|
38
|
-
"""
|
39
|
-
NoMethodError: undefined method `asdfasdf
|
40
|
-
"""
|
41
|
-
|
42
|
-
Scenario: Run it
|
43
|
-
Given the Server is running
|
44
|
-
When I go to "/"
|
45
|
-
Then I should see:
|
46
|
-
"""
|
47
|
-
My Presentation
|
48
|
-
"""
|
49
|
-
When I go to "javascripts/application.js"
|
50
|
-
Then I should see:
|
51
|
-
"""
|
52
|
-
jQuery JavaScript Library
|
53
|
-
"""
|
54
|
-
When I go to "stylesheets/application.css"
|
55
|
-
Then I should see:
|
56
|
-
"""
|
57
|
-
Hakim El Hattab
|
58
|
-
"""
|
59
|
-
#When I go to "images/lightbox2/img/close.png"
|
60
|
-
#Then the status code should be "200"
|
61
|
-
|
62
|
-
Scenario: Slide number
|
63
|
-
Given the Server is running
|
64
|
-
When I go to "/"
|
65
|
-
Then I should see:
|
66
|
-
"""
|
67
|
-
slideNumber: true
|
68
|
-
"""
|
69
|
-
|
70
|
-
Scenario: Project Group template
|
71
|
-
Given a project template named "group.tt" with:
|
72
|
-
"""
|
73
|
-
<section>
|
74
|
-
<h1>Group Title</h1>
|
75
|
-
<%= slides %>
|
76
|
-
</section>
|
77
|
-
"""
|
78
|
-
And a slide named "01namespace/01.html.erb" with:
|
79
|
-
"""
|
80
|
-
<section>
|
81
|
-
<h1>Hello World</h1>
|
82
|
-
</section>
|
83
|
-
"""
|
84
|
-
And a slide named "01namespace/02.html.erb" with:
|
85
|
-
"""
|
86
|
-
<section>
|
87
|
-
<h1>Hello World</h1>
|
88
|
-
</section>
|
89
|
-
"""
|
90
|
-
And the Server is running
|
91
|
-
When I go to "/"
|
92
|
-
Then I should see:
|
93
|
-
"""
|
94
|
-
<section>
|
95
|
-
<h1>Group Title</h1>
|
96
|
-
<!-- slides/01namespace/01.html.erb -->
|
97
|
-
<section>
|
98
|
-
<h1>Hello World</h1>
|
99
|
-
</section>
|
100
|
-
<!-- slides/01namespace/02.html.erb -->
|
101
|
-
<section>
|
102
|
-
<h1>Hello World</h1>
|
103
|
-
</section>
|
104
|
-
</section>
|
105
|
-
"""
|
106
|
-
|
107
|
-
Scenario: Print link
|
108
|
-
Given the Server is running
|
109
|
-
When I go to "/"
|
110
|
-
Then I should see:
|
111
|
-
"""
|
112
|
-
<footer
|
113
|
-
"""
|