smooth_operator 0.3.9 → 0.3.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OTU4MDFhNjA1MDI3YzFhZDE0NGQ3N2ViNDU1ZWU1ODYxYTQxMDYwYg==
4
+ YzNmNDAzZWQyOGI1ZTkwNWY0NTRmOTAzNjczMGI1NTFkMWRkZTVjYg==
5
5
  data.tar.gz: !binary |-
6
- NzE4MzcwYzhlYjRmOTUyMzA1ZDk5ZDg3ZmMwNTQ1NDEyNjE2NDYxZg==
6
+ MGZiY2I1ZTAzMTdjMDkwY2E3ZjY0Y2IzYjdjYzcxYTcwZmZiM2QyYQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MTU2MjkxZWE0NDA0MWIyOTBiZTQzZTY3MDBkMjk3YTg3YjY4ZjBiOTM0Yjc3
10
- MzA3NDk2Mzg5NzJhOGEwMGVjNGM2MTQ5NzI3NTBiYjdiZmQxODdmNGYwZmVl
11
- OWFlYjk3YjM2NWIzMjQ0YjliOGM1YzMxNjBmNjVjYWNmMjE5ODI=
9
+ YjFhYmE4YjRkNWIwODhjZTEyODdjNDE1ZDc0YjI1ODJiMDk3NzliYjVmMTcw
10
+ YjU0NjI1ZjkzM2QyNGYyODUzNTdkY2NkNjNlY2IyODVmY2IzZWU0Zjg1ZDI4
11
+ NGU2MmExMmEzYWM3NTc4YzYyYjBlZjI0NjRiNGVkOWU4MTBmNGE=
12
12
  data.tar.gz: !binary |-
13
- OGM0OWQ1YmQyMDBkMzA2YjgzMGY5MWIyOWQyMjBlNGU2ZjdkZTY5Y2MyY2Yx
14
- ZmExOGQ4YzM5Y2VkZTQxYThmOGZhYzUyMzM3MzI3YjcwZDM2MTI0MTI5MWYw
15
- YzY3ZmFhZTNiNzMyYWYyMDFkNTA1YjQ1NDk3ZTJiZGZhZDVlZDc=
13
+ YmVmMjUzYTRjMmQ3ZDRhNWJhMzYwNGFhNTdlZTNhMmFhZWQ2YzFlOWQ0ZGI0
14
+ MzU0MWUzNjMzYmM4MGI4Yzc0Y2MzMmI5MmE5MzJjNGQ0MDBkNGJlZjY3YjYz
15
+ ZDJkYjRhYmNiZDkyNjU0NDhlMThiYWMyNjAzMDBlNzU5YTRkMTc=
@@ -9,8 +9,8 @@ module SmoothOperator
9
9
 
10
10
  def self.make_the_call(http_verb, url, options, basic_auth_credentials)
11
11
  hydra = get_hydra_and_remove_it_from options
12
- options = { params: options, method: http_verb }.merge auth_credentials(basic_auth_credentials)
13
-
12
+ options = { (http_verb == :get ? :params : :body) => options, :method => http_verb, :headers => { "Content-type" => "application/x-www-form-urlencoded" } }.merge auth_credentials(basic_auth_credentials)
13
+
14
14
  if hydra.present?
15
15
  make_asynchronous_request(url, options, hydra)
16
16
  else
@@ -1,3 +1,3 @@
1
1
  module SmoothOperator
2
- VERSION = "0.3.9"
2
+ VERSION = "0.3.11"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smooth_operator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: 0.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - João Gonçalves
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-05 00:00:00.000000000 Z
11
+ date: 2013-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler