syspy 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,7 @@
1
1
  require "stringio"
2
2
  require "thread"
3
3
 
4
+ require "bytes"
4
5
  require "tds_types"
5
6
  require "tds_tokens"
6
7
 
@@ -73,8 +73,8 @@ module Syspy
73
73
  end
74
74
 
75
75
  class_file_name = name.downcase
76
- if(File.exist?("tds_packages/#{class_file_name}.rb"))
77
- require "tds_packages/#{class_file_name}"
76
+ if(File.exist?(File.join(File.dirname(__FILE__),"tds_packages/#{class_file_name}.rb")))
77
+ require File.join(File.dirname(__FILE__),"tds_packages/#{class_file_name}")
78
78
  class_name = class_file_name.to_s.gsub(/\/(.?)/) { "::" + $1.upcase }.gsub(/(^|_)(.)/) { $2.upcase }
79
79
  cl = eval(class_name)
80
80
  STREAM_CLASSES[token] = cl
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: syspy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 8
10
- version: 0.0.8
9
+ - 9
10
+ version: 0.0.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matthias Balmer