discourse_subscription_client 0.1.0.pre9 → 0.1.0.pre10

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
  SHA256:
3
- metadata.gz: 660696bcefd9a3277aecb58ea84b3b8523fe25f67ce8622537659c3f4e9cb3de
4
- data.tar.gz: b0a5bb0ef2b75129c5b0698b4ea966452db15e70233edf5e171f52ebc2d76ef7
3
+ metadata.gz: 7be1c54ac40f2c0221c35038e20c1daa1fac8f39c0736d11a858f805a6220791
4
+ data.tar.gz: d8a564f4d2c9bc8ef052a47719c42dcc36df45ba42d8848d32fd6a8d03b0c8cb
5
5
  SHA512:
6
- metadata.gz: 601eed6e1e0d001609fd9f3f1c9ffc4c5db1dbaea3f892c00542794f1a659739afd32b68b4e70fb603ec25c2c662f32112928617f7f1bcbd8eebba0d68059ab2
7
- data.tar.gz: dfcef63df0719f54187dcdb0530c5f154b6e2750ebe2583b1ea260a8acafb6fc71d982e2512b16b0416780d961556a751e5eac783660c7527f5feac72290b12a
6
+ metadata.gz: f401dbabaa835f14619e4aa3263cee2df00048ae43c8fabd9fdae16e5c99806b6caf09896d4470c32923be77fe0a6b73d0efcd97589394d601647e3614e18d6a
7
+ data.tar.gz: 0f10faf5cd3ed514bee5ef10555846c3c66f278e3adc8360a04d4ce8e5f56a12122aa86ed763b8c1988ca4815b39432d06219a1f981f4b0919244d387c4091e5
@@ -24,8 +24,12 @@ class SubscriptionClientSupplier < ActiveRecord::Base
24
24
  end
25
25
 
26
26
  def product_slugs
27
- @product_slugs ||= products.each_with_object({}) do |product, result|
28
- result[product["product_id"]] = product["product_slug"]
27
+ if products.present?
28
+ products.each_with_object({}) do |product, result|
29
+ result[product["product_id"]] = product["product_slug"]
30
+ end
31
+ else
32
+ {}
29
33
  end
30
34
  end
31
35
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DiscourseSubscriptionClient
4
- VERSION = "0.1.0.pre9"
4
+ VERSION = "0.1.0.pre10"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: discourse_subscription_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre9
4
+ version: 0.1.0.pre10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Angus McLeod