monster_mash 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.markdown +5 -1
- data/VERSION +1 -1
- data/lib/monster_mash/base.rb +2 -0
- data/monster_mash.gemspec +2 -2
- metadata +3 -3
data/CHANGELOG.markdown
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/lib/monster_mash/base.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
module MonsterMash
|
2
2
|
class HTTPError < StandardError
|
3
3
|
attr_accessor :response
|
4
|
+
attr_accessor :code
|
4
5
|
end
|
5
6
|
|
6
7
|
class Base
|
@@ -71,6 +72,7 @@ module MonsterMash
|
|
71
72
|
if code < 200 or code >= 400
|
72
73
|
error = MonsterMash::HTTPError.new("Got bad HTTP response! code: #{code}")
|
73
74
|
error.response = response
|
75
|
+
error.code = code
|
74
76
|
raise error
|
75
77
|
end
|
76
78
|
end
|
data/monster_mash.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
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.3"
|
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-17}
|
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 = [
|
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
|
+
- 3
|
9
|
+
version: 0.1.3
|
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-17 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|