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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e6055d7b901a7e9feef192da60bb4313b73fcff3
4
- data.tar.gz: 75fc068a3a457b753c0712dd062cb4930533a93d
3
+ metadata.gz: 041acea485cfe71f1ec53f917b538863cda6a7c5
4
+ data.tar.gz: a4dc12d993889c1dc689e680e2556fd4e460ea2a
5
5
  SHA512:
6
- metadata.gz: 5f8e4d890eadb175c48ae56065fa2546bb2bd3d0a089a5d50ffba13091d7745cb3bdbe83295e6abe0f715764e6e462be48ee4b14f4827bf02e3daa705d1f55ce
7
- data.tar.gz: 6ed57c9f6a19e138aaba17ba9c117b1ebd2ea370dfb5d5e3c87efe5b563d7333882f800889d1a2c1c64829486b3ee3a8838f987b2b18cb9052ed7bd7a868d555
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.open(File.join('tmp', 'translation', "haml-gettext-#{index.to_s.rjust(8,'0')}.rb"), 'w') do |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.open(File.join('tmp', 'translation', "slim-gettext-#{index.to_s.rjust(8,'0')}.rb"), 'w') do |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 UpdatePotFileStep
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)
@@ -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
- paths = Dir['**/*.{rb,erb,ruby,rabl}'].select do |p|
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.0
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-17 00:00:00.000000000 Z
12
+ date: 2015-03-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gettext