dagger 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dagger.rb +5 -5
- data/lib/dagger/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84aef19ee4b595b72d8b1909e4b4aea37a6875d6
|
4
|
+
data.tar.gz: 893de24af8328056b4ca7c06c31b998035fbe7c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e748e4015ca49978dd78d29e6a7d3a088eafeba2d2acb840735118c50dd9b8c09e5d44f82ba144ce4dab70bd052c768a5b5a91c52ad5c721df0ace9baab6d55
|
7
|
+
data.tar.gz: c5f5d06c3880232c7665f1d821fd2ef58d9656870075b5929693d6caac6a4c474efc1c2f27b4d03658faf67a488e9a23248db2de1cb0cdea740be707ff8fdc36
|
data/lib/dagger.rb
CHANGED
@@ -37,25 +37,25 @@ module Dagger
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def self.post(uri, params = {}, options = {})
|
40
|
-
|
40
|
+
send_request('post', uri, params, options)
|
41
41
|
end
|
42
42
|
|
43
43
|
def self.put(uri, params = {}, options = {})
|
44
|
-
|
44
|
+
send_request('put', uri, params, options)
|
45
45
|
end
|
46
46
|
|
47
47
|
def self.delete(uri, params = {}, options = {})
|
48
|
-
|
48
|
+
send_request('delete', uri, params, options)
|
49
49
|
end
|
50
50
|
|
51
51
|
def self.request(method, url, params = {}, options = {})
|
52
52
|
return get(url, params, options) if method.to_s.downcase == 'get'
|
53
|
-
|
53
|
+
send_request(method.to_s.downcase, url, params, options)
|
54
54
|
end
|
55
55
|
|
56
56
|
private
|
57
57
|
|
58
|
-
def self.
|
58
|
+
def self.send_request(method, uri, params, opts = {})
|
59
59
|
uri = parse_uri(uri)
|
60
60
|
headers = opts[:headers] || {}
|
61
61
|
|
data/lib/dagger/version.rb
CHANGED