tmsync 0.3.7 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile.lock +2 -2
- data/lib/tmsync/cli.rb +2 -1
- data/lib/tmsync/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8d0e1c8171ea9c91717abaeef06d3b0e7766e37258feef888c9c3e59d3f5915e
|
4
|
+
data.tar.gz: 735283fe7cc2c40765ec0ac1b480b05d0596bee3716530902ac558af04e9230c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8f776bdbeccc8ae21b8f19830caf9d700b3b3df802bf25f695ec25f7158499e2fedd763d7aaa8c73a5f6b567b95e8bf9bb9ea7e001316d637c8e322ae1467fc
|
7
|
+
data.tar.gz: c0dd3ff56338bc33405de17c0daaab1434d88bf86aeb97bb72c838f6f5f6798315e0d26e6bb7bb5015cf8b66dea00bed8857a9ea093bad6e71980ab8d9e0f46f
|
data/Gemfile.lock
CHANGED
data/lib/tmsync/cli.rb
CHANGED
@@ -9,6 +9,7 @@ module Tmsync
|
|
9
9
|
option :platform, default: 'custom', type: :string
|
10
10
|
option :matching_regex, type: :string, aliases: :matching
|
11
11
|
option :exclude_regex, type: :string, aliases: :exclude
|
12
|
+
option :source_language, default: 'en', type: :string, aliases: :source
|
12
13
|
def execute
|
13
14
|
matching_regex = -> {
|
14
15
|
case options[:platform].downcase
|
@@ -43,7 +44,7 @@ module Tmsync
|
|
43
44
|
if result.empty?
|
44
45
|
puts "No translation files found."
|
45
46
|
else
|
46
|
-
result.keys.each do |language|
|
47
|
+
([source_language] | result.keys).each do |language|
|
47
48
|
result[language].each do |file_path|
|
48
49
|
file_directory = File.dirname(file_path).gsub(options[:path], '')
|
49
50
|
file_directory[0] = '' if file_directory[0] == '/'
|
data/lib/tmsync/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tmsync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cihat Gündüz
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
124
|
version: '0'
|
125
125
|
requirements: []
|
126
126
|
rubyforge_project:
|
127
|
-
rubygems_version: 2.
|
127
|
+
rubygems_version: 2.7.3
|
128
128
|
signing_key:
|
129
129
|
specification_version: 4
|
130
130
|
summary: Translation Management Synchronization tool for any translation management
|