From 17f56b462b95b265248bedd9113d8ac3a08a6a85 Mon Sep 17 00:00:00 2001 From: Aaron Marburg Date: Thu, 2 Feb 2012 11:30:06 +1300 Subject: [PATCH 1/4] Crafted a sparse Gemfile to bootstrap this gem straight from Git. --- Gemfile | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Gemfile diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..c6acaa5 --- /dev/null +++ b/Gemfile @@ -0,0 +1,8 @@ +Gem::Specification.new do |s| + s.name = 'gnuplot' + s.description = s.summary = "Utility library to aid in interacting with gnuplot" + s.version = "2.3.6" + s.autorequire = 'gnuplot.rb' + s.email = "rogerpack2005@gmail.com" + s.homepage = "http://github.com/rdp/ruby_gnuplot/tree/master" +end From 7ad4c4f38262f8fde4b0b36049beb0a0d52d6a03 Mon Sep 17 00:00:00 2001 From: Aaron Marburg Date: Thu, 2 Feb 2012 11:32:04 +1300 Subject: [PATCH 2/4] Renamed Gemfile to gemspec, of course... --- Gemfile => gnuplot.gemspec | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Gemfile => gnuplot.gemspec (100%) diff --git a/Gemfile b/gnuplot.gemspec similarity index 100% rename from Gemfile rename to gnuplot.gemspec From 6d76497c876d077e9d85a23d83a1f09c0558614a Mon Sep 17 00:00:00 2001 From: Aaron Marburg Date: Thu, 2 Feb 2012 11:37:02 +1300 Subject: [PATCH 3/4] Improved gemspec. --- gnuplot.gemspec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gnuplot.gemspec b/gnuplot.gemspec index c6acaa5..b1f85dd 100644 --- a/gnuplot.gemspec +++ b/gnuplot.gemspec @@ -3,6 +3,13 @@ Gem::Specification.new do |s| s.description = s.summary = "Utility library to aid in interacting with gnuplot" s.version = "2.3.6" s.autorequire = 'gnuplot.rb' + s.authors = "rogerpack2005@gmail.com" s.email = "rogerpack2005@gmail.com" s.homepage = "http://github.com/rdp/ruby_gnuplot/tree/master" + + s.files = `git ls-files`.split("\n") + s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") + s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } + s.require_paths = ["lib"] + end From 7efd640e5f771d157975facdf55e5dde91788a8f Mon Sep 17 00:00:00 2001 From: Aaron Marburg Date: Thu, 22 Aug 2013 13:35:38 +1200 Subject: [PATCH 4/4] Display data as well as Gnuplot headers. --- lib/gnuplot.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gnuplot.rb b/lib/gnuplot.rb index f8faf42..97e4fbb 100644 --- a/lib/gnuplot.rb +++ b/lib/gnuplot.rb @@ -99,7 +99,7 @@ def initialize (io = nil, cmd = "plot") @data = [] @styles = [] yield self if block_given? - puts "writing this to gnuplot:\n" + to_gplot + "\n" if $VERBOSE + puts "writing this to gnuplot:\n" + to_gplot + "\n" + store_datasets + "\n" if $VERBOSE if io io << to_gplot