locgen 0.0.3 → 0.0.31

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/LocGen.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4ce50a6e53535efebef12e0b3de6d7da0adeaed2
4
- data.tar.gz: 8923910802d71841f1d76e45c29ba09d2359036c
3
+ metadata.gz: 8f9ad4e85a652ea644e530bcad9e0dc4ef013edc
4
+ data.tar.gz: 76786e59796b2b4771cb800ab818f294b2b4287d
5
5
  SHA512:
6
- metadata.gz: fd9f449e3e16928a48746d002173cac4c2a7db6e8d37e1110b5fa0d0041cb891682a544384f1ea1ea9eff6ddbdd9b1249ddb69ac00f97e8ce7415d6d8ff857e2
7
- data.tar.gz: cf8d2c9993f2c2319631e68daa3f9021c2758e2d6d64df34904b69c32046de8537a9201d5b1c2e9f7dd14a50b279f13f8c25443769dd2be7323fdb905c5135f4
6
+ metadata.gz: 9da5032a11cfc15a5a5b86a09b308dd699d29abadd1719ae8fc3e1ae09ed3f3cc97fbb960e6eb983f92cbe2344622b44d5bc0ce62924acd739cf811dd0146bae
7
+ data.tar.gz: 2bdddcb3c6d4a8ae50d4af3e85a4ee53c604649d883fba7d3468c96d3c1d97d36ac548c15ccc2a3024a880436356dcb5d5d069f4492c38763de78200f16b26bf
data/lib/LocGen.rb CHANGED
@@ -87,6 +87,7 @@ class LocGen
87
87
  if row
88
88
  # localized key
89
89
  if row.cells[@keyIndex]
90
+ next if !row.cells[@keyIndex].value || row.cells[@keyIndex].value == ""
90
91
  key = row.cells[@keyIndex].value
91
92
  end
92
93
  # localized comment
@@ -135,5 +136,4 @@ class LocGen
135
136
  Dir.mkdir(dirPath) unless File.exists?(dirPath)
136
137
  File.write("#{dirPath}/#{fileName}", @localizations[localIndex].join("\n\n"))
137
138
  end
138
-
139
139
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: locgen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marek Lisik