ruby-next-core 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/ruby-next/core/matchdata/named_captures.rb +9 -7
- data/lib/ruby-next/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f24073ca77df989a5c0045fc7fbbc70c717e2ed136fadfb2d0d0a4459c1b6304
|
4
|
+
data.tar.gz: 792bc7a0e52cd5b3fdedef806b22d38d39a9afa2f3972800ba0bf0af2c76fe6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3d35209b4f1e407a27ed0b8dc356e47fe1b343b7e79b899467a7153120673ba163343331ce1da7f44724888fadafd02cd0f9a144e68efc5f22c6a94ecf06310
|
7
|
+
data.tar.gz: 943909c7a1066097ae486eaa9bf971e8313ac933f69d5caea146bd1642324693dc62ce05b701303f209ea63aecf42ddf633dde2acedfaa7a5ff35add619c3adc
|
data/CHANGELOG.md
CHANGED
@@ -1,11 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
3
|
+
if MatchData.instance_methods(false).include?(:named_captures)
|
4
|
+
RubyNext::Core.patch MatchData, method: :named_captures, version: "3.3", supported: "a".match(/a/).method(:named_captures).arity != 0, core_ext: :prepend do
|
5
|
+
<<-'RUBY'
|
6
|
+
def named_captures(symbolize_names: false)
|
7
|
+
return super() unless symbolize_names
|
7
8
|
|
8
|
-
|
9
|
-
end
|
10
|
-
|
9
|
+
super().transform_keys!(&:to_sym)
|
10
|
+
end
|
11
|
+
RUBY
|
12
|
+
end
|
11
13
|
end
|
data/lib/ruby-next/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-next-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladimir Dementyev
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: require-hooks
|
@@ -209,7 +209,7 @@ metadata:
|
|
209
209
|
homepage_uri: https://github.com/ruby-next/ruby-next
|
210
210
|
source_code_uri: https://github.com/ruby-next/ruby-next
|
211
211
|
funding_uri: https://github.com/sponsors/palkan
|
212
|
-
post_install_message:
|
212
|
+
post_install_message:
|
213
213
|
rdoc_options: []
|
214
214
|
require_paths:
|
215
215
|
- lib
|
@@ -225,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
225
225
|
version: '0'
|
226
226
|
requirements: []
|
227
227
|
rubygems_version: 3.4.19
|
228
|
-
signing_key:
|
228
|
+
signing_key:
|
229
229
|
specification_version: 4
|
230
230
|
summary: Ruby Next core functionality
|
231
231
|
test_files: []
|