excel_to_code 0.3.19 → 0.3.20

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
  SHA256:
3
- metadata.gz: 6559b360a3dad19564d9ce13c8495c03060ffea58fdc2dcdf6fc9eb1674baabd
4
- data.tar.gz: cf50b736f78deffd90edf6c680925d092a91faf392f54540003f044bfa176180
3
+ metadata.gz: 6fe18bdd631dff8de227380800892b66163f2fe7f130891440c7f2e12818a28f
4
+ data.tar.gz: f0087a3035784f3fedee75f30064beb7f359e7e0f6d79ff0789f6a23aa5ad908
5
5
  SHA512:
6
- metadata.gz: 795522eb6f84ad453684a579a77904288da0a1451b52d3437c71d81edd2001293e68a54ccf30dede744e5c957ea4a6bd3eee25b8e55a089e3bc3f4f5bbb1b1f0
7
- data.tar.gz: fe9c5bf8ae3900be935fbdcdb8cb7b2d116071b9289c2b0fbafe2c77cbd3387c3bd376c08ee0fc0c514077878a0587e6dc7d335a7f5c418d6ced6f02cce0da1c
6
+ metadata.gz: 95f10de60d4ab71095c011ef1857d3467d2d1c88993e75aa560dd16293ee7448c98677715e9fca7fdb937c2793f64a74d20f746cfcfa30d0a636cc9c2eb31587
7
+ data.tar.gz: 945373d97eb9523d8e6c3151249822af8bc55f3453ded5182d6979dbd5392b35ad1a4919fff367211330304e02164f59b640c6758e3978926b346ef9c7a6df0a
@@ -622,7 +622,7 @@ class ExcelToX
622
622
  end
623
623
 
624
624
  def check_all_functions_implemented
625
- functions_that_are_removed_during_compilation = [:INDIRECT, :OFFSET, :ROW, :COLUMN, :TRANSPOSE]
625
+ functions_that_are_removed_during_compilation = [:INDIRECT, :OFFSET, :ROW, :COLUMN, :TRANSPOSE, :'_xlfn.SINGLE']
626
626
  functions_used = CachingFormulaParser.instance.functions_used.keys
627
627
  functions_used.delete_if do |f|
628
628
  MapFormulaeToRuby::FUNCTIONS[f]
@@ -56,7 +56,7 @@ class Reference < String
56
56
  end
57
57
 
58
58
  def unfix
59
- gsub("$","")
59
+ Reference.for(gsub("$",""))
60
60
  end
61
61
 
62
62
  end
@@ -71,6 +71,8 @@ class ReplaceArraysWithSingleCellsAst
71
71
  # Replacement made in check function
72
72
  elsif ast[0] == :function && ast[1] == :INDEX && check_index(ast)
73
73
  # Replacement made in check
74
+ elsif ast[1] == :'_xlfn.SINGLE'
75
+ ast.replace(try_and_convert_array(ast[2]))
74
76
  end
75
77
  end
76
78
  end
data/src/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  class ExcelToCode
2
- def self.version() "0.3.19" end
2
+ def self.version() "0.3.20" end
3
3
  end
4
4
 
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.19
4
+ version: 0.3.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Counsell, Green on Black Ltd
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-08 00:00:00.000000000 Z
11
+ date: 2022-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubypeg
@@ -174,9 +174,6 @@ files:
174
174
  - src/commands/excel_to_x.rb
175
175
  - src/compile.rb
176
176
  - src/compile/c.rb
177
- - src/compile/c/a.out
178
- - src/compile/c/a.out.dSYM/Contents/Info.plist
179
- - src/compile/c/a.out.dSYM/Contents/Resources/DWARF/a.out
180
177
  - src/compile/c/compile_named_reference_setters.rb
181
178
  - src/compile/c/compile_to_c.rb
182
179
  - src/compile/c/compile_to_c_header.rb
@@ -353,7 +350,7 @@ homepage: http://github.com/tamc/excel_to_code
353
350
  licenses:
354
351
  - MIT
355
352
  metadata: {}
356
- post_install_message:
353
+ post_install_message:
357
354
  rdoc_options: []
358
355
  require_paths:
359
356
  - src
@@ -368,9 +365,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
368
365
  - !ruby/object:Gem::Version
369
366
  version: '0'
370
367
  requirements: []
371
- rubyforge_project:
372
- rubygems_version: 2.7.7
373
- signing_key:
368
+ rubygems_version: 3.2.22
369
+ signing_key:
374
370
  specification_version: 4
375
371
  summary: Convert many .xlsx and .xlsm files into equivalent Ruby or C code that can
376
372
  be executed without Excel
data/src/compile/c/a.out DELETED
Binary file
@@ -1,20 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>CFBundleDevelopmentRegion</key>
6
- <string>English</string>
7
- <key>CFBundleIdentifier</key>
8
- <string>com.apple.xcode.dsym.a.out</string>
9
- <key>CFBundleInfoDictionaryVersion</key>
10
- <string>6.0</string>
11
- <key>CFBundlePackageType</key>
12
- <string>dSYM</string>
13
- <key>CFBundleSignature</key>
14
- <string>????</string>
15
- <key>CFBundleShortVersionString</key>
16
- <string>1.0</string>
17
- <key>CFBundleVersion</key>
18
- <string>1</string>
19
- </dict>
20
- </plist>