monster_mash 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/TODO +1 -0
- data/VERSION +1 -1
- data/lib/monster_mash/base.rb +3 -1
- data/monster_mash.gemspec +4 -3
- metadata +5 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
data/lib/monster_mash/base.rb
CHANGED
@@ -2,6 +2,7 @@ module MonsterMash
|
|
2
2
|
class HTTPError < StandardError
|
3
3
|
attr_accessor :response
|
4
4
|
attr_accessor :code
|
5
|
+
attr_accessor :body
|
5
6
|
end
|
6
7
|
|
7
8
|
class Base
|
@@ -70,9 +71,10 @@ module MonsterMash
|
|
70
71
|
def self.check_response_and_raise!(response)
|
71
72
|
code = response.code.to_i
|
72
73
|
if code < 200 or code >= 400
|
73
|
-
error = MonsterMash::HTTPError.new("Got bad HTTP response! code: #{code}")
|
74
|
+
error = MonsterMash::HTTPError.new("Got bad HTTP response! code: #{code}\n\n#{response.body}")
|
74
75
|
error.response = response
|
75
76
|
error.code = code
|
77
|
+
error.body = response.body
|
76
78
|
raise error
|
77
79
|
end
|
78
80
|
end
|
data/monster_mash.gemspec
CHANGED
@@ -5,17 +5,18 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{monster_mash}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["David Balatero"]
|
12
|
-
s.date = %q{2010-07-
|
12
|
+
s.date = %q{2010-07-20}
|
13
13
|
s.description = %q{Provides a fun HTTP interface on top of Typhoeus!}
|
14
14
|
s.email = %q{dbalatero@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE",
|
17
17
|
"README.markdown",
|
18
|
-
"README.markdown.html"
|
18
|
+
"README.markdown.html",
|
19
|
+
"TODO"
|
19
20
|
]
|
20
21
|
s.files = [
|
21
22
|
".document",
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 4
|
9
|
+
version: 0.1.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- David Balatero
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-07-
|
17
|
+
date: 2010-07-20 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -69,6 +69,7 @@ extra_rdoc_files:
|
|
69
69
|
- LICENSE
|
70
70
|
- README.markdown
|
71
71
|
- README.markdown.html
|
72
|
+
- TODO
|
72
73
|
files:
|
73
74
|
- .document
|
74
75
|
- .gitignore
|
@@ -89,6 +90,7 @@ files:
|
|
89
90
|
- spec/spec.opts
|
90
91
|
- spec/spec_helper.rb
|
91
92
|
- README.markdown.html
|
93
|
+
- TODO
|
92
94
|
has_rdoc: true
|
93
95
|
homepage: http://github.com/dbalatero/monster_mash
|
94
96
|
licenses: []
|