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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/film_on/services.rb +12 -0
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9efdd8dd4b4cdcca8b5a343771f6df528fdd4380
4
- data.tar.gz: bb6089ae1d5deb0456fc66b27a700ec4b3d2fd70
3
+ metadata.gz: 4174f8ce1370ebefb6c615fac66fc3d58b498a82
4
+ data.tar.gz: ef1756d9e5d8f763e57dc90c007011a932b65caf
5
5
  SHA512:
6
- metadata.gz: eb4467b49dade7576649770380ec9d1c013e937f29200ede41dbab47b3e95ffffb5e87b5298a614470ef796895759ac720df30e12d6442c4f4c486c7c77936d7
7
- data.tar.gz: c3b47e63d510f8f9dfb0d89a44cc29b6d8cdad7f1954fe4d86a9fc189591f577512790b8ee743d9634479bd766229782e216a0a4dcebfddafb5e50dfd4100b6b
6
+ metadata.gz: b42460c154426653f820e04e0c4c8d61d6ad251424d578508e04f2dbc98de9a51917471c977eb5b2887d869060adbe79aa6b81629e7f12f289ae4fd088ae6f0b
7
+ data.tar.gz: bcca8cbc312055c9cafe9663bcc309e80bcdd0096ce3d0cfe64e1827516f57f652a15351b72dc8e06962bc75b0ba9c39a17ba3e153885fe942f5d49b08fa9d24
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: film_on
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stuart Hanscombe