xre 0.5.7-arm64-darwin → 0.5.9-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: c14514cdd9f275f9815684a2e74651261e43d422d7891868ee5045646b3d0abf
4
- data.tar.gz: f4f65d622ea50c012baaff792c8d3861bb90a01599091872f728e16363f53208
3
+ metadata.gz: b2502f73e9d26720ca644c787dee39717a7c7bc1c2da2a92ab065dab0081a9ff
4
+ data.tar.gz: 262e7abfca0707fa62fcdaefbfbacd09a4a604d922f32d4554e563dea034570b
5
5
  SHA512:
6
- metadata.gz: 80e9ffe725663027362732fa38af69f10132ffbdd7472626efbd272dfd8db3f871e9a0c3ce2085248347ee20d7c970901aa21a25d0b145d1dc4c05050ae4d5e4
7
- data.tar.gz: 72889ada0533cd798f2f5c9a6b13f04e5c0fff6fbd74e41a8071f4dffaa9ddd2d6272ad4cacc520dd0fa8d5b3188e528cc0e5719eccefa85b8d6cf7ac67b36cd
6
+ metadata.gz: 77a8d2ad4fbf02ed4fc57a3606554ac93ea0fae2d93caabf0c875ad27e0e1d1fff689e3e4be8693d6c6c0091f836f610c1e098e9ded073ad880812749fa0ccd8
7
+ data.tar.gz: 02ca067dcb0d0f5020ddfa854ab179c76f1b6111cb38e459feedd007ce601d37ff837465ae19ab769d543eb8759f9a266a01a70ea56f431d43f57f8c36a4d937
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.7"
4
+ VERSION = "0.5.9"
5
5
  end
data/lib/xre/xre.bundle 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.7
4
+ version: 0.5.9
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-04-29 00:00:00.000000000 Z
11
+ date: 2024-05-03 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: