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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf521e8ebaa4dca23a73d476b92ed4e7d01966af4ae746467ce76838128a648e
4
- data.tar.gz: ce92c1bea61d7bd8adc913a697078dc11cbcaff90fb7b71c634e649321201c77
3
+ metadata.gz: 5d626e8c25209085b021149621145861b6bf871246c60b5a845d53afc1cc92ee
4
+ data.tar.gz: 414de510672f1f5dcb7d3b9d5deadf6ba9c507eeca7c499bb7c7f70038fbd4a8
5
5
  SHA512:
6
- metadata.gz: 651b8af16553f5c553d26b9e3d10ecdd8a46abf91b721e9246095211063493e6d49f1115569e70683b65a531cae75c37ef6300bcf3f35d1a3fbf45436e60b364
7
- data.tar.gz: 21a80b896b113846ad3bfb41542324cef98ebef21d86a2276a036d37db3fd15d97ec154b8c33151463c768a9cb866f0a8357dbc6a41b12bce13b2ae46007b3a1
6
+ metadata.gz: dcf3ac4365b06e6b64671b8b72722b4905f114f289498bc2b2b78824b1903ff9e48b5cf89a77b009424676f7ddb7326f73443a7813fec7d45de751d58ceac7ec
7
+ data.tar.gz: 5b44ac736d2c3e527bfb5912a788ad330af99f4648869a396977a3add8ce360ec1f58536b0a493eace402c800cafe777277e7e8de3779175ec1fab9fb4a3384d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # 0.8.3 2025-08-08
2
+
3
+ - Add support for `it`
4
+
5
+ # 0.8.2 2025-08-07
6
+
7
+ - Fix source map calculation
8
+
1
9
  # 0.8.1 2025-08-06
2
10
 
3
11
  - Fix usage of @source_map_line_ofs
@@ -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 - @source_map_line_ofs
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
@@ -1,4 +1,4 @@
1
1
  module Sirop
2
2
  # Sirop version
3
- VERSION = '0.8.1'
3
+ VERSION = '0.8.3'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sirop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sharon Rosner