middleman-core 4.3.8 → 4.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/features/asset_hash.feature +64 -62
- data/features/data.feature +20 -0
- data/features/front-matter-neighbor.feature +33 -27
- data/features/front-matter.feature +11 -5
- data/features/i18n_preview.feature +238 -238
- data/features/liquid.feature +5 -2
- data/features/support/env.rb +0 -3
- data/features/unicode_filenames.feature +3 -3
- data/fixtures/basic-data-app/data/test3.toml +7 -0
- data/fixtures/basic-data-app/source/data4.html.erb +5 -0
- data/fixtures/frontmatter-app/source/raw-front-matter-toml.html +6 -0
- data/fixtures/frontmatter-app/source/raw-front-matter.html +1 -1
- data/fixtures/frontmatter-neighbor-app/source/raw-front-matter-toml.html +1 -0
- data/fixtures/frontmatter-neighbor-app/source/raw-front-matter-toml.html.frontmatter +4 -0
- data/lib/middleman-core/builder.rb +1 -1
- data/lib/middleman-core/core_extensions/data.rb +4 -2
- data/lib/middleman-core/core_extensions/default_helpers.rb +1 -0
- data/lib/middleman-core/core_extensions/front_matter.rb +1 -0
- data/lib/middleman-core/core_extensions/rendering.rb +0 -6
- data/lib/middleman-core/dns_resolver/basic_network_resolver.rb +0 -2
- data/lib/middleman-core/dns_resolver.rb +2 -4
- data/lib/middleman-core/extensions/asset_hash.rb +1 -1
- data/lib/middleman-core/preview_server/server_ip_address.rb +5 -14
- data/lib/middleman-core/rack.rb +2 -1
- data/lib/middleman-core/step_definitions/commandline_steps.rb +0 -4
- data/lib/middleman-core/step_definitions/middleman_steps.rb +1 -1
- data/lib/middleman-core/step_definitions/server_steps.rb +3 -2
- data/lib/middleman-core/template_context.rb +3 -3
- data/lib/middleman-core/template_renderer.rb +1 -1
- data/lib/middleman-core/util/data.rb +28 -0
- data/lib/middleman-core/util/paths.rb +2 -1
- data/lib/middleman-core/version.rb +1 -1
- data/middleman-core.gemspec +8 -6
- data/spec/middleman-core/dns_resolver_spec.rb +8 -24
- data/spec/spec_helper.rb +0 -3
- metadata +52 -1083
- data/features/stylus.feature +0 -54
- data/lib/middleman-core/renderers/stylus.rb +0 -10
data/features/stylus.feature
DELETED
@@ -1,54 +0,0 @@
|
|
1
|
-
Feature: Stylus Updates and Partials
|
2
|
-
Scenario: The preview server should update stylesheets when Stylus changes
|
3
|
-
Given the Server is running at "stylus-preview-app"
|
4
|
-
And the file "source/stylesheets/plain.css.styl" has the contents
|
5
|
-
"""
|
6
|
-
red
|
7
|
-
color: #f0f0f0
|
8
|
-
"""
|
9
|
-
When I go to "/stylesheets/plain.css"
|
10
|
-
Then I should see "color: #f0f0f0;"
|
11
|
-
And the file "source/stylesheets/plain.css.styl" has the contents
|
12
|
-
"""
|
13
|
-
red
|
14
|
-
color: #0f0f0f
|
15
|
-
"""
|
16
|
-
When I go to "/stylesheets/plain.css"
|
17
|
-
Then I should see "color: #0f0f0f;"
|
18
|
-
|
19
|
-
Scenario: The preview server should update stylesheets when Stylus partials change
|
20
|
-
Given the Server is running at "stylus-preview-app"
|
21
|
-
And the file "source/stylesheets/main.css.styl" has the contents
|
22
|
-
"""
|
23
|
-
@import '_partial'
|
24
|
-
|
25
|
-
red
|
26
|
-
color: #f0f0f0
|
27
|
-
"""
|
28
|
-
And the file "source/stylesheets/_partial.styl" has the contents
|
29
|
-
"""
|
30
|
-
body
|
31
|
-
font-size: 14px
|
32
|
-
"""
|
33
|
-
When I go to "/stylesheets/main.css"
|
34
|
-
Then I should see "color: #f0f0f0;"
|
35
|
-
And I should see "font-size: 14px;"
|
36
|
-
And the file "source/stylesheets/main.css.styl" has the contents
|
37
|
-
"""
|
38
|
-
@import '_partial'
|
39
|
-
|
40
|
-
red
|
41
|
-
color: #0f0f0f
|
42
|
-
"""
|
43
|
-
And the file "source/stylesheets/_partial.styl" has the contents
|
44
|
-
"""
|
45
|
-
body
|
46
|
-
font-size: 18px
|
47
|
-
"""
|
48
|
-
When I go to "/stylesheets/main.css"
|
49
|
-
Then I should see "color: #0f0f0f;"
|
50
|
-
And I should see "font-size: 18px"
|
51
|
-
|
52
|
-
Scenario: Stylus partials should work when building
|
53
|
-
Given a successfully built app at "stylus-preview-app"
|
54
|
-
Then the file "build/stylesheets/main.css" should contain "font-size: 18px"
|