rubyino 0.0.2 → 0.1.0
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/rubyino.rb +4 -4
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ff9f7fadfe910752ba9ede07c6ea6debb9f9c2b115f37991b8f127bb18e1bf1
|
4
|
+
data.tar.gz: 305de24afcc888085243233d151af7132f79fc3ca3b7cc59c85bee0b59846100
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ce95f949eecdbe0cce4a79f6ef4042c4bc815455e975d32b50cb41686b5e3d25746daa5ef48af82401f05c36046b35a6d164dd5954dbde488e0886281e466e7
|
7
|
+
data.tar.gz: 4ccbac5d47c2835ccfeaa0d064eb44d42582c51fb3f7d564c1b2b953c3eb341902443b3db9ffa1ac6a175e63ecada39c8aef7c9cc8fbb70a33b43675c99d88d0
|
data/lib/rubyino.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
class
|
1
|
+
class Rubyino
|
2
2
|
@@lines = [
|
3
3
|
"#include \"Keyboard.h\"\n",
|
4
4
|
"void typeKey(uint8_t key)
|
@@ -16,7 +16,7 @@ Keyboard.begin();"];
|
|
16
16
|
@@path = path+".ino"
|
17
17
|
end
|
18
18
|
def puts(text)
|
19
|
-
@@lines.push "Keyboard.print(#{text});"
|
19
|
+
@@lines.push "Keyboard.print(\"#{text}\");"
|
20
20
|
end
|
21
21
|
def enter
|
22
22
|
@@line.push "typeKey(KEY_RETURN);"
|
@@ -26,7 +26,7 @@ Keyboard.begin();"];
|
|
26
26
|
end
|
27
27
|
def select(array)
|
28
28
|
for i in array
|
29
|
-
@@lines.push "Keyboard.press(#{i});"
|
29
|
+
@@lines.push "Keyboard.press('#{i}');"
|
30
30
|
end
|
31
31
|
@@lines.push "Keyboard.releaseAll();"
|
32
32
|
end
|
@@ -34,7 +34,7 @@ Keyboard.begin();"];
|
|
34
34
|
return " #{@@path}||#{@@lines}"
|
35
35
|
end
|
36
36
|
def delay(num)
|
37
|
-
@@lines.
|
37
|
+
@@lines.push "delay(#{num});"
|
38
38
|
end
|
39
39
|
def ter
|
40
40
|
@@lines.push " // Ending stream \nKeyboard.end();\n}\n/* Unused endless loop */\nvoid loop() {}"
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubyino
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- nima cpp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
@@ -17,9 +17,9 @@ extensions: []
|
|
17
17
|
extra_rdoc_files: []
|
18
18
|
files:
|
19
19
|
- lib/rubyino.rb
|
20
|
-
homepage: https://
|
20
|
+
homepage: https://rubygems.org/gems/hola
|
21
21
|
licenses:
|
22
|
-
-
|
22
|
+
- MIT
|
23
23
|
metadata:
|
24
24
|
source_code_uri: https://github.com/nimacpp/Rubyino
|
25
25
|
post_install_message:
|