graph_starter 0.13.5 → 0.13.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: 92972d7164c740134ba463b237bfa0df30115da9
4
- data.tar.gz: 32225882e704dbb168f5fb9e7700832fb54dba80
3
+ metadata.gz: 007c107e231b0ed3a0cdc86702fd5e1d64ebe6ff
4
+ data.tar.gz: d3bc9599cfffaa1796949e38ce4b99bdc35322b4
5
5
  SHA512:
6
- metadata.gz: 9fadcfad208b36ee7cb70f56afcf6c7c6c2f934a38c3f2ccda4b7e01915e6bb5d65088b9f03b809eaf61880e08e8a4994dbe9e62bfe1e252f61162f0cc44aba1
7
- data.tar.gz: 21140378eb69941d67a3842cf91225015f77a9b7ec834c36cc251626ba2db997fa0fde3d8f6a57307b5b899b64ae6b876ee747d3447758feb5250831b0e34b35
6
+ metadata.gz: 36598cda0a6d5aa72787261eec133206d3f9750d6dc540973825a2fd6b56c47a34907c5213a05e10e72fa1b45fdef24ac271241afd12196c624c2b4072caa744
7
+ data.tar.gz: 566bb4c124240cdfdd46e7370a35ebfd6c3e0a7b39eeec69b22ac19ca63fa37e7afec150a3d15d920834be66fa66d4a11407c925deaebaa63a70ba2fbf3a2546
@@ -270,8 +270,9 @@ module GraphStarter
270
270
  name: title,
271
271
  model_slug: self.class.model_slug,
272
272
  summary: summary,
273
- image_urls: image_array.map(&:source_url)
273
+ categories: categories
274
274
  }.tap do |result|
275
+ result[:image_urls] = image_array.map(&:source_url) if image_array
275
276
  result[:images] = images.map {|image| image.source.url } if self.class.has_images?
276
277
  result[:image] = image.source_url if self.class.has_image? && image
277
278
  end
@@ -6,6 +6,7 @@ json.summary @asset.summary
6
6
 
7
7
  json.image_urls @asset.reload.image_array.map(&:source_url)
8
8
 
9
+ json.categories @asset.categories
9
10
 
10
11
  json.associations do
11
12
  @asset.class.authorized_associations.each do |name, association|
@@ -1,3 +1,3 @@
1
1
  module GraphStarter
2
- VERSION = "0.13.5"
2
+ VERSION = "0.13.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graph_starter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.5
4
+ version: 0.13.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Underwood