synvert-core 0.54.2 → 0.54.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/synvert/core/rewriter/action/remove_action.rb +4 -2
- data/lib/synvert/core/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f668f4f483fc617cfd11bf3e8cc786fc390316a160c8b7f64b9fdb034d639797
|
4
|
+
data.tar.gz: 8beb643a216285270c886d90e0057cf4b44c3e2b20b1d558dada21700461b84e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1a0ec10d76c9dfcc400ee3342504a3b4617d49681eccacf464dab47b5344504f4e5d83161a853f6a96f36187d6b6b9f6d58abbc3deb1de93f42a10b6d8adc29
|
7
|
+
data.tar.gz: 7308355c918ccb01446fd4d2d74d8a14d9ea3817db2b71fc1745ab6aae6b49f8d9180910e5f786fccaf548a6e4f64d09b5b8c4b033d15c3509cfcba3119f21e3
|
data/CHANGELOG.md
CHANGED
@@ -41,11 +41,13 @@ module Synvert::Core
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def start_index
|
44
|
-
file_source[0..@node.loc.expression.begin_pos].rindex("\n")
|
44
|
+
index = file_source[0..@node.loc.expression.begin_pos].rindex("\n")
|
45
|
+
index ? index + "\n".length : @node.loc.expression.begin_pos
|
45
46
|
end
|
46
47
|
|
47
48
|
def end_index
|
48
|
-
file_source[@node.loc.expression.end_pos..-1].index("\n")
|
49
|
+
index = file_source[@node.loc.expression.end_pos..-1].index("\n")
|
50
|
+
index ? @node.loc.expression.end_pos + index + "\n".length : @node.loc.expression.end_pos
|
49
51
|
end
|
50
52
|
|
51
53
|
def file_source
|
data/lib/synvert/core/version.rb
CHANGED