protector 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/gemfiles/AR_3.2.gemfile.lock +1 -1
- data/gemfiles/AR_4.gemfile.lock +1 -1
- data/gemfiles/Rails_3.2.gemfile.lock +1 -1
- data/gemfiles/Rails_4.gemfile.lock +1 -1
- data/gemfiles/Sequel.gemfile.lock +1 -2
- data/lib/protector/adapters/active_record/base.rb +2 -2
- data/lib/protector/adapters/active_record/relation.rb +2 -2
- data/lib/protector/adapters/sequel/dataset.rb +2 -2
- data/lib/protector/adapters/sequel/model.rb +2 -2
- data/lib/protector/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: 18a3586352df222ca67b0aa27be8711af98e9d44
|
4
|
+
data.tar.gz: 5a55e8b998ba4ec4af975d05adb0d8687e2c38d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0dca6468a9b82c7e95615d46f2b93eab694b9ca9400a1c9b6dfbfea7d71320083c9b3731ec063c3078203e64d536c2a68704ce88845b071e13c1445bd89aa29b
|
7
|
+
data.tar.gz: ef7c2c455894bf6d96adbd224c7cdd4922485e34d7112f988ade24338f18e7b6e982063b7fa3ebdb006f2adc4e62e1b4e60605d6ef99fc06fd2fea9f8c3691e1
|
data/gemfiles/AR_4.gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: /Users/inossidabile/Repos/protector
|
3
3
|
specs:
|
4
|
-
protector (0.5.
|
4
|
+
protector (0.5.2)
|
5
5
|
activesupport
|
6
6
|
i18n
|
7
7
|
|
@@ -18,7 +18,6 @@ GEM
|
|
18
18
|
bundler
|
19
19
|
rake
|
20
20
|
atomic (1.1.10)
|
21
|
-
atomic (1.1.10-java)
|
22
21
|
coderay (1.0.9)
|
23
22
|
colored (1.2)
|
24
23
|
colorize (0.5.8)
|
@@ -78,11 +78,11 @@ module Protector
|
|
78
78
|
end
|
79
79
|
|
80
80
|
# Storage for {Protector::DSL::Meta::Box}
|
81
|
-
def protector_meta
|
81
|
+
def protector_meta(subject=protector_subject)
|
82
82
|
@protector_meta ||= self.class.protector_meta.evaluate(
|
83
83
|
Protector::Adapters::ActiveRecord,
|
84
84
|
self.class,
|
85
|
-
|
85
|
+
subject,
|
86
86
|
self.class.column_names,
|
87
87
|
self
|
88
88
|
)
|
@@ -27,12 +27,12 @@ module Protector
|
|
27
27
|
end
|
28
28
|
|
29
29
|
# Gets {Protector::DSL::Meta::Box} of this relation
|
30
|
-
def protector_meta
|
30
|
+
def protector_meta(subject=protector_subject)
|
31
31
|
# We don't seem to require columns here as well
|
32
32
|
@klass.protector_meta.evaluate(
|
33
33
|
Protector::Adapters::ActiveRecord,
|
34
34
|
@klass,
|
35
|
-
|
35
|
+
subject
|
36
36
|
)
|
37
37
|
end
|
38
38
|
|
@@ -31,11 +31,11 @@ module Protector
|
|
31
31
|
end
|
32
32
|
|
33
33
|
# Gets {Protector::DSL::Meta::Box} of this dataset
|
34
|
-
def protector_meta
|
34
|
+
def protector_meta(subject=protector_subject)
|
35
35
|
model.protector_meta.evaluate(
|
36
36
|
Protector::Adapters::Sequel,
|
37
37
|
model,
|
38
|
-
|
38
|
+
subject
|
39
39
|
)
|
40
40
|
end
|
41
41
|
|
@@ -23,11 +23,11 @@ module Protector
|
|
23
23
|
end
|
24
24
|
|
25
25
|
# Storage for {Protector::DSL::Meta::Box}
|
26
|
-
def protector_meta
|
26
|
+
def protector_meta(subject=protector_subject)
|
27
27
|
@protector_meta ||= self.class.protector_meta.evaluate(
|
28
28
|
Protector::Adapters::Sequel,
|
29
29
|
self.class,
|
30
|
-
|
30
|
+
subject,
|
31
31
|
self.class.columns,
|
32
32
|
self
|
33
33
|
)
|
data/lib/protector/version.rb
CHANGED