optify-config 0.4.2-arm64-darwin → 0.4.3-arm64-darwin

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: 7c84a11c5778ebf6bbc8af2b011faf801f33ee092121b09e18a2185eabb3ff73
4
- data.tar.gz: f20547407b683d72c63243805405c772d4f646281262744ac0ce510d983565f3
3
+ metadata.gz: 2a5a0c843dc307b2357c8c02d3a215efc2b2ce01cb9f1aebef73100b2c3a2a9c
4
+ data.tar.gz: 672820f4ed38f0e5ffe2416ffa295940f4538017d2eb229b59b2b008c65e422f
5
5
  SHA512:
6
- metadata.gz: 537b6443ee071cd28cd382f78668ced1d52be29c828454e880a6464c4cc1580ad512d7bc9d49a3a330f7fba11bda01ae23ea7aa8d395cc6987b93a04b5af2861
7
- data.tar.gz: 06bfa7df689cabd7b3feb711672213a800ebac67d30aa2b9269819e3f83e772b1814e17a77ddbfbfa2f3e99820127cf16364a14abc439ebfcd89f48ed7257514
6
+ metadata.gz: 1f074539b6a8f38505c693099c4855c6c0f962dca5a870d14d94dbbba9c13f5f98fd0be4a575d06e8112cc2a18543bf1d26caedde4a2ccf273d5825ae5b71e87
7
+ data.tar.gz: 9ddb297af009890679b5167ba4da7d5568a9184d590a6dae9e9516c42ac8756271551309ab14b0c252f8cd7a586a9d46a09ac242aa1f279bb78182125efd0ecc
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'
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: arm64-darwin
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.bundle
93
- - lib/optify_ruby/3.2/optify_ruby.bundle
94
- - lib/optify_ruby/3.4/optify_ruby.bundle
92
+ - lib/optify_ruby/3.0/optify_ruby.bundle
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