dropkiq 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b29aa33cb5696a6b569e4d7db891b71d8b554551
4
- data.tar.gz: 33f3a5353cd519dbf1577aaed5e8a2738f39755b
3
+ metadata.gz: 7325e9f9615a3dd0c4ebb7f1d867f40bb240e05e
4
+ data.tar.gz: 7397de313f3ed61d656a765310483260b145e24b
5
5
  SHA512:
6
- metadata.gz: cf739265bf1d2fac61eef26c0d5ed00a700e2ee9fe8f4597abfeac118e7f3eba3b9165f8fac5c3bd9b0c754cf554bc1ad926c6a410a5979172af4c9f1a407ae2
7
- data.tar.gz: 8a3cd96c060f04f75a16f67c2b3a917715f4996015987d4330e653b782dc365666cf47ae3465e061f7b38d0fe7d3f99ab5d9f9822c651b14d209ce07ce154e38
6
+ metadata.gz: f07fb2afe3e42b4b58e2d7ff38d61e7b1ae345db1399b0fffcaa6c245c3bd625c1dbafa67da1316d0d1c545f8c73cff1e9cd2d8399d4944b676faf1fe1a38ed3
7
+ data.tar.gz: 90bfd0ff73c3ef824300ffb61acecce5e4971254dddc460c8796285d5d00ddb40d2992d21f4f3a585c1ddf535b0b5ff960562ea9cb89c29c6e7d8095fdbed08e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dropkiq (0.1.5)
4
+ dropkiq (0.1.6)
5
5
  activerecord (>= 4.2)
6
6
  liquid (~> 4.0)
7
7
 
@@ -12,7 +12,7 @@ module Dropkiq
12
12
  self.active_record_class ||= find_active_record_class_from_shim
13
13
 
14
14
  if active_record_class.blank?
15
- puts "WARNING: No ActiveRecord Class found for #{liquid_drop_class.name}"
15
+ puts "WARNING: No ActiveRecord Class found for #{liquid_drop_class.name} (skipping)"
16
16
  return
17
17
  end
18
18
 
@@ -19,6 +19,8 @@ module Dropkiq
19
19
  end
20
20
 
21
21
  def to_param
22
+ return {} if dropkiq_type.blank?
23
+
22
24
  {
23
25
  "#{drop_method}" => {
24
26
  "type" => dropkiq_type,
@@ -43,8 +45,8 @@ module Dropkiq
43
45
  begin
44
46
  self.foreign_table_name = reflection.class_name.constantize.table_name
45
47
  rescue
46
- puts "Table not found for reflect_on_association value: #{reflection.inspect}"
47
- raise
48
+ puts "WARNING: Could not find #{drop_method} on #{active_record_class.name} (skipping)"
49
+ return
48
50
  end
49
51
 
50
52
  case reflection
@@ -1,3 +1,3 @@
1
1
  module Dropkiq
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dropkiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Darrah