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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9fdbaf9f2cea41fac97e73b5c7e1e79eb8ddeb41
4
- data.tar.gz: bf264063ec7ad04aec0eafb85a8e9c1e7db07e47
3
+ metadata.gz: a31914b40e86640c8a84b1f115f60bfe709428ef
4
+ data.tar.gz: b9ab2bd007b4ae2a7245b96c362cbee635f03df5
5
5
  SHA512:
6
- metadata.gz: 84ca6017e737810930347f39e1b6caccb200143f8ed8632c7f3a96573318357a7a33f120aaab55efb7bd8e8ca43cfafa80db96acef466f7f40c25ef95b73d27c
7
- data.tar.gz: 0f4eedf2a5f58733f5e8bf20da746499be405fa4619c21484652ce4f18eefe2d0b4fd70b53ac906aaf407deb2cbde58a20dc98b23ab4d8a0ad4b0eda6773302c
6
+ metadata.gz: 6225c9ecff28b4c9807d18cf67d2f2d1f7ff15c6c0a2b5ed5c275c2b29bf0380cbd43551290c3edeb139716ce7dfd9cfcf84ee7247db53701d5a5ee6a5e94447
7
+ data.tar.gz: 32bb8610736ae4feb5c8afc80dfa2621e9140c9210e85dc177b2ac80710acd469025baa86ec9b2e63359824a87d0cd05ae71dc92f5a7afb535d8d62bd4763402
data/.gitignore CHANGED
@@ -1,3 +1,6 @@
1
+ *~
2
+ *#*
3
+ .DS_Store
1
4
  *.gem
2
5
  *.rbc
3
6
  .bundle
@@ -1,3 +1,7 @@
1
+ === 0.1.1 2013-10-02
2
+
3
+ * show devices list : arduino_ir_remote --list
4
+
1
5
  === 0.1.0 2013-08-17
2
6
 
3
7
  * bugfix Ir-DATA file path
@@ -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"
@@ -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]\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
@@ -1,3 +1,3 @@
1
1
  module ArduinoIrRemote
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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-08-17 00:00:00.000000000 Z
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: '0'
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: '0'
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.0.5
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