Skip to content

Commit

Permalink
Split mittsu gem into mittsu-core and mittsu-renderer-opengl
Browse files Browse the repository at this point in the history
  • Loading branch information
Floppy committed Mar 13, 2024
1 parent 7f44c46 commit b82b3d1
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 14 deletions.
34 changes: 34 additions & 0 deletions mittsu-core.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'mittsu/version'

Gem::Specification.new do |spec|
spec.name = "mittsu-core"
spec.version = Mittsu::VERSION
spec.authors = ["Danielle Smith"]
spec.email = ["danini@hey.com"]

spec.summary = %q{3D Graphics Library for Ruby}
spec.description = %q{Mittsu makes 3D graphics easier by providing an abstraction over OpenGL, and is based heavily off of THREE.js. No more weird pointers and wondering about the difference between a VAO and a VBO (besides the letter). Simply think of something awesome and make it!}
spec.homepage = "https://github.com/danini-the-panini/mittsu"
spec.license = "MIT"
spec.metadata = {
"bug_tracker" => "https://github.com/danini-the-panini/mittsu/issues"
}

spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{(^(test|examples|renderers)/|\.sh$)}) }
spec.require_paths = ["lib"]

spec.required_ruby_version = '>= 2.0.0'

spec.add_runtime_dependency 'chunky_png'

spec.add_development_dependency "bundler"
spec.add_development_dependency "rake"
spec.add_development_dependency 'minitest'
spec.add_development_dependency 'minitest-reporters'
spec.add_development_dependency 'pry'
spec.add_development_dependency 'benchmark-ips'
spec.add_development_dependency 'simplecov', '0.17.1'
end
37 changes: 37 additions & 0 deletions mittsu-renderer-opengl.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'mittsu/version'

Gem::Specification.new do |spec|
spec.name = "mittsu-renderer-opengl"
spec.version = Mittsu::VERSION
spec.authors = ["Danielle Smith"]
spec.email = ["danini@hey.com"]

spec.summary = %q{3D Graphics Library for Ruby}
spec.description = %q{Mittsu makes 3D graphics easier by providing an abstraction over OpenGL, and is based heavily off of THREE.js. No more weird pointers and wondering about the difference between a VAO and a VBO (besides the letter). Simply think of something awesome and make it!}
spec.homepage = "https://github.com/danini-the-panini/mittsu"
spec.license = "MIT"
spec.metadata = {
"bug_tracker" => "https://github.com/danini-the-panini/mittsu/issues"
}

spec.files = `git ls-files lib/mittsu/renderers -z`.split("\x0").reject { |f| f.match(%r{(^(test|examples)/|\.sh$)}) }
spec.require_paths = ["lib"]

spec.required_ruby_version = '>= 2.0.0'
spec.requirements << 'OpenGL 3.3+ capable hardware and drivers'

spec.add_runtime_dependency 'mittsu-core', Mittsu::VERSION
spec.add_runtime_dependency 'opengl-bindings'
spec.add_runtime_dependency 'ffi'

spec.add_development_dependency "bundler"
spec.add_development_dependency "rake"
spec.add_development_dependency 'minitest'
spec.add_development_dependency 'minitest-reporters'
spec.add_development_dependency 'pry'
spec.add_development_dependency 'benchmark-ips'
spec.add_development_dependency 'simplecov', '0.17.1'
end
16 changes: 2 additions & 14 deletions mittsu.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,9 @@ Gem::Specification.new do |spec|
"bug_tracker" => "https://github.com/danini-the-panini/mittsu/issues"
}

spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{(^(test|examples)/|\.sh$)}) }
spec.require_paths = ["lib"]

spec.required_ruby_version = '>= 2.0.0'
spec.requirements << 'OpenGL 3.3+ capable hardware and drivers'

spec.add_runtime_dependency 'opengl-bindings'
spec.add_runtime_dependency 'ffi'
spec.add_runtime_dependency 'chunky_png'

spec.add_development_dependency "bundler"
spec.add_development_dependency "rake"
spec.add_development_dependency 'minitest'
spec.add_development_dependency 'minitest-reporters'
spec.add_development_dependency 'pry'
spec.add_development_dependency 'benchmark-ips'
spec.add_development_dependency 'simplecov', '0.17.1'
spec.add_runtime_dependency 'mittsu-core', Mittsu::VERSION
spec.add_runtime_dependency 'mittsu-renderer-opengl', Mittsu::VERSION
end

0 comments on commit b82b3d1

Please sign in to comment.