bravtroller 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -5
- data/bravtroller.gemspec +4 -3
- data/lib/bravtroller/remote.rb +9 -2
- data/lib/bravtroller/version.rb +1 -1
- metadata +19 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29ad1e4a6956ad23f43d5c3b00cb0b7000833d39
|
4
|
+
data.tar.gz: e2fea513152d2ae3e67c8b45dc92fc16cc20b4d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21880af7bc343cb5e71070e2274d015e617e6a3821342a2ed3fe45e203d7ec4d2d9e04ba6b4c6d20a6b92bd554f5df4fba943b07f147ba19e6ee09eaf242aaab
|
7
|
+
data.tar.gz: 8dbf7d29f49c7a8b0af6fa6e2407c89b021996dc84909486b31a767b54f539d41535221b4102d0a086f20a97418d62fc35fabe1b8f9b1c10651e52119d1c29a9
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
bravtroller (0.1.
|
4
|
+
bravtroller (0.1.2)
|
5
5
|
easy_upnp
|
6
6
|
|
7
7
|
GEM
|
@@ -12,7 +12,7 @@ GEM
|
|
12
12
|
nokogiri
|
13
13
|
builder (3.2.2)
|
14
14
|
diff-lcs (1.2.5)
|
15
|
-
easy_upnp (0.1.
|
15
|
+
easy_upnp (0.1.6)
|
16
16
|
nokogiri (~> 1.6.6.2)
|
17
17
|
nori (~> 2.6.0)
|
18
18
|
rake
|
@@ -59,6 +59,3 @@ DEPENDENCIES
|
|
59
59
|
bravtroller!
|
60
60
|
rake
|
61
61
|
rspec (>= 3.0.0)
|
62
|
-
|
63
|
-
BUNDLED WITH
|
64
|
-
1.10.5
|
data/bravtroller.gemspec
CHANGED
@@ -7,15 +7,16 @@ Gem::Specification.new do |gem|
|
|
7
7
|
gem.version = Bravtroller::VERSION
|
8
8
|
|
9
9
|
gem.summary = "Controller for the Bravia KDL-50W700B"
|
10
|
+
gem.description = "Controller for the Bravia KDL-50W700B supporting WOL and IRCC (Remote Control emulation). Likely supports other Sony devivces that expose the same services"
|
10
11
|
|
11
12
|
gem.authors = ['Christopher Mullins']
|
12
13
|
gem.email = 'chris@sidoh.org'
|
13
14
|
gem.homepage = 'http://github.com/sidoh/bravtroller'
|
15
|
+
gem.license = 'MIT'
|
14
16
|
|
15
|
-
gem.add_dependency('easy_upnp')
|
17
|
+
gem.add_dependency('easy_upnp', '~> 0.1.6')
|
16
18
|
|
17
|
-
gem.add_development_dependency('
|
18
|
-
gem.add_development_dependency('rake')
|
19
|
+
gem.add_development_dependency('rake', '~> 10.4')
|
19
20
|
|
20
21
|
ignores = File.readlines(".gitignore").grep(/\S+/).map(&:chomp)
|
21
22
|
dotfiles = %w[.gitignore]
|
data/lib/bravtroller/remote.rb
CHANGED
@@ -49,11 +49,18 @@ module Bravtroller
|
|
49
49
|
@ircc_client_factory = ircc_client_factory
|
50
50
|
end
|
51
51
|
|
52
|
-
def power_on
|
52
|
+
def power_on(hw_addr = nil)
|
53
|
+
hw_addr = @bravia_client.hw_addr if hw_addr.nil?
|
54
|
+
|
55
|
+
if hw_addr.nil?
|
56
|
+
raise RuntimeError.new "Couldn't determine hw_addr for TV host from ARP. " <<
|
57
|
+
'Specify it manually in the call to power_on.'
|
58
|
+
end
|
59
|
+
|
53
60
|
addr = ['<broadcast>', 9]
|
54
61
|
sock = UDPSocket.new
|
55
62
|
sock.setsockopt(Socket::SOL_SOCKET, Socket::SO_BROADCAST, true)
|
56
|
-
packet_data = (([255] * 6) + (
|
63
|
+
packet_data = (([255] * 6) + (hw_addr.split(':').map(&:hex) * 16)).pack('C*')
|
57
64
|
sock.send(packet_data, 0, addr[0], addr[1])
|
58
65
|
|
59
66
|
true
|
data/lib/bravtroller/version.rb
CHANGED
metadata
CHANGED
@@ -1,64 +1,51 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bravtroller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Mullins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: easy_upnp
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.1.6
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rspec
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - '>='
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 3.0.0
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - '>='
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 3.0.0
|
26
|
+
version: 0.1.6
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: rake
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
44
30
|
requirements:
|
45
|
-
- -
|
31
|
+
- - "~>"
|
46
32
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
33
|
+
version: '10.4'
|
48
34
|
type: :development
|
49
35
|
prerelease: false
|
50
36
|
version_requirements: !ruby/object:Gem::Requirement
|
51
37
|
requirements:
|
52
|
-
- -
|
38
|
+
- - "~>"
|
53
39
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
55
|
-
description:
|
40
|
+
version: '10.4'
|
41
|
+
description: Controller for the Bravia KDL-50W700B supporting WOL and IRCC (Remote
|
42
|
+
Control emulation). Likely supports other Sony devivces that expose the same services
|
56
43
|
email: chris@sidoh.org
|
57
44
|
executables: []
|
58
45
|
extensions: []
|
59
46
|
extra_rdoc_files: []
|
60
47
|
files:
|
61
|
-
- .gitignore
|
48
|
+
- ".gitignore"
|
62
49
|
- Gemfile
|
63
50
|
- Gemfile.lock
|
64
51
|
- LICENSE
|
@@ -71,7 +58,8 @@ files:
|
|
71
58
|
- lib/bravtroller/remote.rb
|
72
59
|
- lib/bravtroller/version.rb
|
73
60
|
homepage: http://github.com/sidoh/bravtroller
|
74
|
-
licenses:
|
61
|
+
licenses:
|
62
|
+
- MIT
|
75
63
|
metadata: {}
|
76
64
|
post_install_message:
|
77
65
|
rdoc_options: []
|
@@ -79,18 +67,19 @@ require_paths:
|
|
79
67
|
- lib
|
80
68
|
required_ruby_version: !ruby/object:Gem::Requirement
|
81
69
|
requirements:
|
82
|
-
- -
|
70
|
+
- - ">="
|
83
71
|
- !ruby/object:Gem::Version
|
84
72
|
version: '0'
|
85
73
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
74
|
requirements:
|
87
|
-
- -
|
75
|
+
- - ">="
|
88
76
|
- !ruby/object:Gem::Version
|
89
77
|
version: '0'
|
90
78
|
requirements: []
|
91
79
|
rubyforge_project:
|
92
|
-
rubygems_version: 2.
|
80
|
+
rubygems_version: 2.4.4
|
93
81
|
signing_key:
|
94
82
|
specification_version: 4
|
95
83
|
summary: Controller for the Bravia KDL-50W700B
|
96
84
|
test_files: []
|
85
|
+
has_rdoc:
|