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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rubyino.rb +4 -4
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bc5ec67f8a21a1c3438927c2409343965f4cb9289e3700b7f45c5cff9046ca85
4
- data.tar.gz: f83d7c2867bf9113f4a8f8f1f259acce759cf9819d4a801bef788d90ae352788
3
+ metadata.gz: 7ff9f7fadfe910752ba9ede07c6ea6debb9f9c2b115f37991b8f127bb18e1bf1
4
+ data.tar.gz: 305de24afcc888085243233d151af7132f79fc3ca3b7cc59c85bee0b59846100
5
5
  SHA512:
6
- metadata.gz: 2d5da972f768b856695379b036a179a2d5187f944c050504ad0a47f773961d2ea7b62934482027b76b732a1960cbe98b2e03d08cfdd2637f98492ccb47d3ddcc
7
- data.tar.gz: 1bc893181418401066b41b0f209d8408d0536f9ffdb68236b7250e006ee8877ebd0e1b8841331281619f3af0e46f747d3b927209f8fb5859bc33a8fadcea51ae
6
+ metadata.gz: 8ce95f949eecdbe0cce4a79f6ef4042c4bc815455e975d32b50cb41686b5e3d25746daa5ef48af82401f05c36046b35a6d164dd5954dbde488e0886281e466e7
7
+ data.tar.gz: 4ccbac5d47c2835ccfeaa0d064eb44d42582c51fb3f7d564c1b2b953c3eb341902443b3db9ffa1ac6a175e63ecada39c8aef7c9cc8fbb70a33b43675c99d88d0
data/lib/rubyino.rb CHANGED
@@ -1,4 +1,4 @@
1
- class rubyino
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.puts "delay(#{num});"
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.2
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
- - nima_cpp
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://github.com/nimacpp
20
+ homepage: https://rubygems.org/gems/hola
21
21
  licenses:
22
- - OML
22
+ - MIT
23
23
  metadata:
24
24
  source_code_uri: https://github.com/nimacpp/Rubyino
25
25
  post_install_message: