eaco 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -0
- data/eaco.gemspec +2 -0
- data/lib/eaco/adapters/active_record.rb +2 -0
- data/lib/eaco/adapters/active_record/postgres_jsonb.rb +3 -1
- data/lib/eaco/dsl/acl.rb +1 -1
- data/lib/eaco/version.rb +1 -1
- data/spec/eaco/acl_spec.rb +2 -0
- metadata +30 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91f235834d2378f29b46f54e433898e4d8e7b34f
|
4
|
+
data.tar.gz: 094515fb0e0c0da6354262e3a0c0f8b50cfce099
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84abe5ac3ef02b6433d2d2dfbd399c032250a480d8fafecdbb38fd662f49c7a48c591bd7baf755feac9eac2e7b649d25aface3e7dbf5f2e5a5f5470908b296d4
|
7
|
+
data.tar.gz: bba9437ebbda22bc5e04752b1a4af8d6898ac3def1d1bb326dbd65dba8e062cd40af967a27630a55d60155b7c543ad87bbd95952bd8851fb24ba8adf91e21c91
|
data/.travis.yml
CHANGED
data/eaco.gemspec
CHANGED
@@ -30,4 +30,6 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_development_dependency "yard-cucumber"
|
31
31
|
spec.add_development_dependency "coveralls"
|
32
32
|
spec.add_development_dependency "guard-shell"
|
33
|
+
spec.add_development_dependency "rails"
|
34
|
+
spec.add_development_dependency "pg"
|
33
35
|
end
|
@@ -27,7 +27,9 @@ module Eaco
|
|
27
27
|
|
28
28
|
designators = actor.designators.map {|d| quote_value(d, nil) }
|
29
29
|
|
30
|
-
|
30
|
+
column = "#{connection.quote_table_name(table_name)}.acl"
|
31
|
+
|
32
|
+
where("#{column} ?| array[#{designators.join(',')}]::varchar[]")
|
31
33
|
end
|
32
34
|
end
|
33
35
|
|
data/lib/eaco/dsl/acl.rb
CHANGED
data/lib/eaco/version.rb
CHANGED
data/spec/eaco/acl_spec.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eaco
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcello Barnaba
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -192,6 +192,34 @@ dependencies:
|
|
192
192
|
- - ">="
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: rails
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: pg
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
195
223
|
description:
|
196
224
|
email:
|
197
225
|
- vjt@openssl.it
|