framey 1.0.1 → 1.0.2
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/README.md +2 -0
- data/Rakefile +1 -1
- data/lib/framey/api.rb +2 -2
- data/lib/framey/configuration.rb +1 -1
- data/lib/framey.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
@@ -43,6 +43,7 @@ To render the Framey video recorder in an ActionView (example assumes ERB) do:
|
|
43
43
|
|
44
44
|
<%= javascript_include_tag "swfobject" %>
|
45
45
|
<%= render_recorder({
|
46
|
+
:id => "myRecorder", # id for the flash embed object (optional, random by default)
|
46
47
|
:max_time => 60, # maximum allowed video length in seconds (optional, defaults to 30)
|
47
48
|
:session_data => { # custom parameters to be passed along to your app later (optional)
|
48
49
|
:user_id => <%= @user.id %> # you may, for example, want to relate this recording to a specific user in your system
|
@@ -68,6 +69,7 @@ To render the Framey video player in an ActionView (example assumes ERB) do:
|
|
68
69
|
|
69
70
|
<%= javascript_include_tag "swfobject" %>
|
70
71
|
<%= render_player({
|
72
|
+
:id => "myPlayer", # id for the flash embed object (optional, random by default)
|
71
73
|
:video_url => "[video url]", # the video url received in the callback (required)
|
72
74
|
:thumbnail_url => "[thumbnail url]", # the thumbnail url received in the callback (required)
|
73
75
|
:progress_bar_color => "0x123456", # the desired color for the progress bar (optional, defaults to black)
|
data/Rakefile
CHANGED
@@ -3,7 +3,7 @@ require 'hoe'
|
|
3
3
|
$:.unshift(File.dirname(__FILE__) + "/lib")
|
4
4
|
require 'framey'
|
5
5
|
|
6
|
-
Hoe.new('framey', "1.0.
|
6
|
+
Hoe.new('framey', "1.0.2") do |p|
|
7
7
|
p.name = "framey"
|
8
8
|
p.author = "Shaun Salzberg"
|
9
9
|
p.description = "A gem for easy Rails integration with the Framey video recording service."
|
data/lib/framey/api.rb
CHANGED
@@ -58,8 +58,8 @@ module Framey
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def self.sign
|
61
|
-
timestamp = Time.now.utc + Framey.api_timeout * 60
|
62
|
-
signature = Digest::MD5.hexdigest(Framey.api_secret + "&" + timestamp
|
61
|
+
timestamp = (Time.now.utc + Framey.api_timeout * 60).to_i
|
62
|
+
signature = Digest::MD5.hexdigest(Framey.api_secret + "&" + timestamp)
|
63
63
|
return timestamp.to_s, signature
|
64
64
|
end
|
65
65
|
|
data/lib/framey/configuration.rb
CHANGED
data/lib/framey.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: framey
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 2
|
10
|
+
version: 1.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Shaun Salzberg
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-05-
|
18
|
+
date: 2011-05-03 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: hoe
|