daemon-ogre 1.4.8 → 1.4.9

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 +7 -1
  3. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.8
1
+ 1.4.9
data/lib/daemon-ogre.rb CHANGED
@@ -132,8 +132,14 @@ begin
132
132
 
133
133
  arg[:monkey_patch]= 0 if arg[:monkey_patch].nil?
134
134
 
135
+
136
+ ### GET Pre path + validation
135
137
  begin
136
- pre_path = caller[arg[:monkey_patch]].split('.rb:').first+('.rb')
138
+ #get method callers path
139
+ pre_path = caller[arg[:monkey_patch].to_i].split('.rb:').first+('.rb')
140
+ if !pre_path.include?('/') && !pre_path.include?('\\')
141
+ pre_path = File.expand_path(pre_path)
142
+ end
137
143
  separator_symbol= String.new
138
144
  pre_path.include?('/') ? separator_symbol = '/' : separator_symbol = '\\'
139
145
  pre_path= ((pre_path.split(separator_symbol))-([pre_path.split(separator_symbol).pop])).join(separator_symbol)
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.8
4
+ version: 1.4.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -112,7 +112,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  segments:
114
114
  - 0
115
- hash: 2500154023147960731
115
+ hash: 1680531074413366324
116
116
  required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements: