dblugeon-rb-eyetv 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/program.rb +23 -7
- data/rb-eyetv.gemspec +2 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
data/lib/program.rb
CHANGED
@@ -3,7 +3,9 @@ module EyeTV
|
|
3
3
|
#This class represents an instnace of schedule Program on EyeTV
|
4
4
|
class Program
|
5
5
|
|
6
|
-
@@repeats_possible = [
|
6
|
+
@@repeats_possible = [:never,:none,:daily,:weekdays,:weekends]
|
7
|
+
@@qualities_possible = [:standard, :high]
|
8
|
+
@@input_sources_possible = [:tuner_input, :composite_video_input, :S_video_input]
|
7
9
|
|
8
10
|
def initialize(program_instance)
|
9
11
|
@program_ref = program_instance
|
@@ -18,7 +20,7 @@ module EyeTV
|
|
18
20
|
end
|
19
21
|
|
20
22
|
def start_time=(new_start_time)
|
21
|
-
raise "Must be an datetime objet" if
|
23
|
+
raise "Must be an datetime objet" if not new_start_time.is_a?(Time)
|
22
24
|
@program_ref.start_time.set(new_start_time)
|
23
25
|
end
|
24
26
|
|
@@ -54,12 +56,21 @@ module EyeTV
|
|
54
56
|
@program_ref.channel_number.set(new_channel_number)
|
55
57
|
end
|
56
58
|
|
59
|
+
def self.input_sources_possible
|
60
|
+
@@input_sources_possible
|
61
|
+
end
|
62
|
+
|
57
63
|
def input_source
|
58
64
|
@program_ref.input_source.get
|
59
65
|
end
|
60
66
|
|
61
67
|
def input_source=(new_input_source)
|
62
|
-
|
68
|
+
raise "bad value for input_source" if not @@input_sources_possible.include?(new_input_source.to_sym)
|
69
|
+
@program_ref.input_source.set(new_input_source.to_sym)
|
70
|
+
end
|
71
|
+
|
72
|
+
def self.repeats_possible
|
73
|
+
@@repeats_possible
|
63
74
|
end
|
64
75
|
|
65
76
|
def repeats
|
@@ -67,16 +78,21 @@ module EyeTV
|
|
67
78
|
end
|
68
79
|
|
69
80
|
def repeats=(new_repeats)
|
70
|
-
raise "bad value for repeats" if not @@repeats_possible.include?(new_repeats)
|
71
|
-
@program_ref.repeats.set(new_repeats)
|
81
|
+
raise "bad value for repeats" if not @@repeats_possible.include?(new_repeats.to_sym)
|
82
|
+
@program_ref.repeats.set(new_repeats.to_sym)
|
83
|
+
end
|
84
|
+
|
85
|
+
def self.qualities_possible
|
86
|
+
@@qualities_possible
|
72
87
|
end
|
73
88
|
|
74
89
|
def quality
|
75
90
|
@program_ref.quality.get
|
76
91
|
end
|
77
92
|
|
78
|
-
def quality(new_quality)
|
79
|
-
|
93
|
+
def quality=(new_quality)
|
94
|
+
raise "bad value for quality" if not @@qualities_possible.include?(new_quality.to_sym)
|
95
|
+
@program_ref.quality.set(new_quality.to_sym)
|
80
96
|
end
|
81
97
|
|
82
98
|
def enabled?
|
data/rb-eyetv.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rb-eyetv}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["dblugeon"]
|
12
|
-
s.date = %q{2009-09-
|
12
|
+
s.date = %q{2009-09-07}
|
13
13
|
s.description = %q{
|
14
14
|
This library provides ruby classes to control the EyeTV Application.
|
15
15
|
You can launch the EyeTV apllication, explore recordings, channels or
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dblugeon-rb-eyetv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dblugeon
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-09-
|
12
|
+
date: 2009-09-07 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|