valise 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/valise/utils.rb +4 -4
- metadata +4 -4
data/lib/valise/utils.rb
CHANGED
@@ -31,7 +31,7 @@ module Valise
|
|
31
31
|
|
32
32
|
def from_here(rel_path, base_path = nil)
|
33
33
|
base_path ||= file_from_backtrace(caller[0])
|
34
|
-
collapse(unpath(base_path) + unpath(rel_path))
|
34
|
+
repath(collapse(unpath(base_path) + unpath(rel_path)))
|
35
35
|
end
|
36
36
|
|
37
37
|
def up_to(up_to = nil, base_path = nil)
|
@@ -48,7 +48,7 @@ module Valise
|
|
48
48
|
raise "Relative root #{up_to.inspect} not found in #{abs_path.inspect}"
|
49
49
|
end
|
50
50
|
|
51
|
-
return base_path
|
51
|
+
return repath(base_path)
|
52
52
|
end
|
53
53
|
|
54
54
|
def unpath(parts)
|
@@ -112,7 +112,7 @@ module Valise
|
|
112
112
|
end
|
113
113
|
end
|
114
114
|
|
115
|
-
module_function :from_here, :up_to
|
116
|
-
public :from_here, :up_to
|
115
|
+
module_function :from_here, :up_to, :unpath, :repath, :string_to_segments, :file_from_backtrace
|
116
|
+
public :from_here, :up_to, :file_from_backtrace
|
117
117
|
end
|
118
118
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: valise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
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-03-
|
12
|
+
date: 2013-03-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: corundum
|
@@ -209,7 +209,7 @@ rdoc_options:
|
|
209
209
|
- --main
|
210
210
|
- doc/README
|
211
211
|
- --title
|
212
|
-
- valise-0.9.
|
212
|
+
- valise-0.9.1 RDoc
|
213
213
|
require_paths:
|
214
214
|
- lib/
|
215
215
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -220,7 +220,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
220
220
|
version: '0'
|
221
221
|
segments:
|
222
222
|
- 0
|
223
|
-
hash:
|
223
|
+
hash: 907833537
|
224
224
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
225
225
|
none: false
|
226
226
|
requirements:
|