Skip to content

Commit 6a14cfc

Browse files
committed
get ready for release
1 parent 06af7db commit 6a14cfc

File tree

5 files changed

+36
-9
lines changed

5 files changed

+36
-9
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,14 @@
11
# math_demo
22
An example of how you might develop an app with propane
3+
4+
to install
5+
6+
```bash
7+
jgem install math_demo
8+
```
9+
10+
to run
11+
12+
```
13+
math_demo
14+
```

Rakefile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
require 'java'
22
require 'rake/testtask'
33

4+
desc 'Default'
5+
task default: [:test, :gem]
6+
47
desc 'Test'
58
task :test do
69
sh 'jruby test/circumcircle_test.rb'
7-
sh 'jruby test/triangle_points_test.rb'
10+
# "Uncomment attr_reader triangle_point.rb for next test to run"
11+
# sh 'jruby test/triangle_points_test.rb'
12+
end
13+
14+
desc 'Gem'
15+
task :gem do
16+
sh 'gem build math_demo.gemspec'
817
end

bin/math_demo

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env jruby
2+
file = __FILE__
3+
require File.expand_path(File.dirname(file) + "/../lib/circles")
4+
Circles.new

lib/math_demo/circles.rb renamed to lib/circles.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env jruby
22
require 'propane'
3-
require_relative 'circumcircle'
4-
require_relative 't_points'
5-
require_relative 'triangle_point'
3+
require_relative 'math_demo/circumcircle'
4+
require_relative 'math_demo/t_points'
5+
require_relative 'math_demo/triangle_point'
66

77
class Circles < Propane::App
88

math_demo.gemspec

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
33
require 'math_demo/version'
44
require 'rake'
55

6-
Gem::Specification.new do |s|
7-
s.name = 'math_demo'
8-
s.version = MathDemo::VERSION
6+
Gem::Specification.new do |spec|
7+
spec.name = 'math_demo'
8+
spec.version = MathDemo::VERSION
9+
spec.author = 'monkstone'
910
spec.email = '[email protected]'
1011
spec.description = <<-EOS
1112
Math Demo uses propane (a ruby wrapper for the processing art framework)
@@ -14,13 +15,14 @@ Gem::Specification.new do |s|
1415
spec.homepage = "https://ruby-processing.github.io/propane/"
1516
spec.license = 'GPL3'
1617

17-
spec.files = FileList['bin/**/*', 'lib/**/*', 'library/**/*', 'samples/**/*', 'vendors/Rakefile'].exclude(/jar/).to_a
18-
spec.files << 'lib/rpextras.jar'
18+
spec.files = FileList['bin/**/*', 'lib/**/*'].exclude(/jar/).to_a
1919

2020
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
2121
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
2222
spec.require_paths = ['lib']
2323
spec.required_ruby_version = '>= 2.3'
24+
spec.add_runtime_dependency 'propane', '~> 2.1'
25+
spec.platform = 'java'
2426
spec.add_development_dependency 'rake', '~> 11.2'
2527
spec.add_development_dependency 'minitest', '~> 5.8'
2628
spec.requirements << 'A decent graphics card'

0 commit comments

Comments
 (0)