babelish 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/babelish/base2csv.rb +1 -1
- data/lib/babelish/csv2json.rb +2 -2
- data/lib/babelish/google_doc.rb +1 -0
- data/lib/babelish/version.rb +1 -1
- data/test/babelish/test_csv2json.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77a8c421a14a6003dc3beb9352a30185fff4cda3d9fd448e5800cc6007cfac32
|
4
|
+
data.tar.gz: baeebde187513ce5b135db940dc720f3449b1d188b1ab0e0d5a70348e721a9d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fa20f40c9204a5d2c2c767c40cf1b460c769c905e821510a89f243fd2b3cb4b585e0bfd9024de5fc0f6b7882cf57c33e1d0aa2b8653e4de09a890dca0cad852
|
7
|
+
data.tar.gz: bf3c34914b9d4cab7bf2a7b0cb48c7793f3a255fc7819346c05c41af7f60045da24453e0822e343072d272fdf4d36497dc6e6015de14008581a9676733146cec
|
data/lib/babelish/base2csv.rb
CHANGED
data/lib/babelish/csv2json.rb
CHANGED
@@ -5,7 +5,7 @@ module Babelish
|
|
5
5
|
def language_filepaths(language)
|
6
6
|
require 'pathname'
|
7
7
|
filename = @output_basename || language.code
|
8
|
-
filepath = Pathname.new("#{@output_dir}#{filename}
|
8
|
+
filepath = Pathname.new("#{@output_dir}#{filename}.#{extension}")
|
9
9
|
|
10
10
|
return filepath ? [filepath] : []
|
11
11
|
end
|
@@ -15,7 +15,7 @@ module Babelish
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def extension
|
18
|
-
"
|
18
|
+
"json"
|
19
19
|
end
|
20
20
|
end
|
21
21
|
end
|
data/lib/babelish/google_doc.rb
CHANGED
data/lib/babelish/version.rb
CHANGED
@@ -13,7 +13,7 @@ class TestCSV2JSON < Test::Unit::TestCase
|
|
13
13
|
|
14
14
|
def test_converting_csv_to_dotstrings_one_output_option
|
15
15
|
csv_file = "test/data/test_data.csv"
|
16
|
-
single_file = 'myfile.
|
16
|
+
single_file = 'myfile.json'
|
17
17
|
converter = Babelish::CSV2JSON.new(csv_file,
|
18
18
|
{'English' => "en"},
|
19
19
|
:output_basename => 'myfile',
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: babelish
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- François Benaiteau
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-03-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
@@ -258,7 +258,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
258
258
|
version: '0'
|
259
259
|
requirements: []
|
260
260
|
rubyforge_project:
|
261
|
-
rubygems_version: 2.7.
|
261
|
+
rubygems_version: 2.7.6
|
262
262
|
signing_key:
|
263
263
|
specification_version: 4
|
264
264
|
summary: CSV converter for localization files
|