protector 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/.travis.yml +1 -3
- data/Gemfile +2 -2
- data/README.md +1 -0
- data/lib/protector/adapters/active_record/base.rb +15 -7
- data/lib/protector/adapters/active_record/relation.rb +19 -10
- data/lib/protector/adapters/sequel/model.rb +16 -7
- data/lib/protector/dsl.rb +26 -14
- data/lib/protector/version.rb +1 -1
- data/locales/en.yml +1 -1
- data/spec/lib/adapters/active_record_spec.rb +8 -2
- data/spec/lib/dsl_spec.rb +13 -2
- data/spec/spec_helpers/adapters/active_record.rb +1 -1
- data/spec/spec_helpers/adapters/sequel.rb +1 -1
- data/spec/spec_helpers/boot.rb +26 -4
- data/spec/spec_helpers/examples/model.rb +69 -4
- metadata +3 -15
- data/gemfiles/AR_3.2.gemfile +0 -19
- data/gemfiles/AR_3.2.gemfile.lock +0 -123
- data/gemfiles/AR_4.gemfile +0 -19
- data/gemfiles/AR_4.gemfile.lock +0 -132
- data/gemfiles/Mongoid.gemfile +0 -17
- data/gemfiles/Mongoid.gemfile.lock +0 -112
- data/gemfiles/Rails_3.2.gemfile +0 -21
- data/gemfiles/Rails_3.2.gemfile.lock +0 -196
- data/gemfiles/Rails_4.gemfile +0 -20
- data/gemfiles/Rails_4.gemfile.lock +0 -186
- data/gemfiles/Sequel.gemfile +0 -18
- data/gemfiles/Sequel.gemfile.lock +0 -111
@@ -1,186 +0,0 @@
|
|
1
|
-
GIT
|
2
|
-
remote: git://github.com/jruby/activerecord-jdbc-adapter.git
|
3
|
-
revision: cf50772153fbf0db5e8a4a2025da32954e625df1
|
4
|
-
specs:
|
5
|
-
activerecord-jdbc-adapter (1.3.0.beta2)
|
6
|
-
activerecord-jdbcsqlite3-adapter (1.3.0.beta2)
|
7
|
-
activerecord-jdbc-adapter (~> 1.3.0.beta2)
|
8
|
-
jdbc-sqlite3 (~> 3.7.2)
|
9
|
-
|
10
|
-
GIT
|
11
|
-
remote: git://github.com/pat/combustion.git
|
12
|
-
revision: 5141f8412cff75c496692f49755d38d23e587db8
|
13
|
-
specs:
|
14
|
-
combustion (0.5.0)
|
15
|
-
activesupport (>= 3.0.0)
|
16
|
-
railties (>= 3.0.0)
|
17
|
-
thor (>= 0.14.6)
|
18
|
-
|
19
|
-
PATH
|
20
|
-
remote: /Users/inossidabile/Repos/protector
|
21
|
-
specs:
|
22
|
-
protector (0.5.3)
|
23
|
-
activesupport
|
24
|
-
i18n
|
25
|
-
|
26
|
-
GEM
|
27
|
-
remote: https://rubygems.org/
|
28
|
-
specs:
|
29
|
-
actionmailer (4.0.0)
|
30
|
-
actionpack (= 4.0.0)
|
31
|
-
mail (~> 2.5.3)
|
32
|
-
actionpack (4.0.0)
|
33
|
-
activesupport (= 4.0.0)
|
34
|
-
builder (~> 3.1.0)
|
35
|
-
erubis (~> 2.7.0)
|
36
|
-
rack (~> 1.5.2)
|
37
|
-
rack-test (~> 0.6.2)
|
38
|
-
activemodel (4.0.0)
|
39
|
-
activesupport (= 4.0.0)
|
40
|
-
builder (~> 3.1.0)
|
41
|
-
activerecord (4.0.0)
|
42
|
-
activemodel (= 4.0.0)
|
43
|
-
activerecord-deprecated_finders (~> 1.0.2)
|
44
|
-
activesupport (= 4.0.0)
|
45
|
-
arel (~> 4.0.0)
|
46
|
-
activerecord-deprecated_finders (1.0.3)
|
47
|
-
activesupport (4.0.0)
|
48
|
-
i18n (~> 0.6, >= 0.6.4)
|
49
|
-
minitest (~> 4.2)
|
50
|
-
multi_json (~> 1.3)
|
51
|
-
thread_safe (~> 0.1)
|
52
|
-
tzinfo (~> 0.3.37)
|
53
|
-
appraisal (0.5.2)
|
54
|
-
bundler
|
55
|
-
rake
|
56
|
-
arel (4.0.0)
|
57
|
-
atomic (1.1.10)
|
58
|
-
atomic (1.1.10-java)
|
59
|
-
builder (3.1.4)
|
60
|
-
coderay (1.0.9)
|
61
|
-
colored (1.2)
|
62
|
-
colorize (0.5.8)
|
63
|
-
coveralls (0.6.7)
|
64
|
-
colorize
|
65
|
-
multi_json (~> 1.3)
|
66
|
-
rest-client
|
67
|
-
simplecov (>= 0.7)
|
68
|
-
thor
|
69
|
-
diff-lcs (1.2.4)
|
70
|
-
erubis (2.7.0)
|
71
|
-
ffi (1.9.0)
|
72
|
-
ffi (1.9.0-java)
|
73
|
-
formatador (0.2.4)
|
74
|
-
guard (1.8.1)
|
75
|
-
formatador (>= 0.2.4)
|
76
|
-
listen (>= 1.0.0)
|
77
|
-
lumberjack (>= 1.0.2)
|
78
|
-
pry (>= 0.9.10)
|
79
|
-
thor (>= 0.14.6)
|
80
|
-
guard-rspec (3.0.2)
|
81
|
-
guard (>= 1.8)
|
82
|
-
rspec (~> 2.13)
|
83
|
-
hike (1.2.3)
|
84
|
-
i18n (0.6.4)
|
85
|
-
jdbc-sqlite3 (3.7.2)
|
86
|
-
listen (1.2.2)
|
87
|
-
rb-fsevent (>= 0.9.3)
|
88
|
-
rb-inotify (>= 0.9)
|
89
|
-
rb-kqueue (>= 0.2)
|
90
|
-
lumberjack (1.0.4)
|
91
|
-
mail (2.5.4)
|
92
|
-
mime-types (~> 1.16)
|
93
|
-
treetop (~> 1.4.8)
|
94
|
-
method_source (0.8.1)
|
95
|
-
mime-types (1.23)
|
96
|
-
minitest (4.7.5)
|
97
|
-
multi_json (1.7.7)
|
98
|
-
polyglot (0.3.3)
|
99
|
-
pry (0.9.12.2)
|
100
|
-
coderay (~> 1.0.5)
|
101
|
-
method_source (~> 0.8)
|
102
|
-
slop (~> 3.4)
|
103
|
-
pry (0.9.12.2-java)
|
104
|
-
coderay (~> 1.0.5)
|
105
|
-
method_source (~> 0.8)
|
106
|
-
slop (~> 3.4)
|
107
|
-
spoon (~> 0.0)
|
108
|
-
rack (1.5.2)
|
109
|
-
rack-test (0.6.2)
|
110
|
-
rack (>= 1.0)
|
111
|
-
rails (4.0.0)
|
112
|
-
actionmailer (= 4.0.0)
|
113
|
-
actionpack (= 4.0.0)
|
114
|
-
activerecord (= 4.0.0)
|
115
|
-
activesupport (= 4.0.0)
|
116
|
-
bundler (>= 1.3.0, < 2.0)
|
117
|
-
railties (= 4.0.0)
|
118
|
-
sprockets-rails (~> 2.0.0)
|
119
|
-
railties (4.0.0)
|
120
|
-
actionpack (= 4.0.0)
|
121
|
-
activesupport (= 4.0.0)
|
122
|
-
rake (>= 0.8.7)
|
123
|
-
thor (>= 0.18.1, < 2.0)
|
124
|
-
rake (10.1.0)
|
125
|
-
rb-fsevent (0.9.3)
|
126
|
-
rb-inotify (0.9.0)
|
127
|
-
ffi (>= 0.5.0)
|
128
|
-
rb-kqueue (0.2.0)
|
129
|
-
ffi (>= 0.5.0)
|
130
|
-
rest-client (1.6.7)
|
131
|
-
mime-types (>= 1.16)
|
132
|
-
rspec (2.14.1)
|
133
|
-
rspec-core (~> 2.14.0)
|
134
|
-
rspec-expectations (~> 2.14.0)
|
135
|
-
rspec-mocks (~> 2.14.0)
|
136
|
-
rspec-core (2.14.2)
|
137
|
-
rspec-expectations (2.14.0)
|
138
|
-
diff-lcs (>= 1.1.3, < 2.0)
|
139
|
-
rspec-mocks (2.14.1)
|
140
|
-
ruby-prof (0.13.0)
|
141
|
-
simplecov (0.7.1)
|
142
|
-
multi_json (~> 1.0)
|
143
|
-
simplecov-html (~> 0.7.1)
|
144
|
-
simplecov-html (0.7.1)
|
145
|
-
slop (3.4.5)
|
146
|
-
spoon (0.0.4)
|
147
|
-
ffi
|
148
|
-
sprockets (2.10.0)
|
149
|
-
hike (~> 1.2)
|
150
|
-
multi_json (~> 1.0)
|
151
|
-
rack (~> 1.0)
|
152
|
-
tilt (~> 1.1, != 1.3.0)
|
153
|
-
sprockets-rails (2.0.0)
|
154
|
-
actionpack (>= 3.0)
|
155
|
-
activesupport (>= 3.0)
|
156
|
-
sprockets (~> 2.8)
|
157
|
-
sqlite3 (1.3.7)
|
158
|
-
thor (0.18.1)
|
159
|
-
thread_safe (0.1.0)
|
160
|
-
atomic
|
161
|
-
tilt (1.4.1)
|
162
|
-
treetop (1.4.14)
|
163
|
-
polyglot
|
164
|
-
polyglot (>= 0.3.1)
|
165
|
-
tzinfo (0.3.37)
|
166
|
-
|
167
|
-
PLATFORMS
|
168
|
-
java
|
169
|
-
ruby
|
170
|
-
|
171
|
-
DEPENDENCIES
|
172
|
-
activerecord-jdbcsqlite3-adapter!
|
173
|
-
appraisal
|
174
|
-
colored
|
175
|
-
combustion!
|
176
|
-
coveralls
|
177
|
-
guard
|
178
|
-
guard-rspec
|
179
|
-
jdbc-sqlite3
|
180
|
-
protector!
|
181
|
-
pry
|
182
|
-
rails (= 4.0.0)
|
183
|
-
rake
|
184
|
-
rspec
|
185
|
-
ruby-prof
|
186
|
-
sqlite3
|
data/gemfiles/Sequel.gemfile
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "rake"
|
6
|
-
gem "colored"
|
7
|
-
gem "pry"
|
8
|
-
gem "rspec"
|
9
|
-
gem "guard"
|
10
|
-
gem "guard-rspec"
|
11
|
-
gem "appraisal"
|
12
|
-
gem "sqlite3", :platform=>:ruby
|
13
|
-
gem "jdbc-sqlite3", :platform=>:jruby, :require=>"jdbc/sqlite3"
|
14
|
-
gem "coveralls", :require=>false
|
15
|
-
gem "ruby-prof", :platform=>:ruby
|
16
|
-
gem "sequel", "3.30.0"
|
17
|
-
|
18
|
-
gemspec :path=>"../"
|
@@ -1,111 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: /Users/inossidabile/Repos/protector
|
3
|
-
specs:
|
4
|
-
protector (0.5.3)
|
5
|
-
activesupport
|
6
|
-
i18n
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: https://rubygems.org/
|
10
|
-
specs:
|
11
|
-
activesupport (4.0.0)
|
12
|
-
i18n (~> 0.6, >= 0.6.4)
|
13
|
-
minitest (~> 4.2)
|
14
|
-
multi_json (~> 1.3)
|
15
|
-
thread_safe (~> 0.1)
|
16
|
-
tzinfo (~> 0.3.37)
|
17
|
-
appraisal (0.5.2)
|
18
|
-
bundler
|
19
|
-
rake
|
20
|
-
atomic (1.1.10)
|
21
|
-
coderay (1.0.9)
|
22
|
-
colored (1.2)
|
23
|
-
colorize (0.5.8)
|
24
|
-
coveralls (0.6.7)
|
25
|
-
colorize
|
26
|
-
multi_json (~> 1.3)
|
27
|
-
rest-client
|
28
|
-
simplecov (>= 0.7)
|
29
|
-
thor
|
30
|
-
diff-lcs (1.2.4)
|
31
|
-
ffi (1.8.1)
|
32
|
-
ffi (1.8.1-java)
|
33
|
-
formatador (0.2.4)
|
34
|
-
guard (1.8.0)
|
35
|
-
formatador (>= 0.2.4)
|
36
|
-
listen (>= 1.0.0)
|
37
|
-
lumberjack (>= 1.0.2)
|
38
|
-
pry (>= 0.9.10)
|
39
|
-
thor (>= 0.14.6)
|
40
|
-
guard-rspec (3.0.1)
|
41
|
-
guard (>= 1.8)
|
42
|
-
rspec (~> 2.13)
|
43
|
-
i18n (0.6.4)
|
44
|
-
jdbc-sqlite3 (3.7.2.1)
|
45
|
-
listen (1.1.4)
|
46
|
-
rb-fsevent (>= 0.9.3)
|
47
|
-
rb-inotify (>= 0.9)
|
48
|
-
rb-kqueue (>= 0.2)
|
49
|
-
lumberjack (1.0.3)
|
50
|
-
method_source (0.8.1)
|
51
|
-
mime-types (1.23)
|
52
|
-
minitest (4.7.5)
|
53
|
-
multi_json (1.7.5)
|
54
|
-
pry (0.9.12.2)
|
55
|
-
coderay (~> 1.0.5)
|
56
|
-
method_source (~> 0.8)
|
57
|
-
slop (~> 3.4)
|
58
|
-
pry (0.9.12.2-java)
|
59
|
-
coderay (~> 1.0.5)
|
60
|
-
method_source (~> 0.8)
|
61
|
-
slop (~> 3.4)
|
62
|
-
spoon (~> 0.0)
|
63
|
-
rake (10.0.4)
|
64
|
-
rb-fsevent (0.9.3)
|
65
|
-
rb-inotify (0.9.0)
|
66
|
-
ffi (>= 0.5.0)
|
67
|
-
rb-kqueue (0.2.0)
|
68
|
-
ffi (>= 0.5.0)
|
69
|
-
rest-client (1.6.7)
|
70
|
-
mime-types (>= 1.16)
|
71
|
-
rspec (2.13.0)
|
72
|
-
rspec-core (~> 2.13.0)
|
73
|
-
rspec-expectations (~> 2.13.0)
|
74
|
-
rspec-mocks (~> 2.13.0)
|
75
|
-
rspec-core (2.13.1)
|
76
|
-
rspec-expectations (2.13.0)
|
77
|
-
diff-lcs (>= 1.1.3, < 2.0)
|
78
|
-
rspec-mocks (2.13.1)
|
79
|
-
ruby-prof (0.13.0)
|
80
|
-
sequel (3.30.0)
|
81
|
-
simplecov (0.7.1)
|
82
|
-
multi_json (~> 1.0)
|
83
|
-
simplecov-html (~> 0.7.1)
|
84
|
-
simplecov-html (0.7.1)
|
85
|
-
slop (3.4.5)
|
86
|
-
spoon (0.0.4)
|
87
|
-
ffi
|
88
|
-
sqlite3 (1.3.7)
|
89
|
-
thor (0.18.1)
|
90
|
-
thread_safe (0.1.0)
|
91
|
-
atomic
|
92
|
-
tzinfo (0.3.37)
|
93
|
-
|
94
|
-
PLATFORMS
|
95
|
-
java
|
96
|
-
ruby
|
97
|
-
|
98
|
-
DEPENDENCIES
|
99
|
-
appraisal
|
100
|
-
colored
|
101
|
-
coveralls
|
102
|
-
guard
|
103
|
-
guard-rspec
|
104
|
-
jdbc-sqlite3
|
105
|
-
protector!
|
106
|
-
pry
|
107
|
-
rake
|
108
|
-
rspec
|
109
|
-
ruby-prof
|
110
|
-
sequel (= 3.30.0)
|
111
|
-
sqlite3
|