isaac_toolbelt 0.1.1 → 0.1.2
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.
- checksums.yaml +4 -4
- data/lib/isaac_toolbelt.rb +7 -5
- data/lib/isaac_toolbelt/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a3cd41e1f3660878d8bfe206f73372605af30c3
|
4
|
+
data.tar.gz: 6d3800305608e29d31d7d8715f2cd2950cb441e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: baf6d879abd057b1f05e0be8d273856bfba8038e0bfb6058aa8734c41a88ad5fb8437fd919ce30b565ce9958fb0456b050aa6a4a729e07934031fc93d373fc7e
|
7
|
+
data.tar.gz: c527a6997f2ca7b8ed5f0535f27530cb1d999fcb672a6f7311c570cbe47fda4ddefe2a89aea7f5fcb473ba8c477c28549a2102a1e98ff67abb5021abde1eb832
|
data/lib/isaac_toolbelt.rb
CHANGED
@@ -131,9 +131,9 @@ module IsaacToolbelt
|
|
131
131
|
end
|
132
132
|
end
|
133
133
|
|
134
|
-
def waitfor
|
134
|
+
def waitfor(message=nil)
|
135
135
|
until system('ping -c 1 192.168.2.15 > /dev/null 2>&1') do
|
136
|
-
puts 'waiting board...'
|
136
|
+
puts message || 'waiting board...'
|
137
137
|
sleep 1
|
138
138
|
end
|
139
139
|
end
|
@@ -290,6 +290,8 @@ module IsaacToolbelt
|
|
290
290
|
|
291
291
|
# wait until rebooted
|
292
292
|
reboot
|
293
|
+
|
294
|
+
puts 'Your device is ready to develop!'
|
293
295
|
end
|
294
296
|
|
295
297
|
desc 'info', 'Show device status'
|
@@ -395,7 +397,7 @@ module IsaacToolbelt
|
|
395
397
|
ifwi_dfu_file = File.join(base_dir, 'edison_ifwi-dbg')
|
396
398
|
var_dir = File.join(base_dir, 'u-boot-envs')
|
397
399
|
|
398
|
-
dfu_wait
|
400
|
+
dfu_wait('Connect your device via USB!')
|
399
401
|
|
400
402
|
puts "Flashing IFWI"
|
401
403
|
%w(00 01 02 03 04 05 06).each do |ifwi_number|
|
@@ -456,11 +458,11 @@ module IsaacToolbelt
|
|
456
458
|
}.count > 0
|
457
459
|
end
|
458
460
|
|
459
|
-
def dfu_wait
|
461
|
+
def dfu_wait(message=nil)
|
460
462
|
usb_vid = '8087'
|
461
463
|
usb_pid = '0a99'
|
462
464
|
until dfu_device_counts(usb_vid, usb_pid) > 0
|
463
|
-
puts 'waiting dfu...'
|
465
|
+
puts message || 'waiting dfu...'
|
464
466
|
sleep 1
|
465
467
|
end
|
466
468
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isaac_toolbelt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- xshell inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|