xre 0.5.7-x86_64-darwin → 0.5.9-x86_64-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: 0cbb01fbaa003ee38a0e45ff109537d760fa5d9a4ac1296988df2f25fb71aa10
4
- data.tar.gz: 75f7d94abab805fe0cdbdbf8f206836cd6abad26c57e3da7a823a5f5f9810117
3
+ metadata.gz: 786d1d71ee9f47f91fa46b8796c59a027c8fb778fc0d2b6a54fbae902c6dd6f7
4
+ data.tar.gz: e782496b572ef39fbad88d165674022670cf64c118a05206337b6d49706bbbd1
5
5
  SHA512:
6
- metadata.gz: cebf87b76f64afc29cd9fe8230f72a6ef8fc48380ba013194e1ef935694b9a7fc357878baa058346f46db763cb0c516bd445e82ee51d1d29cc7284d9dd2ea903
7
- data.tar.gz: a8f86dbcc07b86520e8e98b16007ed44e1ced5b376785f6c0cb03c59632d588b8787d2b06b34107eeb0782fb2f0d5a6276fb5f530ab14341ed649acc9ea2b20f
6
+ metadata.gz: 0d2cff6bd3e643c53dfee5c7cd286661a8943c902961aaa4a92f88fea85325d063c853895941cb2b50baa696f7ff52ae100891bee793d5c954f116268956ad36
7
+ data.tar.gz: 377a02ec71e5b3657ccc2032fa6b4d1390cf27217f4dc2432fde4bc67445086174936f7f9805eb514cc284d0350a5e8ab31e0e8822100705ffd0c2ac26c74d0f
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: x86_64-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: