Skip to content

Commit

Permalink
get ready for release
Browse files Browse the repository at this point in the history
  • Loading branch information
monkstone committed Dec 17, 2016
1 parent 06af7db commit 6a14cfc
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 9 deletions.
12 changes: 12 additions & 0 deletions README.md
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
```
11 changes: 10 additions & 1 deletion Rakefile
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
4 changes: 4 additions & 0 deletions bin/math_demo
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
6 changes: 3 additions & 3 deletions lib/math_demo/circles.rb → lib/circles.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env jruby
require 'propane'
require_relative 'circumcircle'
require_relative 't_points'
require_relative 'triangle_point'
require_relative 'math_demo/circumcircle'
require_relative 'math_demo/t_points'
require_relative 'math_demo/triangle_point'

class Circles < Propane::App

Expand Down
12 changes: 7 additions & 5 deletions math_demo.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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'
Expand Down

0 comments on commit 6a14cfc

Please sign in to comment.