arduino_ir_remote 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/History.txt +4 -0
- data/arduino_ir_remote.gemspec +1 -1
- data/bin/arduino_ir_remote +8 -3
- data/lib/arduino_ir_remote/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a31914b40e86640c8a84b1f115f60bfe709428ef
|
4
|
+
data.tar.gz: b9ab2bd007b4ae2a7245b96c362cbee635f03df5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6225c9ecff28b4c9807d18cf67d2f2d1f7ff15c6c0a2b5ed5c275c2b29bf0380cbd43551290c3edeb139716ce7dfd9cfcf84ee7247db53701d5a5ee6a5e94447
|
7
|
+
data.tar.gz: 32bb8610736ae4feb5c8afc80dfa2621e9140c9210e85dc177b2ac80710acd469025baa86ec9b2e63359824a87d0cd05ae71dc92f5a7afb535d8d62bd4763402
|
data/.gitignore
CHANGED
data/History.txt
CHANGED
data/arduino_ir_remote.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
22
|
spec.add_dependency "serialport"
|
23
|
-
spec.add_dependency "args_parser"
|
23
|
+
spec.add_dependency "args_parser", ">= 0.2.0"
|
24
24
|
spec.add_dependency "event_emitter"
|
25
25
|
|
26
26
|
spec.add_development_dependency "bundler", "~> 1.3"
|
data/bin/arduino_ir_remote
CHANGED
@@ -7,7 +7,7 @@ args = ArgsParser.parse ARGV do
|
|
7
7
|
arg :arduino, "arduino port", :default => ArduinoIrRemote.list[0]
|
8
8
|
arg :read, "read IR Data", :alias => :r
|
9
9
|
arg :write, "write IR Data", :alias => :w
|
10
|
-
arg :list, "show list of IR Data"
|
10
|
+
arg :list, "show list of IR Data and Devices"
|
11
11
|
arg :temp, "show temperature", :alias => :t
|
12
12
|
arg :version, "show version", :alias => :v
|
13
13
|
arg :help, "show help", :alias => :h
|
@@ -34,8 +34,13 @@ end
|
|
34
34
|
|
35
35
|
if args.has_option? :list
|
36
36
|
puts "~> #{ArduinoIrRemote::DATA_FILE}"
|
37
|
+
puts "== Devices"
|
38
|
+
ArduinoIrRemote.list.each do |device|
|
39
|
+
puts " #{device}"
|
40
|
+
end
|
41
|
+
puts "== Data"
|
37
42
|
ArduinoIrRemote::DATA.each do |k,v|
|
38
|
-
puts %Q{"#{k}" : #{v.size} bytes}
|
43
|
+
puts %Q{ "#{k}" : #{v.size} bytes}
|
39
44
|
end
|
40
45
|
exit
|
41
46
|
end
|
@@ -67,7 +72,7 @@ if args.has_param? :read
|
|
67
72
|
p data
|
68
73
|
if ArduinoIrRemote::DATA.has_key? args[:read]
|
69
74
|
puts %Q{overwrite "#{args[:read]}" ?}
|
70
|
-
print "[Y/n]
|
75
|
+
print "[Y/n] > "
|
71
76
|
exit 1 if STDIN.gets.strip.downcase =~ /n/
|
72
77
|
end
|
73
78
|
ArduinoIrRemote::DATA[ args[:read] ] = data
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arduino_ir_remote
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sho Hashimoto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: serialport
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 0.2.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 0.2.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: event_emitter
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
144
|
version: '0'
|
145
145
|
requirements: []
|
146
146
|
rubyforge_project:
|
147
|
-
rubygems_version: 2.
|
147
|
+
rubygems_version: 2.1.5
|
148
148
|
signing_key:
|
149
149
|
specification_version: 4
|
150
150
|
summary: This Rubygem provides a wrapper for IR-Learning-Remote that has been built
|