optify-config 0.4.2-x86_64-linux → 0.4.3-x86_64-linux

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03f9dd0168775aaea1106241228dc55f7671b37930ed49db207808d61f989497
4
- data.tar.gz: d98a28a18ce128d7b5dde2f625fc9e8a61f582c05af9d88830692c71210118c1
3
+ metadata.gz: ea45992d5e680740c38f83f984341c1cd07bd8260309238eeb0634098cce3a74
4
+ data.tar.gz: 9ecedd3829a5d7fd1490f9b4341433c22355b9af67249005ac568a967bd208e3
5
5
  SHA512:
6
- metadata.gz: a897315b89ace2c94035319354b512e2cedb542efec2ce732f6272226908423e012a7d77f2334517bd58d0a06d354686077d70079bbad611061294baaa883a5e
7
- data.tar.gz: 0f97b5b341dda59d05527ae04de89107ac6df46c997eee9c993252b20a6d06bd72bb08f09cade4c613c136c833750f7074d3fc9fbdae09095ff3feafd56e5320
6
+ metadata.gz: 6587092aa19dca0bd81f53ef8e455c1b385698aed448bc56dca894adbdcadb6cbf85e3240d3f0e7daa106d1d1115f5e77d599bf7bced52baf542cf65653ac7e7
7
+ data.tar.gz: df747ed909993549e5124efd77ac81ea153e0fd85f366fec49508245f20e15255fa43ff5c0377520537cd3abfc4f93bf5ccbb4328dde62255bca5175d9933065
data/lib/optify.rb CHANGED
@@ -8,6 +8,19 @@ require_relative 'optify_ruby/implementation'
8
8
  # This yields some warnings, but we should redeclare the methods in Ruby to help with type checking anyway.
9
9
  # Warnings about redefining methods are normal and can be ignored
10
10
  # because the implementations in Ruby are not implemented and only exist to help with type checking.
11
- require_relative 'optify_ruby/optify_ruby'
11
+ # Ideally we do:
12
+ # `require_relative 'optify_ruby/optify_ruby'`
13
+ # but that doesn't work when building for multiple versions of Ruby.
14
+ # So we have to do this which is similar to something from 'https://github.com/matsadler/halton-rb/blob/main/lib/halton.rb'.
15
+ begin
16
+ /(?<ruby_version>\d+\.\d+)/ =~ RUBY_VERSION
17
+ require_relative "optify_ruby/#{ruby_version}/optify_ruby"
18
+ rescue LoadError
19
+ begin
20
+ require_relative 'optify_ruby/optify_ruby'
21
+ rescue LoadError # Cargo Builder in RubyGems < 3.4.6 doesn't install to dir
22
+ require_relative 'optify_ruby.so'
23
+ end
24
+ end
12
25
 
13
26
  require_relative 'optify_ruby/base_config'
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: optify-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Justin D. Harris
@@ -89,9 +89,7 @@ extensions: []
89
89
  extra_rdoc_files: []
90
90
  files:
91
91
  - lib/optify.rb
92
- - lib/optify_ruby/3.1/optify_ruby.so
93
- - lib/optify_ruby/3.2/optify_ruby.so
94
- - lib/optify_ruby/3.4/optify_ruby.so
92
+ - lib/optify_ruby/3.0/optify_ruby.so
95
93
  - lib/optify_ruby/base_config.rb
96
94
  - lib/optify_ruby/implementation.rb
97
95
  - rbi/optify.rbi
@@ -109,10 +107,10 @@ required_ruby_version: !ruby/object:Gem::Requirement
109
107
  requirements:
110
108
  - - ">="
111
109
  - !ruby/object:Gem::Version
112
- version: '3.1'
110
+ version: '3.0'
113
111
  - - "<"
114
112
  - !ruby/object:Gem::Version
115
- version: 3.5.dev
113
+ version: 3.1.dev
116
114
  required_rubygems_version: !ruby/object:Gem::Requirement
117
115
  requirements:
118
116
  - - ">="
Binary file
Binary file
Binary file