middleman-core 3.0.9 → 3.0.10.pre.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,7 @@
1
1
  require "middleman-core/sitemap/extensions/traversal"
2
2
 
3
+ require 'win32/file' if File::ALT_SEPARATOR
4
+
3
5
  module Middleman
4
6
 
5
7
  # Sitemap namespace
@@ -66,18 +66,12 @@ module Middleman
66
66
  # @param response The response from #call
67
67
  # @return [String] The whole response as a string.
68
68
  def self.extract_response_text(response)
69
- case(response)
70
- when String
71
- response
72
- when Array
73
- response.join
74
- when Rack::Response
75
- response.body.join
76
- when Rack::File
77
- File.read(response.path)
78
- else
79
- response.to_s
69
+ # The rack spec states all response bodies must respond to each
70
+ result = ''
71
+ response.each do |part, s|
72
+ result << part
80
73
  end
74
+ result
81
75
  end
82
76
 
83
77
  # Takes a matcher, which can be a literal string
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  # Current Version
3
3
  # @return [String]
4
- VERSION = '3.0.9' unless const_defined?(:VERSION)
4
+ VERSION = '3.0.10.pre.1' unless const_defined?(:VERSION)
5
5
  end
@@ -35,4 +35,7 @@ Gem::Specification.new do |s|
35
35
  # Watcher
36
36
  s.add_dependency("listen", ["~> 0.5.2"])
37
37
  s.add_dependency("wdm", ["~> 0.0.3"]) # Windows
38
+
39
+ # Detect binary
40
+ s.add_dependency('win32-file', '>= 0.5.4')
38
41
  end
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.9
5
- prerelease:
4
+ version: 3.0.10.pre.1
5
+ prerelease: 7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Thomas Reynolds
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-01-08 00:00:00.000000000 Z
13
+ date: 2013-01-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -605,16 +605,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
605
605
  version: '0'
606
606
  segments:
607
607
  - 0
608
- hash: -4170528226984264202
608
+ hash: 1006188105979529752
609
609
  required_rubygems_version: !ruby/object:Gem::Requirement
610
610
  none: false
611
611
  requirements:
612
- - - ! '>='
612
+ - - ! '>'
613
613
  - !ruby/object:Gem::Version
614
- version: '0'
615
- segments:
616
- - 0
617
- hash: -4170528226984264202
614
+ version: 1.3.1
618
615
  requirements: []
619
616
  rubyforge_project:
620
617
  rubygems_version: 1.8.24