sin_fast_blank 4.0.0 → 5.0.0

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.
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SinFastBlank
4
+ VERSION = '5.0.0'
5
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ class String
4
+ # Explicitly undefine method before redefining to avoid Ruby warnings.
5
+ undef_method(:blank?) if method_defined?(:blank?)
6
+ end
7
+
8
+ case RUBY_ENGINE
9
+ when 'jruby'
10
+ require 'jruby'
11
+ require 'sin_fast_blank/sin_fast_blank.jar'
12
+
13
+ Java::sin_fast_blank::SinFastBlankLibrary.new.load(JRuby.runtime, false)
14
+ else
15
+ # The extension-less require lets Ruby resolve the platform-specific shared library suffix (.bundle on macOS, .so elsewhere) via DLEXT.
16
+ require 'sin_fast_blank/sin_fast_blank'
17
+ end
18
+
19
+ require 'sin_fast_blank/version'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sin_fast_blank
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masahiro
@@ -17,22 +17,25 @@ extensions:
17
17
  - ext/sin_fast_blank/extconf.rb
18
18
  extra_rdoc_files: []
19
19
  files:
20
+ - CHANGELOG.md
21
+ - LICENSE.txt
22
+ - README.md
23
+ - Rakefile
20
24
  - ext/sin_fast_blank/extconf.rb
21
25
  - ext/sin_fast_blank/sin_fast_blank.c
22
- homepage: https://github.com/cadenza-tech/sin_fast_blank/tree/v4.0.0
26
+ - lib/sin_fast_blank.rb
27
+ - lib/sin_fast_blank/version.rb
28
+ homepage: https://github.com/cadenza-tech/sin_fast_blank/tree/v5.0.0
23
29
  licenses:
24
30
  - MIT
25
31
  metadata:
26
- homepage_uri: https://github.com/cadenza-tech/sin_fast_blank/tree/v4.0.0
27
- source_code_uri: https://github.com/cadenza-tech/sin_fast_blank/tree/v4.0.0
28
- changelog_uri: https://github.com/cadenza-tech/sin_fast_blank/blob/v4.0.0/CHANGELOG.md
32
+ homepage_uri: https://github.com/cadenza-tech/sin_fast_blank/tree/v5.0.0
33
+ source_code_uri: https://github.com/cadenza-tech/sin_fast_blank/tree/v5.0.0
34
+ changelog_uri: https://github.com/cadenza-tech/sin_fast_blank/blob/v5.0.0/CHANGELOG.md
29
35
  bug_tracker_uri: https://github.com/cadenza-tech/sin_fast_blank/issues
30
- documentation_uri: https://rubydoc.info/gems/sin_fast_blank/4.0.0
31
- funding_uri: https://patreon.com/CadenzaTech
36
+ documentation_uri: https://rubydoc.info/gems/sin_fast_blank/5.0.0
37
+ funding_uri: https://github.com/sponsors/cadenza-tech
32
38
  rubygems_mfa_required: 'true'
33
- required_jruby_version: ">= 9.3.0.0"
34
- required_truffleruby_version: ">= 22.0.0"
35
- required_truffleruby+graalvm_version: ">= 22.0.0"
36
39
  rdoc_options: []
37
40
  require_paths:
38
41
  - lib
@@ -47,7 +50,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
47
50
  - !ruby/object:Gem::Version
48
51
  version: '0'
49
52
  requirements: []
50
- rubygems_version: 3.6.9
53
+ rubygems_version: 4.0.16
51
54
  specification_version: 4
52
55
  summary: Check for blank string faster than FastBlank or ActiveSupport
53
56
  test_files: []