rbs 0.12.1 → 0.12.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f566c8a8b046574b66d406b1d049d982867b31e551e3faf85a3afde6ed85916
4
- data.tar.gz: 0aa60fd17edfe999f4c9d8460d0aaed46a24424cdde490ac767ee6b54d192d26
3
+ metadata.gz: 1738d77c19c9d170537831e8a3d7bb5cdaa7dfa0baf37a16d8b8c0589ce3636d
4
+ data.tar.gz: 8a7dbb478d8817b5c5eb860507a3a0dabec2a5c340e4e09a311350f20a764a43
5
5
  SHA512:
6
- metadata.gz: 997754b8a0f57c831357f08e37ef93219bf75c60d1ce270232989c7c485a42c42fc5f2fdf88ecf002e2d78b56ccdccdd60ec437dc0e0a6616d15a492cf77af23
7
- data.tar.gz: f1fe9f1e6a33b259e4e8eb407bcd6019a24b40eed427992658ff728d5cad9d68b26054058de7840caa589dc796dc44f10003823ff8752d28827b26f27a44ca76
6
+ metadata.gz: 17f8b1e8e0ddbd584d7f325201de367dd52884c8bca168dd8b14c9464017bcd6db0f4959f72d5d1eebee2235b5fd97f9d46f5dbb87f696b2aeeb6e7a46cb051a
7
+ data.tar.gz: f250146315eb49e81c92407b52f62d9d3d1b2a05904c1bf7552f1523eb0a8c52108a2f74184d1e85b6d86948d485c47dc1a695536ac5f0534db5870bd488fb69
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 0.12.2 (2020-09-17)
6
+
7
+ * Minor signature update for `pty`
8
+ * Fix `PTY` stdlib test
9
+
5
10
  ## 0.12.1 (2020-09-16)
6
11
 
7
12
  This version is to improve Ruby 3 testing compatibility. Nothing changed for users.
@@ -1,3 +1,3 @@
1
1
  module RBS
2
- VERSION = "0.12.1"
2
+ VERSION = "0.12.2"
3
3
  end
@@ -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
- # `command` and `command_line` are the full commands to run, given a String. Any
79
- # additional `arguments` will be passed to the command.
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 ]) -> untyped } -> untyped
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 ]) -> untyped } -> untyped
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.1
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-15 00:00:00.000000000 Z
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.0.rc.1
233
+ rubygems_version: 3.1.2
234
234
  signing_key:
235
235
  specification_version: 4
236
236
  summary: Type signature for Ruby.