washout_builder 0.8.11 → 0.8.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjY4ZjI3ZWQ2YTBjYjFhOTAyMWZiMDNhZTM5Yjc4MmU4MWQ1OGI3Mg==
4
+ NTFiNjU5Y2M2NzAzNjg2N2EyYWU1ODU3OWRkZTE2YzAyNjBmNjhlNg==
5
5
  data.tar.gz: !binary |-
6
- MDc2ZGNhMTRmYzFmNzZjM2IyNjc3MTgyMThkMmZjMjlmNzg3NDI1Yg==
6
+ MmFkMDdmMGZhYTVjOTE4MmNhNjc5ZmUxZmMyYzk2NDk4YzZjNzQ0MQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjNlYmEwMTE5ZWIwMGUxZTg0Njk1ODQ4MjFlZjdhOGE4ODkxNDI2YTk5MWJm
10
- MzI1MTgwNGU4YTU4MDAyMjc1OTA5MDNhNjdlMGU4NmU4ZThjMTVjNjgwYzNl
11
- YWNmOTFhY2E4OTIyYzUwNTUzY2NkZjQ3OGJkYWQ3NGFiZDA5ZTY=
9
+ MWMxOTFiNzM1Y2VlNDE0ZTU2NDRkYjU0ZTc4YWIzOTA5NTU3ZTJiNGU0YmY3
10
+ ZDYwOTg5YTQzOWFiNjBjNTU4ZGMyZDlmYjYxNDA1Yjg4YmFhYjJhYWExNTdi
11
+ NmExZDExZWM0YWY1ZWFkNTA5ZDNkYTk4YjViYTc1YzY0Mjk3Y2M=
12
12
  data.tar.gz: !binary |-
13
- NWVlZmZkNzgxYTgyYzQzNmNiMmZkYTAyM2UyZDNjZjVmZTJlZmMxY2E5ZjNj
14
- MDI2NDJhZDE2ZGE0N2Q0ZThmYWZmYzVlMTZhMWMyNzNmMGE2YjRjNGFlNjcw
15
- ZWIyMzM1MjliZGVhZWI5OGNiMmU0N2ZmMzg5MzczNjhjOWVlNjI=
13
+ Zjc4ZGNiMzg4NzhkNjEyNTZlMzI2YmJmYTU0MzdmNjlkNDMwMGExM2E5MzVk
14
+ Y2JhY2QxODU3NDliMWE0ZjVmZGVlZDY1YjViYzRiYjZhYTQzNzZjMmQ5M2Nm
15
+ NzQyZjY3YzYyOTdhZjZhZTUxZjcyNTVmODMwNTc3YWUxOWYzZWI=
@@ -44,7 +44,8 @@ module WashoutBuilderHelper
44
44
 
45
45
  def get_class_ancestors(param,class_name, defined)
46
46
  bool_the_same = false
47
- param_class = class_name.is_a?(Class) ? class_name : class_name.constantize
47
+ param_class = class_name.is_a?(Class) ? class_name : class_name.constantize rescue nil
48
+ unless param_class.nil?
48
49
  ancestors = (param_class.ancestors - param_class.included_modules).delete_if{ |x| x.to_s.downcase == class_name.to_s.downcase || x.to_s == "ActiveRecord::Base" || x.to_s == "Object" || x.to_s =="BasicObject" || x.to_s == "WashOut::Type" }
49
50
  unless ancestors.blank?
50
51
  ancestor_structure = { ancestors[0].to_s.downcase => ancestors[0].columns_hash.inject({}) {|h, (k,v)| h["#{k}"]="#{v.type}".to_sym; h } }
@@ -56,6 +57,7 @@ module WashoutBuilderHelper
56
57
  end
57
58
  end
58
59
  ancestors unless bool_the_same
60
+ end
59
61
  end
60
62
 
61
63
 
@@ -1,3 +1,3 @@
1
1
  module WashoutBuilder
2
- VERSION = "0.8.11"
2
+ VERSION = "0.8.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: washout_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.11
4
+ version: 0.8.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada