Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
hasumikin committed Sep 20, 2024
1 parent 3742260 commit 455409b
Showing 20 changed files with 161 additions and 152 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ task :install_steep do
end

PICORUBY_DIR = "picoruby"
MRUBYC_DIR = "picoruby/mrbgems/picoruby-mrubyc/repos/mrubyc"
MRUBYC_DIR = "picoruby/mrbgems/picoruby-mrubyc/lib/mrubyc"

desc "Git clone picoruby and mruby/c"
task :install_picoruby => [PICORUBY_DIR, MRUBYC_DIR]
@@ -31,7 +31,7 @@ directory PICORUBY_DIR do
end

directory MRUBYC_DIR do
FileUtils.cd("picoruby/mrbgems/picoruby-mrubyc/repos") do
FileUtils.cd("picoruby/mrbgems/picoruby-mrubyc/lib") do
sh "git clone https://github.com/mrubyc/mrubyc.git"
FileUtils.cd("mrubyc") do
sh "git checkout fix-picoruby-irb"
40 changes: 20 additions & 20 deletions _data/sidebars/picoruby_sidebar.yml
Original file line number Diff line number Diff line change
@@ -290,6 +290,26 @@ entries:
url: "/EAGAINWaitReadable.html"
output: web pdf
type: homepage
- title: module Editor
url: "/Editor.html"
output: web pdf
type: homepage
- title: class Editor::Base
url: "/Editor_Base.html"
output: web pdf
type: homepage
- title: class Editor::Buffer
url: "/Editor_Buffer.html"
output: web pdf
type: homepage
- title: class Editor::Line
url: "/Editor_Line.html"
output: web pdf
type: homepage
- title: class Editor::Screen
url: "/Editor_Screen.html"
output: web pdf
type: homepage
- title: class FAT
url: "/FAT.html"
output: web pdf
@@ -446,26 +466,6 @@ entries:
url: "/Task.html"
output: web pdf
type: homepage
- title: class Terminal
url: "/Terminal.html"
output: web pdf
type: homepage
- title: class Terminal::Base
url: "/Terminal_Base.html"
output: web pdf
type: homepage
- title: class Terminal::Buffer
url: "/Terminal_Buffer.html"
output: web pdf
type: homepage
- title: class Terminal::Editor
url: "/Terminal_Editor.html"
output: web pdf
type: homepage
- title: class Terminal::Line
url: "/Terminal_Line.html"
output: web pdf
type: homepage
- title: class Time
url: "/Time.html"
output: web pdf
2 changes: 1 addition & 1 deletion lib/Gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
source "https://rubygems.org"

gem "steep", "~> 1.6.0"
gem "steep"
gem "rbs"
gem "activesupport"
52 changes: 25 additions & 27 deletions lib/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,50 +1,48 @@
GEM
remote: https://rubygems.org/
specs:
abbrev (0.1.2)
activesupport (7.1.3.2)
activesupport (7.2.1)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
logger (>= 1.4.2)
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
ast (2.4.2)
base64 (0.2.0)
bigdecimal (3.1.6)
concurrent-ruby (1.2.3)
bigdecimal (3.1.8)
concurrent-ruby (1.3.4)
connection_pool (2.4.1)
csv (3.2.8)
drb (2.2.0)
ruby2_keywords
ffi (1.16.3)
csv (3.3.0)
drb (2.2.1)
ffi (1.17.0)
ffi (1.17.0-arm64-darwin)
fileutils (1.7.2)
i18n (1.14.1)
i18n (1.14.6)
concurrent-ruby (~> 1.0)
json (2.7.1)
json (2.7.2)
language_server-protocol (3.17.0.3)
listen (3.8.0)
listen (3.9.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
logger (1.6.0)
minitest (5.22.2)
mutex_m (0.2.0)
parser (3.3.0.5)
logger (1.6.1)
minitest (5.25.1)
parser (3.3.5.0)
ast (~> 2.4.1)
racc
racc (1.7.3)
racc (1.8.1)
rainbow (3.1.1)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
rb-inotify (0.11.1)
ffi (~> 1.0)
rbs (3.4.4)
abbrev
ruby2_keywords (0.0.5)
rbs (3.5.3)
logger
securerandom (0.3.1)
steep (1.6.0)
steep (1.7.1)
activesupport (>= 5.1)
concurrent-ruby (>= 1.1.10)
csv (>= 3.0.9)
@@ -55,7 +53,7 @@ GEM
logger (>= 1.3.0)
parser (>= 3.1)
rainbow (>= 2.2.2, < 4.0)
rbs (>= 3.1.0)
rbs (>= 3.5.0.pre)
securerandom (>= 0.1)
strscan (>= 1.0.0)
terminal-table (>= 2, < 4)
@@ -64,7 +62,7 @@ GEM
unicode-display_width (>= 1.1.1, < 3)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.5.0)
unicode-display_width (2.6.0)

PLATFORMS
arm64-darwin-22
@@ -73,7 +71,7 @@ PLATFORMS
DEPENDENCIES
activesupport
rbs
steep (~> 1.6.0)
steep

