cell_set 0.2.0 → 0.2.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.
@@ -33,10 +33,6 @@ module CellSet
33
33
  end
34
34
 
35
35
  private
36
- NIL_HASH = {
37
- "formatted_value" => nil,
38
- "value" => nil
39
- }
40
36
  def series_formatted_values(series_ordinal, options)
41
37
  label_series_axis = @axes[options[:labels][:axis_ordinal]]
42
38
  data_series_axis = @axes[options[:data][:axis_ordinal]]
@@ -47,7 +43,8 @@ module CellSet
47
43
  [series_ordinal, position_ordinal]
48
44
  end
49
45
 
50
- @cellHash[coordinatesToOrdinal(coordinates).to_s]["formatted_value"]
46
+ ordinal = coordinatesToOrdinal(coordinates)
47
+ @cellHash[ordinal.to_s]["formatted_value"] if @cellHash[ordinal.to_s]
51
48
  end
52
49
  end
53
50
 
@@ -89,8 +86,9 @@ module CellSet
89
86
  [series_ordinal, position_ordinal]
90
87
  end
91
88
 
92
- @cellHash[coordinatesToOrdinal(coordinates).to_s]["value"]
89
+ ordinal = coordinatesToOrdinal(coordinates)
90
+ @cellHash[ordinal.to_s]["value"] if @cellHash[ordinal.to_s]
93
91
  end
94
92
  end
95
93
  end
96
- end
94
+ end
@@ -1,3 +1,3 @@
1
1
  module Version
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cell_set
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: