synvert-core 1.13.0 → 1.13.1
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/Gemfile.lock +1 -1
- data/lib/synvert/core/rewriter/instance.rb +2 -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: 27baedce6ee22b8bac638cfab9caceb27f8fef82dd4af238b3b239ff64d9d19a
|
4
|
+
data.tar.gz: 8e0ef98086e9a0e74d87ea62899628bb0271fcf1a011b380bc51e224061606e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0aa91008955762f7a8f6362d0e23372651430e85eb6804b59c2cf9ea1577deda113c6dddf1ae92d44623bbd1bb3328f8414c0c8c8a910df9d575c294301e3c9a
|
7
|
+
data.tar.gz: 3ec198c9d26fd0e8166dbaf102f606e89f52751f1152a50aa6283d525e848970765cf04d67bcb5f7ca6008c029c3c7f876a8a087d9d5ffbce688b0b22f4b4be6
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -229,7 +229,7 @@ module Synvert::Core
|
|
229
229
|
# @param code [String] code need to be inserted.
|
230
230
|
def insert_after(code)
|
231
231
|
column = ' ' * NodeMutation.adapter.get_start_loc(@current_node).column
|
232
|
-
@current_mutation.insert(@current_node, "\n#{column}#{code}",
|
232
|
+
@current_mutation.insert(@current_node, "\n#{column}#{code}", at: 'end')
|
233
233
|
end
|
234
234
|
|
235
235
|
# Parse +insert_before+ dsl, it inserts the code previous to the current node.
|
@@ -244,7 +244,7 @@ module Synvert::Core
|
|
244
244
|
# @param code [String] code need to be inserted.
|
245
245
|
def insert_before(code)
|
246
246
|
column = ' ' * NodeMutation.adapter.get_start_loc(@current_node).column
|
247
|
-
@current_mutation.insert(@current_node, "#{code}\n#{column}",
|
247
|
+
@current_mutation.insert(@current_node, "#{code}\n#{column}", at: 'beginning')
|
248
248
|
end
|
249
249
|
|
250
250
|
# Parse +replace_erb_stmt_with_expr+ dsl, it replaces erb stmt code to expr code.
|
data/lib/synvert/core/version.rb
CHANGED