gorilla-io 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gorilla/error.rb +2 -0
- data/lib/gorilla/vanilla_client.rb +11 -8
- data/lib/gorilla/version.rb +1 -1
- data/lib/gorilla.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 111bf6e7c9e6a1413d1293da37a0bb38ec78d453
|
4
|
+
data.tar.gz: 501ce148d87955eb860c6d495cb8af9287164db4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1fadfc6d39cd2a47ac05e4d7e8747b31f7a3da68e56f492db17504df2993f7e6d12e647cf05dbf6906a7720f2656c1fd791212692a7d00b1e405d1c978b172b
|
7
|
+
data.tar.gz: 993fa3b3fae30da7d94ba0516211e534cc30dd6bfef34dccd341224341381ee9d2c280cecaf0b375d39461e5b3849e7fa115b925bd0b23d62e0c2c555f5acdb2
|
data/lib/gorilla/error.rb
CHANGED
@@ -16,27 +16,30 @@ module Gorilla
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def get(path, params={})
|
19
|
-
|
20
|
-
Response.new(response)
|
19
|
+
request(:get, path, params)
|
21
20
|
end
|
22
21
|
|
23
22
|
def post(path, params={})
|
24
|
-
|
25
|
-
Response.new(response)
|
23
|
+
request(:post, path, params)
|
26
24
|
end
|
27
25
|
|
28
26
|
def put(path, params={})
|
29
|
-
|
30
|
-
Response.new(response)
|
27
|
+
request(:put, path, params)
|
31
28
|
end
|
32
29
|
|
33
30
|
def delete(path, params={})
|
34
|
-
|
35
|
-
Response.new(response)
|
31
|
+
request(:delete, path, params)
|
36
32
|
end
|
37
33
|
|
38
34
|
def config
|
39
35
|
Gorilla.configuration
|
40
36
|
end
|
37
|
+
|
38
|
+
private
|
39
|
+
|
40
|
+
def request(method, path, params={})
|
41
|
+
response = connection.send(method, path, params)
|
42
|
+
Response.new(response)
|
43
|
+
end
|
41
44
|
end
|
42
45
|
end
|
data/lib/gorilla/version.rb
CHANGED
data/lib/gorilla.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gorilla-io
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gorilla.io
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|