Mxx_ru 1.2.0 → 1.2.1

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 (3) hide show
  1. data/Rakefile +2 -2
  2. data/lib/mxx_ru/util.rb +7 -0
  3. metadata +2 -2
data/Rakefile CHANGED
@@ -4,11 +4,11 @@ Gem::manage_gems
4
4
  require 'rake/gempackagetask'
5
5
 
6
6
  PKG_NAME =
7
- RKG_VERSION = '1.2.0'
7
+ PKG_VERSION = '1.2.1'
8
8
 
9
9
  spec = Gem::Specification.new do |s|
10
10
  s.name = "Mxx_ru"
11
- s.version = "1.2.0"
11
+ s.version = PKG_VERSION
12
12
  s.author = "The Mxx_ru Project"
13
13
  s.email = "eao197@yahoo.com"
14
14
  s.homepage = "http://www.rubyforge.com/projects/mxx-ru"
data/lib/mxx_ru/util.rb CHANGED
@@ -222,6 +222,13 @@ module Mxx_ru
222
222
  to_split = a_name.clone
223
223
  while to_split != "."
224
224
  r = File.split( to_split )
225
+
226
+ # We must stop if to_split cannot be splitted anymore
227
+ # (when working with absolute paths in to_split can be drive name
228
+ # on Windows platform (e.g. 'D:\') or root directory on Unix).
229
+ # In this case r will be equal to [ <something>, '/' ].
230
+ break if 2 == r.size and ( '\\' == r[ 1 ] or '/' == r[ 1 ] )
231
+
225
232
  chain.unshift( to_split = r[ 0 ] )
226
233
  end
227
234
 
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.10
3
3
  specification_version: 1
4
4
  name: Mxx_ru
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.2.0
7
- date: 2006-04-16
6
+ version: 1.2.1
7
+ date: 2006-04-27
8
8
  summary: Mxx_ru (Make++ on Ruby) is a cross-platform build tool
9
9
  require_paths:
10
10
  - lib