Sha256: b296345a9cdc876903c514a07e579a0cc63e5661ebfb947e7c97ccca788606c3

Contents?: true

Size: 247 Bytes

Versions: 33

Compression:

Stored size: 247 Bytes

Contents

require 'tmpdir'
require 'fileutils'

unless Dir.const_defined?(:Tmpname)
  class Dir
    class Tmpname
      def self.make_tmpname(x, y)
        n = ::Dir.mktmpdir(x + y)
	FileUtils.rm_rf(n)

	n.sub(::Dir.tmpdir, '')
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
iron_worker_ng-1.0.3 lib/iron_worker_ng/compat.rb
iron_worker_ng-1.0.2 lib/iron_worker_ng/compat.rb
iron_worker_ng-1.0.1 lib/iron_worker_ng/compat.rb
iron_worker_ng-1.0.0 lib/iron_worker_ng/compat.rb
iron_worker_ng-0.16.4 lib/iron_worker_ng/compat.rb
iron_worker_ng-0.16.3 lib/iron_worker_ng/compat.rb
iron_worker_ng-0.16.2 lib/iron_worker_ng/compat.rb
iron_worker_ng-0.16.1 lib/iron_worker_ng/compat.rb
iron_worker_ng-0.16.0 lib/iron_worker_ng/compat.rb
iron_worker_ng-0.15.3 lib/iron_worker_ng/compat.rb
iron_worker_ng-0.15.2 lib/iron_worker_ng/compat.rb
iron_worker_ng-0.15.1 lib/iron_worker_ng/compat.rb
iron_worker_ng-0.15.0 lib/iron_worker_ng/compat.rb