middleman-core 4.3.11 → 4.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/features/asset_hash.feature +64 -62
  3. data/features/data.feature +20 -0
  4. data/features/front-matter-neighbor.feature +33 -27
  5. data/features/front-matter.feature +11 -5
  6. data/features/i18n_preview.feature +238 -238
  7. data/features/support/env.rb +0 -3
  8. data/features/unicode_filenames.feature +3 -3
  9. data/fixtures/basic-data-app/data/test3.toml +7 -0
  10. data/fixtures/basic-data-app/source/data4.html.erb +5 -0
  11. data/fixtures/frontmatter-app/source/raw-front-matter-toml.html +6 -0
  12. data/fixtures/frontmatter-app/source/raw-front-matter.html +1 -1
  13. data/fixtures/frontmatter-neighbor-app/source/raw-front-matter-toml.html +1 -0
  14. data/fixtures/frontmatter-neighbor-app/source/raw-front-matter-toml.html.frontmatter +4 -0
  15. data/lib/middleman-core/builder.rb +1 -1
  16. data/lib/middleman-core/core_extensions/data.rb +4 -2
  17. data/lib/middleman-core/core_extensions/default_helpers.rb +1 -0
  18. data/lib/middleman-core/core_extensions/front_matter.rb +1 -0
  19. data/lib/middleman-core/core_extensions/rendering.rb +0 -6
  20. data/lib/middleman-core/dns_resolver.rb +2 -4
  21. data/lib/middleman-core/dns_resolver/basic_network_resolver.rb +0 -2
  22. data/lib/middleman-core/extensions/asset_hash.rb +1 -1
  23. data/lib/middleman-core/preview_server/server_ip_address.rb +5 -14
  24. data/lib/middleman-core/step_definitions/commandline_steps.rb +0 -4
  25. data/lib/middleman-core/step_definitions/middleman_steps.rb +1 -1
  26. data/lib/middleman-core/template_context.rb +3 -3
  27. data/lib/middleman-core/util/data.rb +28 -0
  28. data/lib/middleman-core/version.rb +1 -1
  29. data/middleman-core.gemspec +8 -6
  30. data/spec/middleman-core/dns_resolver_spec.rb +8 -24
  31. data/spec/spec_helper.rb +0 -3
  32. metadata +51 -20
  33. data/features/stylus.feature +0 -54
  34. data/lib/middleman-core/renderers/stylus.rb +0 -10
@@ -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"
@@ -1,10 +0,0 @@
1
- require 'stylus'
2
- require 'stylus/tilt'
3
-
4
- module Middleman
5
- module Renderers
6
- class Stylus < ::Middleman::Extension
7
- define_setting :styl, {}, 'Stylus config options'
8
- end
9
- end
10
- end