artoo-arduino 1.4.0 → 1.4.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: df323ff6084a8627ef08d1e7f9727bfe13fd57fa
4
- data.tar.gz: 703ab872c2168b0ee363e80a9818e825b9e07ed9
3
+ metadata.gz: cc032976383aac9fc633e0d97d13e0de36e36709
4
+ data.tar.gz: 025d42555f25ace515f6c78f2648282f4d7c4119
5
5
  SHA512:
6
- metadata.gz: 28c8424fefa3c43964630ee2b607e8cc424db8eff21b30e36956a4f499368db538a402b978ca52d69a3acfc292194ba62772f7fb2267b0cb81efe77b040f608e
7
- data.tar.gz: 956dafa7f592caac0dcede4156ec1291f6460215481b5d3eae9321070845dd3a4dbedc53267d34fc0e464cdffe6b4a9c3c5e0c0f9fd2705b848a59a6bee02ba3
6
+ metadata.gz: 3c43b02b6ce8430db74737a71525bf27a3a62b457d3e12ab131ac47bf63fc8e48664d707e971b878176a07081ee8180a51f4e7a87c2f760564b7e3efc3636cb8
7
+ data.tar.gz: 2d58f47a05b165037af96a41abfa9b260d7a791d87808dbfa3641bd011cdd11290fe348f175b0bbcd71a7a5afe7d559dddc2708f0612f3f991198280b2c3cae9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- artoo-arduino (1.4.0)
4
+ artoo-arduino (1.4.1)
5
5
  artoo (>= 1.6.0)
6
6
  artoo-gpio
7
7
  artoo-i2c
@@ -10,14 +10,14 @@ PATH
10
10
  GEM
11
11
  remote: http://rubygems.org/
12
12
  specs:
13
- artoo (1.6.0)
13
+ artoo (1.6.1)
14
14
  celluloid (~> 0.15.0)
15
15
  celluloid-io (~> 0.15.0)
16
16
  multi_json (~> 1.6)
17
17
  pry (~> 0.9)
18
18
  rake
19
19
  reel (~> 0.4.0)
20
- robeaux (~> 0.0.3)
20
+ robeaux (~> 0.0.4)
21
21
  thor (~> 0.18.1)
22
22
  artoo-gpio (0.4.0)
23
23
  artoo (>= 1.6.0)
@@ -54,7 +54,7 @@ GEM
54
54
  http (>= 0.5.0)
55
55
  http_parser.rb (>= 0.6.0.beta.2)
56
56
  websocket_parser (>= 0.1.4)
57
- robeaux (0.0.3)
57
+ robeaux (0.0.4)
58
58
  slop (3.4.7)
59
59
  thor (0.18.1)
60
60
  timers (1.1.0)
@@ -5,15 +5,14 @@ module Artoo
5
5
  class Firmata < Commands
6
6
  package_name "firmata"
7
7
 
8
- desc "upload", "Uploads firmata to the arduino using avrdude"
9
- option :serial_port, aliases: '-p', default: "/dev/ttyACM0", desc: "serial port address e.g. /dev/ttyACM0"
10
- def upload
8
+ desc "upload [ADDRESS]", "Uploads firmata to the arduino using avrdude"
9
+ def upload(address)
11
10
  part = '-patmega328p'
12
11
  programmer = '-carduino'
13
12
  baudrate = '-b115200'
14
13
  hex_path = File.join(File.expand_path(File.dirname(__FILE__)), "StandardFirmata.cpp.hex")
15
14
  hex_file = "-Uflash:w:#{ hex_path }:i"
16
- port = "-P#{ options[:serial_port] }"
15
+ port = (address[/[\/\:]/].nil?) ? "-P/dev/#{ address }" : "-P#{ address }"
17
16
  case os
18
17
  when :linux
19
18
  run("avrdude #{ part } #{ programmer } #{ port } #{ baudrate } -D #{ hex_file }")
@@ -1,5 +1,5 @@
1
1
  module Artoo
2
2
  module Arduino
3
- VERSION = '1.4.0'
3
+ VERSION = '1.4.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: artoo-arduino
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ron Evans
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-02-07 00:00:00.000000000 Z
14
+ date: 2014-02-20 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: artoo
@@ -172,8 +172,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
172
  version: '0'
173
173
  requirements: []
174
174
  rubyforge_project: artoo-arduino
175
- rubygems_version: 2.2.1
175
+ rubygems_version: 2.2.2
176
176
  signing_key:
177
177
  specification_version: 4
178
178
  summary: Artoo adaptor and driver for Arduino
179
179
  test_files: []
180
+ has_rdoc: