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: 946a54830a9222a9b45ec5b864fa7eed4bd795a3
4
- data.tar.gz: eb139ef85efe0dd47eaf204c3fe1aae28f5a3e4a
3
+ metadata.gz: 174c154cfcfb08c127e32d15fa8d8f3fcfc9fc50
4
+ data.tar.gz: 96eed64e189ba0572b178e2a987b9377682c0a7d
5
5
  SHA512:
6
- metadata.gz: 187e33ba02e992639adde6881fc19b4e30bb2fa3c7e931b01653df46d63c97f67eef3088d1941ba30b4bc88e38403ecc87ba657a9fecdad39eb8acc934158755
7
- data.tar.gz: 39d4b586a34e86f6956531959754418c11e83f54c092ffac694a7e01be62395dbf56818632cfd539c8fdd264db191b989db5ecefe4285e73a29e153b41002286
6
+ metadata.gz: 56cb6d26e334f695f64ee1b6594f576b5cc0f9a6c4325d986a85ccb5b9b1ada074d0ad23ce066fc22449ac601a9a399f399a21e1d862f3726e616965ad6ad8bb
7
+ data.tar.gz: 6a8fd841cc069c7ed715e16c916329c258f8a1801ee8b92ef29b0280b42419516a8c7289e302bad1b61d5c07d9720288615ef1b366debedd9dc30e3c2ff86c15
@@ -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
- all_filters.map(&:filter)
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 Exception => e
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 Exception => e
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
@@ -1,3 +1,3 @@
1
1
  module Regressor
2
- VERSION = "0.5.5"
2
+ VERSION = "0.5.6"
3
3
  end
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.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-05 00:00:00.000000000 Z
11
+ date: 2015-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: shoulda-matchers