copy_tuner_client 0.1.1.beta15 → 0.1.1.beta16
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/copy_tuner_client/copyray_middleware.rb +11 -1
- data/lib/copy_tuner_client/version.rb +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
@@ -68,7 +68,17 @@ module CopyTunerClient
|
|
68
68
|
def html_request?(headers, response)
|
69
69
|
headers['Content-Type'] &&
|
70
70
|
headers['Content-Type'].include?('text/html') &&
|
71
|
-
response.
|
71
|
+
response_body(response).include?("<html")
|
72
|
+
end
|
73
|
+
|
74
|
+
def response_body(response)
|
75
|
+
body = ''
|
76
|
+
if response.is_a?(Array)
|
77
|
+
response.each { |s| body << s }
|
78
|
+
else
|
79
|
+
body = response
|
80
|
+
end
|
81
|
+
body
|
72
82
|
end
|
73
83
|
end
|
74
84
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: copy_tuner_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.1.
|
4
|
+
version: 0.1.1.beta16
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-02-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: i18n
|
@@ -349,7 +349,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
349
349
|
version: '0'
|
350
350
|
segments:
|
351
351
|
- 0
|
352
|
-
hash: -
|
352
|
+
hash: -1380294734623962063
|
353
353
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
354
354
|
none: false
|
355
355
|
requirements:
|