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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 260447659aefa18d02fe15039a7f33ba3d8c39e7
4
- data.tar.gz: 82d8f778b44ed5b10063d9b527df7b841181315d
3
+ metadata.gz: 18a3586352df222ca67b0aa27be8711af98e9d44
4
+ data.tar.gz: 5a55e8b998ba4ec4af975d05adb0d8687e2c38d7
5
5
  SHA512:
6
- metadata.gz: f4b8e1b04ccef3bc2650f3b210fded9a83306a792cd60909ccef8c8aacb73b6a56d083506d619ae10d9baf97c4e2e4b2979f8518aa49bfa592ef15748d0253b5
7
- data.tar.gz: 377952116d10b58e86e0c151ac89aa2bbf7e41cd94ee756e14497dd0cf2f11303d7bcdafa6380d557e4577400ced122f08c521766f38de0eb91188f7bc04d960
6
+ metadata.gz: 0dca6468a9b82c7e95615d46f2b93eab694b9ca9400a1c9b6dfbfea7d71320083c9b3731ec063c3078203e64d536c2a68704ce88845b071e13c1445bd89aa29b
7
+ data.tar.gz: ef7c2c455894bf6d96adbd224c7cdd4922485e34d7112f988ade24338f18e7b6e982063b7fa3ebdb006f2adc4e62e1b4e60605d6ef99fc06fd2fea9f8c3691e1
@@ -10,7 +10,7 @@ GIT
10
10
  PATH
11
11
  remote: /Users/inossidabile/Repos/protector
12
12
  specs:
13
- protector (0.5.0)
13
+ protector (0.5.2)
14
14
  activesupport
15
15
  i18n
16
16
 
@@ -10,7 +10,7 @@ GIT
10
10
  PATH
11
11
  remote: /Users/inossidabile/Repos/protector
12
12
  specs:
13
- protector (0.5.0)
13
+ protector (0.5.2)
14
14
  activesupport
15
15
  i18n
16
16
 
@@ -19,7 +19,7 @@ GIT
19
19
  PATH
20
20
  remote: /Users/inossidabile/Repos/protector
21
21
  specs:
22
- protector (0.5.0)
22
+ protector (0.5.2)
23
23
  activesupport
24
24
  i18n
25
25
 
@@ -19,7 +19,7 @@ GIT
19
19
  PATH
20
20
  remote: /Users/inossidabile/Repos/protector
21
21
  specs:
22
- protector (0.5.0)
22
+ protector (0.5.2)
23
23
  activesupport
24
24
  i18n
25
25
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/inossidabile/Repos/protector
3
3
  specs:
4
- protector (0.5.0)
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
- protector_subject,
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
- protector_subject
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
- protector_subject
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
- protector_subject,
30
+ subject,
31
31
  self.class.columns,
32
32
  self
33
33
  )
@@ -1,4 +1,4 @@
1
1
  module Protector
2
2
  # Gem version
3
- VERSION = "0.5.1"
3
+ VERSION = "0.5.2"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boris Staal