dirigible 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 05e09bc4727ec81713e662fd36410075bcf8231d
4
- data.tar.gz: 3279148e7a9f79081a247c2cf9abbe7632606a8e
3
+ metadata.gz: 99130934f252d4982dc4366ab76d6f10026a6a43
4
+ data.tar.gz: 1c0fcb0e41f6af8ed94d379a59ba42313ae76cba
5
5
  SHA512:
6
- metadata.gz: 6efaec6f18a60ad788a522e7d5b3b51db9ad89baac21429e4babbb2c1df985493c13726a61b70418ff68180ac12b225f5c08be12e2803fa62f8d93e96c021ab1
7
- data.tar.gz: eae409dde8ffc469765f98d02e8ec93b6d8ab8a2717d744aff099fbe70a99c08df557902f93e7f3d36c99b8eb9e87664c5fc5e3e87034289b280d40d07668c3d
6
+ metadata.gz: c75757b7c1eced8dd4f3955ca5b74bd1dd4a4472bc4b41aa820689facd586e85c34298355d69e5711e7c5db01854b6748be22300887875273a9a6a314e501bdd
7
+ data.tar.gz: 8c8ff094ae1fca659fd51289d9e71335f18a45df1dcb4e14f7a386dc9132ac3d3f9d875cea02a3ccd0904a78c2443597d2d2a38e281cb5db266649a8dda97119
@@ -26,7 +26,13 @@ module Dirigible
26
26
 
27
27
  response = connection.send(method) do |request|
28
28
  request.url("#{endpoint}#{path}/")
29
- request.body = options.to_json
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
 
@@ -1,3 +1,3 @@
1
1
  module Dirigible
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
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.3
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-16 00:00:00.000000000 Z
11
+ date: 2013-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday