middleman-core 3.3.4 → 3.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/features/slim.feature +8 -0
- data/fixtures/slim-content-for-app/config.rb +0 -0
- data/fixtures/slim-content-for-app/source/index.html.slim +7 -0
- data/fixtures/slim-content-for-app/source/layouts/layout.slim +15 -0
- data/lib/middleman-core/version.rb +1 -1
- data/lib/middleman-more/core_extensions/default_helpers.rb +0 -2
- data/middleman-core.gemspec +1 -1
- metadata +10 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3dc6c4f0306d2699602558b9c5969cb39559b89
|
4
|
+
data.tar.gz: 529578435c9d7de90f8776c1c4820f21174fad59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4234809f3a048f76e43b64cd61650a512aa87084c516a60e0bda2d984eb96f767a63ac0ffd0975f12f165be88da363c00b2e0bbc3a35b70c0ac2de59e64c844
|
7
|
+
data.tar.gz: 94b55256d747a907562b7334928453f770b4562182b7d042a1e77a2a19dfbe4655fd65482204990383878fda3a06754bd19024892a76d224b1ebd447cb4cd751
|
data/features/slim.feature
CHANGED
@@ -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:
|
File without changes
|
@@ -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
|
data/middleman-core.gemspec
CHANGED
@@ -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.
|
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
|
+
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-
|
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.
|
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.
|
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
|