faraday-curb 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7b501b4606f02d50259b094b34ffc9159b260674
4
- data.tar.gz: b9dc919fbdc7422fbe212eae5c1115656c667aad
3
+ metadata.gz: f418ac40ca7b05ee3ec30e2b49551434ce915bed
4
+ data.tar.gz: 3aca12ee47686c128f5f479356dd7c83c7bb4a41
5
5
  SHA512:
6
- metadata.gz: 4aedcf13cecb5bb64b9b741c2a3976e8d07554f6ad157ac58ca4fa96ba71c9006d112350342e7aa66c4a1b70b4d450db5523239f49f8e69060793bb8a7dbb207
7
- data.tar.gz: b92b8f6c899f90f5693bd778d0edac6cd9291a28f697f4f4783c125d131bd7769c047df8abcd823700ba40e612ba931a042a02339f0797a24661478019d9d418
6
+ metadata.gz: 874277b2e48f2a5b45b1172a39a0ba79bc140ca595fa98e847bd7cb30fdfa1fea5cc69afbf43cf269d38e45c91d4ed6f6c421960ab7e66f1a92eabb17737efeb
7
+ data.tar.gz: 8161bfd9f96e6ff3e6e75262486d1fc932b1569b2eb6cb217cdb0925220cd156c0876fba9173b8c7e6bc2196a324cfa9cb986a3bcc4887a79b7838cc6cf6002f
@@ -22,7 +22,7 @@ module Faraday
22
22
  configure_timeout(client, env)
23
23
 
24
24
  arguments = ["http_#{env[:method]}"]
25
- if [:put, :post].include? env[:method]
25
+ if [:patch, :put, :post].include? env[:method]
26
26
  arguments << (env[:body] || "")
27
27
  end
28
28
 
data/lib/faraday/curb.rb CHANGED
@@ -1,2 +1,11 @@
1
+ module Curl
2
+ class Easy
3
+ def http_patch
4
+ self.http :PATCH
5
+ end
6
+ alias patch http_patch
7
+ end
8
+ end
9
+
1
10
  require 'faraday/adapter/curb'
2
11
  Faraday::Adapter.register_middleware :curb => lambda { Faraday::Adapter::Curb }
@@ -1,5 +1,5 @@
1
1
  module Faraday
2
2
  module Curb
3
- VERSION = "0.0.4"
3
+ VERSION = '0.0.5'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faraday-curb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Eisenberger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-30 00:00:00.000000000 Z
11
+ date: 2015-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curb
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  version: '0'
103
103
  requirements: []
104
104
  rubyforge_project:
105
- rubygems_version: 2.4.5
105
+ rubygems_version: 2.4.7
106
106
  signing_key:
107
107
  specification_version: 4
108
108
  summary: A Curb adapter for Faraday.