xre 0.5.8-x86_64-darwin → 0.6.0-x86_64-darwin

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 826dee7f34a3b0173a0bad816abf583ae8a783c1c562de11112fc99a38ba1a2b
4
- data.tar.gz: 783fa64f31cb9f0aae0fba752e9b737649fdbf47cd6b0530c7bc9de84ff4c920
3
+ metadata.gz: a7afeaa2acf59ef5fd090cf2fd47fbb60c1986bf8e15c6da55c34ad4a792b350
4
+ data.tar.gz: 18bdb4cbcc80605bf0553b4151f7288fa55b9365ab74f82005c657d283e4d15f
5
5
  SHA512:
6
- metadata.gz: f379728f97fac6110f60980048999b27e816dbbfea0d4525a60c041955ab55cf2994cdbc0953b64de1f91dfc3c0be2aba4e06b6c6210ee56e4749a29f794a38f
7
- data.tar.gz: f41c9117dbdddfac0dd77f73daa245129a1fc6eade36ab96c0015158e6dc6be5b7b5547b2925ee457e601be0a329de26a244cbce0313563fe954fbf8e7088d55
6
+ metadata.gz: a942359172b38b24cf4980e5854e480df4be0df1df0a3ea673fe8e5bc1dd19665dfed08a83d3d6ef5a4c63708af890a9409f8cd5eef30cc6942f7362927e35b2
7
+ data.tar.gz: fd58e50659ecaff3c302dc459f3274af281bc4b8bc8fd2ccbfd7b0d0bd39425bc0570f697605f88c065caf15c0e54b180789ddaccb14e20c787c03368709a567
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: x86_64-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: