censive 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/censive.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 246be731b3c88020be3432707b0fb66b8624bc6ebd18b54dae56d813defc7ae9
4
- data.tar.gz: 13ee5d519f07b82c410a1afcdeaf01678be8e43de894b00e7d6a1bab09e9cf92
3
+ metadata.gz: 3db4c7bfa5df5911b7ec460329f59b1dc858881fcfc65e7bab98800861c40b5b
4
+ data.tar.gz: 2f0e4b3ec85aab97c5b9c1436513a0fa4cafb0395f6b02abe6275346ab684bc7
5
5
  SHA512:
6
- metadata.gz: a36473da2784c22dd99a4a414388699942d2bcfcbe87d3883f4efa4234922d99db4aa359102f9f56ae2d94d162d7391ca8caffdbaf3cf550f8a50a00b7b19fc5
7
- data.tar.gz: 27a07ae5bbcc85c5b48116b935cdd62d39d1b34bf66abf31ab255ab7562ee0fdd1ad44a42990387ee0057a5423175e00117de98c9484564b65e4baea2fda415a
6
+ metadata.gz: dcc066cfd497a52a2481137233c40af86048d41889ce01d08d03ddf21a79e29e1e0236bc2fa4a9aeda35ef03d8f24061e5e4978a047f8a8ab9715bd0e902a0af
7
+ data.tar.gz: 3a3bbbbfb2fc787dc1b58c1f295fa25d0d4a1060310d457230aa1b3e4b675a5539c3b91eedf384edef1abf0c3b9ff58e1d6c191571af8f58034edc503266f7f8
data/lib/censive.rb CHANGED
@@ -28,7 +28,7 @@
28
28
  require "strscan"
29
29
 
30
30
  class Censive < StringScanner
31
- VERSION="1.0.0"
31
+ VERSION="1.0.1"
32
32
 
33
33
  attr :encoding, :out, :rows
34
34
 
@@ -199,7 +199,7 @@ class Censive < StringScanner
199
199
 
200
200
  # returns 2 (must be quoted and escaped), 1 (must be quoted), 0 (neither)
201
201
  def grok(str)
202
- if idx = str.index(@escapes)
202
+ if idx = str&.index(@escapes)
203
203
  $1 ? 2 : str.index(@quote, idx) ? 2 : 1
204
204
  else
205
205
  0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: censive
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Shreeve
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-30 00:00:00.000000000 Z
11
+ date: 2023-04-10 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A quick and lightweight CSV handling library for Ruby
14
14
  email: steve.shreeve@gmail.com