orthoses 1.3.0 → 1.4.0

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: 758b4661d8c0df218aa722a78505efee6dec692b601aad81e660c86444389f5e
4
- data.tar.gz: bcfbe10b12f0d3ef2444a7461d2a5004410b89b8d88ef3c100fb6e88f3325e6d
3
+ metadata.gz: 4ee37ddf25be5bbed113698301a2aeafb3b50e7af1da412b9a1fc6afad18d8c2
4
+ data.tar.gz: '075957101080441e02f4129303e766ecdfe1e7f30616177bc41a2cbf41f521f8'
5
5
  SHA512:
6
- metadata.gz: 3b8813677299e76fe253d87e0ab8460ba596c0c6805225767525c60c7f9845bc62cdd9e4f491cb8a2a6197ae473deacd15e78ce29f209305e7e3b1a86a391661
7
- data.tar.gz: b3979ddfbc4f209ce221c2e93e0a80c7d7120d0ef541d6f0061777db7f30b290170fae324aa3d3c4e6d99fbbd37c96a166473aefcc10b404647a5b4bfa0250f3
6
+ metadata.gz: 98c1cff14563ecf14713890e56bddb053d6f128aacad7ff23b6f96cc8b2c338cbea511cc668ac18079ec921cb0183b145f6b26a3c04403a98e8aa0bf734942f7
7
+ data.tar.gz: 5dd573a63a6998e3a1fac1dd94f292dd80742185277124f6449ded149be662b74995815bad629157fc553cb8bef15bb31b123fdbcdccb1af3dff4d2645bc0da2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- orthoses (1.3.0)
4
+ orthoses (1.4.0)
5
5
  rbs (~> 2.0)
6
6
 
7
7
  GEM
@@ -14,13 +14,17 @@ GEM
14
14
  tzinfo (~> 2.0)
15
15
  ast (2.4.2)
16
16
  concurrent-ruby (1.1.10)
17
+ csv (3.2.5)
17
18
  ffi (1.15.5)
19
+ fileutils (1.6.0)
18
20
  i18n (1.12.0)
19
21
  concurrent-ruby (~> 1.0)
22
+ json (2.6.2)
20
23
  language_server-protocol (3.17.0.1)
21
24
  listen (3.7.1)
22
25
  rb-fsevent (~> 0.10, >= 0.10.3)
23
26
  rb-inotify (~> 0.9, >= 0.9.10)
27
+ logger (1.5.1)
24
28
  minitest (5.16.3)
25
29
  parallel (1.22.1)
26
30
  parser (3.1.2.1)
@@ -33,16 +37,22 @@ GEM
33
37
  rbs (2.7.0)
34
38
  rgot (1.1.0)
35
39
  securerandom (0.2.0)
36
- steep (1.2.0)
40
+ steep (1.2.1)
37
41
  activesupport (>= 5.1)
42
+ csv (>= 3.0.9)
43
+ fileutils (>= 1.1.0)
44
+ json (>= 2.1.0)
38
45
  language_server-protocol (>= 3.15, < 4.0)
39
46
  listen (~> 3.0)
47
+ logger (>= 1.3.0)
40
48
  parallel (>= 1.0.0)
41
49
  parser (>= 3.1)
42
50
  rainbow (>= 2.2.2, < 4.0)
43
51
  rbs (>= 2.7.0)
44
52
  securerandom (>= 0.1)
53
+ strscan (>= 1.0.0)
45
54
  terminal-table (>= 2, < 4)
55
+ strscan (3.0.4)
46
56
  terminal-table (3.0.2)
47
57
  unicode-display_width (>= 1.1.1, < 3)
48
58
  tzinfo (2.0.5)
@@ -27,16 +27,13 @@ module Orthoses
27
27
  @body = []
28
28
  @header = nil
29
29
  @comment = nil
30
- @uniq = false
31
30
  end
32
31
 
33
32
  def <<(line)
34
- @uniq = false
35
33
  @body << line
36
34
  end
37
35
 
38
36
  def concat(other)
39
- @uniq = false
40
37
  @body.concat(other)
41
38
  end
42
39
 
@@ -49,7 +46,6 @@ module Orthoses
49
46
  end
50
47
 
51
48
  def delete(val)
52
- @uniq = false
53
49
  @body.delete(val)
54
50
  end
55
51
 
@@ -115,10 +111,7 @@ module Orthoses
115
111
  end
116
112
  parsed_decl = parsed_decls.first or raise
117
113
  parsed_decl.tap do |decl|
118
- if !@uniq
119
- DuplicationChecker.new(decl).update_decl
120
- @uniq = true
121
- end
114
+ DuplicationChecker.new(decl).update_decl
122
115
  end
123
116
  rescue RBS::ParsingError
124
117
  Orthoses.logger.error "```rbs\n#{original_rbs}```"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Orthoses
4
- VERSION = "1.3.0"
4
+ VERSION = "1.4.0"
5
5
  end
data/sig/orthoses.rbs CHANGED
@@ -1,7 +1,7 @@
1
1
  # THIS IS GENERATED CODE from `$ rake generate_self_sig`
2
2
 
3
3
  module Orthoses
4
- VERSION: "1.3.0"
4
+ VERSION: "1.4.0"
5
5
 
6
6
  attr_accessor self.logger: ::Logger
7
7
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orthoses
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ksss
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-12 00:00:00.000000000 Z
11
+ date: 2022-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rbs