Skip to content

Commit 2250961

Browse files
committed
Version 3.2.0.pre.1
1 parent 82339d7 commit 2250961

File tree

4 files changed

+114
-2
lines changed

4 files changed

+114
-2
lines changed

CHANGELOG.md

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,74 @@
22

33
## master
44

5+
## 3.2.0.pre.1 (2023-08-18)
6+
7+
### Signature updates
8+
9+
* observable ([#1424](https://github.com/ruby/rbs/pull/1424))
10+
* uri ([#1371](https://github.com/ruby/rbs/pull/1371))
11+
* zlib ([#1389](https://github.com/ruby/rbs/pull/1389))
12+
* `IO` ([#1399](https://github.com/ruby/rbs/pull/1399))
13+
* `::DATA` ([#1395](https://github.com/ruby/rbs/pull/1395))
14+
* `$DEBUG` ([#1427](https://github.com/ruby/rbs/pull/1427))
15+
* `ConditionVariable#wait` ([#1397](https://github.com/ruby/rbs/pull/1397))
16+
* `Kernel::exit!` ([#1396](https://github.com/ruby/rbs/pull/1396))
17+
* `Kernel#exec` ([#1368](https://github.com/ruby/rbs/pull/1368))
18+
* `Kernel#p`, `Kernel#pp` ([#1342](https://github.com/ruby/rbs/pull/1342))
19+
* `Logger.new` ([#1423](https://github.com/ruby/rbs/pull/1423))
20+
* `Module` ([#1321](https://github.com/ruby/rbs/pull/1321))
21+
* `Object#define_singleton_method` ([#1431](https://github.com/ruby/rbs/pull/1431))
22+
* `Object#enum_for` ([#1327](https://github.com/ruby/rbs/pull/1327))
23+
* `StringIO#truncate` ([#1425](https://github.com/ruby/rbs/pull/1425))
24+
* `Thread#raise` ([#1426](https://github.com/ruby/rbs/pull/1426))
25+
* `Time#round`, `Time#floor`, `Time#ceil` ([#1337](https://github.com/ruby/rbs/pull/1337))
26+
* Remove `TRUE`, `FALSE`, and `NIL` constants ([#1432](https://github.com/ruby/rbs/pull/1432))
27+
* Updated builtin.rbs's interfaces ([#1429](https://github.com/ruby/rbs/pull/1429))
28+
* Convert `| nil` to `?` in global_variables.rbs ([#1430](https://github.com/ruby/rbs/pull/1430))
29+
* Remove references to the transient heap ([#1374](https://github.com/ruby/rbs/pull/1374))
30+
31+
### Library changes
32+
33+
* subtract: Remove RBS file if the subtracted definition is empty ([#1385](https://github.com/ruby/rbs/pull/1385))
34+
* subtract: Filter redundant access modifiers ([#1384](https://github.com/ruby/rbs/pull/1384))
35+
* Fix module alias normalizations ([#1393](https://github.com/ruby/rbs/pull/1393))
36+
* Reduce memory allocation on TypeName#initialize ([#1363](https://github.com/ruby/rbs/pull/1363))
37+
* Fix a type error in FileFinder ([#1326](https://github.com/ruby/rbs/pull/1326))
38+
* Add signatures about DetailedMessage ([#1323](https://github.com/ruby/rbs/pull/1323))
39+
* Make TypeNameResolver more compatible with Ruby ([#1373](https://github.com/ruby/rbs/pull/1373))
40+
* Drop support of Ruby 2.x ([#1364](https://github.com/ruby/rbs/pull/1364))
41+
* Print detailed_message on parse command ([#1329](https://github.com/ruby/rbs/pull/1329))
42+
* Relax rdoc version requirement ([#1333](https://github.com/ruby/rbs/pull/1333))
43+
* Support keyword argument to #detailed_message ([#1328](https://github.com/ruby/rbs/pull/1328))
44+
45+
#### rbs prototype
46+
47+
* Avoid to generate anonymous or internal module ([#1421](https://github.com/ruby/rbs/pull/1421))
48+
* Fix type name for prototype rbi ([#1386](https://github.com/ruby/rbs/pull/1386))
49+
* Support type params for known signatures ([#1408](https://github.com/ruby/rbs/pull/1408))
50+
* Super class should be absolute paths. ([#1415](https://github.com/ruby/rbs/pull/1415))
51+
* prototype rb: Fix a crash by "include foo" ([#1419](https://github.com/ruby/rbs/pull/1419))
52+
* Add `--outline` option to `prototype runtime` to skip generating method definition ([#1404](https://github.com/ruby/rbs/pull/1404))
53+
* [rbs prototype] Follow up ivar/cvar feature ([#1361](https://github.com/ruby/rbs/pull/1361))
54+
* prototype rb: Extract instance variables and class variables ([#1343](https://github.com/ruby/rbs/pull/1343))
55+
56+
#### rbs collection
57+
58+
* Print warning when specified gem not found ([#1367](https://github.com/ruby/rbs/pull/1367))
59+
* Generate gem specific sources in lockfile ([#1402](https://github.com/ruby/rbs/pull/1402))
60+
* Spec may be missing when `rbs_collection.yaml` declares dependency ([#1378](https://github.com/ruby/rbs/pull/1378))
61+
62+
### Miscellaneous
63+
64+
* Remove ruby-lsp && bundle update --bundler ([#1420](https://github.com/ruby/rbs/pull/1420))
65+
* Delete all remaining set-related descriptions. ([#1324](https://github.com/ruby/rbs/pull/1324))
66+
* Add customized test runner to accept minitest options ([#1392](https://github.com/ruby/rbs/pull/1392))
67+
* Specify `rbs` syntax to code snippets in Markdown files ([#1366](https://github.com/ruby/rbs/pull/1366))
68+
* Fix typo in parser.rbs ([#1352](https://github.com/ruby/rbs/pull/1352))
69+
* Fix broken CI ([#1353](https://github.com/ruby/rbs/pull/1353))
70+
* Handle connection error with Resolv_test.rb ([#1356](https://github.com/ruby/rbs/pull/1356))
71+
* Removed Prime signature and tests ([#1355](https://github.com/ruby/rbs/pull/1355))
72+
573
## 3.1.3 (2023-07-31)
674

775
### Library changes

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
rbs (3.1.0)
4+
rbs (3.2.0.pre.1)
55

66
PATH
77
remote: test/assets/test-gem

Rakefile

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,3 +310,47 @@ NOTES
310310
end
311311
end
312312
end
313+
314+
315+
desc "Generate changelog template from GH pull requests"
316+
task :changelog do
317+
major, minor, patch, pre = RBS::VERSION.split(".", 4)
318+
major = major.to_i
319+
minor = minor.to_i
320+
patch = patch.to_i
321+
322+
if patch == 0
323+
milestone = "RBS #{major}.#{minor}"
324+
else
325+
milestone = "RBS #{major}.#{minor}.x"
326+
end
327+
328+
puts "🔍 Finding pull requests that is associated to milestone `#{milestone}`..."
329+
330+
command = [
331+
"gh",
332+
"pr",
333+
"list",
334+
"--limit=10000",
335+
"--json",
336+
"url,title,number",
337+
"--search" ,
338+
"milestone:\"#{milestone}\" is:merged sort:updated-desc -label:Released"
339+
]
340+
341+
require "open3"
342+
output, status = Open3.capture2(*command)
343+
raise status.inspect unless status.success?
344+
345+
require "json"
346+
json = JSON.parse(output, symbolize_names: true)
347+
348+
unless json.empty?
349+
puts
350+
json.each do |line|
351+
puts "* #{line[:title]} ([##{line[:number]}](#{line[:url]}))"
352+
end
353+
else
354+
puts " (🤑 There is no *unreleased* pull request associated to the milestone.)"
355+
end
356+
end

lib/rbs/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module RBS
4-
VERSION = "3.1.0"
4+
VERSION = "3.2.0.pre.1"
55
end

0 commit comments

Comments
 (0)