beaglebone_usb 0.0.4 → 0.0.5
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 +7 -0
- data/lib/beaglebone_usb/version.rb +1 -1
- data/vendor/assets/javascripts/beaglebone_usb.js +8 -17
- metadata +12 -18
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a7c3be529458e8621993302fb812e1845952bba9
|
4
|
+
data.tar.gz: ec404ccb25565a161138590b7a3e2b306be340ea
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5354f30f6fc0f43a11b3d938f85d93469062fa1fcfb5bf1c53dc0e6838cb253a111c185b82f9b36b6c17147ffdfd970a6292a640de682b00530a4405ab14afa8
|
7
|
+
data.tar.gz: 99eb42cd4f8189a0bd75dfd6a2df2eb662b04369edc0633c9bb621720b9b4a568bfa18c80c53c6757c6a617b0c0ab98656e6a47e645a6a6ec3f7781959c78fed
|
@@ -136,7 +136,7 @@ function setTargetAddress(address, handlers) {
|
|
136
136
|
}
|
137
137
|
|
138
138
|
if(typeof _bonescript == 'undefined') {
|
139
|
-
|
139
|
+
connect_failed();
|
140
140
|
}
|
141
141
|
}
|
142
142
|
|
@@ -342,18 +342,15 @@ function setTargetAddress(address, handlers) {
|
|
342
342
|
var timeout = typeof timeoutparam !== 'undefined' ? timeoutparam : 5000;
|
343
343
|
|
344
344
|
var thread_fn = "/var/lib/cloud9/autorun/"+thread_name+".js";
|
345
|
-
var thread_out = "/var/lib/cloud9/"+thread_name+"_out
|
345
|
+
var thread_out = "/var/lib/cloud9/"+thread_name+"_out";
|
346
346
|
|
347
|
-
|
348
|
-
|
349
|
-
b.writeTextFile(thread_fn, "var ownfilename = '"+thread_fn+"'; var outfilename = '"+thread_out+"';\nvar exec = require ('child_process').exec; exec ('"+command+" >> '+outfilename+'; rm '+ownfilename, function(error, stdout, stderr) { } ); ", function(x) {
|
347
|
+
b.writeTextFile(thread_fn, "var ownfilename = '"+thread_fn+"';\nvar outfilename = '"+thread_out+"';\nvar exec = require ('child_process').exec;\nexec('"+command+" > '+outfilename,\nfunction(error, stdout, stderr) {\nexec('mv '+outfilename+' '+outfilename+'.done; rm '+ownfilename);\n}\n); ", function(x) {
|
350
348
|
|
351
349
|
interval = setInterval(function(){
|
352
350
|
|
353
|
-
exports.Remote.prototype.fileExists(thread_out, function(x) {
|
354
|
-
|
355
|
-
exports.Remote.prototype.removeFile(thread_out, function() {
|
351
|
+
exports.Remote.prototype.fileExists(thread_out+".done", function(x) {
|
356
352
|
|
353
|
+
exports.Remote.prototype.removeFile(thread_out+".done");
|
357
354
|
|
358
355
|
clearInterval(interval);
|
359
356
|
|
@@ -362,12 +359,9 @@ function setTargetAddress(address, handlers) {
|
|
362
359
|
callback(x);
|
363
360
|
|
364
361
|
|
365
|
-
});
|
366
|
-
|
367
|
-
|
368
362
|
}, function(){
|
369
363
|
|
370
|
-
i = i +
|
364
|
+
i = i + 1000;
|
371
365
|
|
372
366
|
if (i >= timeout) {
|
373
367
|
|
@@ -377,14 +371,11 @@ function setTargetAddress(address, handlers) {
|
|
377
371
|
|
378
372
|
}
|
379
373
|
|
380
|
-
})
|
381
|
-
|
382
|
-
|
383
|
-
}, 500);
|
374
|
+
});
|
384
375
|
|
385
376
|
|
377
|
+
}, 1000);
|
386
378
|
|
387
|
-
});
|
388
379
|
|
389
380
|
|
390
381
|
});
|
metadata
CHANGED
@@ -1,46 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beaglebone_usb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.5
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- cubuslab
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2014-
|
11
|
+
date: 2014-12-02 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: bundler
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '1.3'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- - ~>
|
24
|
+
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '1.3'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rake
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ">="
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ">="
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
description: encapsulates beaglebone communication via USB
|
@@ -50,7 +45,7 @@ executables: []
|
|
50
45
|
extensions: []
|
51
46
|
extra_rdoc_files: []
|
52
47
|
files:
|
53
|
-
- .gitignore
|
48
|
+
- ".gitignore"
|
54
49
|
- Gemfile
|
55
50
|
- LICENSE.txt
|
56
51
|
- README.md
|
@@ -63,27 +58,26 @@ files:
|
|
63
58
|
homepage: ''
|
64
59
|
licenses:
|
65
60
|
- ''
|
61
|
+
metadata: {}
|
66
62
|
post_install_message:
|
67
63
|
rdoc_options: []
|
68
64
|
require_paths:
|
69
65
|
- lib
|
70
66
|
required_ruby_version: !ruby/object:Gem::Requirement
|
71
|
-
none: false
|
72
67
|
requirements:
|
73
|
-
- -
|
68
|
+
- - ">="
|
74
69
|
- !ruby/object:Gem::Version
|
75
70
|
version: '0'
|
76
71
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
|
-
none: false
|
78
72
|
requirements:
|
79
|
-
- -
|
73
|
+
- - ">="
|
80
74
|
- !ruby/object:Gem::Version
|
81
75
|
version: '0'
|
82
76
|
requirements: []
|
83
77
|
rubyforge_project:
|
84
|
-
rubygems_version:
|
78
|
+
rubygems_version: 2.2.2
|
85
79
|
signing_key:
|
86
|
-
specification_version:
|
80
|
+
specification_version: 4
|
87
81
|
summary: detect a beaglebone which is connected to your local USB port and execute
|
88
82
|
remote commands
|
89
83
|
test_files: []
|