sirop 0.8.1 → 0.8.2

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: 381002abea803a80294a60a14da4118f7a62bc8c4f910fdda1ee196607d0b61e
4
+ data.tar.gz: 19a6c1f5da67bd6d7eeb87de82ee49fbf17cf88053b6869ff70f22147c78ad77
5
5
  SHA512:
6
- metadata.gz: 651b8af16553f5c553d26b9e3d10ecdd8a46abf91b721e9246095211063493e6d49f1115569e70683b65a531cae75c37ef6300bcf3f35d1a3fbf45436e60b364
7
- data.tar.gz: 21a80b896b113846ad3bfb41542324cef98ebef21d86a2276a036d37db3fd15d97ec154b8c33151463c768a9cb866f0a8357dbc6a41b12bce13b2ae46007b3a1
6
+ metadata.gz: 24639a0bdf3e8be3c04c8486ed81eb11281bb2f55bf96a22f593ff9212f93e455c32443f2701779a62b0f90407c5d5fbd3f5f0c86ea18c5bb1d4b937f547a8b7
7
+ data.tar.gz: 332816278386fb8a80e3396f680a662c70d24f91a0eb32ca4aef615e42bbf08f4b0d1ed2a7ce4a074b7ec601a09627190387667fb0f03ef7835b70cee55aea1c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.8.2 2025-08-07
2
+
3
+ - Fix source map calculation
4
+
1
5
  # 0.8.1 2025-08-06
2
6
 
3
7
  - Fix usage of @source_map_line_ofs
@@ -129,7 +129,7 @@ module Sirop
129
129
 
130
130
  buffer_cur_line = @buffer.count("\n") + 1
131
131
  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
132
+ @source_map[buffer_cur_line + @source_map_line_ofs] ||= orig_source_cur_line
133
133
  end
134
134
 
135
135
  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.2'
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.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sharon Rosner