fmt 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 674b8314e97d214271069e488dfdb736551f431953d260d1766001fdc797fd55
4
- data.tar.gz: 8b9c601567e80419c9b2bb7414bcb42b22431832c9c1db7039a53b6d1f1cdd34
3
+ metadata.gz: c00b656522d9a8a4623d577bc7c0740bb5c6a7f81a4cbc0d6459b844b8177107
4
+ data.tar.gz: 54c8d23268fb964d2c75af86a55e2011d08699ffd1d004672563abf837833c26
5
5
  SHA512:
6
- metadata.gz: 01317ca04d3745516ec6fc842650bf0cce4fc47702f12b025b5d3d203f328f2c92053b3805a72eb9ac134686d3b1d0dfe52aee15f82ab13d8fab4f4b1f7240c9
7
- data.tar.gz: e08ed93970be78e2fe713d22a2861111d931f63bc6d8f6e402ba1ee25405febd82b343758f201a255f3ae5f9b0d0f8faae2ea2a0d40a2d6a7b33473f6f545e32
6
+ metadata.gz: de078ce04f2abd8f67b25a5625d0cf96b418f804bf50e882d9029ae808dba9fa35255bb428e9410b6da120eab9fe3045c66b50555bc50b923822c9af4d40793a
7
+ data.tar.gz: abf3571f4aa30568112c55ca4861e2526c5aabbe1bd373309f0d86bfa65529ed453eb500c1d80694f8716b67200b016bc3eff51d4c460929061850064907ee43
@@ -118,7 +118,7 @@ module Fmt
118
118
  def extract_next_pipeline(scanner)
119
119
  return nil unless scanner.skip_until(PIPELINE_PEEK)
120
120
 
121
- index = scanner.pos
121
+ index = scanner.charpos
122
122
 
123
123
  until scanner.eos?
124
124
  len = 1
@@ -132,15 +132,15 @@ module Fmt
132
132
  len = 0
133
133
  val = nil
134
134
  val = scanner.peek(len += 1) until val&.valid_encoding?
135
- case [index, scanner.pos, val]
136
- in [i, pos, Sigils::FORMAT_PREFIX] if i == pos then scanner.pos += len
135
+ case [index, scanner.charpos, val]
136
+ in [i, pos, Sigils::FORMAT_PREFIX] if i == pos then scanner.getch
137
137
  in [i, pos, Sigils::FORMAT_PREFIX] if i != pos then break
138
138
  in [i, pos, WHITESPACE] if arguments_balanced?(scanner.string[i...pos]) then break
139
- else scanner.pos += len
139
+ else scanner.getch
140
140
  end
141
141
  end
142
142
 
143
- scanner.string[index...scanner.pos]
143
+ scanner.string[index...scanner.charpos]
144
144
  end
145
145
 
146
146
  # Extracts pipelines from the source
data/lib/fmt/version.rb CHANGED
@@ -3,5 +3,5 @@
3
3
  # rbs_inline: enabled
4
4
 
5
5
  module Fmt
6
- VERSION = "0.3.4"
6
+ VERSION = "0.3.5"
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fmt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nate Hopkins (hopsoft)