ruby-gsl-ng 0.2.4 → 0.2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/Rakefile +1 -1
- data/ext/plotting.cpp +2 -2
- data/lib/gslng/plotter.rb +2 -1
- data/ruby-gsl-ng.gemspec +2 -2
- metadata +3 -2
data/History.txt
CHANGED
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
|
data/ext/plotting.cpp
CHANGED
@@ -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 || (
|
7
|
+
if (ret == -1 || (unsigned long)ret < bytes) return errno;
|
8
8
|
else return 0;
|
9
|
-
}
|
9
|
+
}
|
data/lib/gslng/plotter.rb
CHANGED
@@ -19,7 +19,7 @@ module GSLng
|
|
19
19
|
|
20
20
|
# Creates the singleton Plotter object
|
21
21
|
def initialize
|
22
|
-
@io = IO.popen('gnuplot
|
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
|
|
data/ruby-gsl-ng.gemspec
CHANGED
@@ -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-
|
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
|
-
|
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-
|
18
|
+
date: 2010-09-24 00:00:00 -03:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|