policy 1.0.1 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +9 -0
- data/.travis.yml +6 -14
- data/Gemfile +2 -2
- data/Gemfile.lock +272 -0
- data/README.md +1 -1
- data/lib/policy/version.rb +1 -1
- metadata +11 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a39dd27fd9bd60560c0a85eb5561666f8ac6fe78
|
4
|
+
data.tar.gz: 18d9ca9ab994ba880aa3cb049f991fbbdf7e9967
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c13ec88fa9e022a7d10a568152b977088785a1315fe345cadc9de45b4301cf8ebe91b0eb56c8d598d968f7387a178ca1e600aec252985407fc78b12ad5e8cd0
|
7
|
+
data.tar.gz: 12f7d80b122be236bff053213c323c5d84bcb902b4b17ce6aeb7c80e7ede0f165f83c0755c124dd87440c27e050761adc62ffe5b4d95f250ea20b2ec2fc9c92a
|
data/.gitignore
ADDED
data/.travis.yml
CHANGED
@@ -2,17 +2,9 @@
|
|
2
2
|
language: ruby
|
3
3
|
bundler_args: --without=extras
|
4
4
|
script: rake test:coverage
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
- rvm: 'rbx-2 --2.0'
|
12
|
-
env: 'activemodel=3.1'
|
13
|
-
- rvm: 'rbx-2 --2.0'
|
14
|
-
env: 'activemodel=master'
|
15
|
-
- rvm: 'jruby-20mode'
|
16
|
-
env: 'activemodel=3.1'
|
17
|
-
- rvm: 'jruby-head-20mode'
|
18
|
-
env: 'activemodel=master'
|
5
|
+
rvm:
|
6
|
+
- '2.0'
|
7
|
+
- 'ruby-head'
|
8
|
+
- 'rbx-2 --2.0'
|
9
|
+
- 'jruby-head-20mode'
|
10
|
+
- 'jruby-head-21mode'
|
data/Gemfile
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,272 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
policy (1.0.3)
|
5
|
+
activemodel (>= 3.1)
|
6
|
+
adamantium (~> 0.2)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
abstract_type (0.0.7)
|
12
|
+
activemodel (4.2.0)
|
13
|
+
activesupport (= 4.2.0)
|
14
|
+
builder (~> 3.1)
|
15
|
+
activesupport (4.2.0)
|
16
|
+
i18n (~> 0.7)
|
17
|
+
json (~> 1.7, >= 1.7.7)
|
18
|
+
minitest (~> 5.1)
|
19
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
20
|
+
tzinfo (~> 1.1)
|
21
|
+
adamantium (0.2.0)
|
22
|
+
ice_nine (~> 0.11.0)
|
23
|
+
memoizable (~> 0.4.0)
|
24
|
+
addressable (2.3.7)
|
25
|
+
anima (0.2.0)
|
26
|
+
abstract_type (~> 0.0.7)
|
27
|
+
adamantium (~> 0.1)
|
28
|
+
equalizer (~> 0.0.8)
|
29
|
+
arrayfields (4.9.2)
|
30
|
+
ast (2.0.0)
|
31
|
+
astrolabe (1.3.0)
|
32
|
+
parser (>= 2.2.0.pre.3, < 3.0)
|
33
|
+
builder (3.2.2)
|
34
|
+
cane (2.6.2)
|
35
|
+
parallel
|
36
|
+
celluloid (0.16.0)
|
37
|
+
timers (~> 4.0.0)
|
38
|
+
chronic (0.10.2)
|
39
|
+
churn (0.0.35)
|
40
|
+
chronic (>= 0.2.3)
|
41
|
+
hirb
|
42
|
+
json_pure
|
43
|
+
main
|
44
|
+
rest-client (>= 1.6.0)
|
45
|
+
ruby_parser (~> 3.0)
|
46
|
+
sexp_processor (~> 4.1)
|
47
|
+
code_analyzer (0.4.5)
|
48
|
+
sexp_processor
|
49
|
+
code_metrics (0.1.3)
|
50
|
+
coderay (1.1.0)
|
51
|
+
colored (1.2)
|
52
|
+
concord (0.1.5)
|
53
|
+
adamantium (~> 0.2.0)
|
54
|
+
equalizer (~> 0.0.9)
|
55
|
+
coveralls (0.7.11)
|
56
|
+
multi_json (~> 1.10)
|
57
|
+
rest-client (>= 1.6.8, < 2)
|
58
|
+
simplecov (~> 0.9.1)
|
59
|
+
term-ansicolor (~> 1.3)
|
60
|
+
thor (~> 0.19.1)
|
61
|
+
diff-lcs (1.2.5)
|
62
|
+
docile (1.1.5)
|
63
|
+
equalizer (0.0.9)
|
64
|
+
erubis (2.7.0)
|
65
|
+
fattr (2.2.2)
|
66
|
+
ffi (1.9.6)
|
67
|
+
flay (2.6.1)
|
68
|
+
ruby_parser (~> 3.0)
|
69
|
+
sexp_processor (~> 4.0)
|
70
|
+
flog (4.3.2)
|
71
|
+
ruby_parser (~> 3.1, > 3.1.0)
|
72
|
+
sexp_processor (~> 4.4)
|
73
|
+
formatador (0.2.5)
|
74
|
+
guard (2.12.4)
|
75
|
+
formatador (>= 0.2.4)
|
76
|
+
listen (~> 2.7)
|
77
|
+
lumberjack (~> 1.0)
|
78
|
+
nenv (~> 0.1)
|
79
|
+
notiffany (~> 0.0)
|
80
|
+
pry (>= 0.9.12)
|
81
|
+
shellany (~> 0.0)
|
82
|
+
thor (>= 0.18.1)
|
83
|
+
guard-compat (1.2.1)
|
84
|
+
guard-rspec (4.5.0)
|
85
|
+
guard (~> 2.1)
|
86
|
+
guard-compat (~> 1.1)
|
87
|
+
rspec (>= 2.99.0, < 4.0)
|
88
|
+
hexx-rspec (0.1.0)
|
89
|
+
coveralls (~> 0.7)
|
90
|
+
i18n (~> 0.7)
|
91
|
+
rake (~> 10.3)
|
92
|
+
rspec (~> 3.0)
|
93
|
+
simplecov (~> 0.9)
|
94
|
+
thor (~> 0.19)
|
95
|
+
hexx-suit (1.2.0)
|
96
|
+
guard-rspec (~> 4.3)
|
97
|
+
hexx-rspec (~> 0.1)
|
98
|
+
inch (~> 0.5)
|
99
|
+
metric_fu (~> 4.11)
|
100
|
+
mutant-rspec (~> 0.7)
|
101
|
+
rubocop (~> 0.23)
|
102
|
+
yardstick (~> 0.9)
|
103
|
+
hirb (0.7.3)
|
104
|
+
hitimes (1.2.2)
|
105
|
+
i18n (0.7.0)
|
106
|
+
ice_nine (0.11.1)
|
107
|
+
inch (0.5.10)
|
108
|
+
pry
|
109
|
+
sparkr (>= 0.2.0)
|
110
|
+
term-ansicolor
|
111
|
+
yard (~> 0.8.7.5)
|
112
|
+
json (1.8.2)
|
113
|
+
json_pure (1.8.2)
|
114
|
+
launchy (2.4.3)
|
115
|
+
addressable (~> 2.3)
|
116
|
+
listen (2.9.0)
|
117
|
+
celluloid (>= 0.15.2)
|
118
|
+
rb-fsevent (>= 0.9.3)
|
119
|
+
rb-inotify (>= 0.9)
|
120
|
+
lumberjack (1.0.9)
|
121
|
+
main (6.1.0)
|
122
|
+
arrayfields (>= 4.7.4)
|
123
|
+
chronic (>= 0.6.2)
|
124
|
+
fattr (>= 2.2.0)
|
125
|
+
map (>= 5.1.0)
|
126
|
+
map (6.5.5)
|
127
|
+
memoizable (0.4.2)
|
128
|
+
thread_safe (~> 0.3, >= 0.3.1)
|
129
|
+
method_source (0.8.2)
|
130
|
+
metric_fu (4.11.4)
|
131
|
+
cane (~> 2.5, >= 2.5.2)
|
132
|
+
churn (~> 0.0.35)
|
133
|
+
code_metrics (~> 0.1)
|
134
|
+
coderay
|
135
|
+
flay (~> 2.1, >= 2.0.1)
|
136
|
+
flog (~> 4.1, >= 4.1.1)
|
137
|
+
launchy (~> 2.0)
|
138
|
+
metric_fu-Saikuro (~> 1.1, >= 1.1.3)
|
139
|
+
multi_json
|
140
|
+
rails_best_practices (~> 1.14, >= 1.14.3)
|
141
|
+
redcard
|
142
|
+
reek (~> 1.3, >= 1.3.4)
|
143
|
+
roodi (~> 3.1)
|
144
|
+
metric_fu-Saikuro (1.1.3)
|
145
|
+
mime-types (2.4.3)
|
146
|
+
minitest (5.5.1)
|
147
|
+
morpher (0.2.3)
|
148
|
+
abstract_type (~> 0.0.7)
|
149
|
+
adamantium (~> 0.2.0)
|
150
|
+
anima (~> 0.2.0)
|
151
|
+
ast (~> 2.0.0)
|
152
|
+
concord (~> 0.1.4)
|
153
|
+
equalizer (~> 0.0.9)
|
154
|
+
ice_nine (~> 0.11.0)
|
155
|
+
procto (~> 0.0.2)
|
156
|
+
multi_json (1.11.0)
|
157
|
+
mutant (0.7.8)
|
158
|
+
abstract_type (~> 0.0.7)
|
159
|
+
adamantium (~> 0.2.0)
|
160
|
+
anima (~> 0.2.0)
|
161
|
+
ast (~> 2.0)
|
162
|
+
concord (~> 0.1.5)
|
163
|
+
diff-lcs (~> 1.2)
|
164
|
+
equalizer (~> 0.0.9)
|
165
|
+
ice_nine (~> 0.11.1)
|
166
|
+
memoizable (~> 0.4.2)
|
167
|
+
morpher (~> 0.2.3)
|
168
|
+
parallel (~> 1.3)
|
169
|
+
parser (~> 2.2.0.2)
|
170
|
+
procto (~> 0.0.2)
|
171
|
+
unparser (~> 0.2.2)
|
172
|
+
mutant-rspec (0.7.8)
|
173
|
+
mutant (~> 0.7.8)
|
174
|
+
rspec-core (>= 3.0.0, < 3.3.0)
|
175
|
+
nenv (0.2.0)
|
176
|
+
netrc (0.10.3)
|
177
|
+
notiffany (0.0.6)
|
178
|
+
nenv (~> 0.1)
|
179
|
+
shellany (~> 0.0)
|
180
|
+
parallel (1.4.1)
|
181
|
+
parser (2.2.0.3)
|
182
|
+
ast (>= 1.1, < 3.0)
|
183
|
+
powerpack (0.1.0)
|
184
|
+
procto (0.0.2)
|
185
|
+
pry (0.10.1)
|
186
|
+
coderay (~> 1.1.0)
|
187
|
+
method_source (~> 0.8.1)
|
188
|
+
slop (~> 3.4)
|
189
|
+
rails_best_practices (1.15.7)
|
190
|
+
activesupport
|
191
|
+
code_analyzer (>= 0.4.3)
|
192
|
+
colored
|
193
|
+
erubis
|
194
|
+
i18n
|
195
|
+
json
|
196
|
+
require_all
|
197
|
+
ruby-progressbar
|
198
|
+
rainbow (2.0.0)
|
199
|
+
rake (10.4.2)
|
200
|
+
rb-fsevent (0.9.4)
|
201
|
+
rb-inotify (0.9.5)
|
202
|
+
ffi (>= 0.5.0)
|
203
|
+
redcard (1.1.0)
|
204
|
+
reek (1.6.6)
|
205
|
+
parser (~> 2.2.0.pre.7)
|
206
|
+
rainbow (>= 1.99, < 3.0)
|
207
|
+
unparser (~> 0.2.2)
|
208
|
+
require_all (1.3.2)
|
209
|
+
rest-client (1.7.3)
|
210
|
+
mime-types (>= 1.16, < 3.0)
|
211
|
+
netrc (~> 0.7)
|
212
|
+
roodi (3.3.1)
|
213
|
+
ruby_parser (~> 3.2, >= 3.2.2)
|
214
|
+
rspec (3.2.0)
|
215
|
+
rspec-core (~> 3.2.0)
|
216
|
+
rspec-expectations (~> 3.2.0)
|
217
|
+
rspec-mocks (~> 3.2.0)
|
218
|
+
rspec-core (3.2.2)
|
219
|
+
rspec-support (~> 3.2.0)
|
220
|
+
rspec-expectations (3.2.0)
|
221
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
222
|
+
rspec-support (~> 3.2.0)
|
223
|
+
rspec-mocks (3.2.1)
|
224
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
225
|
+
rspec-support (~> 3.2.0)
|
226
|
+
rspec-support (3.2.2)
|
227
|
+
rubocop (0.29.1)
|
228
|
+
astrolabe (~> 1.3)
|
229
|
+
parser (>= 2.2.0.1, < 3.0)
|
230
|
+
powerpack (~> 0.1)
|
231
|
+
rainbow (>= 1.99.1, < 3.0)
|
232
|
+
ruby-progressbar (~> 1.4)
|
233
|
+
ruby-progressbar (1.7.1)
|
234
|
+
ruby_parser (3.6.4)
|
235
|
+
sexp_processor (~> 4.1)
|
236
|
+
sexp_processor (4.5.0)
|
237
|
+
shellany (0.0.1)
|
238
|
+
simplecov (0.9.2)
|
239
|
+
docile (~> 1.1.0)
|
240
|
+
multi_json (~> 1.0)
|
241
|
+
simplecov-html (~> 0.9.0)
|
242
|
+
simplecov-html (0.9.0)
|
243
|
+
slop (3.6.0)
|
244
|
+
sparkr (0.4.1)
|
245
|
+
term-ansicolor (1.3.0)
|
246
|
+
tins (~> 1.0)
|
247
|
+
thor (0.19.1)
|
248
|
+
thread_safe (0.3.5)
|
249
|
+
timers (4.0.1)
|
250
|
+
hitimes
|
251
|
+
tins (1.3.5)
|
252
|
+
tzinfo (1.2.2)
|
253
|
+
thread_safe (~> 0.1)
|
254
|
+
unparser (0.2.2)
|
255
|
+
abstract_type (~> 0.0.7)
|
256
|
+
adamantium (~> 0.2.0)
|
257
|
+
concord (~> 0.1.5)
|
258
|
+
diff-lcs (~> 1.2.5)
|
259
|
+
equalizer (~> 0.0.9)
|
260
|
+
parser (~> 2.2.0.2)
|
261
|
+
procto (~> 0.0.2)
|
262
|
+
yard (0.8.7.6)
|
263
|
+
yardstick (0.9.9)
|
264
|
+
yard (~> 0.8, >= 0.8.7.2)
|
265
|
+
|
266
|
+
PLATFORMS
|
267
|
+
ruby
|
268
|
+
|
269
|
+
DEPENDENCIES
|
270
|
+
hexx-rspec (~> 0.1)
|
271
|
+
hexx-suit (= 1.2)
|
272
|
+
policy!
|
data/README.md
CHANGED
data/lib/policy/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: policy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kozin
|
@@ -11,42 +11,42 @@ cert_chain: []
|
|
11
11
|
date: 2015-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
+
type: :runtime
|
14
15
|
name: activemodel
|
16
|
+
prerelease: false
|
15
17
|
requirement: !ruby/object:Gem::Requirement
|
16
18
|
requirements:
|
17
19
|
- - ">="
|
18
20
|
- !ruby/object:Gem::Version
|
19
21
|
version: '3.1'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '3.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
+
type: :runtime
|
28
29
|
name: adamantium
|
30
|
+
prerelease: false
|
29
31
|
requirement: !ruby/object:Gem::Requirement
|
30
32
|
requirements:
|
31
33
|
- - "~>"
|
32
34
|
- !ruby/object:Gem::Version
|
33
35
|
version: '0.2'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0.2'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
+
type: :development
|
42
43
|
name: hexx-rspec
|
44
|
+
prerelease: false
|
43
45
|
requirement: !ruby/object:Gem::Requirement
|
44
46
|
requirements:
|
45
47
|
- - "~>"
|
46
48
|
- !ruby/object:Gem::Version
|
47
49
|
version: '0.1'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
@@ -62,12 +62,14 @@ extra_rdoc_files:
|
|
62
62
|
- config/metrics/STYLEGUIDE
|
63
63
|
files:
|
64
64
|
- ".coveralls.yml"
|
65
|
+
- ".gitignore"
|
65
66
|
- ".metrics"
|
66
67
|
- ".rspec"
|
67
68
|
- ".rubocop.yml"
|
68
69
|
- ".travis.yml"
|
69
70
|
- ".yardopts"
|
70
71
|
- Gemfile
|
72
|
+
- Gemfile.lock
|
71
73
|
- Guardfile
|
72
74
|
- LICENSE
|
73
75
|
- README.md
|
@@ -131,12 +133,12 @@ summary: Policy Objects for Ruby.
|
|
131
133
|
test_files:
|
132
134
|
- spec/spec_helper.rb
|
133
135
|
- spec/tests/policy_spec.rb
|
136
|
+
- spec/features/follower_spec.rb
|
134
137
|
- spec/tests/policy/follower_spec.rb
|
135
138
|
- spec/tests/policy/interface_spec.rb
|
136
139
|
- spec/tests/policy/validations_spec.rb
|
140
|
+
- spec/tests/policy/violation_error_spec.rb
|
137
141
|
- spec/tests/policy/follower/followed_policies_spec.rb
|
138
142
|
- spec/tests/policy/follower/followed_policy_spec.rb
|
139
143
|
- spec/tests/policy/follower/names_spec.rb
|
140
|
-
- spec/tests/policy/violation_error_spec.rb
|
141
|
-
- spec/features/follower_spec.rb
|
142
144
|
has_rdoc:
|