Add Ruby 3.2 support
This commit is contained in:
@@ -244,7 +244,7 @@ Available options:
|
|||||||
|
|
||||||
- [json](https://rubygems.org/gems/json)
|
- [json](https://rubygems.org/gems/json)
|
||||||
- [extlz4](https://rubygems.org/gems/extlz4)
|
- [extlz4](https://rubygems.org/gems/extlz4)
|
||||||
- [extlzma](https://rubygems.org/gems/extlzma)
|
- [extlzma2](https://rubygems.org/gems/extlzma2)
|
||||||
- [bin_utils](https://rubygems.org/gems/bin_utils)
|
- [bin_utils](https://rubygems.org/gems/bin_utils)
|
||||||
- [chunky_png](https://rubygems.org/gems/chunky_png)
|
- [chunky_png](https://rubygems.org/gems/chunky_png)
|
||||||
|
|
||||||
|
|||||||
@@ -12,9 +12,7 @@ task build: :compile
|
|||||||
ext_dirs = %w[decoders/native decoders/crunch]
|
ext_dirs = %w[decoders/native decoders/crunch]
|
||||||
|
|
||||||
ext_dirs.each do |dir|
|
ext_dirs.each do |dir|
|
||||||
Rake::ExtensionTask.new(dir) do |ext|
|
Rake::ExtensionTask.new(dir)
|
||||||
ext.lib_dir = 'lib/mikunyan'
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
task compile: ext_dirs.map {|e| "compile:#{e}".to_sym}
|
task compile: ext_dirs.map {|e| "compile:#{e}".to_sym}
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'mkmf'
|
require 'mkmf'
|
||||||
|
|
||||||
have_library('stdc++')
|
have_library('stdc++')
|
||||||
@@ -6,4 +8,5 @@ append_cppflags('-O2')
|
|||||||
append_cppflags('-Wall')
|
append_cppflags('-Wall')
|
||||||
append_cppflags('-Wextra')
|
append_cppflags('-Wextra')
|
||||||
append_cppflags('-Wvla')
|
append_cppflags('-Wvla')
|
||||||
create_makefile('mikunyan/decoders/crunch')
|
|
||||||
|
create_makefile('decoders/crunch')
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'mkmf'
|
require 'mkmf'
|
||||||
|
|
||||||
append_cppflags('-std=c11')
|
append_cppflags('-std=c11')
|
||||||
@@ -5,4 +7,5 @@ append_cppflags('-O2')
|
|||||||
append_cppflags('-Wall')
|
append_cppflags('-Wall')
|
||||||
append_cppflags('-Wextra')
|
append_cppflags('-Wextra')
|
||||||
append_cppflags('-Wvla')
|
append_cppflags('-Wvla')
|
||||||
create_makefile('mikunyan/decoders/native')
|
|
||||||
|
create_makefile('decoders/native')
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'extlz4'
|
require 'extlz4'
|
||||||
require 'extlzma'
|
require 'extlzma2'
|
||||||
require 'mikunyan/asset'
|
require 'mikunyan/asset'
|
||||||
require 'mikunyan/binary_reader'
|
require 'mikunyan/binary_reader'
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -14,6 +14,7 @@ Gem::Specification.new do |spec|
|
|||||||
spec.description = 'Library to deserialize Unity assetbundles and assets.'
|
spec.description = 'Library to deserialize Unity assetbundles and assets.'
|
||||||
spec.homepage = 'https://github.com/Ishotihadus/mikunyan'
|
spec.homepage = 'https://github.com/Ishotihadus/mikunyan'
|
||||||
spec.license = 'MIT'
|
spec.license = 'MIT'
|
||||||
|
spec.required_ruby_version = '>= 2.6.0'
|
||||||
|
|
||||||
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
||||||
f.match(%r{^(test|spec|features)/})
|
f.match(%r{^(test|spec|features)/})
|
||||||
@@ -26,8 +27,7 @@ Gem::Specification.new do |spec|
|
|||||||
spec.add_dependency 'bin_utils', '~> 0'
|
spec.add_dependency 'bin_utils', '~> 0'
|
||||||
spec.add_dependency 'chunky_png', '~> 1'
|
spec.add_dependency 'chunky_png', '~> 1'
|
||||||
spec.add_dependency 'extlz4', '~> 0'
|
spec.add_dependency 'extlz4', '~> 0'
|
||||||
spec.add_dependency 'extlzma', '~> 0'
|
spec.add_dependency 'extlzma2', '~> 2'
|
||||||
spec.add_dependency 'json', '~> 2'
|
|
||||||
|
|
||||||
spec.add_development_dependency 'bundler', '~> 2'
|
spec.add_development_dependency 'bundler', '~> 2'
|
||||||
spec.add_development_dependency 'oily_png', '~> 1'
|
spec.add_development_dependency 'oily_png', '~> 1'
|
||||||
|
|||||||
Reference in New Issue
Block a user