excel_to_code 0.3.11 → 0.3.12

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: 7be4eb5782ad34fe1d4a42bf50083440afcc72e2
4
- data.tar.gz: ac3bbda110cc0d9ce8dcbc504fce982e79c849d0
3
+ metadata.gz: 1ebf3386f4d5efa91662f276d92a69aa8c417b3c
4
+ data.tar.gz: 555a3e29d093d245839f48220315ad2169f63e96
5
5
  SHA512:
6
- metadata.gz: 2ca73c4cac5b6acef852961b40cd495e91793b5424ef1833b9bdfbf4614c012bcb7c058eda8139b877e2fa8496d4b74014bd9e6066650e2852e6cf8e68bf7456
7
- data.tar.gz: df4a7cc607b058104cabd6f03f1fe2675d352a90d1c63fc5591f22e2ba76450c46cfd076f70ca2ef9d7bf29b98ddb1b82ca4657b35bdb064a189b6126241ef12
6
+ metadata.gz: 8f8033aa4e8873a5e9b21450f69559de94fbf67c1a717dc9758faebdb753238d551c609e4ff77013fbc7c65879b46e1689ace91bf30b11082a187fde9402925a
7
+ data.tar.gz: ef3a5b2e3a1a357825ad45de11aaf3706b26a8169219d45a3cdf1fc6a4b3dfe27a64be281d820ce1ea784db8fe2c61e49543e430d695e4c95c8a325811492eb4
data/TODO CHANGED
@@ -7,7 +7,7 @@ See doc/How_to_fix_parsing_bugs.md for help
7
7
  * Whitespace handling in table references
8
8
  * Whitespace handling between arguments in a list
9
9
  * Doesn't do range unions (e.g., 10:10 C:C == C:10)
10
- * Doesn't do manually entered arrays {1,2,3;4,5,6}
10
+ * Doesn't do ranges where both arts have a sheet reference, e.g.: 'G.20 (data)'!Q1149:'G.20 (data)'!Q1153
11
11
 
12
12
  ## Missing functions
13
13
 
@@ -17,13 +17,9 @@ See doc/How_to_add_a_missing_function.md
17
17
 
18
18
  ## Simplification & optimisation bugs
19
19
 
20
- * Optimize IF, CHOOSE, MATCH, VLOOKUP and similar functions so that they don't have to calculate all their arguments
20
+ * Optimize CHOOSE, MATCH, VLOOKUP and similar functions so that they don't have to calculate all their arguments
21
21
  * Fix it so that cells that are being reported as empty, that excel would give a numeric value of zero, are fixed
22
22
 
23
23
  ## Things that are badly written
24
24
 
25
- * Rewrite the excel_to_ruby command to use command line options
26
- * Refactor excel_to_c_runtime - split the functions? split the tests?
27
- * Tool for turning spreadsheets into tests
28
25
  * Tool to create minimal failing example out of test run
29
- * The whole thing is slow. Could hold the whole excel AST in memory and apply transforms?
@@ -1022,12 +1022,6 @@ class ExcelToX
1022
1022
 
1023
1023
  @cells_with_formulae.each do |ref, ast|
1024
1024
  begin
1025
- # FIXME: Shouldn't need to wrap ref.fist in an array
1026
- inline_replacer.current_sheet_name = [ref.first]
1027
- inline_replacer.map(ast)
1028
- # If a formula references a cell containing a value, the reference is replaced with the value (e.g., if A1 := 2 and A2 := A1 + 1 then becomes: A2 := 2 + 1)
1029
- #require 'pry'; binding.pry if ref == [:"Outputs - Summary table", :E77]
1030
- value_replacer.map(ast)
1031
1025
  column_and_row_function_replacement.current_reference = ref.last
1032
1026
  if column_and_row_function_replacement.replace(ast)
1033
1027
  references_that_need_updating[ref] = ast
@@ -1035,6 +1029,12 @@ class ExcelToX
1035
1029
  if offset_replacement.replace(ast)
1036
1030
  references_that_need_updating[ref] = ast
1037
1031
  end
1032
+ # FIXME: Shouldn't need to wrap ref.fist in an array
1033
+ inline_replacer.current_sheet_name = [ref.first]
1034
+ inline_replacer.map(ast)
1035
+ # If a formula references a cell containing a value, the reference is replaced with the value (e.g., if A1 := 2 and A2 := A1 + 1 then becomes: A2 := 2 + 1)
1036
+ #require 'pry'; binding.pry if ref == [:"Outputs - Summary table", :E77]
1037
+ value_replacer.map(ast)
1038
1038
  if indirect_replacement.replace(ast)
1039
1039
  references_that_need_updating[ref] = ast
1040
1040
  end
@@ -1,5 +1,5 @@
1
1
  class ExcelToCode
2
- def self.version() "0.3.11" end
2
+ def self.version() "0.3.12" end
3
3
  end
4
4
 
5
5
  require_relative 'commands'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: excel_to_code
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.11
4
+ version: 0.3.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Counsell, Green on Black Ltd
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-06 00:00:00.000000000 Z
11
+ date: 2015-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubypeg