daemon-ogre 1.4.6 → 1.4.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/daemon-ogre.rb +19 -5
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.6
1
+ 1.4.7
data/lib/daemon-ogre.rb CHANGED
@@ -29,13 +29,27 @@ begin
29
29
 
30
30
  ### GET Pre path + validation
31
31
  begin
32
- #get method callers path
33
- pre_path = caller[arg[:monkey_patch].to_i].split('.rb:').first+('.rb')
34
- separator_symbol= String.new
35
- pre_path.include?('/') ? separator_symbol = '/' : separator_symbol = '\\'
36
- pre_path= ((pre_path.split(separator_symbol))-([pre_path.split(separator_symbol).pop])).join(separator_symbol)
32
+ #get method callers path
33
+
34
+ pre_path = caller[arg[:monkey_patch].to_i].split('.rb:').first+('.rb')
35
+
36
+ if !pre_path.include?('/') && !pre_path.include?('\\')
37
+ pre_path = File.expand_path(pre_path)
38
+ end
39
+
40
+ puts pre_path.inspect
41
+
42
+ separator_symbol= String.new
43
+ pre_path.include?('/') ? separator_symbol = '/' : separator_symbol = '\\'
44
+
45
+ puts 4
46
+ pre_path= ((pre_path.split(separator_symbol))-([pre_path.split(separator_symbol).pop])).join(separator_symbol)
47
+
37
48
  end
38
49
 
50
+
51
+ puts "prepath: "+pre_path.inspect
52
+
39
53
  puts "LOADING_FILES_FROM_"+directory.to_s.split(separator_symbol).last.split('.').first.capitalize if $DEBUG
40
54
 
41
55
  puts "Elements found in #{directory}" if $DEBUG
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daemon-ogre
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.6
4
+ version: 1.4.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-06 00:00:00.000000000 Z
12
+ date: 2013-07-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdoc
@@ -112,7 +112,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  segments:
114
114
  - 0
115
- hash: 4000576333674264845
115
+ hash: 3988836083563664350
116
116
  required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements: