excel_to_code 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/TODO +0 -5
- data/src/commands/excel_to_c.rb +2 -2
- metadata +2 -2
data/TODO
CHANGED
@@ -24,12 +24,7 @@ See doc/How_to_add_a_missing_function.md
|
|
24
24
|
## Things that are badly written
|
25
25
|
|
26
26
|
* Rewrite the excel_to_ruby command to use command line options
|
27
|
-
* Refactor the common elements of src/commands/excel_to_c.rb and src/commands/excel_to_ruby.rb
|
28
27
|
* Refactor excel_to_c_runtime - split the functions? split the tests?
|
29
|
-
* Figure out a common test framework for different code output
|
30
28
|
* Tool for turning spreadsheets into tests
|
31
29
|
* Option to reorder test output to make it easier to localise errors
|
32
30
|
* Tool to create minimal failing example out of test run
|
33
|
-
|
34
|
-
|
35
|
-
|
data/src/commands/excel_to_c.rb
CHANGED
@@ -139,7 +139,7 @@ class ExcelToC < ExcelToX
|
|
139
139
|
w.rewind
|
140
140
|
c.gettable = lambda { |ref| true }
|
141
141
|
c.settable = lambda { |ref| false }
|
142
|
-
c.worksheet =
|
142
|
+
c.worksheet = nil
|
143
143
|
c.rewrite(i,w,o)
|
144
144
|
close(i)
|
145
145
|
|
@@ -242,7 +242,7 @@ class #{ruby_module_name}Shim
|
|
242
242
|
name = name.to_s
|
243
243
|
name = "set_\#{name[0..-2]}" if name.end_with?('=')
|
244
244
|
return false unless #{ruby_module_name}.respond_to?(name)
|
245
|
-
|
245
|
+
#{ruby_module_name}.send(name, excel_value_from_ruby_value(ruby_value))
|
246
246
|
end
|
247
247
|
|
248
248
|
def excel_value_from_ruby_value(ruby_value, excel_value = #{ruby_module_name}::ExcelValue.new)
|
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.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rubypeg
|