stella 0.7.0.018 → 0.7.0.019

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,10 +24,12 @@ class Stella::Client
24
24
  # NOTE: It's important to parse the document on every
25
25
  # request because this container is available for the
26
26
  # entire life of a usecase.
27
- case @response.header['Content-Type']
28
- when ['text/html']
27
+ case (@response.header['Content-Type'] || []).first
28
+ when /text\/html/
29
29
  Nokogiri::HTML(body)
30
- when ['text/yaml']
30
+ when /text\/xml/
31
+ Nokogiri::XML(body)
32
+ when /text\/yaml/
31
33
  YAML.load(body)
32
34
  end
33
35
  end
@@ -6,7 +6,7 @@ module Stella
6
6
  MAJOR = 0.freeze
7
7
  MINOR = 7.freeze
8
8
  TINY = 0.freeze
9
- PATCH = '018'.freeze
9
+ PATCH = '019'.freeze
10
10
  end
11
11
  def self.to_s; [MAJOR, MINOR, TINY, PATCH].join('.'); end
12
12
  def self.to_f; self.to_s.to_f; end
@@ -1,7 +1,7 @@
1
1
  @spec = Gem::Specification.new do |s|
2
2
  s.name = "stella"
3
3
  s.rubyforge_project = 'stella'
4
- s.version = "0.7.0.018"
4
+ s.version = "0.7.0.019"
5
5
  s.summary = "Stella: Perform load tests on your web applications with beauty and brute strength."
6
6
  s.description = s.summary
7
7
  s.author = "Delano Mandelbaum"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stella
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0.018
4
+ version: 0.7.0.019
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delano Mandelbaum