rbs 0.12.1 → 0.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/rbs/version.rb +1 -1
- data/stdlib/pty/pty.rbs +5 -29
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1738d77c19c9d170537831e8a3d7bb5cdaa7dfa0baf37a16d8b8c0589ce3636d
|
4
|
+
data.tar.gz: 8a7dbb478d8817b5c5eb860507a3a0dabec2a5c340e4e09a311350f20a764a43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17f8b1e8e0ddbd584d7f325201de367dd52884c8bca168dd8b14c9464017bcd6db0f4959f72d5d1eebee2235b5fd97f9d46f5dbb87f696b2aeeb6e7a46cb051a
|
7
|
+
data.tar.gz: f250146315eb49e81c92407b52f62d9d3d1b2a05904c1bf7552f1523eb0a8c52108a2f74184d1e85b6d86948d485c47dc1a695536ac5f0534db5870bd488fb69
|
data/CHANGELOG.md
CHANGED
data/lib/rbs/version.rb
CHANGED
data/stdlib/pty/pty.rbs
CHANGED
@@ -65,34 +65,10 @@ module PTY
|
|
65
65
|
# `raise`
|
66
66
|
# : If `true` and the process identified by `pid` is no longer alive a
|
67
67
|
# PTY::ChildExited is raised.
|
68
|
-
def self.check: (Integer pid) -> (Process::Status | nil)
|
69
|
-
| (Integer pid, FalseClass raise) -> (Process::Status | nil)
|
70
|
-
| (Integer pid, TrueClass raise) -> nil
|
71
|
-
|
72
|
-
# Spawns the specified command on a newly allocated pty. You can also use the
|
73
|
-
# alias ::getpty.
|
74
|
-
#
|
75
|
-
# The command's controlling tty is set to the slave device of the pty and its
|
76
|
-
# standard input/output/error is redirected to the slave device.
|
77
68
|
#
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
# ### Return values
|
82
|
-
#
|
83
|
-
# In the non-block form this returns an array of size three, `[r, w, pid]`.
|
84
|
-
#
|
85
|
-
# In the block form these same values will be yielded to the block:
|
86
|
-
#
|
87
|
-
# `r`
|
88
|
-
# : A readable IO that contains the command's standard output and standard
|
89
|
-
# error
|
90
|
-
# `w`
|
91
|
-
# : A writable IO that is the command's standard input
|
92
|
-
# `pid`
|
93
|
-
# : The process identifier for the command.
|
94
|
-
def self.getpty: (*String command) -> [ IO, IO, Integer ]
|
95
|
-
| (*String command) { ([ IO ,IO , Integer ]) -> untyped } -> untyped
|
69
|
+
def self.check: (Integer pid, ?bool raise) -> Process::Status?
|
70
|
+
|
71
|
+
alias self.getpty self.spawn
|
96
72
|
|
97
73
|
# Allocates a pty (pseudo-terminal).
|
98
74
|
#
|
@@ -130,7 +106,7 @@ module PTY
|
|
130
106
|
# ...
|
131
107
|
# }
|
132
108
|
def self.open: () -> [ IO, File ]
|
133
|
-
| () { ([ IO , File ]) ->
|
109
|
+
| [A] () { ([ IO , File ]) -> A } -> A
|
134
110
|
|
135
111
|
# Spawns the specified command on a newly allocated pty. You can also use the
|
136
112
|
# alias ::getpty.
|
@@ -155,5 +131,5 @@ module PTY
|
|
155
131
|
# `pid`
|
156
132
|
# : The process identifier for the command.
|
157
133
|
def self.spawn: (*String command) -> [ IO, IO, Integer ]
|
158
|
-
| (*String command) {([ IO , IO , Integer ]) ->
|
134
|
+
| (*String command) {([ IO , IO , Integer ]) -> void } -> void
|
159
135
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Soutaro Matsumoto
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: RBS is the language for type signatures for Ruby and standard library
|
14
14
|
definitions.
|
@@ -230,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
230
230
|
- !ruby/object:Gem::Version
|
231
231
|
version: '0'
|
232
232
|
requirements: []
|
233
|
-
rubygems_version: 3.2
|
233
|
+
rubygems_version: 3.1.2
|
234
234
|
signing_key:
|
235
235
|
specification_version: 4
|
236
236
|
summary: Type signature for Ruby.
|