lapse 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/lib/lapse/cli.rb CHANGED
@@ -35,7 +35,7 @@ module Lapse
35
35
  upload_frame(clip.id, image_path)
36
36
  end
37
37
 
38
- authenticated_client.accept_frames(clip.id, frames.map(&:id))
38
+ authenticated_client.submit_frames(clip.id, frames.map(&:id))
39
39
 
40
40
  puts 'Publishing clip'
41
41
  authenticated_client.publish_clip(clip.id, title)
@@ -49,7 +49,7 @@ module Lapse
49
49
  def add_frame(clip_id)
50
50
  file = get_frame(options[:url])
51
51
  frame = upload_frame clip_id, file.path
52
- clip = authenticated_client.accept_frames(clip_id, [frame.id])
52
+ clip = authenticated_client.submit_frames(clip_id, [frame.id])
53
53
 
54
54
  url = "#{api_host}/#{clip.slug}"
55
55
  if options[:open]
@@ -80,7 +80,7 @@ module Lapse
80
80
  upload_frame clip.id, file.path
81
81
  end
82
82
 
83
- authenticated_client.accept_frames(clip.id, frames.map(&:id))
83
+ authenticated_client.submit_frames(clip.id, frames.map(&:id))
84
84
 
85
85
  authenticated_client.publish_clip(clip.id, title)
86
86
 
@@ -25,7 +25,7 @@ module Lapse
25
25
  post("clips/#{clip_id}/submit_frames", params).body
26
26
  end
27
27
 
28
- def publish_clip(clip_id, title)
28
+ def publish_clip(clip_id, title = nil)
29
29
  params = {
30
30
  :clip => {
31
31
  :title => title
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.7'
3
+ VERSION = '0.0.8'
4
4
  end
@@ -17,14 +17,14 @@ class ClipsTest < Lapse::TestCase
17
17
  assert_equal Hash.new, authenticated_client.create_clip
18
18
  end
19
19
 
20
- def test_accept_frames
21
- stub_request(:post, 'https://everlapse.com/api/v1/clips/1/accept_frames').to_return(:status => 200, :body => "{}")
22
- assert_equal Hash.new, authenticated_client.accept_frames(1, [1, 2, 3, 4])
20
+ def test_submit_frames
21
+ stub_request(:post, 'https://everlapse.com/api/v1/clips/1/submit_frames').to_return(:status => 200, :body => "{}")
22
+ assert_equal Hash.new, authenticated_client.submit_frames(1, [1, 2, 3, 4])
23
23
  end
24
24
 
25
25
  def test_publish_clip
26
26
  stub_request(:post, 'https://everlapse.com/api/v1/clips/1/publish').to_return(:status => 200, :body => "{}")
27
- assert_equal Hash.new, authenticated_client.publish_clip(1)
27
+ assert_equal Hash.new, authenticated_client.publish_clip(1, "Test Title")
28
28
  end
29
29
 
30
30
  def test_destroy_clip
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.7
4
+ version: 0.0.8
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: 4586885763299117881
111
+ hash: -3744630397690695736
112
112
  requirements: []
113
113
  rubyforge_project:
114
114
  rubygems_version: 1.8.23