sord 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6fce2fcb8629a399513abe70e01d8175fe57932cea68f3183efaaf5475b1d2a1
4
- data.tar.gz: b47e6015b205134fb8687d8a81a1174978ed075fc66dcfd0574475756373abbd
3
+ metadata.gz: c04d27e18791a912df49bf20c04c3d8555c04ce7f4e9d97d566398c705b4d826
4
+ data.tar.gz: c9868a430d1cace15d5c11463c7718aa768e2f4b195c9877ba0cb9a995bb8d7e
5
5
  SHA512:
6
- metadata.gz: e156fa5ee965a1def468b67a9a1945f6d5fb164b0c756b8c3813a99fc12438404b65976842f34e5806d90a6493c553491d87d3272abcd8703436457691d60c8e
7
- data.tar.gz: 004b7eab6b52fa397cded80d1960b91aef104689d1567722de17fc116116998508c83faef5cb32fecc262ec80b1663d4f9d6601defb78fcf5c4ed233403189f6
6
+ metadata.gz: 2e1266f3b0950874993fb09814431d6ccc7e379128b7146bd46865571d422676df3103ec602534d2cd2e517e1b24b098d8e1edb09cb7002226369fa41d65c127
7
+ data.tar.gz: c358bd3954399bc55db8883720a40bf1452131771367eb0613637899f5c4d319af6ee3c4d261cb70cb355d83cc21339489562ec1847c47f2893cb40a9c192818
@@ -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!
@@ -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
- item.class_mixins.reverse_each do |e|
92
- @current_object.create_extend(e.path.to_s)
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
@@ -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
@@ -1,4 +1,4 @@
1
1
  # typed: strong
2
2
  module Sord
3
- VERSION = '3.0.0'
3
+ VERSION = '3.0.1'
4
4
  end
@@ -1,7 +1,7 @@
1
1
  # typed: strong
2
2
 
3
3
  module Sord
4
- VERSION = T.let('3.0.0', T.untyped)
4
+ VERSION = T.let('3.0.1', T.untyped)
5
5
 
6
6
  # Handles writing logs to stdout and any other classes which request them.
7
7
  module Logging
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.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-26 00:00:00.000000000 Z
11
+ date: 2020-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yard