BUNDLED WITH
2.5.4
1 change: 1 addition & 0 deletions lib/rbs_doc/steep_config.rb
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@ class SteepConfig
include Steep::Drivers::Utils::DriverHelper
def initialize(steepfile)
@config = load_config(path: Pathname(steepfile))
@config.targets[0].signature_pattern.patterns << "mrbgems/picoruby-mrubyc/sig/"
end
attr_reader :config
end
12 changes: 6 additions & 6 deletions pages/rbs_doc/Array.md
Original file line number Diff line number Diff line change
@@ -7,6 +7,12 @@ sidebar: picoruby_sidebar
permalink: Array.html
folder: rbs_doc
---
## Instance methods (picoruby-editor)
### insert

```ruby
instance.insert(Integer index, *Elem) -> void
```
## Include
[Enumerable](Enumerable.html)
## Singleton methods
@@ -214,9 +220,3 @@ instance.unshift(*Elem obj) -> self
```ruby
instance.|[T] (::Array[T] other_ary) -> ::Array[Elem | T]
```
## Instance methods (picoruby-terminal)
### insert

```ruby
instance.insert(Integer index, *Elem) -> void
```
5 changes: 5 additions & 0 deletions pages/rbs_doc/CYW43.md
Original file line number Diff line number Diff line change
@@ -33,3 +33,8 @@ CYW43.init(?String country, ?force: bool) -> void
```ruby
CYW43.initialized?() -> bool
```
### tcpip_link_status

```ruby
CYW43.tcpip_link_status() -> Integer
```
15 changes: 15 additions & 0 deletions pages/rbs_doc/Editor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: module Editor
keywords: Editor
tags: [module]
summary: Editor module of PicoRuby
sidebar: picoruby_sidebar
permalink: Editor.html
folder: rbs_doc
---
## Singleton methods
### get_screen_size

```ruby
Editor.get_screen_size-> [Integer, Integer]
```
10 changes: 5 additions & 5 deletions pages/rbs_doc/Terminal_Base.md → pages/rbs_doc/Editor_Base.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
title: class Terminal::Base
keywords: Terminal::Base
title: class Editor::Base
keywords: Editor::Base
tags: [class]
summary: Terminal::Base class of PicoRuby
summary: Editor::Base class of PicoRuby
sidebar: picoruby_sidebar
permalink: Terminal_Base.html
permalink: Editor_Base.html
folder: rbs_doc
---
## Singleton methods
### new

```ruby
Terminal::Base.new-> void
Editor::Base.new-> void
```
## Instance methods
### clear
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
title: class Terminal::Buffer
keywords: Terminal::Buffer
title: class Editor::Buffer
keywords: Editor::Buffer
tags: [class]
summary: Terminal::Buffer class of PicoRuby
summary: Editor::Buffer class of PicoRuby
sidebar: picoruby_sidebar
permalink: Terminal_Buffer.html
permalink: Editor_Buffer.html
folder: rbs_doc
---
## Singleton methods
### new

```ruby
Terminal::Buffer.new() -> instance
Editor::Buffer.new() -> instance
```
## Instance methods
### bottom
12 changes: 6 additions & 6 deletions pages/rbs_doc/Terminal_Line.md → pages/rbs_doc/Editor_Line.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
title: class Terminal::Line
keywords: Terminal::Line
title: class Editor::Line
keywords: Editor::Line
tags: [class]
summary: Terminal::Line class of PicoRuby
summary: Editor::Line class of PicoRuby
sidebar: picoruby_sidebar
permalink: Terminal_Line.html
permalink: Editor_Line.html
folder: rbs_doc
---
## Singleton methods
### new

```ruby
Terminal::Line.new-> void
Editor::Line.new-> void
```
## Instance methods
### feed_at_bottom
@@ -47,5 +47,5 @@ instance.save_history-> Integer
### start

```ruby
instance.start() { (self, Terminal::Buffer, Integer) -> void } -> void
instance.start() { (self, Editor::Buffer, Integer) -> void } -> void
```
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
title: class Terminal::Editor
keywords: Terminal::Editor
title: class Editor::Screen
keywords: Editor::Screen
tags: [class]
summary: Terminal::Editor class of PicoRuby
summary: Editor::Screen class of PicoRuby
sidebar: picoruby_sidebar
permalink: Terminal_Editor.html
permalink: Editor_Screen.html
folder: rbs_doc
---
## Singleton methods
### new

```ruby
Terminal::Editor.new-> void
Editor::Screen.new-> void
```
## Instance methods
### calculate_visual_cursor
@@ -52,7 +52,7 @@ instance.show_cursor-> untyped
### start

```ruby
instance.start() { (self, Terminal::Buffer, Integer) -> void } -> void
instance.start() { (self, Editor::Buffer, Integer) -> void } -> void
```
## Attr accessors
### footer_height (accessor)
2 changes: 1 addition & 1 deletion pages/rbs_doc/FAT_File.md
Original file line number Diff line number Diff line change
@@ -52,7 +52,7 @@ instance.puts(*String) -> nil
### read

