film_on 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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/film_on/services.rb +12 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4174f8ce1370ebefb6c615fac66fc3d58b498a82
|
|
4
|
+
data.tar.gz: ef1756d9e5d8f763e57dc90c007011a932b65caf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b42460c154426653f820e04e0c4c8d61d6ad251424d578508e04f2dbc98de9a51917471c977eb5b2887d869060adbe79aa6b81629e7f12f289ae4fd088ae6f0b
|
|
7
|
+
data.tar.gz: bcca8cbc312055c9cafe9663bcc309e80bcdd0096ce3d0cfe64e1827516f57f652a15351b72dc8e06962bc75b0ba9c39a17ba3e153885fe942f5d49b08fa9d24
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.4
|
data/lib/film_on/services.rb
CHANGED
|
@@ -9,6 +9,10 @@ module FilmOn
|
|
|
9
9
|
@channel[id] = json
|
|
10
10
|
return json
|
|
11
11
|
end
|
|
12
|
+
convert_channel(id, json)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def convert_channel(id, json)
|
|
12
16
|
hash = JSON.parse(json)
|
|
13
17
|
@channel[id] = FilmOn::Channel.new(hash)
|
|
14
18
|
end
|
|
@@ -20,6 +24,10 @@ module FilmOn
|
|
|
20
24
|
@channels = json
|
|
21
25
|
return json
|
|
22
26
|
end
|
|
27
|
+
convert_channels(json)
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def convert_channels(json)
|
|
23
31
|
hash = JSON.parse(json)
|
|
24
32
|
@channels = hash.map{|ch| FilmOn::Channel.new(ch)}
|
|
25
33
|
end
|
|
@@ -31,6 +39,10 @@ module FilmOn
|
|
|
31
39
|
@groups = json
|
|
32
40
|
return json
|
|
33
41
|
end
|
|
42
|
+
convert_groups(json)
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
def convert_groups(json)
|
|
34
46
|
hash = JSON.parse(json)
|
|
35
47
|
@groups = hash.map{|gr| FilmOn::Group.new(gr)}
|
|
36
48
|
end
|