framey 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
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.1") do |p|
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.strftime("%m%d%Y%H%M%S"))
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
 
@@ -1,7 +1,7 @@
1
1
  module Framey
2
2
 
3
3
  module Configuration
4
- VERSION = '1.0.1'.freeze unless defined?(VERSION)
4
+ VERSION = '1.0.2'.freeze unless defined?(VERSION)
5
5
 
6
6
  DEFAULT_API_HOST = "http://framey.com".freeze
7
7
  DEFAULT_USER_AGENT = "Framey Ruby Gem #{VERSION}".freeze
data/lib/framey.rb CHANGED
@@ -3,7 +3,7 @@ require 'framey/api'
3
3
  require 'framey/view_helpers'
4
4
 
5
5
  module Framey
6
- VERSION = "1.0.1"
6
+ VERSION = "1.0.2"
7
7
 
8
8
  extend Configuration
9
9
  end
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: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
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-02 00:00:00 Z
18
+ date: 2011-05-03 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: hoe