excel_to_code 0.3.7 → 0.3.8

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
  SHA1:
3
- metadata.gz: 7790188e924f5410d21cd2f4a25add63744f644a
4
- data.tar.gz: 0467aff30ed411418ec3e7bcd7d8ea7fe7e7774f
3
+ metadata.gz: 7b31b150912c743cfb3ca5fa00d9045eb7e127f1
4
+ data.tar.gz: 70c47e8edebfa98d247707dc341325aab44d8e11
5
5
  SHA512:
6
- metadata.gz: d8252e23572c8d13b4a223404588ad457186fa5ce43e5f8727d573bf2377069a0b8abd8791d683991aca752f245bbee6490be19397927e96ed1950e16d1b5ef5
7
- data.tar.gz: 84624066f10040b16124a07d1d94b0293685a44dec338ac06c8e29e5aca7d07c545b047523369ac1d3296316ef3de0699acc4ac48097164fdeaacb1166840ada
6
+ metadata.gz: fe48eabe07ddfd1961d6baeafa0944a6f2dbf8ec2c42cc6a78374d3786d9fbd7240b2b7f21149a3fe870db8707cf1969dbeb32cde1252a8cdced7455536e20e0
7
+ data.tar.gz: 926221e23b72ed369390ea72d7c257a7fb02c643555c9f78560c6166fcccccb74b9d5c7c024e6aeebcd5bc8fb299991f23d97cb763e81253021e999b0f503950
data/src/excel_to_code.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  class ExcelToCode
2
- def self.version() "0.3.7" end
2
+ def self.version() "0.3.8" end
3
3
  end
4
4
 
5
5
  require_relative 'commands'
@@ -14,14 +14,16 @@ class ExternalReferenceException < ExcelToCodeException
14
14
  def message
15
15
  <<-END
16
16
 
17
+
17
18
  Sorry, ExcelToCode can't handle external references
18
19
 
19
- It found one at #{ref}
20
- The full formula was #{formula_text}
20
+ It found one in #{ref.join("!")}
21
+ The formula was #{formula_text}
21
22
  Which was parsed to #{full_ast}
22
23
  Which seemed to have an external reference at #{reference_ast}
24
+ Note, the [0], [1], [2] ... are the way Excel stores the names of the external files.
23
25
 
24
- Please remove the external reference from the Excel and try again"
26
+ Please remove the external reference from the Excel and try again.
25
27
 
26
28
  END
27
29
  end
@@ -54,7 +56,7 @@ class CachingFormulaParser
54
56
  def parse(text)
55
57
  ast = Formula.parse(text)
56
58
  @text = text # Kept in case of Exception below
57
- @full_ast = ast # Kept in case of Exception below
59
+ @full_ast = ast.to_ast[1] # Kept in case of Exception below
58
60
  if ast
59
61
  map(ast.to_ast[1])
60
62
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: excel_to_code
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Counsell, Green on Black Ltd