octave-ruby 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,9 @@
1
+ == 1.0.2 / 2008-02-28
2
+
3
+ * 1 minor enhancement
4
+ * Added block usage to Octave::Engine.new
5
+
6
+
1
7
  == 1.0.1 / 2008-02-28
2
8
 
3
9
  * 2 major bug fixes
data/lib/octave/engine.rb CHANGED
@@ -18,6 +18,14 @@ module Octave
18
18
  # Create a new Engine object that connects to Octave
19
19
  def initialize(options = {})
20
20
  load_driver(options[:driver])
21
+
22
+ if block_given?
23
+ begin
24
+ yield self
25
+ ensure
26
+ close
27
+ end
28
+ end
21
29
  end
22
30
 
23
31
  # Put a variable in to Octave with the given name
@@ -4,7 +4,7 @@ module Octave
4
4
 
5
5
  MAJOR = 1
6
6
  MINOR = 0
7
- TINY = 1
7
+ TINY = 2
8
8
 
9
9
  STRING = [ MAJOR, MINOR, TINY ].join( "." )
10
10
  #:beta-tag:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octave-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Younger