copy_tuner_client 0.1.1.beta15 → 0.1.1.beta16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- copy_tuner_client (0.1.1.beta15)
4
+ copy_tuner_client (0.1.1.beta16)
5
5
  i18n (>= 0.5.0)
6
6
  json
7
7
 
@@ -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.body.include?("<html")
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
@@ -1,6 +1,6 @@
1
1
  module CopyTunerClient
2
2
  # Client version
3
- VERSION = '0.1.1.beta15'
3
+ VERSION = '0.1.1.beta16'
4
4
 
5
5
  # API version being used to communicate with the server
6
6
  API_VERSION = '2.0'.freeze
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.beta15
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-01-21 00:00:00.000000000 Z
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: -3548223419829474843
352
+ hash: -1380294734623962063
353
353
  required_rubygems_version: !ruby/object:Gem::Requirement
354
354
  none: false
355
355
  requirements: