excel_to_code 0.1.16 → 0.1.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/src/rewrite/rewrite_shared_formulae.rb +7 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5b18d8eef1b64a6eda84de78561def8ee4daeb2
|
4
|
+
data.tar.gz: 10e74ec35a2ebfcd45c4ddb78b96fd1a822af3b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57ffde8911a2371d2f6620dcb9bbcaaad85a6fff062192515cef84b8897cc576b4f058e35de8f5d1531bcaf5a194bd604c0afb1c15498dbd0ad9c7209afbe370
|
7
|
+
data.tar.gz: cfad0c85ec8eb2338179d425218d4fc4efa9349a7fdde41850a051355662c5c58cdd9cb6662572ee11c3a00dc6b377a6d311ac4bea4781619e5f3e8c44f5efb8
|
@@ -5,8 +5,13 @@ class RewriteSharedFormulae
|
|
5
5
|
new.rewrite(input, shared_targets, output)
|
6
6
|
end
|
7
7
|
|
8
|
-
def rewrite(input,
|
9
|
-
shared_targets = Hash
|
8
|
+
def rewrite(input, shared_target_file, output)
|
9
|
+
shared_targets = Hash.new
|
10
|
+
shared_target_file.each_line do |l|
|
11
|
+
ref, number = *l.split("\t")
|
12
|
+
shared_targets[ref.strip] = number.strip
|
13
|
+
end
|
14
|
+
|
10
15
|
input.each_line do |line|
|
11
16
|
ref, copy_range, shared_formula_identifier, formula = line.split("\t")
|
12
17
|
share_formula(ref, formula, copy_range, shared_formula_identifier, shared_targets, output)
|
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.1.
|
4
|
+
version: 0.1.17
|
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: 2013-08-
|
11
|
+
date: 2013-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubypeg
|