translation 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/translation_io/client/base_operation/dump_haml_gettext_keys_step.rb +3 -1
- data/lib/translation_io/client/base_operation/dump_slim_gettext_keys_step.rb +3 -1
- data/lib/translation_io/client/init_operation/update_pot_file_step.rb +1 -1
- data/lib/translation_io/client/sync_operation/update_and_collect_pot_file_step.rb +2 -1
- data/lib/translation_io/config.rb +1 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 041acea485cfe71f1ec53f917b538863cda6a7c5
|
4
|
+
data.tar.gz: a4dc12d993889c1dc689e680e2556fd4e460ea2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 774ae0bec44e916080eb154d20eb19073166a17f9474712d1d9a2c50900005fdd6e1a05a6a7ef455483fb735ac74e13268419a612f9930847bf35ef3de81d4ae
|
7
|
+
data.tar.gz: 91e5584b8ddd908ff28384cd52edcc060e9b2f814f41157ef329feaa6071090666210bb759f263543070ff90ae206e7b57db2f4022e8ff76c0a9534f8fa80b94
|
@@ -13,7 +13,9 @@ module TranslationIO
|
|
13
13
|
FileUtils.mkdir_p(File.join('tmp', 'translation'))
|
14
14
|
|
15
15
|
extracted_gettext_entries.each_with_index do |entry, index|
|
16
|
-
File.
|
16
|
+
file_path = File.join('tmp', 'translation', "haml-gettext-#{index.to_s.rjust(8,'0')}.rb")
|
17
|
+
|
18
|
+
File.open(file_path, 'w') do |file|
|
17
19
|
file.puts "#{entry}"
|
18
20
|
end
|
19
21
|
end
|
@@ -13,7 +13,9 @@ module TranslationIO
|
|
13
13
|
FileUtils.mkdir_p(File.join('tmp', 'translation'))
|
14
14
|
|
15
15
|
extracted_gettext_entries.each_with_index do |entry, index|
|
16
|
-
File.
|
16
|
+
file_path = File.join('tmp', 'translation', "slim-gettext-#{index.to_s.rjust(8,'0')}.rb")
|
17
|
+
|
18
|
+
File.open(file_path, 'w') do |file|
|
17
19
|
file.puts "#{entry}"
|
18
20
|
end
|
19
21
|
end
|
@@ -4,7 +4,7 @@ module TranslationIO
|
|
4
4
|
class UpdateAndCollectPotFileStep
|
5
5
|
def initialize(pot_path, source_files)
|
6
6
|
@pot_path = pot_path
|
7
|
-
@source_files = source_files
|
7
|
+
@source_files = source_files + Dir['tmp/translation/*.rb']
|
8
8
|
end
|
9
9
|
|
10
10
|
def run(params)
|
@@ -17,6 +17,7 @@ module TranslationIO
|
|
17
17
|
'--copyright-year', TranslationIO.config.pot_copyright_year.to_s)
|
18
18
|
|
19
19
|
params['pot_data'] = File.read(@pot_path)
|
20
|
+
puts params['pot_data']
|
20
21
|
end
|
21
22
|
end
|
22
23
|
end
|
@@ -47,13 +47,9 @@ module TranslationIO
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def source_files
|
50
|
-
|
50
|
+
Dir['**/*.{rb,erb,ruby,rabl}'].select do |p|
|
51
51
|
!p.start_with?('vendor/') && !p.start_with?('tmp/')
|
52
52
|
end
|
53
|
-
|
54
|
-
paths += Dir['tmp/translation/*.rb']
|
55
|
-
|
56
|
-
paths
|
57
53
|
end
|
58
54
|
|
59
55
|
def haml_source_files
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: translation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aurelien Malisart
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-03-
|
12
|
+
date: 2015-03-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: gettext
|