lapse 0.0.7 → 0.0.8
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.
- data/lib/lapse/cli.rb +3 -3
- data/lib/lapse/client/clips.rb +1 -1
- data/lib/lapse/version.rb +1 -1
- data/test/lapse/client/clips_test.rb +4 -4
- metadata +2 -2
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.
|
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.
|
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.
|
83
|
+
authenticated_client.submit_frames(clip.id, frames.map(&:id))
|
84
84
|
|
85
85
|
authenticated_client.publish_clip(clip.id, title)
|
86
86
|
|
data/lib/lapse/client/clips.rb
CHANGED
data/lib/lapse/version.rb
CHANGED
@@ -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
|
21
|
-
stub_request(:post, 'https://everlapse.com/api/v1/clips/1/
|
22
|
-
assert_equal Hash.new, authenticated_client.
|
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.
|
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:
|
111
|
+
hash: -3744630397690695736
|
112
112
|
requirements: []
|
113
113
|
rubyforge_project:
|
114
114
|
rubygems_version: 1.8.23
|