xre 0.5.9-x86_64-linux → 0.6.0-x86_64-linux

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/xre/version.rb +1 -1
  3. data/lib/xre.rb +6 -6
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c8f7a788b0b57164bc4df090849cc9560ab6a225efc4dbabf025304a1649429d
4
- data.tar.gz: 529cc3e975e7cd7ea99dd8a3ddbfe24b91483e0107fdc2d56ff23b7a3b994e8a
3
+ metadata.gz: 71fc9371620d29fd5e678f89403a1fba9e0e25a6689b40a92246655eb7196bbb
4
+ data.tar.gz: f8efbad988fd61cf8fceff0ba47251059b2507ea75ad76fe765207159380be6c
5
5
  SHA512:
6
- metadata.gz: 391667fdfeeaec8cd56facd124c2bf000026d588243700eb5d86003a5d73edaaa90eb9caec0a870c31856b029e60725a46f81204c345422e33eb57b8aedda34e
7
- data.tar.gz: bd853ea151e01af224633d7346b01170a19b6c5f25d2a01b232912fe3080d62f2418964ab25339b34dffba3d3afc96aae95ae04a17469094d214c8847149b618
6
+ metadata.gz: 4b2a2cb18077a13d1d38a7a4cde3411f4026a5f2cadec43c4eaf914d0b1e38caa1d683bcfaad86b5d30e856995a45be5a350462963a9e925691f603315684442
7
+ data.tar.gz: d4a1df4c5c0152be3b9530c0c9fa26821595d571acf3ee5c3b161d43f2f78765c4cc98c204d414028fc6cbc1fc89fd07450ebfcb6235cc00f3b514231285bb85
data/lib/xre/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Xre
4
- VERSION = "0.5.9"
4
+ VERSION = "0.6.0"
5
5
  end
data/lib/xre.rb CHANGED
@@ -9,12 +9,12 @@ end
9
9
 
10
10
  module Xre
11
11
  class RegexList
12
- def captures(text, context_radius: nil, context_boundary: "\n")
13
- if context_radius
14
- __captures_with_context(text, context_radius, context_boundary)
15
- else
16
- __captures_without_context(text)
17
- end
12
+ def captures_with_context(text, context_radius:, context_boundary: "\n")
13
+ __captures_with_context(text, context_radius, context_boundary)
14
+ end
15
+
16
+ def captures(text)
17
+ __captures_without_context(text)
18
18
  end
19
19
 
20
20
  def inspect
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xre
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.9
4
+ version: 0.6.0
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - barseek
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-03 00:00:00.000000000 Z
11
+ date: 2024-05-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: