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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: fe3f4fea78dca6938fa186515dedf58ed6e7ad05
4
- data.tar.gz: 1640ceaa020f4bd2d0b25e202ad73c62066ae765
2
+ SHA256:
3
+ metadata.gz: 8d0e1c8171ea9c91717abaeef06d3b0e7766e37258feef888c9c3e59d3f5915e
4
+ data.tar.gz: 735283fe7cc2c40765ec0ac1b480b05d0596bee3716530902ac558af04e9230c
5
5
  SHA512:
6
- metadata.gz: 06ed7777d1082c49ed7ecfce0be5662189bd3d6273a9bda999a1af0c0c3f37d62eb8f8b992264a307f7a77589b690dcdce5909aeafc4210c8637257c75fe0fa6
7
- data.tar.gz: a20a4476b6ab5a228737834669e68c84ba162a025f3a88ae7cf4098c0638b3aeede385ad013d1e88507561d3cc90f7120333c8a94d19b44142ad7ed05de65a5d
6
+ metadata.gz: c8f776bdbeccc8ae21b8f19830caf9d700b3b3df802bf25f695ec25f7158499e2fedd763d7aaa8c73a5f6b567b95e8bf9bb9ea7e001316d637c8e322ae1467fc
7
+ data.tar.gz: c0dd3ff56338bc33405de17c0daaab1434d88bf86aeb97bb72c838f6f5f6798315e0d26e6bb7bb5015cf8b66dea00bed8857a9ea093bad6e71980ab8d9e0f46f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tmsync (0.3.4)
4
+ tmsync (0.3.7)
5
5
  thor
6
6
 
7
7
  GEM
@@ -44,4 +44,4 @@ DEPENDENCIES
44
44
  tmsync!
45
45
 
46
46
  BUNDLED WITH
47
- 1.16.0
47
+ 1.16.1
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] == '/'
@@ -1,3 +1,3 @@
1
1
  module Tmsync
2
- VERSION = "0.3.7"
2
+ VERSION = "0.4.0"
3
3
  end
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.3.7
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-01-26 00:00:00.000000000 Z
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.6.12
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