perb 0.2.0 → 0.3.0

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: 0fb76541355fc902835ad93d741308842b5584144792c28dfa8eb4469e31cddd
4
- data.tar.gz: b62d38a2b288de14cf358d6e9c641a20adf22a09916e421e9b349a7ba42b6a03
3
+ metadata.gz: 1af6d25669b97b00b175596bb8f93ab6d27c9615f34140b45b979d248be94845
4
+ data.tar.gz: 32c8c1c0b6e425724bcb0c7a1a15cd9ce31f7191540246e833630f1e87f90369
5
5
  SHA512:
6
- metadata.gz: 7f97bad10720d07a8589988f6e1f42a43213b048094043d5e483ff002d74454d11f14dd6a5f8f552206b36f65e4546311735301be5d5dfbd66529bd5f980211c
7
- data.tar.gz: 6e0940843ed723f4db6845b596f6014268adeabc1e1727f766255b1cb234da95995bcb6304ed33eab71658823de95535ac9ebcf2c36d0035642313a9744c03cb
6
+ metadata.gz: cf39c9b2b3cd35998ddd0899f99ee394abb44b3eb12b9170e0b96aa2d5b37ab2efac2c4c8790263280848694276ebce2976de8b950a4be1eea0f3f11c84a87bb
7
+ data.tar.gz: ba382cc7dba7681a20edc312915f00181a24f199456b597e7b372839c1efc196603203f9cf7efb552dd1b4222db0692dcd0ef4160c7df26ee8109b34b3821b4e
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- perb (0.1.0)
5
- parser (~> 3.1)
4
+ perb (0.3.0)
5
+ parser (~> 3.2)
6
6
  rb_sys (~> 0.9.53)
7
7
 
8
8
  GEM
@@ -13,7 +13,7 @@ GEM
13
13
  language_server-protocol (3.17.0.2)
14
14
  minitest (5.16.3)
15
15
  parallel (1.22.1)
16
- parser (3.1.3.0)
16
+ parser (3.2.0.0)
17
17
  ast (~> 2.4.1)
18
18
  prettier_print (1.1.0)
19
19
  rainbow (3.1.1)
@@ -23,17 +23,17 @@ GEM
23
23
  rb_sys (0.9.53)
24
24
  regexp_parser (2.6.1)
25
25
  rexml (3.2.5)
26
- rubocop (1.40.0)
26
+ rubocop (1.42.0)
27
27
  json (~> 2.3)
28
28
  parallel (~> 1.10)
29
29
  parser (>= 3.1.2.1)
30
30
  rainbow (>= 2.2.2, < 4.0)
31
31
  regexp_parser (>= 1.8, < 3.0)
32
32
  rexml (>= 3.2.5, < 4.0)
33
- rubocop-ast (>= 1.23.0, < 2.0)
33
+ rubocop-ast (>= 1.24.1, < 2.0)
34
34
  ruby-progressbar (~> 1.7)
35
35
  unicode-display_width (>= 1.4.0, < 3.0)
36
- rubocop-ast (1.24.0)
36
+ rubocop-ast (1.24.1)
37
37
  parser (>= 3.1.1.0)
38
38
  ruby-lsp (0.3.7)
39
39
  language_server-protocol (~> 3.17.0)
data/lib/perb/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Perb
4
- VERSION = "0.2.0"
4
+ VERSION = "0.3.0"
5
5
  end
data/lib/perb.rb CHANGED
@@ -19,7 +19,7 @@ module Perb
19
19
  return if block.nil?
20
20
 
21
21
  insert_before(block.loc.expression, "Perb::wrapper(#{Perb.build_wrapper(method_info)}) do\n")
22
- insert_after(block.loc.expression, "\nend")
22
+ insert_after(node.loc.expression, "\nend")
23
23
  end
24
24
  end
25
25
  end
@@ -35,7 +35,7 @@ module Perb
35
35
 
36
36
  ast = parser.parse(source)
37
37
  source = rewriter.rewrite(source, ast)
38
- RubyVM::InstructionSequence.compile(source)
38
+ RubyVM::InstructionSequence.compile(source, path, path)
39
39
  end
40
40
  end
41
41
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: perb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marco Concetto Rudilosso
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2022-12-29 00:00:00.000000000 Z
12
+ date: 2023-01-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: parser
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '3.1'
20
+ version: '3.2'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '3.1'
27
+ version: '3.2'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rb_sys
30
30
  requirement: !ruby/object:Gem::Requirement