ruby_json_parser 0.2.0 → 0.2.1

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: 495b76a32a7bbf3cd2ce22b934e8c2fa3e377f5218c8566c4fecfd3005c48baa
4
- data.tar.gz: cdbe0edae5fd67802ae55d5bdd5fee9ae7289a2ffbefe00585b11974c108c9a1
3
+ metadata.gz: f3e3c4f63c1962f108039b41218e9c8896aca15da3ee7c5a81d3717a0d112edd
4
+ data.tar.gz: fe68aa5dff821a00239b25d13b63b89cf3d5611a587aff3b3541a837b1c87d54
5
5
  SHA512:
6
- metadata.gz: a6e6bfb6781d793f7e75c80d22dc57bc6a71e4505641381e111bdd17cbd159af130971d506f4f04beaa45e8cc2538cc19b76a86d448c298b2b4d8db11d751c10
7
- data.tar.gz: 9ab967c848b3170f401e6895beb5babeb55cf5e5624a8a15cb8b69179e5a9167365cec691d63e9e19cd0ee5fc172f6050b6e569177614b45c2fd5dfb8355a874
6
+ metadata.gz: 2cccc1d42e1a77e60d7f1296c31e2b3caff252532ba20836cdcc44bc9a306630b9ba98876d2a63d351733429b5ed2e1abf8ea65757626c60c271488f8fe26af7
7
+ data.tar.gz: 151531a62f742970174e2a472379dd413c4165a29cbee311247e2ca65596180e062f0d3dd352dd6f736eb9acbe3d268bef5bb93011be7714344fb0009eb57601
@@ -27,6 +27,9 @@ module RubyJsonParser
27
27
  previous_end = span.end.char_index + 1
28
28
  end
29
29
 
30
+ between_lexemes = T.must source[previous_end..]
31
+ buff << between_lexemes if between_lexemes.length > 0
32
+
30
33
  buff
31
34
  end
32
35
 
@@ -46,7 +49,7 @@ module RubyJsonParser
46
49
  when Token::STRING
47
50
  [ANSICodes::FOREGROUND_BRIGHT_YELLOW]
48
51
  when Token::ERROR
49
- [ANSICodes.rgb_background(153, 51, 255), ANSICodes::STRIKE, ANSICodes::FOREGROUND_BLACK]
52
+ [ANSICodes::BACKGROUND_RED, ANSICodes::STRIKE, ANSICodes::FOREGROUND_BLACK]
50
53
  else
51
54
  []
52
55
  end
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module RubyJsonParser
5
- VERSION = '0.2.0'
5
+ VERSION = '0.2.1'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_json_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mateusz Drewniak
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-16 00:00:00.000000000 Z
11
+ date: 2024-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sorbet-runtime