middleman-presentation-core 0.17.2 → 0.17.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitattributes +4 -0
- data/.rubocop.yml +0 -4
- data/features/create_presentation-cli.feature +3 -3
- data/lib/middleman-presentation-core/application_config.rb +2 -2
- data/lib/middleman-presentation-core/cli/change_slide.rb +1 -1
- data/lib/middleman-presentation-core/cli/create_presentation.rb +9 -9
- data/lib/middleman-presentation-core/cli/create_slide.rb +1 -1
- data/lib/middleman-presentation-core/cli/create_theme.rb +3 -3
- data/lib/middleman-presentation-core/cli/serve_presentation.rb +3 -3
- data/lib/middleman-presentation-core/start.rb +1 -1
- data/lib/middleman-presentation-core/version.rb +1 -1
- data/locales/de.yml +2 -2
- data/locales/en.yml +2 -2
- data/middleman-presentation-core.gemspec +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5316e54f644d84bd3e1dacea418322d7109d172
|
4
|
+
data.tar.gz: 9180595584b5f83e6d924b045dd37c26430df682
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b0da188a24558febf3ef404da87c39af7ebeeca282262f0ce46dfafe5dccb49b4e1e8dc79cec0541040ab63394df6ec62c01edfc0bfc65d9a75f5d120f56c2e
|
7
|
+
data.tar.gz: 27d66c7dfc1f18204aab99f59e62f78ef861285b1ba2d8c8277fd2447a7916f3b8b50baed1592527cb6c093ae787f2edacab94fa1027ee844edd7d1e16190ffb
|
data/.gitattributes
ADDED
data/.rubocop.yml
CHANGED
@@ -42,10 +42,6 @@ Metrics/PerceivedComplexity:
|
|
42
42
|
- lib/middleman-presentation-core/commands/slide.rb
|
43
43
|
- lib/middleman-presentation-core/cli/change_slide.rb
|
44
44
|
|
45
|
-
# Configuration parameters: MaxSlashes.
|
46
|
-
Style/RegexpLiteral:
|
47
|
-
MaxSlashes: 0
|
48
|
-
|
49
45
|
Metrics/AbcSize:
|
50
46
|
Enabled: false
|
51
47
|
|
@@ -268,15 +268,15 @@ Feature: Initialize presentation
|
|
268
268
|
When I cd to "presentation1"
|
269
269
|
Then the file ".middleman-presentation.yaml" should contain:
|
270
270
|
"""
|
271
|
-
width:
|
271
|
+
width: 1024
|
272
272
|
"""
|
273
273
|
And the file ".middleman-presentation.yaml" should contain:
|
274
274
|
"""
|
275
|
-
height:
|
275
|
+
height: 768
|
276
276
|
"""
|
277
277
|
And the file ".middleman-presentation.yaml" should contain:
|
278
278
|
"""
|
279
|
-
margin:
|
279
|
+
margin: 0.5
|
280
280
|
"""
|
281
281
|
|
282
282
|
Scenario: Expand ~
|
@@ -4,7 +4,7 @@ module Middleman
|
|
4
4
|
# Configuration for presentation extension
|
5
5
|
class ApplicationConfig < FeduxOrgStdlib::AppConfig
|
6
6
|
option :network_port, (1024..65_535).to_a.sample
|
7
|
-
option :
|
7
|
+
option :hostname, '127.0.0.1'
|
8
8
|
option :open_in_browser, false
|
9
9
|
|
10
10
|
option :title, nil
|
@@ -100,7 +100,7 @@ module Middleman
|
|
100
100
|
|
101
101
|
option :local_options, %w(
|
102
102
|
network_port
|
103
|
-
|
103
|
+
hostname
|
104
104
|
)
|
105
105
|
|
106
106
|
option :exportable_options, %w(
|
@@ -4,7 +4,7 @@ module Middleman
|
|
4
4
|
module Cli
|
5
5
|
# Create slide
|
6
6
|
class ChangeSlide < BaseGroup
|
7
|
-
class_option :edit, default: Middleman::Presentation.config.edit_changed_slide, desc: Middleman::Presentation.t('views.application.options.edit')
|
7
|
+
class_option :edit, type: :boolean, default: Middleman::Presentation.config.edit_changed_slide, desc: Middleman::Presentation.t('views.application.options.edit')
|
8
8
|
class_option :editor_command, default: Middleman::Presentation.config.editor_command, desc: Middleman::Presentation.t('views.application.options.editor_command')
|
9
9
|
class_option :error_on_duplicates, type: :boolean, default: Middleman::Presentation.config.error_on_duplicates, desc: Middleman::Presentation.t('views.slides.change.options.error_on_duplicates')
|
10
10
|
class_option :base_name, desc: Middleman::Presentation.t('views.slides.change.options.base_name')
|
@@ -27,11 +27,11 @@ module Middleman
|
|
27
27
|
class_option :email_address, default: Middleman::Presentation.config.email_address, desc: Middleman::Presentation.t('views.presentations.create.options.email_address')
|
28
28
|
class_option :github_url, default: Middleman::Presentation.config.github_url, desc: Middleman::Presentation.t('views.presentations.create.options.github_url')
|
29
29
|
|
30
|
-
class_option :width, default: Middleman::Presentation.config.width, desc: Middleman::Presentation.t('views.presentations.create.options.width')
|
31
|
-
class_option :height, default: Middleman::Presentation.config.height, desc: Middleman::Presentation.t('views.presentations.create.options.height')
|
32
|
-
class_option :margin, default: Middleman::Presentation.config.margin, desc: Middleman::Presentation.t('views.presentations.create.options.margin')
|
33
|
-
class_option :min_scale, default: Middleman::Presentation.config.min_scale, desc: Middleman::Presentation.t('views.presentations.create.options.min_scale')
|
34
|
-
class_option :max_scale, default: Middleman::Presentation.config.max_scale, desc: Middleman::Presentation.t('views.presentations.create.options.max_scale')
|
30
|
+
class_option :width, type: :numeric, default: Middleman::Presentation.config.width, desc: Middleman::Presentation.t('views.presentations.create.options.width')
|
31
|
+
class_option :height, type: :numeric, default: Middleman::Presentation.config.height, desc: Middleman::Presentation.t('views.presentations.create.options.height')
|
32
|
+
class_option :margin, type: :numeric, default: Middleman::Presentation.config.margin, desc: Middleman::Presentation.t('views.presentations.create.options.margin')
|
33
|
+
class_option :min_scale, type: :numeric, default: Middleman::Presentation.config.min_scale, desc: Middleman::Presentation.t('views.presentations.create.options.min_scale')
|
34
|
+
class_option :max_scale, type: :numeric, default: Middleman::Presentation.config.max_scale, desc: Middleman::Presentation.t('views.presentations.create.options.max_scale')
|
35
35
|
class_option :activate_center, type: :boolean, default: Middleman::Presentation.config.activate_center, desc: Middleman::Presentation.t('views.presentations.create.options.activate_center')
|
36
36
|
class_option :activate_controls, type: :boolean, default: Middleman::Presentation.config.activate_controls, desc: Middleman::Presentation.t('views.presentations.create.options.activate_controls')
|
37
37
|
class_option :activate_embedded, type: :boolean, default: Middleman::Presentation.config.activate_embedded, desc: Middleman::Presentation.t('views.presentations.create.options.activate_embedded')
|
@@ -66,7 +66,7 @@ module Middleman
|
|
66
66
|
class_option :language, default: Middleman::Presentation.config.presentation_language, desc: Middleman::Presentation.t('views.presentations.create.options.language')
|
67
67
|
class_option :version, default: Middleman::Presentation.config.default_version_number, desc: Middleman::Presentation.t('views.presentations.create.options.version')
|
68
68
|
class_option :force, type: :boolean, default: Middleman::Presentation.config.force_create_presentation, desc: Middleman::Presentation.t('views.presentations.create.options.force')
|
69
|
-
class_option :runtime_environment, default: Middleman::Presentation.config.runtime_environment, desc: Middleman::Presentation.t('views.presentations.create.options.runtime_environment')
|
69
|
+
class_option :runtime_environment, default: Middleman::Presentation.config.runtime_environment.to_s, desc: Middleman::Presentation.t('views.presentations.create.options.runtime_environment')
|
70
70
|
|
71
71
|
class_option :sources_directory, default: Middleman::Presentation.config.sources_directory, desc: Middleman::Presentation.t('views.presentations.create.options.sources_directory')
|
72
72
|
class_option :images_directory, default: Middleman::Presentation.config.images_directory, desc: Middleman::Presentation.t('views.presentations.create.options.images_directory')
|
@@ -74,8 +74,8 @@ module Middleman
|
|
74
74
|
class_option :stylesheets_directory, default: Middleman::Presentation.config.stylesheets_directory, desc: Middleman::Presentation.t('views.presentations.create.options.stylesheets_directory')
|
75
75
|
class_option :fonts_directory, default: Middleman::Presentation.config.fonts_directory, desc: Middleman::Presentation.t('views.presentations.create.options.fonts_directory')
|
76
76
|
class_option :build_directory, default: Middleman::Presentation.config.build_directory, desc: Middleman::Presentation.t('views.presentations.create.options.build_directory')
|
77
|
-
class_option :network_port, default: Middleman::Presentation.config.network_port, desc: Middleman::Presentation.t('views.presentations.create.options.network_port')
|
78
|
-
class_option :
|
77
|
+
class_option :network_port, type: :numeric, default: Middleman::Presentation.config.network_port, desc: Middleman::Presentation.t('views.presentations.create.options.network_port')
|
78
|
+
class_option :hostname, default: Middleman::Presentation.config.hostname, desc: Middleman::Presentation.t('views.presentations.create.options.hostname')
|
79
79
|
|
80
80
|
argument :directory, default: Dir.getwd, desc: Middleman::Presentation.t('views.presentations.create.arguments.directory')
|
81
81
|
|
@@ -162,7 +162,7 @@ module Middleman
|
|
162
162
|
Middleman::Presentation.config.build_directory = options[:build_directory]
|
163
163
|
|
164
164
|
Middleman::Presentation.config.network_port = options[:network_port]
|
165
|
-
Middleman::Presentation.config.
|
165
|
+
Middleman::Presentation.config.hostname = options[:hostname]
|
166
166
|
end
|
167
167
|
|
168
168
|
def create_root_directory
|
@@ -4,7 +4,7 @@ module Middleman
|
|
4
4
|
module Cli
|
5
5
|
# Create slide
|
6
6
|
class CreateSlide < BaseGroup
|
7
|
-
class_option :edit, default: Middleman::Presentation.config.edit_created_slide, desc: Middleman::Presentation.t('views.application.options.edit')
|
7
|
+
class_option :edit, type: :boolean, default: Middleman::Presentation.config.edit_created_slide, desc: Middleman::Presentation.t('views.application.options.edit')
|
8
8
|
class_option :editor_command, default: Middleman::Presentation.config.editor_command, desc: Middleman::Presentation.t('views.application.options.editor_command')
|
9
9
|
class_option :error_on_duplicates, type: :boolean, default: Middleman::Presentation.config.error_on_duplicates, desc: Middleman::Presentation.t('views.slides.create.options.error_on_duplicates')
|
10
10
|
class_option :title, desc: Middleman::Presentation.t('views.slides.create.options.title')
|
@@ -9,9 +9,9 @@ module Middleman
|
|
9
9
|
desc Middleman::Presentation.t('views.themes.create.title')
|
10
10
|
|
11
11
|
class_option :prefix, default: Middleman::Presentation.config.theme_prefix, desc: Middleman::Presentation.t('views.themes.create.options.prefix')
|
12
|
-
class_option :stylesheets_directory, default: Middleman::Presentation.config.create_stylesheets_directory, desc: Middleman::Presentation.t('views.themes.create.options.stylesheets_directory')
|
13
|
-
class_option :javascripts_directory, default: Middleman::Presentation.config.create_javascripts_directory, desc: Middleman::Presentation.t('views.themes.create.options.javascripts_directory')
|
14
|
-
class_option :images_directory, default: Middleman::Presentation.config.create_images_directory, desc: Middleman::Presentation.t('views.themes.create.options.images_directory')
|
12
|
+
class_option :stylesheets_directory, type: :boolean, default: Middleman::Presentation.config.create_stylesheets_directory, desc: Middleman::Presentation.t('views.themes.create.options.stylesheets_directory')
|
13
|
+
class_option :javascripts_directory, type: :boolean, default: Middleman::Presentation.config.create_javascripts_directory, desc: Middleman::Presentation.t('views.themes.create.options.javascripts_directory')
|
14
|
+
class_option :images_directory, type: :boolean, default: Middleman::Presentation.config.create_images_directory, desc: Middleman::Presentation.t('views.themes.create.options.images_directory')
|
15
15
|
class_option :author, default: Middleman::Presentation.config.author, desc: Middleman::Presentation.t('views.themes.create.options.author')
|
16
16
|
class_option :email, desc: Middleman::Presentation.t('views.themes.create.options.email')
|
17
17
|
class_option :homepage, desc: Middleman::Presentation.t('views.themes.create.options.homepage')
|
@@ -7,7 +7,7 @@ module Middleman
|
|
7
7
|
include Thor::Actions
|
8
8
|
|
9
9
|
class_option :network_port, type: :numeric, default: Middleman::Presentation.config.network_port, desc: Middleman::Presentation.t('views.presentation.serve.options.network_port')
|
10
|
-
class_option :
|
10
|
+
class_option :hostname, default: Middleman::Presentation.config.hostname, desc: Middleman::Presentation.t('views.presentation.serve.options.hostname')
|
11
11
|
class_option :open_in_browser, type: :boolean, default: Middleman::Presentation.config.open_in_browser, desc: Middleman::Presentation.t('views.presentation.serve.options.open_in_browser')
|
12
12
|
|
13
13
|
def initialize_generator
|
@@ -20,12 +20,12 @@ module Middleman
|
|
20
20
|
title: Middleman::Presentation.config.title
|
21
21
|
)
|
22
22
|
|
23
|
-
Launchy.open(Addressable::URI.parse("http://#{options[:
|
23
|
+
Launchy.open(Addressable::URI.parse("http://#{options[:hostname]}:#{options[:network_port]}")) if options[:open_in_browser]
|
24
24
|
|
25
25
|
cmd = []
|
26
26
|
cmd << 'middleman server'
|
27
27
|
cmd << "-p #{options[:network_port]}"
|
28
|
-
cmd << "-h #{options[:
|
28
|
+
cmd << "-h #{options[:hostname]}" unless options[:hostname].nil? || options[:hostname].empty?
|
29
29
|
cmd << '--verbose' if options[:debug_mode]
|
30
30
|
|
31
31
|
run(cmd.join(' '))
|
@@ -19,7 +19,7 @@ module Middleman
|
|
19
19
|
set :css_dir, Middleman::Presentation.config.stylesheets_directory
|
20
20
|
set :source_dir, Middleman::Presentation.config.sources_directory
|
21
21
|
|
22
|
-
Middleman::Presentation::AssetsLoader.new(bower_directory: MiddlemanEnvironment.new.bower_path).load_at_presentation_runtime
|
22
|
+
Middleman::Presentation::AssetsLoader.new(bower_directory: Middleman::Presentation::MiddlemanEnvironment.new.bower_path).load_at_presentation_runtime
|
23
23
|
|
24
24
|
helpers Middleman::Presentation.helpers_manager.available_helpers
|
25
25
|
|
data/locales/de.yml
CHANGED
@@ -63,7 +63,7 @@ de:
|
|
63
63
|
title: 'Erzeuge eine neue Präsentation in Verzeichnis DIR (standard: aktuelles Arbeitsverzeichnis)'
|
64
64
|
options:
|
65
65
|
network_port: Netzwerk-Port, an dem der Server lauschen soll
|
66
|
-
|
66
|
+
hostname: Hostname des Servers
|
67
67
|
runtime_environment: Laufzeit-Umgebung in der middleman-presentation läuft, z.B. "test"
|
68
68
|
activate_center: 'Aktiviere "center" in reveal.js'
|
69
69
|
activate_controls: 'Aktiviere "controls" in reveal.js'
|
@@ -216,7 +216,7 @@ de:
|
|
216
216
|
headline: Zeige Präsentation "%{title}"
|
217
217
|
options:
|
218
218
|
network_port: Netzwerk-Port, an dem der Server lauschen soll
|
219
|
-
|
219
|
+
hostname: Hostname des Servers
|
220
220
|
open_in_browser: Öffne Präsentation im Browser
|
221
221
|
build:
|
222
222
|
title: Präsentation generieren
|
data/locales/en.yml
CHANGED
@@ -63,7 +63,7 @@ en:
|
|
63
63
|
title: 'Initialize a new presentation in DIR (default: $PWD)'
|
64
64
|
options:
|
65
65
|
network_port: Networkport the server listens on
|
66
|
-
|
66
|
+
hostname: Hostname the server should use
|
67
67
|
runtime_environment: Runtime environment in which middleman-presentation is running, e.g. "test"
|
68
68
|
activate_center: 'Activate center in reveal.js'
|
69
69
|
activate_controls: 'Activate controls in reveal.js'
|
@@ -216,7 +216,7 @@ en:
|
|
216
216
|
headline: Serve presentation "%{title}"
|
217
217
|
options:
|
218
218
|
network_port: Networkport the server listens on
|
219
|
-
|
219
|
+
hostname: Hostname the server should use
|
220
220
|
open_in_browser: Open presentation in browser
|
221
221
|
build:
|
222
222
|
title: Build presentation
|
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.require_paths = ['lib']
|
23
23
|
spec.required_ruby_version = Middleman::Presentation::REQUIRED_RUBY_VERSION
|
24
24
|
|
25
|
-
spec.add_dependency 'middleman', '
|
25
|
+
spec.add_dependency 'middleman', '= 3.3.11'
|
26
26
|
spec.add_dependency 'middleman-sprockets', '~> 3.3.8'
|
27
27
|
spec.add_dependency 'middleman-minify-html', '~>3.4.0'
|
28
28
|
spec.add_dependency 'middleman-autoprefixer', '~>2.4.3'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-presentation-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.17.
|
4
|
+
version: 0.17.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Max Meyer
|
@@ -9,22 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-05-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: middleman
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - '='
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 3.3.
|
20
|
+
version: 3.3.11
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - '='
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 3.3.
|
27
|
+
version: 3.3.11
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: middleman-sprockets
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -313,6 +313,7 @@ executables: []
|
|
313
313
|
extensions: []
|
314
314
|
extra_rdoc_files: []
|
315
315
|
files:
|
316
|
+
- ".gitattributes"
|
316
317
|
- ".rdebugrc"
|
317
318
|
- ".rspec"
|
318
319
|
- ".rubocop.yml"
|