middleman-core-x86-mingw32 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-x86-mingw32
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:
@@ -177,6 +177,7 @@ files:
177
177
  - features/ignore.feature
178
178
  - features/implied_extensions.feature
179
179
  - features/instance_vars.feature
180
+ - features/missing-tilt-lib.feature
180
181
  - features/mount_rack.feature
181
182
  - features/preview_changes.feature
182
183
  - features/proxy_pages.feature
@@ -338,6 +339,11 @@ files:
338
339
  - fixtures/manual-layout/config.rb
339
340
  - fixtures/manual-layout/source/index.html.erb
340
341
  - fixtures/manual-layout/source/layouts/custom.erb
342
+ - fixtures/missing-tilt-library-app/config.rb
343
+ - fixtures/missing-tilt-library-app/source/danger-zone/more-wiki.html.wiki
344
+ - fixtures/missing-tilt-library-app/source/safe-zone/my-wiki.html.wiki
345
+ - fixtures/missing-tilt-library-app/source/textile-source.html.textile
346
+ - fixtures/missing-tilt-library-app/source/wiki-source.html.wiki
341
347
  - fixtures/multiple-layouts/config.rb
342
348
  - fixtures/multiple-layouts/source/index.html.erb
343
349
  - fixtures/multiple-layouts/source/layout.erb
@@ -583,7 +589,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
583
589
  version: '0'
584
590
  segments:
585
591
  - 0
586
- hash: 1618222584272195818
592
+ hash: -1855518811757288968
587
593
  required_rubygems_version: !ruby/object:Gem::Requirement
588
594
  none: false
589
595
  requirements:
@@ -592,7 +598,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
592
598
  version: '0'
593
599
  segments:
594
600
  - 0
595
- hash: 1618222584272195818
601
+ hash: -1855518811757288968
596
602
  requirements: []
597
603
  rubyforge_project:
598
604
  rubygems_version: 1.8.24
@@ -621,6 +627,7 @@ test_files:
621
627
  - features/ignore.feature
622
628
  - features/implied_extensions.feature
623
629
  - features/instance_vars.feature
630
+ - features/missing-tilt-lib.feature
624
631
  - features/mount_rack.feature
625
632
  - features/preview_changes.feature
626
633
  - features/proxy_pages.feature
@@ -782,6 +789,11 @@ test_files:
782
789
  - fixtures/manual-layout/config.rb
783
790
  - fixtures/manual-layout/source/index.html.erb
784
791
  - fixtures/manual-layout/source/layouts/custom.erb
792
+ - fixtures/missing-tilt-library-app/config.rb
793
+ - fixtures/missing-tilt-library-app/source/danger-zone/more-wiki.html.wiki
794
+ - fixtures/missing-tilt-library-app/source/safe-zone/my-wiki.html.wiki
795
+ - fixtures/missing-tilt-library-app/source/textile-source.html.textile
796
+ - fixtures/missing-tilt-library-app/source/wiki-source.html.wiki
785
797
  - fixtures/multiple-layouts/config.rb
786
798
  - fixtures/multiple-layouts/source/index.html.erb
787
799
  - fixtures/multiple-layouts/source/layout.erb