fancypath 0.5.12 → 0.5.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/fancypath.rb +1 -1
  2. metadata +2 -2
@@ -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].to_path
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.12
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-07-12 00:00:00 +10:00
13
+ date: 2009-08-06 00:00:00 +10:00
14
14
  default_executable:
15
15
  dependencies: []
16
16