taps 0.2.14 → 0.2.15

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 14
2
+ :patch: 15
3
3
  :major: 0
4
4
  :minor: 2
@@ -5,7 +5,7 @@ module Taps
5
5
  LIST = {
6
6
  :all => ['non_rails_schema_dump'],
7
7
  :mysql => ['invalid_text_limit', 'mysql_invalid_primary_key'],
8
- :postgresql => ['invalid_text_limit']
8
+ :postgresql => ['invalid_text_limit', 'invalid_binary_limit']
9
9
  }
10
10
 
11
11
  def load(adapter)
@@ -0,0 +1,13 @@
1
+ module ActiveRecord
2
+ module ConnectionAdapters
3
+ class TableDefinition
4
+ alias_method :original_binary, :binary
5
+ def binary(*args)
6
+ options = args.extract_options!
7
+ options.delete(:limit)
8
+ column_names = args
9
+ column_names.each { |name| column(name, 'binary', options) }
10
+ end
11
+ end
12
+ end
13
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.14
4
+ version: 0.2.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Chimal, Jr.
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-04-10 00:00:00 -07:00
13
+ date: 2009-04-14 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -89,17 +89,18 @@ files:
89
89
  - spec/client_session_spec.rb
90
90
  - spec/utils_spec.rb
91
91
  - lib/taps/progress_bar.rb
92
- - lib/taps/client_session.rb
93
92
  - lib/taps/utils.rb
94
- - lib/taps/db_session.rb
95
93
  - lib/taps/adapter_hacks/non_rails_schema_dump.rb
96
- - lib/taps/adapter_hacks/mysql_invalid_primary_key.rb
97
94
  - lib/taps/adapter_hacks/invalid_text_limit.rb
98
- - lib/taps/schema.rb
95
+ - lib/taps/adapter_hacks/mysql_invalid_primary_key.rb
96
+ - lib/taps/adapter_hacks/invalid_binary_limit.rb
97
+ - lib/taps/client_session.rb
98
+ - lib/taps/adapter_hacks.rb
99
99
  - lib/taps/config.rb
100
100
  - lib/taps/cli.rb
101
+ - lib/taps/schema.rb
101
102
  - lib/taps/server.rb
102
- - lib/taps/adapter_hacks.rb
103
+ - lib/taps/db_session.rb
103
104
  - README.rdoc
104
105
  - LICENSE
105
106
  - VERSION.yml