sord 3.0.0 → 3.0.1
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/sord/generator.rb +11 -2
- data/lib/sord/resolver.rb +4 -0
- data/lib/sord/version.rb +1 -1
- data/rbi/sord.rbi +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c04d27e18791a912df49bf20c04c3d8555c04ce7f4e9d97d566398c705b4d826
|
4
|
+
data.tar.gz: c9868a430d1cace15d5c11463c7718aa768e2f4b195c9877ba0cb9a995bb8d7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e1266f3b0950874993fb09814431d6ccc7e379128b7146bd46865571d422676df3103ec602534d2cd2e517e1b24b098d8e1edb09cb7002226369fa41d65c127
|
7
|
+
data.tar.gz: c358bd3954399bc55db8883720a40bf1452131771367eb0613637899f5c4d319af6ee3c4d261cb70cb355d83cc21339489562ec1847c47f2893cb40a9c192818
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,11 @@ All notable changes to this project will be documented in this file.
|
|
3
3
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
5
5
|
|
6
|
+
## [3.0.1] - 2020-12-28
|
7
|
+
### Fixed
|
8
|
+
- Fixed `SortedSet` crash on Ruby 3
|
9
|
+
- Fixed incorrect `extend` order on YARD 0.9.26
|
10
|
+
|
6
11
|
## [3.0.0] - 2020-12-26
|
7
12
|
### Added
|
8
13
|
- Sord now uses the Parlour 5 beta's RBS generation to generate RBS files!
|
data/lib/sord/generator.rb
CHANGED
@@ -88,8 +88,17 @@ module Sord
|
|
88
88
|
item.instance_mixins.reverse_each do |i|
|
89
89
|
@current_object.create_include(i.path.to_s)
|
90
90
|
end
|
91
|
-
|
92
|
-
|
91
|
+
|
92
|
+
# YARD 0.9.26 makes extends appear in the same order as code
|
93
|
+
# (includes are still reversed)
|
94
|
+
if Gem::Version.new(YARD::VERSION) >= Gem::Version.new("0.9.26")
|
95
|
+
item.class_mixins.each do |e|
|
96
|
+
@current_object.create_extend(e.path.to_s)
|
97
|
+
end
|
98
|
+
else
|
99
|
+
item.class_mixins.reverse_each do |e|
|
100
|
+
@current_object.create_extend(e.path.to_s)
|
101
|
+
end
|
93
102
|
end
|
94
103
|
|
95
104
|
item.instance_mixins.length + item.class_mixins.length
|
data/lib/sord/resolver.rb
CHANGED
@@ -39,8 +39,12 @@ module Sord
|
|
39
39
|
# This prints some deprecation warnings, so suppress them
|
40
40
|
prev_stderr = $stderr
|
41
41
|
$stderr = StringIO.new
|
42
|
+
|
43
|
+
major = RUBY_VERSION.split('.').first.to_i
|
44
|
+
sorted_set_removed = major >= 3
|
42
45
|
|
43
46
|
Object.constants
|
47
|
+
.reject { |x| sorted_set_removed && x == :SortedSet }
|
44
48
|
.select { |x| Object.const_get(x).is_a?(Class) }
|
45
49
|
.map(&:to_s)
|
46
50
|
ensure
|
data/lib/sord/version.rb
CHANGED
data/rbi/sord.rbi
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sord
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Christiansen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-12-
|
11
|
+
date: 2020-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yard
|