proforma 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 817f85bba720714f1805a67d79a890f4c54348c5960b2bbe5ada6cf580dd9895
4
- data.tar.gz: 40a77e4fe0c8db140eedaa3a1632abcb43a5e5f94fb366126dd9eda6b7324eb6
3
+ metadata.gz: 2fd1263c98986b0fe066881b0707f68a32b8c75262d40f4a1fb2da89b3caa1d3
4
+ data.tar.gz: 3fa0bee1c0ad96a6dfa8843fd419b9fbdfd4e199257746fd8e5729a6f8f1c44f
5
5
  SHA512:
6
- metadata.gz: ee6d3dc842c7c75a43df463508d61228adc55683b439f846f35adbf487be59cd45bb517773609f45f58ae7a4441707a02dd64fc6a468d1e945ac66a38575f206
7
- data.tar.gz: ff63785b94954ab0e21a725d98279d384d3d39912cdaf2c2184116d45ded4d85cc888191947f3f15ad4d7ce9a0023fd487c5998879121bdedb45c527d86c47b6
6
+ metadata.gz: 1767931c31dc9c6cefae98b1e44e5c0726c21cc7a582ca9a69e547fdc70831a1d39a021d3d018c7caadd282715c95af8ba95f92daeb873551863824d9ca8e74a
7
+ data.tar.gz: 69eca8215670ca19c8c33d1d9b3cbd3bf3cdae4fe0f8c2bfc564443cfe2858e5678fa9600292529f8c17e989b0c02b285ddb67f31a2acc166d7f1ba40b65446d
@@ -1,3 +1,7 @@
1
+ # 1.0.1 (April 24th, 2019)
2
+
3
+ * Image and aggregation property values should resolve to nil
4
+
1
5
  # 1.0.0 (April 24th, 2019)
2
6
 
3
7
  Publishing first release.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- proforma (1.0.0)
4
+ proforma (1.0.1)
5
5
  acts_as_hashable (~> 1)
6
6
 
7
7
  GEM
@@ -27,7 +27,7 @@ module Proforma
27
27
  records.each do |record|
28
28
  aggregators.each do |aggregator|
29
29
  property = aggregator.property
30
- value = evaluator.value(record, property)
30
+ value = property.to_s.empty? ? nil : evaluator.value(record, property)
31
31
  name = aggregator.name
32
32
 
33
33
  entry(name).add(value)
@@ -51,9 +51,11 @@ module Proforma
51
51
  end
52
52
 
53
53
  def compile(data, evaluator)
54
+ resolved_image = image.to_s.empty? ? nil : evaluator.value(data, image)
55
+
54
56
  self.class.new(
55
57
  details: evaluator.text(data, details),
56
- image: evaluator.value(data, image),
58
+ image: resolved_image,
57
59
  image_height: image_height,
58
60
  image_width: image_width,
59
61
  title: evaluator.text(data, title)
@@ -8,5 +8,5 @@
8
8
  #
9
9
 
10
10
  module Proforma
11
- VERSION = '1.0.0'
11
+ VERSION = '1.0.1'
12
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proforma
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
  - Matthew Ruggio