effective_qb_sync 1.0.0 → 1.0.1

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: ad8ca346bd7681f4e298eab0a873b9d18381c5a8
4
- data.tar.gz: 052fda34af7a8a95fd6a578ea588bf3adc32acd7
3
+ metadata.gz: ac0bb06669f47ddbd5b5d40dca5c5cf1ef8b0bf5
4
+ data.tar.gz: 29a474769ee858d7e7efa94c1bb8c9177cd0fbed
5
5
  SHA512:
6
- metadata.gz: 2bf69833eb4ed99ac58b87470c693bd6435f83551e316e4fc0913507fe7ae0718f3346f6bf4ef8b13cf1f3eaa659b7e35f1ad4eb3e7126e8a17584f9d72aa385
7
- data.tar.gz: b700597415767d5266091bf45dffbc7f5aa487ab3665994d068e583140cdd2a9702963d7fbf5523c7db7b6ba85b1c08e078946aeacb20b7fd558df59d58fa667
6
+ metadata.gz: d2a3fb75e53428bc5514f45b261819bb72d422c53ed4447c44c43cca1019834ed09a4460451f89496996f099fe988ad090cdcc43d6aab8d6b5a6faa26474d311
7
+ data.tar.gz: d32edb0345b2691d901087882abd2509089c4d0062f63c50ec42b27ca9c009a65bc9f82ad56bec85de093c243bba4b2c3677a3b04d41bd75699f427f0b365914
@@ -14,10 +14,10 @@ module EffectiveQbSync
14
14
  if Rails.env.development?
15
15
  Rails.application.eager_load!
16
16
 
17
- invalids = ActsAsPurchasable.descendants.reject { |klass| klass.new().try(:qb_item_name).present? }
17
+ invalids = ActsAsPurchasable.descendants.reject { |klass| (klass.new().try(:qb_item_name).present? rescue false) }
18
18
 
19
19
  if invalids.present?
20
- raise "expected acts_as_purchasable objects #{invalids.map(&:to_s).to_sentence} .qb_item_name() to be present."
20
+ puts "WARNING: (effective_qb_sync) expected acts_as_purchasable objects #{invalids.map(&:to_s).to_sentence} .qb_item_name() to be present."
21
21
  end
22
22
  end
23
23
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveQbSync
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.0.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_qb_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect