xre 0.5.8-x86_64-linux → 0.5.9-x86_64-linux

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: 5418edcfcede46cc9e56089fa65e1afa6520f70e335c72a5bfad072ac8807b57
4
- data.tar.gz: 1aab41c4fb995895b09f426308958844cb90321ac7ab8a329be5efaa64c60154
3
+ metadata.gz: c8f7a788b0b57164bc4df090849cc9560ab6a225efc4dbabf025304a1649429d
4
+ data.tar.gz: 529cc3e975e7cd7ea99dd8a3ddbfe24b91483e0107fdc2d56ff23b7a3b994e8a
5
5
  SHA512:
6
- metadata.gz: 8e405c305808d45861ba1c85f5a0850d54aa4a39f0c135ced2e7aee9362acbb0ea5169362ba73ec6cc770b1057de2c4cdb64618c66523ea6696063d652f7a487
7
- data.tar.gz: 2060b0d419aa6d30f2e3cb8e8414bf6977579a236c07230444055be517597ec5bccc78109c97215350d4cec3e5dccfde4dd46f9be1b5a330d47348124f3cf3cd
6
+ metadata.gz: 391667fdfeeaec8cd56facd124c2bf000026d588243700eb5d86003a5d73edaaa90eb9caec0a870c31856b029e60725a46f81204c345422e33eb57b8aedda34e
7
+ data.tar.gz: bd853ea151e01af224633d7346b01170a19b6c5f25d2a01b232912fe3080d62f2418964ab25339b34dffba3d3afc96aae95ae04a17469094d214c8847149b618
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.5.9"
5
5
  end
data/lib/xre/xre.so CHANGED
Binary file
data/lib/xre.rb CHANGED
@@ -9,9 +9,9 @@ end
9
9
 
10
10
  module Xre
11
11
  class RegexList
12
- def captures(text, context_radius: nil)
12
+ def captures(text, context_radius: nil, context_boundary: "\n")
13
13
  if context_radius
14
- __captures_with_context(text, context_radius)
14
+ __captures_with_context(text, context_radius, context_boundary)
15
15
  else
16
16
  __captures_without_context(text)
17
17
  end
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.5.9
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-02 00:00:00.000000000 Z
11
+ date: 2024-05-03 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: