rbi 0.2.3 → 0.2.4

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: 7d7b27863b9b9ece5a4cc59fb638a2e51055cd2ca39416e311ea38e9929f124e
4
- data.tar.gz: 24356f96be5c3381865496aab481214a0cfcbfa423b29eb728691b973a051a5e
3
+ metadata.gz: a8f99c70643c9f05b1b7dda28cb2091654c1865b124b01a981fc4a3b6f59275f
4
+ data.tar.gz: 9d0b4626b14eced346dd4899cce76996137a84047f4b10142e01d0c35655b450
5
5
  SHA512:
6
- metadata.gz: cd47ce37c3cd31e92d24172e08bb9c1a6a0416a3399bb39529788655f0b1138947cd35a9afb85cc0915c2e04989cdd9f1a04b8a2a511dfd64a1ca6ee82701edc
7
- data.tar.gz: eddda9af791aef98efb957b0017376cdc058a96aff0b39c6716ee5e18809da21b12d4a5b79df1c34c923a0c34383286785de5e160934aff3a93289f756a6dac5
6
+ metadata.gz: e02a6ffba6687475814388820be9ae352ec732fa288f2295af75959a0ad7b3032992fa6c17b4cb2b03cdcb26667c48b5038c7c4d04babe25be77e0404ff41880
7
+ data.tar.gz: 0dd7254c9b7ac5c204654bd71f1a26b6b8597e2c5b10a199c5e0ab40224d5444d38eaf4c1e1c4a2acb9c75e482464ef55b7419216dc2f02556d8c8b2317e0f84
data/Gemfile CHANGED
@@ -10,7 +10,7 @@ group(:development, :test) do
10
10
  gem("minitest")
11
11
  gem("minitest-reporters")
12
12
  gem("rake", "~> 13.2")
13
- gem("rubocop", "~> 1.69", require: false)
13
+ gem("rubocop", "~> 1.70", require: false)
14
14
  gem("rubocop-shopify", require: false)
15
15
  gem("rubocop-sorbet", require: false)
16
16
  gem("sorbet", ">= 0.5.9204", require: false)
data/lib/rbi/model.rb CHANGED
@@ -261,7 +261,7 @@ module RBI
261
261
  ).void
262
262
  end
263
263
  def initialize(loc: nil, comments: [], &block)
264
- super(loc: loc, comments: comments) {}
264
+ super {}
265
265
  block&.call(self)
266
266
  end
267
267
 
@@ -1357,7 +1357,7 @@ module RBI
1357
1357
  ).void
1358
1358
  end
1359
1359
  def initialize(loc: nil, comments: [], &block)
1360
- super(loc: loc, comments: comments) {}
1360
+ super {}
1361
1361
  block&.call(self)
1362
1362
  end
1363
1363
 
data/lib/rbi/parser.rb CHANGED
@@ -451,11 +451,6 @@ module RBI
451
451
  loc: node_loc(node),
452
452
  comments: node_comments(node),
453
453
  )
454
- else
455
- raise ParseError.new(
456
- "Unexpected token `#{node.message}` before `#{last_node&.string&.strip}`",
457
- node_loc(node),
458
- )
459
454
  end
460
455
  else
461
456
  current_scope << parse_visibility(node.name.to_s, node)
@@ -722,8 +717,6 @@ module RBI
722
717
 
723
718
  keyword_init = val == "true" if key == "keyword_init:"
724
719
  end
725
- else
726
- raise ParseError.new("Unexpected node type `#{arg.class}`", node_loc(arg))
727
720
  end
728
721
  end
729
722
  end
data/lib/rbi/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module RBI
5
- VERSION = "0.2.3"
5
+ VERSION = "0.2.4"
6
6
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandre Terrasa
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-01-15 00:00:00.000000000 Z
10
+ date: 2025-01-21 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: prism