Sha256: e1bf955d82543f26f077777862693e047608bbc04b85659f38e7a0bbde4189b9

Contents?: true

Size: 423 Bytes

Versions: 73

Compression:

Stored size: 423 Bytes

Contents

# 1.9.1 fixes


# Make Pathname compatible with 1.8.7 Pathname.
unless Pathname.instance_methods.include?( :=~ )
	class Pathname
		def self::glob( *args ) # :yield: p
			args = args.collect {|p| p.to_s }
			if block_given?
				Dir.glob(*args) {|f| yield self.new(f) }
			else
				Dir.glob(*args).map {|f| self.new(f) }
			end
		end

		def =~( other )
			self.to_s =~ other
		end

		def to_str
			self.to_s
		end
	end
end


Version data entries

73 entries across 73 versions & 14 rubygems

Version Path
treequel-1.0.1 rake/191_compat.rb
linguistics-1.0.8 rake/191_compat.rb
pluginfactory-1.0.5 rake/191_compat.rb
bluecloth-2.0.5-x86-mingw32 rake/191_compat.rb
treequel-1.0.0 rake/191_compat.rb
bluecloth-2.0.0 rake/191_compat.rb
bluecloth-2.0.1 rake/191_compat.rb
bluecloth-2.0.2 rake/191_compat.rb
bluecloth-2.0.3 rake/191_compat.rb
bluecloth-2.0.4 rake/191_compat.rb
bluecloth-2.0.5 rake/191_compat.rb
linkparser-1.0.4 rake/191_compat.rb
pluginfactory-1.0.4 rake/191_compat.rb