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.
data/lib/middleman-core/util.rb
CHANGED
@@ -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
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
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
|
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.
|
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-
|
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:
|
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:
|
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
|