beezwax 0.1.1 → 0.1.2

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -5,7 +5,7 @@ module Btrieve
5
5
  extend FFI::Library
6
6
  include BtrCodes
7
7
 
8
- if( RUBY_PLATFORM.match('mswin|mingw|cygwin'))
8
+ if(RUBY_PLATFORM.match('mswin|mingw|cygwin'))
9
9
  ffi_lib 'w3btrv7.dll'
10
10
  elsif(RUBY_PLATFORM.match('linux'))
11
11
  ffi_lib 'libpsqlmif.so'
@@ -14,7 +14,6 @@ class BtrieveSession
14
14
 
15
15
  def self.get_session
16
16
  SESSIONS[Thread.current]
17
-
18
17
  end
19
18
 
20
19
  def transaction(&block)
@@ -37,6 +36,7 @@ class BtrieveSession
37
36
  private
38
37
 
39
38
  def initialize(pathname)
39
+ before_wd=Dir.pwd
40
40
  @cache = {}
41
41
  @model_classes = {}
42
42
  @table_cache = {}
@@ -45,6 +45,7 @@ class BtrieveSession
45
45
  btr_op(self, SET_DIRECTORY, NULL_BUFFER, NULL_BUFFER, @pathname, NULL_KEY)
46
46
  @btrieve_schema = BtrieveSchema.new(self)
47
47
  @btrieve_meta = BtrieveMeta.new(self)
48
+ Dir.chdir(before_wd)
48
49
  end
49
50
  end
50
51
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beezwax
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Patrick Lardin