lapse 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/lapse/client/clips.rb +5 -0
- data/lib/lapse/transport/http.rb +4 -2
- data/lib/lapse/version.rb +1 -1
- metadata +2 -2
data/lib/lapse/client/clips.rb
CHANGED
data/lib/lapse/transport/http.rb
CHANGED
@@ -60,6 +60,8 @@ module Lapse
|
|
60
60
|
Net::HTTP::Put.new(uri.request_uri)
|
61
61
|
when :delete
|
62
62
|
Net::HTTP::Delete.new(uri.request_uri)
|
63
|
+
when :patch
|
64
|
+
Net::HTTP::Patch.new(uri.request_uri)
|
63
65
|
end
|
64
66
|
end
|
65
67
|
|
@@ -110,10 +112,10 @@ module Lapse
|
|
110
112
|
end
|
111
113
|
|
112
114
|
def can_post_data?(method)
|
113
|
-
[:post, :put].include?(method)
|
115
|
+
[:post, :put, :patch].include?(method)
|
114
116
|
end
|
115
117
|
|
116
|
-
[:get, :post, :put, :delete].each do |method|
|
118
|
+
[:get, :post, :put, :delete, :patch].each do |method|
|
117
119
|
define_method method do |*args|
|
118
120
|
json_request(method, *args)
|
119
121
|
end
|
data/lib/lapse/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lapse
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.16
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
108
|
version: '0'
|
109
109
|
segments:
|
110
110
|
- 0
|
111
|
-
hash:
|
111
|
+
hash: 1740037832579702578
|
112
112
|
requirements: []
|
113
113
|
rubyforge_project:
|
114
114
|
rubygems_version: 1.8.23
|