middleman-core-x86-mingw32 3.0.10 → 3.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/middleman-core/util.rb +11 -4
- data/lib/middleman-core/version.rb +1 -1
- data/middleman-core-x86-mingw32.gemspec +0 -3
- metadata +4 -20
data/lib/middleman-core/util.rb
CHANGED
@@ -10,8 +10,6 @@ require "thor"
|
|
10
10
|
# Core Pathname library used for traversal
|
11
11
|
require "pathname"
|
12
12
|
|
13
|
-
require 'win32/file' if File::ALT_SEPARATOR
|
14
|
-
|
15
13
|
module Middleman
|
16
14
|
|
17
15
|
module Util
|
@@ -21,8 +19,17 @@ module Middleman
|
|
21
19
|
# @param [String] filename The file to check.
|
22
20
|
# @return [Boolean]
|
23
21
|
def self.binary?(filename)
|
24
|
-
|
25
|
-
|
22
|
+
ext = File.extname(filename)
|
23
|
+
return false if Tilt.registered?(ext.sub('.',''))
|
24
|
+
|
25
|
+
ext = ".#{ext}" unless ext.to_s[0] == ?.
|
26
|
+
mime = ::Rack::Mime.mime_type(ext, nil)
|
27
|
+
return false unless mime
|
28
|
+
return false if mime.start_with?('text/')
|
29
|
+
return false if mime.include?('xml')
|
30
|
+
return false if mime.include?('json')
|
31
|
+
return false if mime.include?('javascript')
|
32
|
+
true
|
26
33
|
end
|
27
34
|
|
28
35
|
# The logger
|
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.
|
4
|
+
version: 3.0.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-01-
|
13
|
+
date: 2013-01-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -140,22 +140,6 @@ dependencies:
|
|
140
140
|
- - ~>
|
141
141
|
- !ruby/object:Gem::Version
|
142
142
|
version: 0.0.3
|
143
|
-
- !ruby/object:Gem::Dependency
|
144
|
-
name: win32-file
|
145
|
-
requirement: !ruby/object:Gem::Requirement
|
146
|
-
none: false
|
147
|
-
requirements:
|
148
|
-
- - ! '>='
|
149
|
-
- !ruby/object:Gem::Version
|
150
|
-
version: 0.5.4
|
151
|
-
type: :runtime
|
152
|
-
prerelease: false
|
153
|
-
version_requirements: !ruby/object:Gem::Requirement
|
154
|
-
none: false
|
155
|
-
requirements:
|
156
|
-
- - ! '>='
|
157
|
-
- !ruby/object:Gem::Version
|
158
|
-
version: 0.5.4
|
159
143
|
description: A static site generator. Provides dozens of templating languages (Haml,
|
160
144
|
Sass, Compass, Slim, CoffeeScript, and more). Makes minification, compression, cache
|
161
145
|
busting, Yaml data (and more) an easy part of your development cycle.
|
@@ -606,7 +590,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
606
590
|
version: '0'
|
607
591
|
segments:
|
608
592
|
- 0
|
609
|
-
hash: -
|
593
|
+
hash: -2883792952471512729
|
610
594
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
611
595
|
none: false
|
612
596
|
requirements:
|
@@ -615,7 +599,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
615
599
|
version: '0'
|
616
600
|
segments:
|
617
601
|
- 0
|
618
|
-
hash: -
|
602
|
+
hash: -2883792952471512729
|
619
603
|
requirements: []
|
620
604
|
rubyforge_project:
|
621
605
|
rubygems_version: 1.8.24
|