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 +4 -4
- data/Gemfile.lock +6 -6
- data/lib/perb/version.rb +1 -1
- data/lib/perb.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1af6d25669b97b00b175596bb8f93ab6d27c9615f34140b45b979d248be94845
|
4
|
+
data.tar.gz: 32c8c1c0b6e425724bcb0c7a1a15cd9ce31f7191540246e833630f1e87f90369
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
5
|
-
parser (~> 3.
|
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.
|
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.
|
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.
|
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.
|
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
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(
|
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.
|
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:
|
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.
|
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.
|
27
|
+
version: '3.2'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rb_sys
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|