xre 0.5.8-arm64-darwin → 0.6.0-arm64-darwin

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: 7ce93aad4f7317fc1ee03da327395e6092e189cc26cdfacf1c8d4cd2804f5ce5
4
- data.tar.gz: 189d0502d451ab35bff92d64cc25f5e504743a9b377f9966bf3cf747c1641f97
3
+ metadata.gz: 950fec02655709b74b5b0cb3e22f1dfdc6b62717e7d3351a0eb84b2b7a59046f
4
+ data.tar.gz: 9cb294d17dca94696c253d72f467f56b2fff562f3fb48cb9549d2305f445f502
5
5
  SHA512:
6
- metadata.gz: 0e2a76f297030f468c34b78b083e83a93185774057f9b7b15a2afe419c87a004d5388c6591c7d6d5f09f5eff9b1229026394e35c494e477ca1b40493259a7772
7
- data.tar.gz: a82ff13db44758e3740d240542b1f1c82ee306c3e26c9354944edf72a74523f14ba1a2ab200f4d7d5ea8c46c588d6142d760c186177796a1804036c532296674
6
+ metadata.gz: 73d31558163113f608d38cdc3919da45c07c32889751ae96534156a4c2a82d80266aa6f48c6386a2a39cf6f08ee82f8683c85773151e529ea2f6761891c1ad19
7
+ data.tar.gz: 32ce98ca6cc32ced5bb862a07e5b29378d07313abffc130aaf329797c92358f896d7ce45d3db62452d96c6f278a14e4133583b28628da89d4b016fe2238b4f0a
data/README.md CHANGED
@@ -78,7 +78,7 @@ cargo test # you will need rust toolchain for that
78
78
 
79
79
  **Rust linting:**
80
80
 
81
- ````bash
81
+ ```bash
82
82
  # you will need rust toolchain for that
83
83
  cargo fmt # will format the code
84
84
  cargo clippy # will suggest improvements, not only style ones
@@ -86,10 +86,19 @@ cargo clippy # will suggest improvements, not only style ones
86
86
 
87
87
  ## Publishing:
88
88
 
89
+ > Note: For this to work, make sure you are signed in to rubygems.org as a clearscope organization member.
90
+
89
91
  The codebase includes `xre/Rakefile` which in turn defines a `gem:native`
90
92
  task that compiles the extension for the `x86_64-linux`, `x86_64-darwin`, and `arm64-darwin`
91
93
  and puts the compiled gems into `xre/pkg/` directory, from where one should
92
94
  `gem push xre-<version>-x86_64-linux.gem` to publish the gem.
93
95
 
94
96
  > Note: You will need a docker installed on your machine for that
95
- ````
97
+
98
+ so to publish the gem you should:
99
+
100
+ ```bash
101
+ cd xre
102
+ rake gem:native
103
+ gem push pkg/xre-<version>-<platform>.gem
104
+ ```
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.8"
4
+ VERSION = "0.6.0"
5
5
  end
data/lib/xre/xre.bundle CHANGED
Binary file
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)
13
- if context_radius
14
- __captures_with_context(text, context_radius)
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.8
4
+ version: 0.6.0
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - barseek
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-02 00:00:00.000000000 Z
11
+ date: 2024-05-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: