posgra 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/posgra/driver.rb +1 -1
- data/lib/posgra/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2b2e3a65346e2b279888aaca122a42605633f1f
|
4
|
+
data.tar.gz: 940922471165b5cf650096699a2c18a5ed453f90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e10303ef482af44c9cac302a59c824c7de8754260fffb8fa3fea1c9bff20c5dc6fd5c7ad2de2b4c59548eb27091bf3de76018e2f7549aebc1f4e41e70c48c3d
|
7
|
+
data.tar.gz: 4490756c4187af2c9b2358036aa2543c7096c44d80a3df53396cc35c58a171a7024e2f042bd3570e1ead2728243f6e107b2aabb4d267cba41a8adf5301dcf5e1
|
data/lib/posgra/driver.rb
CHANGED
@@ -269,7 +269,7 @@ class Posgra::Driver
|
|
269
269
|
rs.each do |row|
|
270
270
|
group = row.fetch('groname')
|
271
271
|
user = row.fetch('usename')
|
272
|
-
next unless [group, user].any? {|i| matched?(i, @options[:include_role], @options[:exclude_role]) }
|
272
|
+
next unless [group, user].any? {|i| not i.nil? and matched?(i, @options[:include_role], @options[:exclude_role]) }
|
273
273
|
users_by_group[group] ||= []
|
274
274
|
users_by_group[group] << user if user
|
275
275
|
end
|
data/lib/posgra/version.rb
CHANGED