fancypath 0.5.12 → 0.5.13
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/fancypath.rb +1 -1
- metadata +2 -2
data/lib/fancypath.rb
CHANGED
@@ -99,7 +99,7 @@ class Fancypath < Pathname
|
|
99
99
|
alias_method :change_extension, :set_extension
|
100
100
|
|
101
101
|
def without_extension
|
102
|
-
to_s[/^ (.+?) (\. ([^\.]+))? $/x, 1]
|
102
|
+
dirname.join(basename.to_s[/^ (.+?) (\. ([^\.]+))? $/x, 1])
|
103
103
|
end
|
104
104
|
|
105
105
|
def has_extension?(ext)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fancypath
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Myles Byrne
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-
|
13
|
+
date: 2009-08-06 00:00:00 +10:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|