ruby-mext 0.21.5 → 0.21.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f2f4f4f25273a53383d136a74e37bc86532da799ffcda4a158216d87e68e4eaf
4
- data.tar.gz: 006b52ca22341b85fe7f3e6bfb2a53d8242880fb66e5e577ead3a1fe437e29f3
3
+ metadata.gz: 7d543e0e00be11dea0f00c0ce6d9679d4a4c75763f4ff106eee0a262e1a0405c
4
+ data.tar.gz: 68ec005980d394bc22d3a17f3ab4c62706d02fc795a90b731b9393556ab338e9
5
5
  SHA512:
6
- metadata.gz: c0aede90dcd997f577eea7f96280c38e1bd815983f746a026f22b0ebe3e7a8a588b762c37a3e76345b7d8159181bf5c11af08e5f8bcf844d362f10a9b3172db3
7
- data.tar.gz: 56c1b1346179f2daee885cfb0d1e68c929d79b42a5260a618892a226348b9cc3b36fbc1e83f2612e97cec6b87a6166df4db654980a32c6edc6089cc6b0c807c9
6
+ metadata.gz: 69bd963b1dcfa608bf0735b2b7c568e949621c591146f495456866fec37688398ebc9a712905e5af8ac9c597e8408845f7ed96c50d1edc3e353522d286ccced9
7
+ data.tar.gz: 271c3f54fbcf26341fbf1ab681b0c04742eae5fd00fd2ec05b92118e990a85415ec7f1b90c3a13717f38132b9146d892671b2fa9400beb7064db7e9abc8d36f7
@@ -1,6 +1,6 @@
1
1
 
2
2
  desc 'plot all plots'
3
- task :plot => ['plot:expon', 'plot:line', 'plot:stepwise']
3
+ task :plot => ['plot:expon', 'plot:line', 'plot:stepwise', 'plot:polynomial']
4
4
 
5
5
  namespace :plot do
6
6
 
@@ -0,0 +1,17 @@
1
+ require 'fileutils'
2
+ require File.expand_path(File.join(['..'] * 4, 'spec', 'fixtures', 'polynomial_dataset'), __FILE__)
3
+ require File.expand_path(File.join('..', 'gruff_plot'), __FILE__)
4
+
5
+ namespace :plot do
6
+
7
+ desc 'plot the Polynomial dataset'
8
+ task :polynomial => :create_output_dir do
9
+ ranges = [ Range.new(0, 0) ]
10
+ p = Mext::Gruff::Plotter.new('polynomial_dataset', 800, Mext::Spec::Fixtures::Math::POLYNOMIAL_DATASET, ranges)
11
+ p.plot do
12
+ |args|
13
+ Math::Polynomial.new(args)
14
+ end
15
+ end
16
+
17
+ end
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mext
2
- VERSION = '0.21.5'
2
+ VERSION = '0.21.6'
3
3
  end
data/ruby-mext.gemspec CHANGED
@@ -36,6 +36,6 @@ Gem::Specification.new do |spec|
36
36
  spec.add_development_dependency 'rspec'
37
37
  spec.add_development_dependency 'rdoc'
38
38
  spec.add_development_dependency 'byebug'
39
- spec.add_development_dependency 'matplotlib'
39
+ spec.add_development_dependency 'gruff'
40
40
 
41
41
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-mext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.5
4
+ version: 0.21.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicola Bernardini
@@ -109,7 +109,7 @@ dependencies:
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
- name: matplotlib
112
+ name: gruff
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - ">="
@@ -200,6 +200,7 @@ files:
200
200
  - lib/tasks/gruff/gruff.rake
201
201
  - lib/tasks/gruff/gruff_plot.rb
202
202
  - lib/tasks/gruff/line.rake
203
+ - lib/tasks/gruff/polynomial.rake
203
204
  - lib/tasks/gruff/stepwise.rake
204
205
  - lib/version.rb
205
206
  - ruby-mext.gemspec