gravis-floobs 0.1.1 → 0.1.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.rdoc +6 -0
- data/VERSION.yml +1 -1
- data/lib/floobs/channel.rb +7 -2
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -21,5 +21,11 @@ Add the gem plugin to your Rails project by adding the following to your @enviro
|
|
21
21
|
You don't need an API key for simple queries.
|
22
22
|
|
23
23
|
=== Floobs::Clip
|
24
|
+
|
25
|
+
Floobs::Clip.find_all_by_user_name("gravis")
|
26
|
+
=> [{"name"=>"test Phil", "ownerName"=>"gravis", "category"=>0, "language"=>"fr", "tags"=>["test"], "smallThumbnailUrl"=>"http://static.floobs.com/floobs.com-mediathumbs/8444_small.png", "durationSeconds"=>5.92, "url"=>"http://floobs.com/mediastream.service?clip=8444", "type"=>"flv", "id"=>8444, "description"=>"test Phil", "bigThumbnailUrl"=>"http://static.floobs.com/floobs.com-mediathumbs/8444_big.png", "created"=>1236028267000, "totalViews"=>6}]
|
27
|
+
|
28
|
+
There's an issue with tag searching, I'll take a look asap.
|
29
|
+
|
24
30
|
=== Floobs::Playlist
|
25
31
|
=== Floobs::Channel
|
data/VERSION.yml
CHANGED
data/lib/floobs/channel.rb
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
module Floobs
|
2
2
|
class Channel < Floobs::Base
|
3
3
|
|
4
|
-
def self.find(channel_id,live
|
5
|
-
|
4
|
+
def self.find(channel_id,live)
|
5
|
+
if live
|
6
|
+
query = {:id => channel_id, :live => live}
|
7
|
+
else
|
8
|
+
query = {:id => channel_id}
|
9
|
+
end
|
10
|
+
get("/channels.service", query)
|
6
11
|
end
|
7
12
|
|
8
13
|
def self.find_all_by_user_name(username,live=true)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gravis-floobs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philippe Lafoucriere
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-03-
|
12
|
+
date: 2009-03-12 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|