maas-client 0.3.1 → 0.3.2

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
  SHA256:
3
- metadata.gz: 0e0af0884af520930a87251571b10143d7a7cfcccda21ef13427027bab7a3cb3
4
- data.tar.gz: c1eca77a6dc752adbe75474cf70647140b0562f5471ca01067295f6dc44d43ae
3
+ metadata.gz: c93439f56367a0bda8b214cb642fbf7910529dbc73b8ff10d952c742312f0da5
4
+ data.tar.gz: b77d08ffba88ffd80f639f6709b15640bdbcdf351f1567f8bd3a53c731180eba
5
5
  SHA512:
6
- metadata.gz: 98d56e06f44c57e59e40b20c63b559911be99e881af6d23eee500bed37bc0b7aaca32ac26defe6e3f6048fb78104dab96b689bf2a9fe4c8f7f6f93d58ec4e1d0
7
- data.tar.gz: 98848a20e98a5934473e8a46003a8f55686cf2e39d9ba76b05bba56f669d0bb8dc603f82fe819e2c9b1336c921bf453906fb474bdcfe36925847317faa20febf
6
+ metadata.gz: c7ff6785b01fb110096193d4a4989ebe093926e11727106086ff4566d2103eb47d8385988dfed656b3e568d233389b41c8b342c9ddd7f50e727c163d253b6aa9
7
+ data.tar.gz: d4647a56f3858b6ed2305ad54b101799ca4bfdc02476198a615427838bcc99cb3301c61d6aaf3b22ada0362068ffb2ae876ebf62a56f7b502e813101612d691a
@@ -70,9 +70,9 @@ module Maas
70
70
  }
71
71
 
72
72
  # https://github.com/typhoeus/typhoeus#sending-params-in-the-body-with-put
73
- if method == :get
73
+ if [:get].include? method
74
74
  options.merge!({params: param})
75
- elsif method == :post
75
+ elsif [:post, :put].include? method
76
76
  options.merge!({body: param})
77
77
  headers.merge!(
78
78
  {'Content-Type'=> "application/x-www-form-urlencoded"}
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Maas
4
4
  module Client
5
- VERSION = '0.3.1'
5
+ VERSION = '0.3.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maas-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Don Draper
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-03 00:00:00.000000000 Z
11
+ date: 2018-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake