regressor 0.5.5 → 0.5.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 174c154cfcfb08c127e32d15fa8d8f3fcfc9fc50
|
4
|
+
data.tar.gz: 96eed64e189ba0572b178e2a987b9377682c0a7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56cb6d26e334f695f64ee1b6594f576b5cc0f9a6c4325d986a85ccb5b9b1ada074d0ad23ce066fc22449ac601a9a399f399a21e1d862f3726e616965ad6ad8bb
|
7
|
+
data.tar.gz: 6a8fd841cc069c7ed715e16c916329c258f8a1801ee8b92ef29b0280b42419516a8c7289e302bad1b61d5c07d9720288615ef1b366debedd9dc30e3c2ff86c15
|
data/lib/controller/util.rb
CHANGED
@@ -19,7 +19,8 @@ module Regressor
|
|
19
19
|
controller = @controller.constantize
|
20
20
|
all_filters = controller._process_action_callbacks
|
21
21
|
all_filters = all_filters.select { |f| f.kind == kind } if kind
|
22
|
-
|
22
|
+
# Reject procs
|
23
|
+
all_filters.map(&:raw_filter).reject{|filter| filter.class == Proc}
|
23
24
|
end
|
24
25
|
end
|
25
26
|
end
|
@@ -36,10 +36,10 @@ module Regressor
|
|
36
36
|
def save_generate(model)
|
37
37
|
begin
|
38
38
|
yield
|
39
|
-
rescue
|
40
|
-
puts "Cannot create model regression for #{model}"
|
39
|
+
rescue => e
|
40
|
+
puts "Cannot create model regression for #{model}. Reason #{e.message}"
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
44
|
end
|
45
|
-
end
|
45
|
+
end
|
@@ -36,11 +36,11 @@ module Regressor
|
|
36
36
|
def save_generate(model)
|
37
37
|
begin
|
38
38
|
yield
|
39
|
-
rescue
|
40
|
-
puts "Cannot create model regression for #{model}"
|
39
|
+
rescue => e
|
40
|
+
puts "Cannot create model regression for #{model}. Reason #{e.message}"
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
44
|
end
|
45
45
|
end
|
46
|
-
end
|
46
|
+
end
|
data/lib/regressor/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: regressor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erwin Schens
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: shoulda-matchers
|