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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 37491ae4c70dc1d7a26a9d2487bb5e993791eb4b
4
- data.tar.gz: ac3feebc2f5dcff782cd919d125146ad18a0865a
3
+ metadata.gz: f5b18d8eef1b64a6eda84de78561def8ee4daeb2
4
+ data.tar.gz: 10e74ec35a2ebfcd45c4ddb78b96fd1a822af3b9
5
5
  SHA512:
6
- metadata.gz: 8d92241f090a56b107cfc75f3f066a1ede7cfec0f9b246f824702eb55749b52cd8de42b1f529b249c52a74e48b0698494f5c04623394a03a120d4feff3d74d99
7
- data.tar.gz: c16f7d74c3986ddd28cf83def0453ce5efa31e983b6d548e5c789aa79782bc236fdc5b4dd48233f1894fdb2b87e0f3ed16770e56f875c8f94aca156d613c2f32
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, shared_targets, output)
9
- shared_targets = Hash[*shared_targets.each_line.map { |l| l.split("\t").map(&:strip) }.flatten]
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.16
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-21 00:00:00.000000000 Z
11
+ date: 2013-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubypeg