activerecord-postgresql-extensions 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/activerecord-postgresql-extensions.gemspec +20 -17
- data/lib/activerecord-postgresql-extensions.rb +2 -0
- data/lib/postgresql_extensions/postgresql_adapter_extensions.rb +50 -53
- data/lib/postgresql_extensions/postgresql_constraints.rb +142 -153
- data/lib/postgresql_extensions/postgresql_extensions.rb +246 -0
- data/lib/postgresql_extensions/postgresql_functions.rb +31 -33
- data/lib/postgresql_extensions/postgresql_geometry.rb +2 -2
- data/lib/postgresql_extensions/postgresql_indexes.rb +13 -14
- data/lib/postgresql_extensions/postgresql_languages.rb +4 -4
- data/lib/postgresql_extensions/postgresql_permissions.rb +12 -14
- data/lib/postgresql_extensions/postgresql_roles.rb +2 -2
- data/lib/postgresql_extensions/postgresql_rules.rb +11 -10
- data/lib/postgresql_extensions/postgresql_schemas.rb +4 -4
- data/lib/postgresql_extensions/postgresql_sequences.rb +15 -16
- data/lib/postgresql_extensions/postgresql_tables.rb +20 -21
- data/lib/postgresql_extensions/postgresql_text_search.rb +313 -0
- data/lib/postgresql_extensions/postgresql_triggers.rb +13 -14
- data/lib/postgresql_extensions/postgresql_types.rb +1 -1
- data/lib/postgresql_extensions/postgresql_views.rb +13 -14
- data/test/{adapter_test.rb → adapter_tests.rb} +6 -6
- data/test/{constraints_test.rb → constraints_tests.rb} +13 -13
- data/test/extensions_tests.rb +275 -0
- data/test/{functions_test.rb → functions_tests.rb} +10 -10
- data/test/{geometry_test.rb → geometry_tests.rb} +16 -16
- data/test/{index_test.rb → index_tests.rb} +11 -11
- data/test/{languages_test.rb → languages_tests.rb} +6 -6
- data/test/{permissions_test.rb → permissions_tests.rb} +36 -36
- data/test/{roles_test.rb → roles_tests.rb} +6 -6
- data/test/{rules_test.rb → rules_tests.rb} +3 -3
- data/test/{schemas_test.rb → schemas_tests.rb} +6 -6
- data/test/{sequences_test.rb → sequences_tests.rb} +10 -10
- data/test/{tables_test.rb → tables_tests.rb} +2 -2
- data/test/text_search_tests.rb +263 -0
- metadata +19 -16
- data/postgresql-extensions.gemspec +0 -50
@@ -21,8 +21,8 @@ class SequenceTests < Test::Unit::TestCase
|
|
21
21
|
)
|
22
22
|
|
23
23
|
assert_equal([
|
24
|
-
"CREATE SEQUENCE \"what_a_sequence_of_events\" START WITH 10",
|
25
|
-
"CREATE SEQUENCE \"what_a_sequence_of_events\" INCREMENT BY 2 NO MINVALUE MAXVALUE 10 CACHE 2 OWNED BY \"foo\".\"id\""
|
24
|
+
"CREATE SEQUENCE \"what_a_sequence_of_events\" START WITH 10;",
|
25
|
+
"CREATE SEQUENCE \"what_a_sequence_of_events\" INCREMENT BY 2 NO MINVALUE MAXVALUE 10 CACHE 2 OWNED BY \"foo\".\"id\";"
|
26
26
|
], statements)
|
27
27
|
end
|
28
28
|
|
@@ -34,7 +34,7 @@ class SequenceTests < Test::Unit::TestCase
|
|
34
34
|
)
|
35
35
|
|
36
36
|
assert_equal([
|
37
|
-
"DROP SEQUENCE IF EXISTS \"foo_id_seq\" CASCADE"
|
37
|
+
"DROP SEQUENCE IF EXISTS \"foo_id_seq\" CASCADE;"
|
38
38
|
], statements)
|
39
39
|
end
|
40
40
|
|
@@ -42,7 +42,7 @@ class SequenceTests < Test::Unit::TestCase
|
|
42
42
|
Mig.rename_sequence(:foo, :bar)
|
43
43
|
|
44
44
|
assert_equal([
|
45
|
-
'ALTER SEQUENCE "foo" RENAME TO "bar"'
|
45
|
+
'ALTER SEQUENCE "foo" RENAME TO "bar";'
|
46
46
|
], statements)
|
47
47
|
end
|
48
48
|
|
@@ -51,8 +51,8 @@ class SequenceTests < Test::Unit::TestCase
|
|
51
51
|
Mig.alter_sequence_schema(:foo, :public)
|
52
52
|
|
53
53
|
assert_equal([
|
54
|
-
'ALTER SEQUENCE "foo" SET SCHEMA "bar"',
|
55
|
-
'ALTER SEQUENCE "foo" SET SCHEMA PUBLIC',
|
54
|
+
'ALTER SEQUENCE "foo" SET SCHEMA "bar";',
|
55
|
+
'ALTER SEQUENCE "foo" SET SCHEMA PUBLIC;',
|
56
56
|
], statements)
|
57
57
|
end
|
58
58
|
|
@@ -61,8 +61,8 @@ class SequenceTests < Test::Unit::TestCase
|
|
61
61
|
Mig.set_sequence_value(:foo, 42, :is_called => false)
|
62
62
|
|
63
63
|
assert_equal([
|
64
|
-
"SELECT setval('foo', 42, true)",
|
65
|
-
"SELECT setval('foo', 42, false)"
|
64
|
+
"SELECT setval('foo', 42, true);",
|
65
|
+
"SELECT setval('foo', 42, false);"
|
66
66
|
], statements)
|
67
67
|
end
|
68
68
|
|
@@ -83,8 +83,8 @@ class SequenceTests < Test::Unit::TestCase
|
|
83
83
|
)
|
84
84
|
|
85
85
|
assert_equal([
|
86
|
-
"ALTER SEQUENCE \"what_a_sequence_of_events\" RESTART WITH 10",
|
87
|
-
"ALTER SEQUENCE \"what_a_sequence_of_events\" INCREMENT BY 2 NO MINVALUE MAXVALUE 10 START WITH 10 CACHE 2 OWNED BY \"foo\".\"id\""
|
86
|
+
"ALTER SEQUENCE \"what_a_sequence_of_events\" RESTART WITH 10;",
|
87
|
+
"ALTER SEQUENCE \"what_a_sequence_of_events\" INCREMENT BY 2 NO MINVALUE MAXVALUE 10 START WITH 10 CACHE 2 OWNED BY \"foo\".\"id\";"
|
88
88
|
], statements)
|
89
89
|
end
|
90
90
|
end
|
@@ -30,7 +30,7 @@ class TablesTests < Test::Unit::TestCase
|
|
30
30
|
FOREIGN KEY ("bar_id") REFERENCES "bar",
|
31
31
|
FOREIGN KEY ("baz_id") REFERENCES "baz",
|
32
32
|
FOREIGN KEY ("schabba_id", "doo_id") REFERENCES "bar" ("schabba_id", "doo_id")
|
33
|
-
)} ], statements)
|
33
|
+
);} ], statements)
|
34
34
|
end
|
35
35
|
|
36
36
|
def test_default_with_expression
|
@@ -44,6 +44,6 @@ class TablesTests < Test::Unit::TestCase
|
|
44
44
|
"id" serial primary key,
|
45
45
|
"foo_id" integer DEFAULT 1 + 1,
|
46
46
|
"bar_id" integer DEFAULT '1 + 1'
|
47
|
-
)} ], statements)
|
47
|
+
);} ], statements)
|
48
48
|
end
|
49
49
|
end
|
@@ -0,0 +1,263 @@
|
|
1
|
+
|
2
|
+
$: << File.dirname(__FILE__)
|
3
|
+
require 'test_helper'
|
4
|
+
|
5
|
+
class TextSearchTests < Test::Unit::TestCase
|
6
|
+
include PostgreSQLExtensionsTestHelper
|
7
|
+
|
8
|
+
def test_create_text_search_configuration
|
9
|
+
ARBC.create_text_search_configuration(:foo, :parser_name => 'bar')
|
10
|
+
ARBC.create_text_search_configuration(:foo, :source_config => 'bar')
|
11
|
+
ARBC.create_text_search_configuration(:foo, :source_config => { :pg_catalog => 'english' })
|
12
|
+
|
13
|
+
assert_equal([
|
14
|
+
"CREATE TEXT SEARCH CONFIGURATION \"foo\" (PARSER = \"bar\");",
|
15
|
+
"CREATE TEXT SEARCH CONFIGURATION \"foo\" (COPY = \"bar\");",
|
16
|
+
"CREATE TEXT SEARCH CONFIGURATION \"foo\" (COPY = \"pg_catalog\".\"english\");"
|
17
|
+
], statements)
|
18
|
+
|
19
|
+
assert_raise(ArgumentError) do
|
20
|
+
ARBC.create_text_search_configuration(:foo)
|
21
|
+
end
|
22
|
+
|
23
|
+
assert_raise(ArgumentError) do
|
24
|
+
ARBC.create_text_search_configuration(:foo, :parser_name => 'bar', :source_config => 'lolwut')
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
def test_add_text_search_configuration_mapping
|
29
|
+
ARBC.add_text_search_configuration_mapping(:foo, :asciiword, :bar)
|
30
|
+
ARBC.add_text_search_configuration_mapping(:foo, [ :asciiword, :word ], [ :bar, :up ])
|
31
|
+
|
32
|
+
assert_equal([
|
33
|
+
"ALTER TEXT SEARCH CONFIGURATION \"foo\" ADD MAPPING FOR \"asciiword\" WITH \"bar\";",
|
34
|
+
"ALTER TEXT SEARCH CONFIGURATION \"foo\" ADD MAPPING FOR \"asciiword\", \"word\" WITH \"bar\", \"up\";"
|
35
|
+
], statements)
|
36
|
+
end
|
37
|
+
|
38
|
+
def test_alter_text_search_configuration_mapping
|
39
|
+
ARBC.alter_text_search_configuration_mapping(:foo, :asciiword, :bar)
|
40
|
+
ARBC.alter_text_search_configuration_mapping(:foo, [ :asciiword, :word ], [ :bar, :up ])
|
41
|
+
|
42
|
+
assert_equal([
|
43
|
+
"ALTER TEXT SEARCH CONFIGURATION \"foo\" ALTER MAPPING FOR \"asciiword\" WITH \"bar\";",
|
44
|
+
"ALTER TEXT SEARCH CONFIGURATION \"foo\" ALTER MAPPING FOR \"asciiword\", \"word\" WITH \"bar\", \"up\";"
|
45
|
+
], statements)
|
46
|
+
end
|
47
|
+
|
48
|
+
def test_replace_text_search_configuration_dictionary
|
49
|
+
ARBC.replace_text_search_configuration_dictionary(:foo, :bar, :ometer)
|
50
|
+
|
51
|
+
assert_equal([
|
52
|
+
"ALTER TEXT SEARCH CONFIGURATION \"foo\" ALTER MAPPING REPLACE \"bar\" WITH \"ometer\";"
|
53
|
+
], statements)
|
54
|
+
end
|
55
|
+
|
56
|
+
def test_alter_text_search_configuration_mapping_replace_dictionary
|
57
|
+
ARBC.alter_text_search_configuration_mapping_replace_dictionary(:foo, :bar, :old, :new)
|
58
|
+
ARBC.alter_text_search_configuration_mapping_replace_dictionary(:foo, [ :hello, :world ], :old, :new)
|
59
|
+
|
60
|
+
assert_equal([
|
61
|
+
"ALTER TEXT SEARCH CONFIGURATION \"foo\" ALTER MAPPING FOR \"bar\" REPLACE \"old\" WITH \"new\";",
|
62
|
+
"ALTER TEXT SEARCH CONFIGURATION \"foo\" ALTER MAPPING FOR \"hello\", \"world\" REPLACE \"old\" WITH \"new\";"
|
63
|
+
], statements)
|
64
|
+
end
|
65
|
+
|
66
|
+
def test_drop_text_search_configuration_mapping
|
67
|
+
ARBC.drop_text_search_configuration_mapping(:foo, :bar)
|
68
|
+
ARBC.drop_text_search_configuration_mapping(:foo, :bar, :blort)
|
69
|
+
ARBC.drop_text_search_configuration_mapping(:foo, :bar, :if_exists => true)
|
70
|
+
|
71
|
+
assert_equal([
|
72
|
+
"ALTER TEXT SEARCH CONFIGURATION \"foo\" DROP MAPPING FOR \"bar\";",
|
73
|
+
"ALTER TEXT SEARCH CONFIGURATION \"foo\" DROP MAPPING FOR \"bar\", \"blort\";",
|
74
|
+
"ALTER TEXT SEARCH CONFIGURATION \"foo\" DROP MAPPING IF EXISTS FOR \"bar\";"
|
75
|
+
], statements)
|
76
|
+
|
77
|
+
assert_raise(ArgumentError) do
|
78
|
+
ARBC.drop_text_search_configuration_mapping(:foo)
|
79
|
+
end
|
80
|
+
|
81
|
+
assert_raise(ArgumentError) do
|
82
|
+
ARBC.drop_text_search_configuration_mapping(:foo, :if_exists => true)
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
def test_rename_text_search_configuration
|
87
|
+
ARBC.rename_text_search_configuration(:foo, :bar)
|
88
|
+
|
89
|
+
assert_equal([
|
90
|
+
"ALTER TEXT SEARCH CONFIGURATION \"foo\" RENAME TO \"bar\";"
|
91
|
+
], statements)
|
92
|
+
end
|
93
|
+
|
94
|
+
def test_alter_text_search_configuration_owner
|
95
|
+
ARBC.alter_text_search_configuration_owner(:foo, :bar)
|
96
|
+
|
97
|
+
assert_equal([
|
98
|
+
"ALTER TEXT SEARCH CONFIGURATION \"foo\" OWNER TO \"bar\";"
|
99
|
+
], statements)
|
100
|
+
end
|
101
|
+
|
102
|
+
def test_alter_text_search_configuration_schema
|
103
|
+
ARBC.alter_text_search_configuration_schema(:foo, :bar)
|
104
|
+
|
105
|
+
assert_equal([
|
106
|
+
"ALTER TEXT SEARCH CONFIGURATION \"foo\" SET SCHEMA \"bar\";"
|
107
|
+
], statements)
|
108
|
+
end
|
109
|
+
|
110
|
+
def test_drop_text_search_configuration
|
111
|
+
ARBC.drop_text_search_configuration(:foo)
|
112
|
+
ARBC.drop_text_search_configuration(:foo => :bar)
|
113
|
+
ARBC.drop_text_search_configuration(:foo, :if_exists => true, :cascade => true)
|
114
|
+
|
115
|
+
assert_equal([
|
116
|
+
"DROP TEXT SEARCH CONFIGURATION \"foo\";",
|
117
|
+
"DROP TEXT SEARCH CONFIGURATION \"foo\".\"bar\";",
|
118
|
+
"DROP TEXT SEARCH CONFIGURATION IF EXISTS \"foo\" CASCADE;"
|
119
|
+
], statements)
|
120
|
+
end
|
121
|
+
|
122
|
+
def test_create_text_search_dictionary
|
123
|
+
ARBC.create_text_search_dictionary(:foo, :bar, :language => 'english')
|
124
|
+
ARBC.create_text_search_dictionary(:foo, { :pg_catalog => :snowball }, { :language => 'english' })
|
125
|
+
|
126
|
+
assert_equal([
|
127
|
+
"CREATE TEXT SEARCH DICTIONARY \"foo\" (TEMPLATE = \"bar\", \"language\" = 'english');",
|
128
|
+
"CREATE TEXT SEARCH DICTIONARY \"foo\" (TEMPLATE = \"pg_catalog\".\"snowball\", \"language\" = 'english');"
|
129
|
+
], statements)
|
130
|
+
end
|
131
|
+
|
132
|
+
def test_drop_text_search_dictionary
|
133
|
+
ARBC.drop_text_search_dictionary(:foo)
|
134
|
+
ARBC.drop_text_search_dictionary(:foo => :bar)
|
135
|
+
ARBC.drop_text_search_dictionary(:foo, :if_exists => true, :cascade => true)
|
136
|
+
|
137
|
+
assert_equal([
|
138
|
+
"DROP TEXT SEARCH DICTIONARY \"foo\";",
|
139
|
+
"DROP TEXT SEARCH DICTIONARY \"foo\".\"bar\";",
|
140
|
+
"DROP TEXT SEARCH DICTIONARY IF EXISTS \"foo\" CASCADE;"
|
141
|
+
], statements)
|
142
|
+
end
|
143
|
+
|
144
|
+
def test_rename_text_search_dictionary
|
145
|
+
ARBC.rename_text_search_dictionary(:foo, :bar)
|
146
|
+
|
147
|
+
assert_equal([
|
148
|
+
"ALTER TEXT SEARCH DICTIONARY \"foo\" RENAME TO \"bar\";"
|
149
|
+
], statements)
|
150
|
+
end
|
151
|
+
|
152
|
+
def test_alter_text_search_dictionary_owner
|
153
|
+
ARBC.alter_text_search_dictionary_owner(:foo, :bar)
|
154
|
+
|
155
|
+
assert_equal([
|
156
|
+
"ALTER TEXT SEARCH DICTIONARY \"foo\" OWNER TO \"bar\";"
|
157
|
+
], statements)
|
158
|
+
end
|
159
|
+
|
160
|
+
def test_alter_text_search_dictionary_schema
|
161
|
+
ARBC.alter_text_search_dictionary_schema(:foo, :bar)
|
162
|
+
|
163
|
+
assert_equal([
|
164
|
+
"ALTER TEXT SEARCH DICTIONARY \"foo\" SET SCHEMA \"bar\";"
|
165
|
+
], statements)
|
166
|
+
end
|
167
|
+
|
168
|
+
def test_create_text_search_template
|
169
|
+
ARBC.create_text_search_template(:foo, :lexize => 'bar')
|
170
|
+
ARBC.create_text_search_template(:foo, :lexize => 'bar', :init => 'lol')
|
171
|
+
|
172
|
+
assert_equal([
|
173
|
+
"CREATE TEXT SEARCH TEMPLATE \"foo\" (LEXIZE = \"bar\");",
|
174
|
+
"CREATE TEXT SEARCH TEMPLATE \"foo\" (INIT = \"lol\", LEXIZE = \"bar\");"
|
175
|
+
], statements)
|
176
|
+
|
177
|
+
assert_raise(ArgumentError) do
|
178
|
+
ARBC.create_text_search_template(:foo)
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
def test_drop_text_search_template
|
183
|
+
ARBC.drop_text_search_template(:foo)
|
184
|
+
ARBC.drop_text_search_template(:foo => :bar)
|
185
|
+
ARBC.drop_text_search_template(:foo, :if_exists => true, :cascade => true)
|
186
|
+
|
187
|
+
assert_equal([
|
188
|
+
"DROP TEXT SEARCH TEMPLATE \"foo\";",
|
189
|
+
"DROP TEXT SEARCH TEMPLATE \"foo\".\"bar\";",
|
190
|
+
"DROP TEXT SEARCH TEMPLATE IF EXISTS \"foo\" CASCADE;"
|
191
|
+
], statements)
|
192
|
+
end
|
193
|
+
|
194
|
+
def test_rename_text_search_template
|
195
|
+
ARBC.rename_text_search_template(:foo, :bar)
|
196
|
+
|
197
|
+
assert_equal([
|
198
|
+
"ALTER TEXT SEARCH TEMPLATE \"foo\" RENAME TO \"bar\";"
|
199
|
+
], statements)
|
200
|
+
end
|
201
|
+
|
202
|
+
def test_alter_text_search_template_schema
|
203
|
+
ARBC.alter_text_search_template_schema(:foo, :bar)
|
204
|
+
|
205
|
+
assert_equal([
|
206
|
+
"ALTER TEXT SEARCH TEMPLATE \"foo\" SET SCHEMA \"bar\";"
|
207
|
+
], statements)
|
208
|
+
end
|
209
|
+
|
210
|
+
def test_create_text_search_parser
|
211
|
+
ARBC.create_text_search_parser(:foo, {
|
212
|
+
:start => 'start',
|
213
|
+
:gettoken => 'gettoken',
|
214
|
+
:end => 'end',
|
215
|
+
:lextypes => 'lextypes'
|
216
|
+
})
|
217
|
+
|
218
|
+
ARBC.create_text_search_parser(:foo, {
|
219
|
+
:start => 'start',
|
220
|
+
:gettoken => 'gettoken',
|
221
|
+
:end => 'end',
|
222
|
+
:lextypes => 'lextypes',
|
223
|
+
:headline => 'headline'
|
224
|
+
})
|
225
|
+
|
226
|
+
assert_equal([
|
227
|
+
"CREATE TEXT SEARCH PARSER \"foo\" (START = \"start\", GETTOKEN = \"gettoken\", END = \"end\", LEXTYPES = \"lextypes\");",
|
228
|
+
"CREATE TEXT SEARCH PARSER \"foo\" (START = \"start\", GETTOKEN = \"gettoken\", END = \"end\", LEXTYPES = \"lextypes\", HEADLINE = \"headline\");"
|
229
|
+
], statements)
|
230
|
+
|
231
|
+
assert_raise(ArgumentError) do
|
232
|
+
ARBC.create_text_search_parser(:foo)
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
def test_drop_text_search_parser
|
237
|
+
ARBC.drop_text_search_parser(:foo)
|
238
|
+
ARBC.drop_text_search_parser(:foo => :bar)
|
239
|
+
ARBC.drop_text_search_parser(:foo, :if_exists => true, :cascade => true)
|
240
|
+
|
241
|
+
assert_equal([
|
242
|
+
"DROP TEXT SEARCH PARSER \"foo\";",
|
243
|
+
"DROP TEXT SEARCH PARSER \"foo\".\"bar\";",
|
244
|
+
"DROP TEXT SEARCH PARSER IF EXISTS \"foo\" CASCADE;"
|
245
|
+
], statements)
|
246
|
+
end
|
247
|
+
|
248
|
+
def test_rename_text_search_parser
|
249
|
+
ARBC.rename_text_search_parser(:foo, :bar)
|
250
|
+
|
251
|
+
assert_equal([
|
252
|
+
"ALTER TEXT SEARCH PARSER \"foo\" RENAME TO \"bar\";"
|
253
|
+
], statements)
|
254
|
+
end
|
255
|
+
|
256
|
+
def test_alter_text_search_parser_schema
|
257
|
+
ARBC.alter_text_search_parser_schema(:foo, :bar)
|
258
|
+
|
259
|
+
assert_equal([
|
260
|
+
"ALTER TEXT SEARCH PARSER \"foo\" SET SCHEMA \"bar\";"
|
261
|
+
], statements)
|
262
|
+
end
|
263
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-postgresql-extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
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: 2011-
|
12
|
+
date: 2011-11-09 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A whole bunch of extensions the ActiveRecord PostgreSQL adapter.
|
15
15
|
email: code@zoocasa.com
|
@@ -27,6 +27,7 @@ files:
|
|
27
27
|
- lib/postgresql_extensions/foreign_key_associations.rb
|
28
28
|
- lib/postgresql_extensions/postgresql_adapter_extensions.rb
|
29
29
|
- lib/postgresql_extensions/postgresql_constraints.rb
|
30
|
+
- lib/postgresql_extensions/postgresql_extensions.rb
|
30
31
|
- lib/postgresql_extensions/postgresql_functions.rb
|
31
32
|
- lib/postgresql_extensions/postgresql_geometry.rb
|
32
33
|
- lib/postgresql_extensions/postgresql_indexes.rb
|
@@ -37,23 +38,25 @@ files:
|
|
37
38
|
- lib/postgresql_extensions/postgresql_schemas.rb
|
38
39
|
- lib/postgresql_extensions/postgresql_sequences.rb
|
39
40
|
- lib/postgresql_extensions/postgresql_tables.rb
|
41
|
+
- lib/postgresql_extensions/postgresql_text_search.rb
|
40
42
|
- lib/postgresql_extensions/postgresql_triggers.rb
|
41
43
|
- lib/postgresql_extensions/postgresql_types.rb
|
42
44
|
- lib/postgresql_extensions/postgresql_views.rb
|
43
|
-
-
|
44
|
-
- test/
|
45
|
-
- test/
|
46
|
-
- test/
|
47
|
-
- test/
|
48
|
-
- test/
|
49
|
-
- test/
|
50
|
-
- test/
|
51
|
-
- test/
|
52
|
-
- test/
|
53
|
-
- test/
|
54
|
-
- test/
|
55
|
-
- test/
|
45
|
+
- test/adapter_tests.rb
|
46
|
+
- test/constraints_tests.rb
|
47
|
+
- test/extensions_tests.rb
|
48
|
+
- test/functions_tests.rb
|
49
|
+
- test/geometry_tests.rb
|
50
|
+
- test/index_tests.rb
|
51
|
+
- test/languages_tests.rb
|
52
|
+
- test/permissions_tests.rb
|
53
|
+
- test/roles_tests.rb
|
54
|
+
- test/rules_tests.rb
|
55
|
+
- test/schemas_tests.rb
|
56
|
+
- test/sequences_tests.rb
|
57
|
+
- test/tables_tests.rb
|
56
58
|
- test/test_helper.rb
|
59
|
+
- test/text_search_tests.rb
|
57
60
|
homepage: http://github.com/zoocasa/activerecord-postgresql-extensions
|
58
61
|
licenses: []
|
59
62
|
post_install_message:
|
@@ -74,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
77
|
version: '0'
|
75
78
|
requirements: []
|
76
79
|
rubyforge_project:
|
77
|
-
rubygems_version: 1.8.
|
80
|
+
rubygems_version: 1.8.11
|
78
81
|
signing_key:
|
79
82
|
specification_version: 3
|
80
83
|
summary: A whole bunch of extensions the ActiveRecord PostgreSQL adapter.
|
@@ -1,50 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = %q{postgresql-extensions}
|
8
|
-
s.version = "0.0.1"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["J Smith"]
|
12
|
-
s.date = %q{2010-11-30}
|
13
|
-
s.description = %q{A whole bunch of extensions the Rails PostgreSQL adapter.}
|
14
|
-
s.email = %q{code@zoocasa.com}
|
15
|
-
s.extra_rdoc_files = [
|
16
|
-
"README"
|
17
|
-
]
|
18
|
-
s.files = [
|
19
|
-
"README",
|
20
|
-
"Rakefile",
|
21
|
-
"lib/postgresql_adapter_extensions.rb",
|
22
|
-
"lib/postgresql_constraints.rb",
|
23
|
-
"lib/postgresql_functions.rb",
|
24
|
-
"lib/postgresql_geometry.rb",
|
25
|
-
"lib/postgresql_indexes.rb",
|
26
|
-
"lib/postgresql_languages.rb",
|
27
|
-
"lib/postgresql_permissions.rb",
|
28
|
-
"lib/postgresql_rules.rb",
|
29
|
-
"lib/postgresql_schemas.rb",
|
30
|
-
"lib/postgresql_sequences.rb",
|
31
|
-
"lib/postgresql_tables.rb",
|
32
|
-
"lib/postgresql_triggers.rb",
|
33
|
-
"lib/postgresql_views.rb"
|
34
|
-
]
|
35
|
-
s.homepage = %q{http://github.com/zoocasa/postgresql-extensions}
|
36
|
-
s.require_paths = ["lib"]
|
37
|
-
s.rubygems_version = %q{1.3.7}
|
38
|
-
s.summary = %q{A whole bunch of extensions the Rails PostgreSQL adapter.}
|
39
|
-
|
40
|
-
if s.respond_to? :specification_version then
|
41
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
42
|
-
s.specification_version = 3
|
43
|
-
|
44
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
45
|
-
else
|
46
|
-
end
|
47
|
-
else
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|