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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 001dfc5c100ba7b0ef10ef8f9779e413984386aebbb8172b8c9376faa5f5f1a1
4
- data.tar.gz: 6291cc1ed56fa185f80200d5039a21ea31372fbef1468525095437edb9849e19
3
+ metadata.gz: 77a8c421a14a6003dc3beb9352a30185fff4cda3d9fd448e5800cc6007cfac32
4
+ data.tar.gz: baeebde187513ce5b135db940dc720f3449b1d188b1ab0e0d5a70348e721a9d1
5
5
  SHA512:
6
- metadata.gz: 6909b1cb8efc7ffa4cf4681a19e0d946ea86b9d24ec20ade09cf7e19f1e21dbc0c1fbed9d8849c345e243d368ca9506c9a48b377bbf2132c39426d6eb9ebe340
7
- data.tar.gz: 2ec3621089d1c2f687565092397e2dd63ef926b98df9b73e65cd63343eab6d6df44c44293569243bb26d2d163b5a589cd4365f8b6812875cc89c42a7cd052896
6
+ metadata.gz: 3fa20f40c9204a5d2c2c767c40cf1b460c769c905e821510a89f243fd2b3cb4b585e0bfd9024de5fc0f6b7882cf57c33e1d0aa2b8653e4de09a890dca0cad852
7
+ data.tar.gz: bf3c34914b9d4cab7bf2a7b0cb48c7793f3a255fc7819346c05c41af7f60045da24453e0822e343072d272fdf4d36497dc6e6015de14008581a9676733146cec
@@ -30,7 +30,7 @@ module Babelish
30
30
  header = fname
31
31
  strings[header], file_comments = load_strings(fname)
32
32
  keys ||= strings[header].keys
33
- comments.merge!(file_comments)
33
+ comments.merge!(file_comments) unless file_comments.nil?
34
34
  end
35
35
 
36
36
  if write_to_file
@@ -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}.json")
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
- "js"
18
+ "json"
19
19
  end
20
20
  end
21
21
  end
@@ -5,6 +5,7 @@ module Babelish
5
5
  old_warn, $-w = $-w, nil
6
6
  begin
7
7
  require "google_drive"
8
+ Google::Apis::RequestOptions.default.retries = 5
8
9
  ensure
9
10
  $-w = old_warn
10
11
  end
@@ -1,3 +1,3 @@
1
1
  module Babelish
2
- VERSION = "0.5.3"
2
+ VERSION = "0.5.4"
3
3
  end
@@ -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.js'
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.3
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-01-15 00:00:00.000000000 Z
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.4
261
+ rubygems_version: 2.7.6
262
262
  signing_key:
263
263
  specification_version: 4
264
264
  summary: CSV converter for localization files