lapse 0.0.22 → 0.0.23

Sign up to get free protection for your applications and to get access to all the features.
data/Readme.markdown CHANGED
@@ -11,7 +11,7 @@ Read the [documentation](http://rubydoc.info/github/seesawco/Lapse-rb/master/fra
11
11
  Add this line to your application's Gemfile:
12
12
 
13
13
  ``` ruby
14
- gem 'Lapse'
14
+ gem 'lapse'
15
15
  ```
16
16
 
17
17
  And then execute:
@@ -32,8 +32,8 @@ Should you wish to configure the client in an initializer, you can do the follow
32
32
 
33
33
  ``` ruby
34
34
  Lapse::Client.configure do |client|
35
- client.api_host = "some.api-host.com"
36
- client.api_scheme = "http"
35
+ client.api_host = 'everlapse.com'
36
+ client.api_scheme = 'http'
37
37
  end
38
38
  ```
39
39
 
data/lib/lapse/cli.rb CHANGED
@@ -38,7 +38,7 @@ module Lapse
38
38
  authenticated_client.submit_frames(clip.id, frames.map(&:id))
39
39
 
40
40
  puts 'Publishing clip'
41
- authenticated_client.publish_clip(clip.id, title)
41
+ authenticated_client.publish_clip(clip.id, title: title)
42
42
 
43
43
  puts "#{api_host}/#{clip.slug}"
44
44
  end
@@ -82,7 +82,7 @@ module Lapse
82
82
 
83
83
  authenticated_client.submit_frames(clip.id, frames.map(&:id))
84
84
 
85
- authenticated_client.publish_clip(clip.id, title)
85
+ authenticated_client.publish_clip(clip.id, title: title)
86
86
 
87
87
  url = "#{api_host}/#{clip.slug}"
88
88
 
@@ -41,11 +41,9 @@ module Lapse
41
41
  post("clips/#{clip_id}/modify_frames", params).body
42
42
  end
43
43
 
44
- def publish_clip(clip_id, title = nil)
44
+ def publish_clip(clip_id, options = {})
45
45
  params = {
46
- :clip => {
47
- :title => title
48
- }
46
+ :clip => options
49
47
  }
50
48
  post("clips/#{clip_id}/publish", params).body
51
49
  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.22'
3
+ VERSION = '0.0.23'
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.22
4
+ version: 0.0.23
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-06-28 00:00:00.000000000 Z
14
+ date: 2013-07-01 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: multi_json
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  segments:
110
110
  - 0
111
- hash: -2574086700697754158
111
+ hash: -594447016018428953
112
112
  requirements: []
113
113
  rubyforge_project:
114
114
  rubygems_version: 1.8.23