postgres_ext 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.2.1
2
+
3
+ * Fixes issue with citext change column calls - Dan McClain
4
+ (@danmcclain)
5
+
1
6
  ## 0.2.0
2
7
 
3
8
  * Introduces extensions to `ActiveRecord::Relation.where` to simplify
@@ -127,7 +127,8 @@ module ActiveRecord
127
127
  class PostgreSQLAdapter
128
128
  class UnsupportedFeature < Exception; end
129
129
 
130
- EXTENDED_TYPES = {:inet => {:name => 'inet'}, :cidr => {:name => 'cidr'}, :macaddr => {:name => 'macaddr'}, :uuid => {:name => 'uuid'}, :citext => {:citext => 'citext'}}
130
+ EXTENDED_TYPES = { :inet => {:name => 'inet'}, :cidr => {:name => 'cidr'}, :macaddr => {:name => 'macaddr'},
131
+ :uuid => {:name => 'uuid'}, :citext => {:name => 'citext'} }
131
132
 
132
133
  class ColumnDefinition < ActiveRecord::ConnectionAdapters::ColumnDefinition
133
134
  attr_accessor :array
@@ -1,3 +1,3 @@
1
1
  module PostgresExt
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
@@ -10,7 +10,10 @@ describe 'CITEXT migrations' do
10
10
  t.citext :citext_1
11
11
  t.citext :citext_2, :citext_3
12
12
  t.column :citext_4, :citext
13
+ t.text :citext_5
13
14
  end
15
+
16
+ connection.change_column :data_types, :citext_5, :citext
14
17
  end.should_not raise_exception
15
18
 
16
19
  columns = connection.columns(:data_types)
@@ -18,10 +21,12 @@ describe 'CITEXT migrations' do
18
21
  citext_2 = columns.detect { |c| c.name == 'citext_2'}
19
22
  citext_3 = columns.detect { |c| c.name == 'citext_3'}
20
23
  citext_4 = columns.detect { |c| c.name == 'citext_4'}
24
+ citext_5 = columns.detect { |c| c.name == 'citext_5'}
21
25
 
22
26
  citext_1.sql_type.should eq 'citext'
23
27
  citext_2.sql_type.should eq 'citext'
24
28
  citext_3.sql_type.should eq 'citext'
25
29
  citext_4.sql_type.should eq 'citext'
30
+ citext_5.sql_type.should eq 'citext'
26
31
  end
27
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postgres_ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-08 00:00:00.000000000 Z
12
+ date: 2013-02-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -237,7 +237,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
237
237
  version: '0'
238
238
  segments:
239
239
  - 0
240
- hash: -3214971167706041644
240
+ hash: 2858129124341141238
241
241
  required_rubygems_version: !ruby/object:Gem::Requirement
242
242
  none: false
243
243
  requirements:
@@ -246,7 +246,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
246
246
  version: '0'
247
247
  segments:
248
248
  - 0
249
- hash: -3214971167706041644
249
+ hash: 2858129124341141238
250
250
  requirements: []
251
251
  rubyforge_project:
252
252
  rubygems_version: 1.8.23