Skip to content

Commit

Permalink
upgrade picoruby
Browse files Browse the repository at this point in the history
  • Loading branch information
hasumikin committed Jan 23, 2025
1 parent 56144ed commit 71093b2
Show file tree
Hide file tree
Showing 8 changed files with 115 additions and 4 deletions.
22 changes: 19 additions & 3 deletions _data/sidebars/picoruby_sidebar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ entries:
product: PicoRuby
version: master
folders:
- title:
- title:
output: pdf
type: frontmatter
folderitems:
- title:
- title:
url: "/titlepage.html"
output: pdf
type: frontmatter
- title:
- title:
url: "/tocpage.html"
output: pdf
type: frontmatter
Expand Down Expand Up @@ -486,6 +486,22 @@ entries:
url: "/MbedTLS_HMAC.html"
output: web pdf
type: homepage
- title: module MbedTLS::PKey
url: "/MbedTLS_PKey.html"
output: web pdf
type: homepage
- title: class MbedTLS::PKey::PKeyBase
url: "/MbedTLS_PKey_PKeyBase.html"
output: web pdf
type: homepage
- title: class MbedTLS::PKey::PKeyError
url: "/MbedTLS_PKey_PKeyError.html"
output: web pdf
type: homepage
- title: class MbedTLS::PKey::RSA
url: "/MbedTLS_PKey_RSA.html"
output: web pdf
type: homepage
- title: class Module
url: "/Module.html"
output: web pdf
Expand Down
10 changes: 10 additions & 0 deletions pages/rbs_doc/Array.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,16 @@ instance.sort() { (Elem a, Elem b) -> ::Integer } -> ::Array[Elem]
instance.sort!() -> self
instance.sort!() { (Elem a, Elem b) -> ::Integer } -> self
```
### uniq

```ruby
instance.uniq() -> ::Array[Elem]
```
### uniq!

```ruby
instance.uniq!() -> self
```
### unshift

```ruby
Expand Down
5 changes: 5 additions & 0 deletions pages/rbs_doc/File.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ File.file?(string) -> bool
```ruby
File.join(*String parts) -> String
```
### load_file

```ruby
File.load_file(string fd_or_path, ?Integer length, ?String outbuf) -> String?
```
### new

```ruby
Expand Down
2 changes: 1 addition & 1 deletion pages/rbs_doc/MbedTLS_Digest.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ folder: rbs_doc
## Type aliases
### algorithm_t
```ruby
:sha256
:none | :sha256
```
## Singleton methods
### new
Expand Down
9 changes: 9 additions & 0 deletions pages/rbs_doc/MbedTLS_PKey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: module MbedTLS::PKey
keywords: MbedTLS::PKey
tags: [module]
summary: MbedTLS::PKey module of PicoRuby
sidebar: picoruby_sidebar
permalink: MbedTLS_PKey.html
folder: rbs_doc
---
20 changes: 20 additions & 0 deletions pages/rbs_doc/MbedTLS_PKey_PKeyBase.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
title: class MbedTLS::PKey::PKeyBase
keywords: MbedTLS::PKey::PKeyBase
tags: [class]
summary: MbedTLS::PKey::PKeyBase class of PicoRuby
sidebar: picoruby_sidebar
permalink: MbedTLS_PKey_PKeyBase.html
folder: rbs_doc
---
## Instance methods
### sign

```ruby
instance.sign(MbedTLS::Digest digest, String input) -> String
```
### verify

```ruby
instance.verify(MbedTLS::Digest digest, String input, String signature) -> bool
```
9 changes: 9 additions & 0 deletions pages/rbs_doc/MbedTLS_PKey_PKeyError.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: class MbedTLS::PKey::PKeyError
keywords: MbedTLS::PKey::PKeyError
tags: [class]
summary: MbedTLS::PKey::PKeyError class of PicoRuby
sidebar: picoruby_sidebar
permalink: MbedTLS_PKey_PKeyError.html
folder: rbs_doc
---
42 changes: 42 additions & 0 deletions pages/rbs_doc/MbedTLS_PKey_RSA.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
title: class MbedTLS::PKey::RSA
keywords: MbedTLS::PKey::RSA
tags: [class]
summary: MbedTLS::PKey::RSA class of PicoRuby
sidebar: picoruby_sidebar
permalink: MbedTLS_PKey_RSA.html
folder: rbs_doc
---
## Singleton methods
### generate

```ruby
MbedTLS::PKey::RSA.generate(Integer bits, ?Integer exponent) -> MbedTLS::PKey::RSA
```
### new

```ruby
MbedTLS::PKey::RSA.new(String key) -> MbedTLS::PKey::RSA
MbedTLS::PKey::RSA.new(Integer bits, ?Integer exponent) -> MbedTLS::PKey::RSA
```
## Instance methods
### private?

```ruby
instance.private?-> bool
```
### public?

```ruby
instance.public?-> bool
```
### public_key

```ruby
instance.public_key-> MbedTLS::PKey::PKeyBase
```
### to_pem

```ruby
instance.to_pem-> String
```

0 comments on commit 71093b2

Please sign in to comment.