middleman-core 3.0.8 → 3.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,20 @@
1
+ Feature: Tilt missing support libraries
2
+
3
+ Scenario: Rendering Textile and Wiki files
4
+ Given the Server is running at "missing-tilt-library-app"
5
+ When I go to "/danger-zone/more-wiki.html.wiki"
6
+ Then I should see "File Not Found"
7
+ When I go to "/danger-zone/more-wiki.html"
8
+ Then I should see "File Not Found"
9
+ When I go to "/safe-zone/my-wiki.html.wiki"
10
+ Then I should see "Safe"
11
+ When I go to "/safe-zone/my-wiki.html"
12
+ Then I should see "File Not Found"
13
+ When I go to "/textile-source.html.textile"
14
+ Then I should see "File Not Found"
15
+ When I go to "/textile-source.html"
16
+ Then I should see "File Not Found"
17
+ When I go to "/wiki-source.html.wiki"
18
+ Then I should see "Hola"
19
+ When I go to "/wiki-source.html"
20
+ Then I should see "File Not Found"
@@ -0,0 +1,2 @@
1
+ ignore "danger-zone/*"
2
+ ignore "*.textile"
@@ -75,6 +75,19 @@ module Middleman
75
75
  app.register Middleman::Renderers::Stylus
76
76
  rescue LoadError
77
77
  end
78
+
79
+ # Clean up missing Tilt exts
80
+ app.after_configuration do
81
+ Tilt.mappings.each do |key, klasses|
82
+ begin
83
+ Tilt[".#{key}"]
84
+ rescue LoadError
85
+ Tilt.mappings.delete(key)
86
+ rescue NameError
87
+ Tilt.mappings.delete(key)
88
+ end
89
+ end
90
+ end
78
91
  end
79
92
 
80
93
  alias :included :registered
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  # Current Version
3
3
  # @return [String]
4
- VERSION = '3.0.8' unless const_defined?(:VERSION)
4
+ VERSION = '3.0.9' unless const_defined?(:VERSION)
5
5
  end
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
 
21
21
  # Core
22
22
  s.add_dependency("bundler", ["~> 1.1"])
23
- s.add_dependency("rack", ["~> 1.4.1"])
23
+ s.add_dependency("rack", ["1.4.1"])
24
24
  s.add_dependency("tilt", ["~> 1.3.1"])
25
25
 
26
26
  # Builder
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.0.8
4
+ version: 3.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -33,7 +33,7 @@ dependencies:
33
33
  requirement: !ruby/object:Gem::Requirement
34
34
  none: false
35
35
  requirements:
36
- - - ~>
36
+ - - '='
37
37
  - !ruby/object:Gem::Version
38
38
  version: 1.4.1
39
39
  type: :runtime
@@ -41,7 +41,7 @@ dependencies:
41
41
  version_requirements: !ruby/object:Gem::Requirement
42
42
  none: false
43
43
  requirements:
44
- - - ~>
44
+ - - '='
45
45
  - !ruby/object:Gem::Version
46
46
  version: 1.4.1
47
47
  - !ruby/object:Gem::Dependency
@@ -193,6 +193,7 @@ files:
193
193
  - features/ignore.feature
194
194
  - features/implied_extensions.feature
195
195
  - features/instance_vars.feature
196
+ - features/missing-tilt-lib.feature
196
197
  - features/mount_rack.feature
197
198
  - features/preview_changes.feature
198
199
  - features/proxy_pages.feature
@@ -354,6 +355,11 @@ files:
354
355
  - fixtures/manual-layout/config.rb
355
356
  - fixtures/manual-layout/source/index.html.erb
356
357
  - fixtures/manual-layout/source/layouts/custom.erb
358
+ - fixtures/missing-tilt-library-app/config.rb
359
+ - fixtures/missing-tilt-library-app/source/danger-zone/more-wiki.html.wiki
360
+ - fixtures/missing-tilt-library-app/source/safe-zone/my-wiki.html.wiki
361
+ - fixtures/missing-tilt-library-app/source/textile-source.html.textile
362
+ - fixtures/missing-tilt-library-app/source/wiki-source.html.wiki
357
363
  - fixtures/multiple-layouts/config.rb
358
364
  - fixtures/multiple-layouts/source/index.html.erb
359
365
  - fixtures/multiple-layouts/source/layout.erb
@@ -599,7 +605,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
599
605
  version: '0'
600
606
  segments:
601
607
  - 0
602
- hash: -3449139748025586878
608
+ hash: -4170528226984264202
603
609
  required_rubygems_version: !ruby/object:Gem::Requirement
604
610
  none: false
605
611
  requirements:
@@ -608,7 +614,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
608
614
  version: '0'
609
615
  segments:
610
616
  - 0
611
- hash: -3449139748025586878
617
+ hash: -4170528226984264202
612
618
  requirements: []
613
619
  rubyforge_project:
614
620
  rubygems_version: 1.8.24
@@ -637,6 +643,7 @@ test_files:
637
643
  - features/ignore.feature
638
644
  - features/implied_extensions.feature
639
645
  - features/instance_vars.feature
646
+ - features/missing-tilt-lib.feature
640
647
  - features/mount_rack.feature
641
648
  - features/preview_changes.feature
642
649
  - features/proxy_pages.feature
@@ -798,6 +805,11 @@ test_files:
798
805
  - fixtures/manual-layout/config.rb
799
806
  - fixtures/manual-layout/source/index.html.erb
800
807
  - fixtures/manual-layout/source/layouts/custom.erb
808
+ - fixtures/missing-tilt-library-app/config.rb
809
+ - fixtures/missing-tilt-library-app/source/danger-zone/more-wiki.html.wiki
810
+ - fixtures/missing-tilt-library-app/source/safe-zone/my-wiki.html.wiki
811
+ - fixtures/missing-tilt-library-app/source/textile-source.html.textile
812
+ - fixtures/missing-tilt-library-app/source/wiki-source.html.wiki
801
813
  - fixtures/multiple-layouts/config.rb
802
814
  - fixtures/multiple-layouts/source/index.html.erb
803
815
  - fixtures/multiple-layouts/source/layout.erb