accessly 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +23 -0
- data/accessly.gemspec +1 -1
- data/lib/accessly/policy/base.rb +2 -2
- data/lib/accessly/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 815f41738a2e4a9ff10656b7328cfcbce68ceb41
|
4
|
+
data.tar.gz: 9920d928acb62e3a3f823f28a2322cd0a8dba174
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 120ca23c06d76c839e22860b01483c182e32ecb6ce1f67e8377fddeb46871d70ecb6acc85a474acb3061ecc6fc7e2bc9411b0ecba71fc20811d20429c126862b
|
7
|
+
data.tar.gz: ed13d76b6ee3b35bed3f3ba0b10c330511b1f0e602e25651b4b530ce153f229a1cb81d4dfe7cdaca6cecf2fadd332390fbfda99dabf304093bf8027dc57d209e
|
data/Gemfile.lock
CHANGED
@@ -66,6 +66,7 @@ GEM
|
|
66
66
|
nio4r (2.3.0)
|
67
67
|
nokogiri (1.8.2)
|
68
68
|
mini_portile2 (~> 2.3.0)
|
69
|
+
pg (0.21.0)
|
69
70
|
rack (2.0.4)
|
70
71
|
rack-test (0.8.3)
|
71
72
|
rack (>= 1.0, < 3)
|
@@ -100,7 +101,6 @@ GEM
|
|
100
101
|
actionpack (>= 4.0)
|
101
102
|
activesupport (>= 4.0)
|
102
103
|
sprockets (>= 3.0.0)
|
103
|
-
sqlite3 (1.3.13)
|
104
104
|
thor (0.20.0)
|
105
105
|
thread_safe (0.3.6)
|
106
106
|
tzinfo (1.2.5)
|
@@ -117,9 +117,9 @@ DEPENDENCIES
|
|
117
117
|
bundler (~> 1.16)
|
118
118
|
database_cleaner (~> 1.5)
|
119
119
|
minitest (~> 5.0)
|
120
|
+
pg (~> 0.18)
|
120
121
|
rails (~> 5.0)
|
121
122
|
rake (~> 10.0)
|
122
|
-
sqlite3 (~> 1.3)
|
123
123
|
|
124
124
|
RUBY VERSION
|
125
125
|
ruby 2.4.2p198
|
data/README.md
CHANGED
@@ -318,6 +318,29 @@ Accessly implements some internal caching to increase the performance of permiss
|
|
318
318
|
|
319
319
|
Bug reports and pull requests are welcome on GitHub at https://github.com/lessonly/accessly.
|
320
320
|
|
321
|
+
## Testing
|
322
|
+
|
323
|
+
Local tests rely on a postgres database. from a `psql` console on your local machine
|
324
|
+
1) Create the local 'aaa_test' database
|
325
|
+
```
|
326
|
+
CREATE DATABASE aaa_test;
|
327
|
+
```
|
328
|
+
|
329
|
+
2) Connect to the database
|
330
|
+
```
|
331
|
+
\c aaa_test;
|
332
|
+
```
|
333
|
+
|
334
|
+
3) Create the necessary extension
|
335
|
+
```
|
336
|
+
CREATE EXTENSION IF NOT EXISTS pgcrypto;
|
337
|
+
```
|
338
|
+
|
339
|
+
4) From the root of the gem folder run
|
340
|
+
```
|
341
|
+
rake
|
342
|
+
```
|
343
|
+
|
321
344
|
## License
|
322
345
|
|
323
346
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/accessly.gemspec
CHANGED
@@ -27,6 +27,6 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.add_development_dependency "rake", "~> 10.0"
|
28
28
|
spec.add_development_dependency "minitest", "~> 5.0"
|
29
29
|
spec.add_development_dependency "database_cleaner", "~> 1.5"
|
30
|
-
spec.add_development_dependency "
|
30
|
+
spec.add_development_dependency "pg", "~> 0.18"
|
31
31
|
spec.add_development_dependency "rails", "~> 5.0"
|
32
32
|
end
|
data/lib/accessly/policy/base.rb
CHANGED
@@ -266,7 +266,7 @@ module Accessly
|
|
266
266
|
end
|
267
267
|
|
268
268
|
def self._actions
|
269
|
-
|
269
|
+
@_actions ||= {}
|
270
270
|
end
|
271
271
|
|
272
272
|
def _actions
|
@@ -274,7 +274,7 @@ module Accessly
|
|
274
274
|
end
|
275
275
|
|
276
276
|
def self._actions_on_objects
|
277
|
-
|
277
|
+
@_actions_on_objects ||= {}
|
278
278
|
end
|
279
279
|
|
280
280
|
def _actions_on_objects
|
data/lib/accessly/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: accessly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Milam
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-
|
13
|
+
date: 2018-06-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activerecord
|
@@ -83,19 +83,19 @@ dependencies:
|
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: '1.5'
|
85
85
|
- !ruby/object:Gem::Dependency
|
86
|
-
name:
|
86
|
+
name: pg
|
87
87
|
requirement: !ruby/object:Gem::Requirement
|
88
88
|
requirements:
|
89
89
|
- - "~>"
|
90
90
|
- !ruby/object:Gem::Version
|
91
|
-
version: '
|
91
|
+
version: '0.18'
|
92
92
|
type: :development
|
93
93
|
prerelease: false
|
94
94
|
version_requirements: !ruby/object:Gem::Requirement
|
95
95
|
requirements:
|
96
96
|
- - "~>"
|
97
97
|
- !ruby/object:Gem::Version
|
98
|
-
version: '
|
98
|
+
version: '0.18'
|
99
99
|
- !ruby/object:Gem::Dependency
|
100
100
|
name: rails
|
101
101
|
requirement: !ruby/object:Gem::Requirement
|