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
vanity-1.7.1 vendor/ruby/1.9.1/gems/pg-0.11.0/rake/191_compat.rb
linguistics-1.0.9 rake/191_compat.rb
markos_linguistics-1.0.8.3 rake/191_compat.rb
pg-0.11.0 rake/191_compat.rb
pg-0.11.0-x86-mswin32 rake/191_compat.rb
pg-0.11.0-x86-mingw32 rake/191_compat.rb
pg-0.11.0pre229 rake/191_compat.rb
pg-0.11.0pre229-x86-mswin32 rake/191_compat.rb
pg-0.11.0pre229-x86-mingw32 rake/191_compat.rb
pg-0.11.0pre220 rake/191_compat.rb
pg-0.10.1 rake/191_compat.rb
bluecloth-2.0.10 rake/191_compat.rb
pg-0.10.1pre209 rake/191_compat.rb
pg-0.10.0 rake/191_compat.rb
linkparser-1.1.0 rake/191_compat.rb
treequel-1.2.0 rake/191_compat.rb
configurability-1.0.4 rake/191_compat.rb
configurability-1.0.3 rake/191_compat.rb
pg-ct-0.10.0 rake/191_compat.rb
pg-jdguyot-0.10.0 rake/191_compat.rb