blue-postgresql 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Blue
2
2
  module Postgresql
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -5,8 +5,10 @@ module Blue
5
5
  Blue.configure({
6
6
  :postgresql => {
7
7
  :version => '9.2'
8
- }
8
+ },
9
+ :permissions => []
9
10
  })
11
+
10
12
  Blue::Gems.require('blue-postgresql')
11
13
 
12
14
  def postgresql(options = {})
@@ -97,3 +97,8 @@ host all all ::1/128 md5
97
97
  #local replication postgres peer
98
98
  #host replication postgres 127.0.0.1/32 md5
99
99
  #host replication postgres ::1/128 md5
100
+
101
+ <% Blue.config.postgres.permissions.each do |perm| -%>
102
+ "host #{perm[:db]} #{perm[:user]} #{perm[:address]} #{perm[:method] || 'md5'}"
103
+ <% end -%>
104
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blue-postgresql
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Josh Sharpe
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-05-24 00:00:00 Z
18
+ date: 2013-06-13 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: bundler