ruby-gsl-ng 0.2.4 → 0.2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,7 @@
1
+ === 0.2.4.1
2
+ * Fixes:
3
+ * Gnuplot not being correctly executed
4
+ * plotting.cpp didn't compile on some systems
1
5
  === 0.2.4
2
6
  * Features:
3
7
  * Plotting support (using gnuplot) (Plotter class and associated methods on Matrix).
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ Echoe.new('ruby-gsl-ng') do |p|
8
8
  p.author = 'v01d'
9
9
  p.summary = "Ruby/GSL new-generation wrapper"
10
10
  p.url = "http://github.com/v01d/ruby-gsl-ng"
11
- p.version = "0.2.4"
11
+ p.version = "0.2.4.1"
12
12
  p.dependencies = ['yard', 'ffi']
13
13
  # p.eval = proc { s.has_rdoc = 'yard' }
14
14
  end
@@ -4,6 +4,6 @@
4
4
  extern "C" int gsl_matrix_putdata(gsl_matrix* m, int fd) {
5
5
  size_t bytes = m->size1 * m->size2 * sizeof(double);
6
6
  long ret = write(fd, m->data, bytes);
7
- if (ret == -1 || (ulong)ret < bytes) return errno;
7
+ if (ret == -1 || (unsigned long)ret < bytes) return errno;
8
8
  else return 0;
9
- }
9
+ }
@@ -19,7 +19,7 @@ module GSLng
19
19
 
20
20
  # Creates the singleton Plotter object
21
21
  def initialize
22
- @io = IO.popen('gnuplot -', 'w')
22
+ @io = IO.popen('gnuplot', 'w')
23
23
  @io.sync = true
24
24
  self << "set datafile nofpe_trap"
25
25
  end
@@ -27,6 +27,7 @@ module GSLng
27
27
  # Close the pipe. It is desireable to call this in an "ensure" section, to avoid
28
28
  # leaving the child gnuplot process there if the main ruby process dies
29
29
  def close
30
+ Process.kill 'TERM', @io.pid
30
31
  @io.close; @io = nil
31
32
  end
32
33
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{ruby-gsl-ng}
5
- s.version = "0.2.4"
5
+ s.version = "0.2.4.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["v01d"]
9
- s.date = %q{2010-09-21}
9
+ s.date = %q{2010-09-24}
10
10
  s.description = %q{Ruby/GSL new-generation wrapper}
11
11
  s.email = %q{}
12
12
  s.extensions = ["ext/extconf.rb"]
metadata CHANGED
@@ -6,7 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 2
8
8
  - 4
9
- version: 0.2.4
9
+ - 1
10
+ version: 0.2.4.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - v01d
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-09-21 00:00:00 -03:00
18
+ date: 2010-09-24 00:00:00 -03:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency