sirop 0.8.1 → 0.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/sirop/sourcifier.rb +3 -1
- data/lib/sirop/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: 5d626e8c25209085b021149621145861b6bf871246c60b5a845d53afc1cc92ee
|
4
|
+
data.tar.gz: 414de510672f1f5dcb7d3b9d5deadf6ba9c507eeca7c499bb7c7f70038fbd4a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcf3ac4365b06e6b64671b8b72722b4905f114f289498bc2b2b78824b1903ff9e48b5cf89a77b009424676f7ddb7326f73443a7813fec7d45de751d58ceac7ec
|
7
|
+
data.tar.gz: 5b44ac736d2c3e527bfb5912a788ad330af99f4648869a396977a3add8ce360ec1f58536b0a493eace402c800cafe777277e7e8de3779175ec1fab9fb4a3384d
|
data/CHANGELOG.md
CHANGED
data/lib/sirop/sourcifier.rb
CHANGED
@@ -46,6 +46,8 @@ module Sirop
|
|
46
46
|
instance_variable_target: :emit_verbatim,
|
47
47
|
instance_variable_write: [:name_loc, :operator_loc, :value],
|
48
48
|
integer: :emit_verbatim,
|
49
|
+
it_parameters: :emit_nothing,
|
50
|
+
it_local_variable_read: :emit_verbatim,
|
49
51
|
keyword_rest_parameter: [:operator_loc, :name_loc],
|
50
52
|
keyword_parameter: :emit_verbatim,
|
51
53
|
local_variable_and_write: [:name_loc, :operator_loc, :value],
|
@@ -129,7 +131,7 @@ module Sirop
|
|
129
131
|
|
130
132
|
buffer_cur_line = @buffer.count("\n") + 1
|
131
133
|
orig_source_cur_line = @last_loc_start ? @last_loc_start.first : 1
|
132
|
-
@source_map[buffer_cur_line] ||= orig_source_cur_line
|
134
|
+
@source_map[buffer_cur_line + @source_map_line_ofs] ||= orig_source_cur_line
|
133
135
|
end
|
134
136
|
|
135
137
|
def adjust_whitespace(loc)
|
data/lib/sirop/version.rb
CHANGED