raydash 2.0.1 → 2.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.
@@ -1 +1,3 @@
1
- Raydash has been installed into your application. If you run 'rails g raydash:model', you can create a model for tracking Raydash video streams in your application
1
+ Raydash has been installed into your application. Add <%= raydash_header %> to header of your template.
2
+ In your controller, put @token=Raydash.getToken()
3
+ In your views, you can use <%=videorecord @token, "record" %> for recording and <%=videostream @token, "stream" %> for streaming.
@@ -1,3 +1,3 @@
1
1
  module Raydash
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.2"
3
3
  end
data/lib/raydash.rb CHANGED
@@ -91,7 +91,7 @@ module Raydash
91
91
  return JSON.parse(result.body)
92
92
  end
93
93
  def self.startRecord(token)
94
- path="/api/2/startRecord//#{token}"
94
+ path="/api/2/startRecord/#{token}"
95
95
  result = self.getRequest(path + "?userid=#{self.userid}&secret=#{self.secret}")
96
96
  return result.body
97
97
  end
@@ -100,6 +100,10 @@ module Raydash
100
100
  result = self.getRequest(path + "?userid=#{self.userid}&secret=#{self.secret}&bucket=#{CGI::escape(bucket)}")
101
101
  return result.body
102
102
  end
103
+ def self.setUserInfo(amazonKey,amazonSecret,callbackUrl)
104
+ path="/api/2/user/#{self.userid}"
105
+ postRequest(path,{'userid'=>self.userid,'secret'=>self.secret,'amazonSecret'=>amazonSecret,'amazonKey'=>amazonKey})
106
+ end
103
107
  # Used for configuration
104
108
  def self.setup
105
109
  yield self
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raydash
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 1
10
- version: 2.0.1
9
+ - 2
10
+ version: 2.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Gershon Bialer
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-06 00:00:00 -05:00
18
+ date: 2011-05-10 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency