syspy 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/tds_package_stream.rb +1 -0
- data/lib/tds_tokens.rb +2 -2
- metadata +3 -3
data/lib/tds_package_stream.rb
CHANGED
data/lib/tds_tokens.rb
CHANGED
@@ -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:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 9
|
10
|
+
version: 0.0.9
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Matthias Balmer
|