sirop 0.8 → 0.8.1

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: a44ab3d216adc8e5bda83ca86fef998d8c059ac7f62b3ab4c4b1688be65a24a6
4
- data.tar.gz: 8c4b7b1aa49f6e293ca2f161ade3f8c1b14ad386644e7abc713eefc7798bcbd7
3
+ metadata.gz: cf521e8ebaa4dca23a73d476b92ed4e7d01966af4ae746467ce76838128a648e
4
+ data.tar.gz: ce92c1bea61d7bd8adc913a697078dc11cbcaff90fb7b71c634e649321201c77
5
5
  SHA512:
6
- metadata.gz: 5cfbd57a4e23be3fb959462f6c76aaf1af3e2810c80b81560772965d39654d7975a6aeb7f2441f0c33b9811c898f005ac89eb163ed4215099df7b47abc60e2ca
7
- data.tar.gz: 8c778dee6a5a416438e37972684ee6cd12d8b8332c4422b099c913b14425d3acb6c63f092f7e8433277f409807724f70fe267e6b7e08d5f21b9367d682d69b3e
6
+ metadata.gz: 651b8af16553f5c553d26b9e3d10ecdd8a46abf91b721e9246095211063493e6d49f1115569e70683b65a531cae75c37ef6300bcf3f35d1a3fbf45436e60b364
7
+ data.tar.gz: 21a80b896b113846ad3bfb41542324cef98ebef21d86a2276a036d37db3fd15d97ec154b8c33151463c768a9cb866f0a8357dbc6a41b12bce13b2ae46007b3a1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.8.1 2025-08-06
2
+
3
+ - Fix usage of @source_map_line_ofs
4
+
1
5
  # 0.8 2025-08-06
2
6
 
3
7
  - Add source map generation
@@ -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
132
+ @source_map[buffer_cur_line] ||= orig_source_cur_line - @source_map_line_ofs
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'
3
+ VERSION = '0.8.1'
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'
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sharon Rosner