middleman-core 3.3.4 → 3.3.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 837af63ed984f569d289647d76420a3f9822a445
4
- data.tar.gz: 8f9f478b36de9fe48b7da84708f29b35923c39a8
3
+ metadata.gz: a3dc6c4f0306d2699602558b9c5969cb39559b89
4
+ data.tar.gz: 529578435c9d7de90f8776c1c4820f21174fad59
5
5
  SHA512:
6
- metadata.gz: 906d9a398687814e4014d80944e91386e85ac6304f1f43dc87c7be98d5642ffac10c205eef861ac496f6912b56eae57385390adf79ca3ac5104548018ec337c0
7
- data.tar.gz: 814be4fc092bc47df840c1dcc8daca973ece0233d2f238886ef5578227330c734dfa9e87e2836bc6793305e78166535920febe8cecfe4bcbeac5a6927a8cca46
6
+ metadata.gz: b4234809f3a048f76e43b64cd61650a512aa87084c516a60e0bda2d984eb96f767a63ac0ffd0975f12f165be88da363c00b2e0bbc3a35b70c0ac2de59e64c844
7
+ data.tar.gz: 94b55256d747a907562b7334928453f770b4562182b7d042a1e77a2a19dfbe4655fd65482204990383878fda3a06754bd19024892a76d224b1ebd447cb4cd751
@@ -20,6 +20,14 @@ Feature: Support slim templating language
20
20
  When I go to "/slim.html"
21
21
  Then I should see "<h1>Welcome to Slim</h1>"
22
22
 
23
+ Scenario: Slim Content For
24
+ Given the Server is running at "slim-content-for-app"
25
+ When I go to "/index.html"
26
+ Then I should not see "Content AContent B"
27
+ Then I should see "Content for A:Content A"
28
+ Then I should see "Content for main:Content Main"
29
+ Then I should see "Content for B:Content B"
30
+
23
31
  Scenario: Rendering Scss in a Slim filter
24
32
  Given an empty app
25
33
  And a file named "config.rb" with:
@@ -0,0 +1,7 @@
1
+ - content_for :a do
2
+ | Content A
3
+
4
+ | Content Main
5
+
6
+ - content_for :b do
7
+ | Content B
@@ -0,0 +1,15 @@
1
+ doctype html
2
+ html
3
+ body
4
+ .test
5
+ | Content for A:
6
+ == yield_content :a
7
+ br
8
+
9
+ | Content for main:
10
+ == yield
11
+ br
12
+
13
+ | Content for B:
14
+ == yield_content :b
15
+ br
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  # Current Version
3
3
  # @return [String]
4
- VERSION = '3.3.4' unless const_defined?(:VERSION)
4
+ VERSION = '3.3.5' unless const_defined?(:VERSION)
5
5
  end
@@ -30,7 +30,6 @@ class Middleman::CoreExtensions::DefaultHelpers < ::Middleman::Extension
30
30
  app.helpers ::Padrino::Helpers::RenderHelpers
31
31
  app.helpers ::Padrino::Helpers::NumberHelpers
32
32
  # app.helpers ::Padrino::Helpers::TranslationHelpers
33
- app.helpers ::Padrino::Helpers::Breadcrumbs
34
33
 
35
34
  app.config.define_setting :relative_links, false, 'Whether to generate relative links instead of absolute ones'
36
35
  end
@@ -73,7 +72,6 @@ class Middleman::CoreExtensions::DefaultHelpers < ::Middleman::Extension
73
72
 
74
73
  def auto_find_proper_handler(&block)
75
74
  engine = block_given? ? File.extname(block.source_location[0])[1..-1].to_sym : current_engine
76
- return if engine == :slim && engine == current_engine
77
75
  handler_class = ::Padrino::Helpers::OutputHelpers.handlers[engine]
78
76
  handler_class && handler_class.new(self)
79
77
  end
@@ -33,7 +33,7 @@ Gem::Specification.new do |s|
33
33
 
34
34
  # Helpers
35
35
  s.add_dependency("activesupport", ["~> 4.1.0"])
36
- s.add_dependency("padrino-helpers", ["~> 0.12.1"])
36
+ s.add_dependency("padrino-helpers", ["~> 0.12.3"])
37
37
 
38
38
  # Watcher
39
39
  s.add_dependency("listen", [">= 2.7.9", "< 3.0"])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.4
4
+ version: 3.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Reynolds
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-08-03 00:00:00.000000000 Z
13
+ date: 2014-08-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -148,14 +148,14 @@ dependencies:
148
148
  requirements:
149
149
  - - ~>
150
150
  - !ruby/object:Gem::Version
151
- version: 0.12.1
151
+ version: 0.12.3
152
152
  type: :runtime
153
153
  prerelease: false
154
154
  version_requirements: !ruby/object:Gem::Requirement
155
155
  requirements:
156
156
  - - ~>
157
157
  - !ruby/object:Gem::Version
158
- version: 0.12.1
158
+ version: 0.12.3
159
159
  - !ruby/object:Gem::Dependency
160
160
  name: listen
161
161
  requirement: !ruby/object:Gem::Requirement
@@ -894,6 +894,9 @@ files:
894
894
  - fixtures/scss-app/source/stylesheets/site_scss.css.scss
895
895
  - fixtures/sinatra-app/config.rb
896
896
  - fixtures/sinatra-app/source/index.html.erb
897
+ - fixtures/slim-content-for-app/config.rb
898
+ - fixtures/slim-content-for-app/source/index.html.slim
899
+ - fixtures/slim-content-for-app/source/layouts/layout.slim
897
900
  - fixtures/strip-url-app/config.rb
898
901
  - fixtures/strip-url-app/source/index.html.erb
899
902
  - fixtures/strip-url-app/source/other.html.erb
@@ -1955,6 +1958,9 @@ test_files:
1955
1958
  - fixtures/scss-app/source/stylesheets/site_scss.css.scss
1956
1959
  - fixtures/sinatra-app/config.rb
1957
1960
  - fixtures/sinatra-app/source/index.html.erb
1961
+ - fixtures/slim-content-for-app/config.rb
1962
+ - fixtures/slim-content-for-app/source/index.html.slim
1963
+ - fixtures/slim-content-for-app/source/layouts/layout.slim
1958
1964
  - fixtures/strip-url-app/config.rb
1959
1965
  - fixtures/strip-url-app/source/index.html.erb
1960
1966
  - fixtures/strip-url-app/source/other.html.erb