Skip to content

Commit 06a7e79

Browse files
committed
add gemspec
1 parent a0d58d7 commit 06a7e79

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed

Rakefile

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
task default: [:gem, :test]
3+
4+
desc 'Build gem'
5+
task :gem do
6+
sh 'gem build math_demo_two.gemspec'
7+
end
8+
9+
desc 'Test'
10+
task :test do
11+
sh 'jruby test/circumcircle_test.rb'
12+
sh 'jruby test/vec2d_test.rb'
13+
sh 'jruby test/point_test.rb'
14+
sh 'jruby test/line_test.rb'
15+
sh 'jruby test/vector_test.rb'
16+
end
File renamed without changes.

math_demo_two.gemspec

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# coding: utf-8
2+
lib = File.expand_path('../lib', __FILE__)
3+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4+
require 'rake'
5+
6+
Gem::Specification.new do |spec|
7+
spec.name = 'math_demo_two'
8+
spec.version = 1.0
9+
spec.author = 'monkstone'
10+
spec.email = '[email protected]'
11+
spec.description = <<-EOS
12+
Math Demo Two uses propane (a ruby wrapper for the processing art framework)
13+
EOS
14+
spec.summary = %q{Example of creating a propane app.}
15+
spec.homepage = "https://ruby-processing.github.io/propane/"
16+
spec.post_install_message = %q{Congratulations you've just installed a propane gem.}
17+
spec.license = 'GPL-3.0'
18+
spec.files = FileList['bin/**/*', 'lib/**/*'].exclude(/jar/).to_a
19+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
20+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
21+
spec.require_paths = ['lib']
22+
spec.required_ruby_version = '>= 2.3'
23+
spec.add_runtime_dependency 'propane', '~> 2.3'
24+
spec.platform = 'java'
25+
spec.add_development_dependency 'rake', '~> 12'
26+
spec.add_development_dependency 'minitest', '~> 5.10'
27+
end

0 commit comments

Comments
 (0)