```ruby
instance.read(?Integer size) -> String
instance.read(?Integer size) -> String?
```
### seek

72 changes: 36 additions & 36 deletions pages/rbs_doc/IO.md
Original file line number Diff line number Diff line change
@@ -7,91 +7,91 @@ sidebar: picoruby_sidebar
permalink: IO.html
folder: rbs_doc
---
## Singleton methods
### clear_screen
## Instance methods
### <<

```ruby
IO.clear_screen() -> nil
instance.<<(untyped) -> self
```
### cooked!
### flush

```ruby
IO.cooked!-> self
instance.flush-> self
```
### get_cursor_position
### getch

```ruby
IO.get_cursor_position-> ([Integer, Integer])
instance.getch-> String
```
### get_nonblock
### iflush

```ruby
IO.get_nonblock(Integer) -> String?
instance.iflush-> self
```
### getc
### noecho

```ruby
IO.getc-> String?
instance.noecho() { (untyped) -> untyped } -> untyped
```
### getch
### raw

```ruby
IO.getch-> String
instance.raw() { (untyped) -> untyped } -> untyped
```
### raw
## Instance methods
### read_nonblock

```ruby
IO.raw() { () -> untyped } -> untyped
instance.read_nonblock(Integer maxlen) -> String
```
### raw!
## Singleton methods
### clear_screen

```ruby
IO.raw!-> self
IO.clear_screen() -> nil
```
### read_nonblock
### cooked!

```ruby
IO.read_nonblock(Integer) -> String
IO.cooked!-> self
```
### wait_terminal
### get_cursor_position

```ruby
IO.wait_terminal(?timeout: Integer|Float|nil) -> bool
IO.get_cursor_position-> ([Integer, Integer])
```
## Instance methods
### <<
### get_nonblock

```ruby
instance.<<(untyped) -> self
IO.get_nonblock(Integer) -> String?
```
### flush
### getc

```ruby
instance.flush-> self
IO.getc-> String?
```
### getch

```ruby
instance.getch-> String
IO.getch-> String
```
### iflush
### raw

```ruby
instance.iflush-> self
IO.raw() { () -> untyped } -> untyped
```
### noecho
### raw!

```ruby
instance.noecho() { (untyped) -> untyped } -> untyped
IO.raw!-> self
```
### raw
### read_nonblock

```ruby
instance.raw() { (untyped) -> untyped } -> untyped
IO.read_nonblock(Integer) -> String
```
## Instance methods
### read_nonblock
### wait_terminal

```ruby
instance.read_nonblock(Integer maxlen) -> String
IO.wait_terminal(?timeout: Integer|Float|nil) -> bool
```
22 changes: 11 additions & 11 deletions pages/rbs_doc/Object.md
Original file line number Diff line number Diff line change
@@ -7,6 +7,17 @@ sidebar: picoruby_sidebar
permalink: Object.html
folder: rbs_doc
---
## Instance methods (picoruby-require)
### load

```ruby
instance.load(String path) -> bool
```
### require

```ruby
instance.require(String name) -> bool
```
## Instance methods
### <=>

@@ -124,14 +135,3 @@ instance.sprintf(String format, *untyped args) -> String
```ruby
instance.to_s() -> String
```
## Instance methods (picoruby-require)
### load

```ruby
instance.load(String path) -> bool
```
### require

```ruby
instance.require(String name) -> bool
```
15 changes: 0 additions & 15 deletions pages/rbs_doc/Terminal.md

This file was deleted.

2 changes: 1 addition & 1 deletion pages/rbs_doc/UART.md
Original file line number Diff line number Diff line change
@@ -59,7 +59,7 @@ instance.flush() -> self
### gets

```ruby
instance.gets() -> String
instance.gets() -> String?
```
### line_ending=

2 changes: 1 addition & 1 deletion pages/rbs_doc/Vim.md
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ Vim.new(String filepath) -> instance
### exec_command

```ruby
instance.exec_command(Terminal::Buffer buffer) -> (:quit | String | nil)
instance.exec_command(Editor::Buffer buffer) -> (:quit | String | nil)
```
### save_file

5 changes: 5 additions & 0 deletions pages/rbs_doc/Watchdog.md
Original file line number Diff line number Diff line change
@@ -13,6 +13,11 @@ folder: rbs_doc
```ruby
Watchdog.caused_reboot?() -> bool
```
### disable

```ruby
Watchdog.disable() -> 0
```
### enable

```ruby
18 changes: 9 additions & 9 deletions pages/rbs_doc/type_alias.md
Original file line number Diff line number Diff line change
@@ -5,6 +5,15 @@ permalink: /type_alias.html
folder: rbs_doc
---

## httpreturn
```rbs
{
status: Integer,
headers: Hash[String, String],
body: String
}
```

## array
```rbs
Array[T]
@@ -45,12 +54,3 @@ string
String
```

## httpreturn
```rbs
{
status: Integer,
headers: Hash[String, String],
body: String
}
```

0 comments on commit 455409b

Please sign in to comment.