ffi-hdhomerun 0.1.e8573162d6c7 → 0.2.aa238f1f25e6
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.txt +70 -0
- data/ffi-hdhomerun.gemspec +1 -1
- data/lib/ffi-hdhomerun.rb +1 -1
- metadata +5 -4
data/README.txt
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
ffi-hdhomerun
|
2
|
+
==========
|
3
|
+
http://bitbucket.org/dmlary/ffi-hdhomerun
|
4
|
+
|
5
|
+
Description
|
6
|
+
-----------
|
7
|
+
Ruby-FFI bindings and wrappers for libhdhomerun.
|
8
|
+
|
9
|
+
Features
|
10
|
+
--------
|
11
|
+
Allows the user to capture video from an HDHomeRun device within Ruby.
|
12
|
+
|
13
|
+
What's missing
|
14
|
+
--------------
|
15
|
+
* Discovery
|
16
|
+
* Documentation
|
17
|
+
|
18
|
+
Usage
|
19
|
+
-----
|
20
|
+
require 'ffi-hdhomerun'
|
21
|
+
|
22
|
+
# Allocate a tuner
|
23
|
+
tuner = HDHomeRun::Tuner.new(:id => 'FFFFFFFF', :tuner => 0)
|
24
|
+
|
25
|
+
# Set the channel and optionally the program
|
26
|
+
tuner.channel = 20
|
27
|
+
tuner.program = 3
|
28
|
+
|
29
|
+
# Capture some data
|
30
|
+
File.open("capture.ts", "w") do |file|
|
31
|
+
puts "Capturing (^C to stop):"
|
32
|
+
tuner.capture do |buf|
|
33
|
+
file.write(buf)
|
34
|
+
STDOUT.write(buf.size > 0 ? "." : "?")
|
35
|
+
STDOUT.flush
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
Requirements
|
40
|
+
------------
|
41
|
+
* libhdhomerun >= 1.0
|
42
|
+
* ffi >= 1.0
|
43
|
+
|
44
|
+
Copyright
|
45
|
+
---------
|
46
|
+
Copyright (c) 2011, David M. Lary
|
47
|
+
All rights reserved.
|
48
|
+
|
49
|
+
License
|
50
|
+
-------
|
51
|
+
Redistribution and use in source and binary forms, with or without
|
52
|
+
modification, are permitted provided that the following conditions are met:
|
53
|
+
* Redistributions of source code must retain the above copyright
|
54
|
+
notice, this list of conditions and the following disclaimer.
|
55
|
+
* Redistributions in binary form must reproduce the above copyright
|
56
|
+
notice, this list of conditions and the following disclaimer in the
|
57
|
+
documentation and/or other materials provided with the distribution.
|
58
|
+
* The name of the author may not be used to endorse or promote products
|
59
|
+
derived from this software without specific prior written permission.
|
60
|
+
|
61
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
62
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
63
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
64
|
+
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
|
65
|
+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
66
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
67
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
68
|
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
69
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
70
|
+
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/ffi-hdhomerun.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
|
|
8
8
|
`hg id -i`.chomp.sub("+", "m") ]
|
9
9
|
s.authors = ["David M. Lary"]
|
10
10
|
s.email = ["dmlary@gmail.com"]
|
11
|
-
s.homepage = "http://
|
11
|
+
s.homepage = "http://bitbucket.org/dmlary/ffi-hdhomerun"
|
12
12
|
s.summary = %q{Ruby FFI bindings for libhdhomerun}
|
13
13
|
s.description = %q{Ruby FFI bindings for libhdhomerun}
|
14
14
|
|
data/lib/ffi-hdhomerun.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ffi-hdhomerun
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.aa238f1f25e6
|
5
5
|
prerelease: 4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-09-07 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ffi
|
16
|
-
requirement: &
|
16
|
+
requirement: &18999740 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *18999740
|
25
25
|
description: Ruby FFI bindings for libhdhomerun
|
26
26
|
email:
|
27
27
|
- dmlary@gmail.com
|
@@ -31,11 +31,12 @@ extra_rdoc_files: []
|
|
31
31
|
files:
|
32
32
|
- .hgignore
|
33
33
|
- Gemfile
|
34
|
+
- README.txt
|
34
35
|
- Rakefile
|
35
36
|
- ffi-hdhomerun.gemspec
|
36
37
|
- lib/ffi-hdhomerun.rb
|
37
38
|
- lib/ffi/hdhomerun.rb
|
38
|
-
homepage: http://
|
39
|
+
homepage: http://bitbucket.org/dmlary/ffi-hdhomerun
|
39
40
|
licenses: []
|
40
41
|
post_install_message:
|
41
42
|
rdoc_options: []
|