lapse 0.0.15 → 0.0.16

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.
@@ -20,6 +20,11 @@ module Lapse
20
20
  post('clips').body
21
21
  end
22
22
 
23
+ def update_clip(clip_id, options)
24
+ params = { clip: options }
25
+ patch("clips/#{clip_id}", params).body
26
+ end
27
+
23
28
  def submit_frames(clip_id, frame_ids)
24
29
  params = {
25
30
  :frame_ids => frame_ids
@@ -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
@@ -1,4 +1,4 @@
1
1
  module Lapse
2
2
  # Verion of the Lapse gem
3
- VERSION = '0.0.15'
3
+ VERSION = '0.0.16'
4
4
  end
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.15
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: -4339710331859657088
111
+ hash: 1740037832579702578
112
112
  requirements: []
113
113
  rubyforge_project:
114
114
  rubygems_version: 1.8.23