dirigible 1.0.3 → 1.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/dirigible/request.rb +7 -1
- data/lib/dirigible/version.rb +1 -1
- 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: 99130934f252d4982dc4366ab76d6f10026a6a43
|
4
|
+
data.tar.gz: 1c0fcb0e41f6af8ed94d379a59ba42313ae76cba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c75757b7c1eced8dd4f3955ca5b74bd1dd4a4472bc4b41aa820689facd586e85c34298355d69e5711e7c5db01854b6748be22300887875273a9a6a314e501bdd
|
7
|
+
data.tar.gz: 8c8ff094ae1fca659fd51289d9e71335f18a45df1dcb4e14f7a386dc9132ac3d3f9d875cea02a3ccd0904a78c2443597d2d2a38e281cb5db266649a8dda97119
|
data/lib/dirigible/request.rb
CHANGED
@@ -26,7 +26,13 @@ module Dirigible
|
|
26
26
|
|
27
27
|
response = connection.send(method) do |request|
|
28
28
|
request.url("#{endpoint}#{path}/")
|
29
|
-
|
29
|
+
|
30
|
+
if [:post, :put].member?(method)
|
31
|
+
request.body = options.to_json
|
32
|
+
else
|
33
|
+
request.params.merge!(options)
|
34
|
+
end
|
35
|
+
|
30
36
|
request.headers.merge!(headers)
|
31
37
|
end
|
32
38
|
|
data/lib/dirigible/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dirigible
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anthony Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|