arduino_firmata 0.1.2 → 0.1.3

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/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.1.3 2012-11-3
2
+
3
+ * add arduino_firmata command
4
+
1
5
  === 0.1.2 2012-11-3
2
6
 
3
7
  * close SerialPort when catch Signals (SIGHUP,SIGINT,SIGTERM,SIGKILL)
data/Manifest.txt CHANGED
@@ -5,6 +5,7 @@ History.txt
5
5
  Manifest.txt
6
6
  README.rdoc
7
7
  Rakefile
8
+ bin/arduino_firmata
8
9
  lib/arduino_firmata.rb
9
10
  lib/arduino_firmata/arduino.rb
10
11
  lib/arduino_firmata/const.rb
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env ruby
2
+ require 'rubygems'
3
+ $:.unshift File.expand_path '../lib', File.dirname(__FILE__)
4
+ require 'arduino_firmata'
5
+
6
+ if ARGV.size < 2
7
+ STDERR.puts "arduino_firmata /dev/tty.usb-devicename COMMAND"
8
+ STDERR.puts "arduino_firmata /dev/tty.usb-devicename \"analog_read 1\""
9
+ STDERR.puts "arduino_firmata /dev/tty.usb-devicename \"servo_write 11, 135\""
10
+ exit 1
11
+ end
12
+
13
+ begin
14
+ arduino = ArduinoFirmata.connect ARGV.shift
15
+ rescue StandardError, Timeout::Error => e
16
+ STDERR.puts e
17
+ exit 1
18
+ end
19
+ print arduino.instance_eval ARGV.join(' ')
20
+ sleep 1
@@ -9,5 +9,5 @@ require 'arduino_firmata/arduino'
9
9
  require 'arduino_firmata/event'
10
10
 
11
11
  module ArduinoFirmata
12
- VERSION = '0.1.2'
12
+ VERSION = '0.1.3'
13
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arduino_firmata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -84,7 +84,8 @@ dependencies:
84
84
  description: Arduino Firmata protocol (http://firmata.org) implementation on Ruby.
85
85
  email:
86
86
  - hashimoto@shokai.org
87
- executables: []
87
+ executables:
88
+ - arduino_firmata
88
89
  extensions: []
89
90
  extra_rdoc_files:
90
91
  - History.txt
@@ -98,6 +99,7 @@ files:
98
99
  - Manifest.txt
99
100
  - README.rdoc
100
101
  - Rakefile
102
+ - bin/arduino_firmata
101
103
  - lib/arduino_firmata.rb
102
104
  - lib/arduino_firmata/arduino.rb
103
105
  - lib/arduino_firmata/const.rb
@@ -136,7 +138,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
136
138
  version: '0'
137
139
  segments:
138
140
  - 0
139
- hash: 2028658490510817249
141
+ hash: 1103452187959335271
140
142
  required_rubygems_version: !ruby/object:Gem::Requirement
141
143
  none: false
142
144
  requirements: