Sha256: 3c247d3f2e30e75d32594d4cf9f0ce595258bd4f48bd12b6220262cc707b34a6

Contents?: true

Size: 471 Bytes

Versions: 16

Compression:

Stored size: 471 Bytes

Contents

module Taps
	module AdapterHacks
		extend self

		LIST = {
			:all => ['non_rails_schema_dump'],
			:mysql => ['invalid_text_limit', 'mysql_invalid_primary_key'],
			:postgresql => ['invalid_text_limit', 'invalid_binary_limit']
		}

		def load(adapter)
			LIST[:all].each do |r|
				require File.dirname(__FILE__) + "/adapter_hacks/#{r}"
			end

			(LIST[adapter.to_sym] || []).each do |r|
				require File.dirname(__FILE__) + "/adapter_hacks/#{r}"
			end
		end
	end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
ricardochimal-taps-0.2.15 lib/taps/adapter_hacks.rb
ricardochimal-taps-0.2.16 lib/taps/adapter_hacks.rb
ricardochimal-taps-0.2.18 lib/taps/adapter_hacks.rb
ricardochimal-taps-0.2.19 lib/taps/adapter_hacks.rb
taps-0.2.26 lib/taps/adapter_hacks.rb
taps-0.2.25 lib/taps/adapter_hacks.rb
taps-0.2.24 lib/taps/adapter_hacks.rb
taps-0.2.23 lib/taps/adapter_hacks.rb
taps-0.2.22 lib/taps/adapter_hacks.rb
taps-0.2.21 lib/taps/adapter_hacks.rb
taps-0.2.20 lib/taps/adapter_hacks.rb
taps-0.2.19 lib/taps/adapter_hacks.rb
taps-0.2.15 lib/taps/adapter_hacks.rb
taps-0.2.16 lib/taps/adapter_hacks.rb
taps-0.2.18 lib/taps/adapter_hacks.rb
taps-0.2.17 lib/taps/adapter_hacks.rb