activerecord-metal 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 26a0b261607e11c004f15ebdb2df7e0a7d9f7dac
4
- data.tar.gz: cb1336caf87abe1c97b48690dd98ee89e16b9c40
3
+ metadata.gz: d679847092cda20cbd7fa3f4f1ad2fa39126f813
4
+ data.tar.gz: ca99cc3134e4e91a807fe37609e902cb92734b24
5
5
  SHA512:
6
- metadata.gz: bf7b0cc2e2cecbf8b95c1aaaa5dcfde20c15c2e8d277962968bf388223f1377c1eda30153707b43f4011e14d47a42fff7c030121ad4d307e15a90e837be87123
7
- data.tar.gz: f8818aa34909268dfc632e61114ab175232352f328aa4625ab574d8bafcb57998cb7e28b7200c51a1d5fc1cd1a52c680f2e7daf2a703f5e616bc471840dab3bf
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
- exec_ "CREATE EXTENSION IF NOT EXISTS hstore" unless installed_version
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
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord; end
2
2
 
3
3
  class ActiveRecord::Metal
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
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.0
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: 2014-09-24 00:00:00.000000000 Z
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.2.2
69
+ rubygems_version: 2.4.6
70
70
  signing_key:
71
71
  specification_version: 4
72
72
  summary: Sometimes you just need SQL.