activerecord-metal 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/active_record/metal/postgresql.rb +11 -1
- data/lib/active_record/metal/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d679847092cda20cbd7fa3f4f1ad2fa39126f813
|
|
4
|
+
data.tar.gz: ca99cc3134e4e91a807fe37609e902cb92734b24
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d29b214f911bbcae35675209ae8491389f04725cc0887368ccf0202090a7eaea4cd3ea5bc761d766af06f37c1a01eae1ff2da17c30a8ce797233ad126d06197c
|
|
7
|
+
data.tar.gz: 58ac99787d50a4e5cb025199986f6d9db03c032eb4587070755509b80a147a7c6b468f32c0a11091dbbdf15d1f11f669e8aa2df8f7eb86b37cf200c7c3d9c15c
|
|
@@ -12,7 +12,17 @@ module ActiveRecord::Metal::Postgresql
|
|
|
12
12
|
# unprepare_all
|
|
13
13
|
|
|
14
14
|
name, installed_version = exec("SELECT name, installed_version FROM pg_available_extensions WHERE name='hstore'").first
|
|
15
|
-
|
|
15
|
+
unless installed_version
|
|
16
|
+
begin
|
|
17
|
+
exec_ "CREATE EXTENSION IF NOT EXISTS hstore"
|
|
18
|
+
rescue PG::InsufficientPrivilege
|
|
19
|
+
STDERR.puts <<-MSG
|
|
20
|
+
*** Note: we cannot find nor install postgresql's hstore extension. This is not a problem
|
|
21
|
+
unless you need it - in which case you either ask the database admin to install it or to
|
|
22
|
+
give you pivilege to do so yourself. You have been warned.
|
|
23
|
+
MSG
|
|
24
|
+
end
|
|
25
|
+
end
|
|
16
26
|
end
|
|
17
27
|
|
|
18
28
|
def load_pg_types
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activerecord-metal
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- radiospiel
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2015-10-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|
|
@@ -66,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
66
66
|
version: '0'
|
|
67
67
|
requirements: []
|
|
68
68
|
rubyforge_project:
|
|
69
|
-
rubygems_version: 2.
|
|
69
|
+
rubygems_version: 2.4.6
|
|
70
70
|
signing_key:
|
|
71
71
|
specification_version: 4
|
|
72
72
|
summary: Sometimes you just need SQL.
|