-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
36 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,14 @@ | ||
# math_demo | ||
An example of how you might develop an app with propane | ||
|
||
to install | ||
|
||
```bash | ||
jgem install math_demo | ||
``` | ||
|
||
to run | ||
|
||
``` | ||
math_demo | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
require 'java' | ||
require 'rake/testtask' | ||
|
||
desc 'Default' | ||
task default: [:test, :gem] | ||
|
||
desc 'Test' | ||
task :test do | ||
sh 'jruby test/circumcircle_test.rb' | ||
sh 'jruby test/triangle_points_test.rb' | ||
# "Uncomment attr_reader triangle_point.rb for next test to run" | ||
# sh 'jruby test/triangle_points_test.rb' | ||
end | ||
|
||
desc 'Gem' | ||
task :gem do | ||
sh 'gem build math_demo.gemspec' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env jruby | ||
file = __FILE__ | ||
require File.expand_path(File.dirname(file) + "/../lib/circles") | ||
Circles.new |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,10 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | |
require 'math_demo/version' | ||
require 'rake' | ||
|
||
Gem::Specification.new do |s| | ||
s.name = 'math_demo' | ||
s.version = MathDemo::VERSION | ||
Gem::Specification.new do |spec| | ||
spec.name = 'math_demo' | ||
spec.version = MathDemo::VERSION | ||
spec.author = 'monkstone' | ||
spec.email = '[email protected]' | ||
spec.description = <<-EOS | ||
Math Demo uses propane (a ruby wrapper for the processing art framework) | ||
|
@@ -14,13 +15,14 @@ Gem::Specification.new do |s| | |
spec.homepage = "https://ruby-processing.github.io/propane/" | ||
spec.license = 'GPL3' | ||
|
||
spec.files = FileList['bin/**/*', 'lib/**/*', 'library/**/*', 'samples/**/*', 'vendors/Rakefile'].exclude(/jar/).to_a | ||
spec.files << 'lib/rpextras.jar' | ||
spec.files = FileList['bin/**/*', 'lib/**/*'].exclude(/jar/).to_a | ||
|
||
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } | ||
spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) | ||
spec.require_paths = ['lib'] | ||
spec.required_ruby_version = '>= 2.3' | ||
spec.add_runtime_dependency 'propane', '~> 2.1' | ||
spec.platform = 'java' | ||
spec.add_development_dependency 'rake', '~> 11.2' | ||
spec.add_development_dependency 'minitest', '~> 5.8' | ||
spec.requirements << 'A decent graphics card' | ||
|