stella 0.7.0.018 → 0.7.0.019
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/lib/stella/client/container.rb +5 -3
- data/lib/stella/version.rb +1 -1
- data/stella.gemspec +1 -1
- metadata +1 -1
@@ -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
|
27
|
+
case (@response.header['Content-Type'] || []).first
|
28
|
+
when /text\/html/
|
29
29
|
Nokogiri::HTML(body)
|
30
|
-
when
|
30
|
+
when /text\/xml/
|
31
|
+
Nokogiri::XML(body)
|
32
|
+
when /text\/yaml/
|
31
33
|
YAML.load(body)
|
32
34
|
end
|
33
35
|
end
|
data/lib/stella/version.rb
CHANGED
data/stella.gemspec
CHANGED
@@ -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.
|
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"
|