arduino_firmata 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/History.txt +5 -0
- data/README.rdoc +2 -0
- data/bin/arduino_firmata +10 -0
- data/lib/arduino_firmata.rb +1 -1
- data/lib/arduino_firmata/main.rb +1 -1
- data/test/test_classmethods.rb +9 -0
- metadata +96 -108
data/History.txt
CHANGED
data/README.rdoc
CHANGED
data/bin/arduino_firmata
CHANGED
@@ -3,9 +3,11 @@ require 'rubygems'
|
|
3
3
|
$:.unshift File.expand_path '../lib', File.dirname(__FILE__)
|
4
4
|
require 'arduino_firmata'
|
5
5
|
require 'args_parser'
|
6
|
+
require 'timeout'
|
6
7
|
|
7
8
|
parser = ArgsParser.parse ARGV, :style => :equal do
|
8
9
|
arg :arduino, 'arduino port', :default => ArduinoFirmata.list[0]
|
10
|
+
arg :list, 'arduino list'
|
9
11
|
arg :version, 'show version', :alias => :v
|
10
12
|
arg :help, 'show help', :alias => :h
|
11
13
|
end
|
@@ -15,6 +17,14 @@ if parser.has_option? :version
|
|
15
17
|
exit
|
16
18
|
end
|
17
19
|
|
20
|
+
if parser.has_option? :list
|
21
|
+
ArduinoFirmata.list.each_with_index do |i, index|
|
22
|
+
print "#{index == 0 ? '*' : ' '} "
|
23
|
+
puts i
|
24
|
+
end
|
25
|
+
exit
|
26
|
+
end
|
27
|
+
|
18
28
|
if parser.has_option? :help or parser.argv.empty?
|
19
29
|
STDERR.puts parser.help
|
20
30
|
STDERR.puts
|
data/lib/arduino_firmata.rb
CHANGED
data/lib/arduino_firmata/main.rb
CHANGED
metadata
CHANGED
@@ -1,128 +1,119 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: arduino_firmata
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.5
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
- 4
|
10
|
-
version: 0.1.4
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Sho Hashimoto
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
12
|
+
date: 2012-11-12 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: serialport
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
23
17
|
none: false
|
24
|
-
requirements:
|
25
|
-
- -
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
hash: 19
|
28
|
-
segments:
|
29
|
-
- 1
|
30
|
-
- 1
|
31
|
-
- 0
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
32
21
|
version: 1.1.0
|
33
22
|
- - <
|
34
|
-
- !ruby/object:Gem::Version
|
35
|
-
hash: 15
|
36
|
-
segments:
|
37
|
-
- 2
|
38
|
-
- 0
|
39
|
-
- 0
|
23
|
+
- !ruby/object:Gem::Version
|
40
24
|
version: 2.0.0
|
41
25
|
type: :runtime
|
42
|
-
name: serialport
|
43
|
-
version_requirements: *id001
|
44
|
-
- !ruby/object:Gem::Dependency
|
45
26
|
prerelease: false
|
46
|
-
|
27
|
+
version_requirements: !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 1.1.0
|
33
|
+
- - <
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: 2.0.0
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: args_parser
|
38
|
+
requirement: !ruby/object:Gem::Requirement
|
47
39
|
none: false
|
48
|
-
requirements:
|
49
|
-
- -
|
50
|
-
- !ruby/object:Gem::Version
|
51
|
-
hash: 31
|
52
|
-
segments:
|
53
|
-
- 0
|
54
|
-
- 1
|
55
|
-
- 2
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
56
43
|
version: 0.1.2
|
57
44
|
- - <
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
hash: 23
|
60
|
-
segments:
|
61
|
-
- 1
|
62
|
-
- 0
|
63
|
-
- 0
|
45
|
+
- !ruby/object:Gem::Version
|
64
46
|
version: 1.0.0
|
65
47
|
type: :runtime
|
66
|
-
name: args_parser
|
67
|
-
version_requirements: *id002
|
68
|
-
- !ruby/object:Gem::Dependency
|
69
48
|
prerelease: false
|
70
|
-
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.1.2
|
55
|
+
- - <
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: 1.0.0
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: rdoc
|
60
|
+
requirement: !ruby/object:Gem::Requirement
|
71
61
|
none: false
|
72
|
-
requirements:
|
62
|
+
requirements:
|
73
63
|
- - ~>
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
|
76
|
-
segments:
|
77
|
-
- 3
|
78
|
-
- 10
|
79
|
-
version: "3.10"
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '3.10'
|
80
66
|
type: :development
|
81
|
-
name: rdoc
|
82
|
-
version_requirements: *id003
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
67
|
prerelease: false
|
85
|
-
|
68
|
+
version_requirements: !ruby/object:Gem::Requirement
|
69
|
+
none: false
|
70
|
+
requirements:
|
71
|
+
- - ~>
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '3.10'
|
74
|
+
- !ruby/object:Gem::Dependency
|
75
|
+
name: newgem
|
76
|
+
requirement: !ruby/object:Gem::Requirement
|
86
77
|
none: false
|
87
|
-
requirements:
|
88
|
-
- -
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
hash: 5
|
91
|
-
segments:
|
92
|
-
- 1
|
93
|
-
- 5
|
94
|
-
- 3
|
78
|
+
requirements:
|
79
|
+
- - ! '>='
|
80
|
+
- !ruby/object:Gem::Version
|
95
81
|
version: 1.5.3
|
96
82
|
type: :development
|
97
|
-
name: newgem
|
98
|
-
version_requirements: *id004
|
99
|
-
- !ruby/object:Gem::Dependency
|
100
83
|
prerelease: false
|
101
|
-
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
102
85
|
none: false
|
103
|
-
requirements:
|
86
|
+
requirements:
|
87
|
+
- - ! '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 1.5.3
|
90
|
+
- !ruby/object:Gem::Dependency
|
91
|
+
name: hoe
|
92
|
+
requirement: !ruby/object:Gem::Requirement
|
93
|
+
none: false
|
94
|
+
requirements:
|
104
95
|
- - ~>
|
105
|
-
- !ruby/object:Gem::Version
|
106
|
-
|
107
|
-
segments:
|
108
|
-
- 3
|
109
|
-
- 1
|
110
|
-
version: "3.1"
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '3.1'
|
111
98
|
type: :development
|
112
|
-
|
113
|
-
version_requirements:
|
99
|
+
prerelease: false
|
100
|
+
version_requirements: !ruby/object:Gem::Requirement
|
101
|
+
none: false
|
102
|
+
requirements:
|
103
|
+
- - ~>
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '3.1'
|
114
106
|
description: Arduino Firmata protocol (http://firmata.org) implementation on Ruby.
|
115
|
-
email:
|
107
|
+
email:
|
116
108
|
- hashimoto@shokai.org
|
117
|
-
executables:
|
109
|
+
executables:
|
118
110
|
- arduino_firmata
|
119
111
|
extensions: []
|
120
|
-
|
121
|
-
extra_rdoc_files:
|
112
|
+
extra_rdoc_files:
|
122
113
|
- History.txt
|
123
114
|
- Manifest.txt
|
124
115
|
- README.rdoc
|
125
|
-
files:
|
116
|
+
files:
|
126
117
|
- .gitignore
|
127
118
|
- Gemfile
|
128
119
|
- Gemfile.lock
|
@@ -152,42 +143,39 @@ files:
|
|
152
143
|
- test/test_arduino_firmata.rb
|
153
144
|
- test/test_block.rb
|
154
145
|
- test/test_helper.rb
|
146
|
+
- test/test_classmethods.rb
|
155
147
|
- .gemtest
|
156
148
|
homepage: http://shokai.github.com/arduino_firmata
|
157
149
|
licenses: []
|
158
|
-
|
159
150
|
post_install_message:
|
160
|
-
rdoc_options:
|
151
|
+
rdoc_options:
|
161
152
|
- --main
|
162
153
|
- README.rdoc
|
163
|
-
require_paths:
|
154
|
+
require_paths:
|
164
155
|
- lib
|
165
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
156
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
166
157
|
none: false
|
167
|
-
requirements:
|
168
|
-
- -
|
169
|
-
- !ruby/object:Gem::Version
|
170
|
-
|
171
|
-
segments:
|
158
|
+
requirements:
|
159
|
+
- - ! '>='
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: '0'
|
162
|
+
segments:
|
172
163
|
- 0
|
173
|
-
|
174
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
164
|
+
hash: -1874626047901362687
|
165
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
175
166
|
none: false
|
176
|
-
requirements:
|
177
|
-
- -
|
178
|
-
- !ruby/object:Gem::Version
|
179
|
-
|
180
|
-
segments:
|
181
|
-
- 0
|
182
|
-
version: "0"
|
167
|
+
requirements:
|
168
|
+
- - ! '>='
|
169
|
+
- !ruby/object:Gem::Version
|
170
|
+
version: '0'
|
183
171
|
requirements: []
|
184
|
-
|
185
172
|
rubyforge_project: arduino_firmata
|
186
173
|
rubygems_version: 1.8.24
|
187
174
|
signing_key:
|
188
175
|
specification_version: 3
|
189
176
|
summary: Arduino Firmata protocol (http://firmata.org) implementation on Ruby.
|
190
|
-
test_files:
|
177
|
+
test_files:
|
191
178
|
- test/test_arduino_firmata.rb
|
192
179
|
- test/test_block.rb
|
180
|
+
- test/test_classmethods.rb
|
193
181
|
- test/test_helper.rb
|