streamit 0.0.3 → 0.0.4
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.
@@ -2,11 +2,13 @@ class Streamit::StreamsController < ApplicationController
|
|
2
2
|
delegate :store, :to => Streamit
|
3
3
|
|
4
4
|
before_filter :process_params, :only => :fetch
|
5
|
+
|
6
|
+
layout nil
|
5
7
|
|
6
8
|
def fetch
|
7
9
|
respond_to do |format|
|
8
10
|
format.html
|
9
|
-
format.js { render :text =>
|
11
|
+
format.js { render :text => render_to_string(@streams) }
|
10
12
|
end
|
11
13
|
end
|
12
14
|
|
@@ -18,9 +20,4 @@ private
|
|
18
20
|
scp
|
19
21
|
end
|
20
22
|
end
|
21
|
-
|
22
|
-
def render_streams_to_string
|
23
|
-
render_to_string(:partial => "streamit/stream", :collection => @streams)
|
24
|
-
end
|
25
|
-
|
26
23
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 4
|
9
|
+
version: 0.0.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Lin He
|
@@ -56,7 +56,6 @@ files:
|
|
56
56
|
- test/dummy/app/views/users/show.html.erb
|
57
57
|
- test/dummy/config/application.rb
|
58
58
|
- test/dummy/config/boot.rb
|
59
|
-
- test/dummy/config/database.yml
|
60
59
|
- test/dummy/config/environment.rb
|
61
60
|
- test/dummy/config/routes.rb
|
62
61
|
- test/dummy/config/environments/development.rb
|
@@ -130,7 +129,6 @@ test_files:
|
|
130
129
|
- test/dummy/app/views/users/show.html.erb
|
131
130
|
- test/dummy/config/application.rb
|
132
131
|
- test/dummy/config/boot.rb
|
133
|
-
- test/dummy/config/database.yml
|
134
132
|
- test/dummy/config/environment.rb
|
135
133
|
- test/dummy/config/routes.rb
|
136
134
|
- test/dummy/config/environments/development.rb
|
@@ -1,22 +0,0 @@
|
|
1
|
-
# SQLite version 3.x
|
2
|
-
# gem install sqlite3-ruby (not necessary on OS X Leopard)
|
3
|
-
development:
|
4
|
-
adapter: sqlite3
|
5
|
-
database: db/development.sqlite3
|
6
|
-
pool: 5
|
7
|
-
timeout: 5000
|
8
|
-
|
9
|
-
# Warning: The database defined as "test" will be erased and
|
10
|
-
# re-generated from your development database when you run "rake".
|
11
|
-
# Do not set this db to the same as development or production.
|
12
|
-
test:
|
13
|
-
adapter: sqlite3
|
14
|
-
database: db/test.sqlite3
|
15
|
-
pool: 5
|
16
|
-
timeout: 5000
|
17
|
-
|
18
|
-
production:
|
19
|
-
adapter: sqlite3
|
20
|
-
database: db/production.sqlite3
|
21
|
-
pool: 5
|
22
|
-
timeout: 5000
|