jekyll-task-i18n 1.0.5 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70be42a58d86e88d1f0a6b5fda69bac024984bfe43b1b2494419acefdc508cbe
4
- data.tar.gz: 40e16e1e6b3f99e156fece4b8c4feaaf6d8153d52f14dea2903e79014942ffa2
3
+ metadata.gz: de80e6b3ffdb015d02f3cc9d5181ba7d3999c0a8fa71d984cccbecddebb1c940
4
+ data.tar.gz: 846fa2a8c2e93583797e352380388f92ebc412c106d7e72088a03f381a86f96c
5
5
  SHA512:
6
- metadata.gz: 3a9dd14631d1b0ad38574a4a5361440901870225618ad6b9bd6461697370af6bb37a8ec7e09e6166b097d4d4ba2a8cdf760f3468a05bc22eaf081359b03726dc
7
- data.tar.gz: e8dc1540410346550c6a28caf18667bd5c410e676aa26e2c3e229dea35a0cae8365a4ded44a3f2fef67e4904d44cae003f2baa4fcc47e6df944cfb2f5376ee56
6
+ metadata.gz: 916b255b12f5746a0ae237da0755ee8007643b2738fa354cdf4c6d086cd777b245b23982a182672f452c15d06349195f569a166d48aa99e6e3bbe525e396901f
7
+ data.tar.gz: 71c8534505fcf2ff0e083cfb80d6b5aa1e623c16b6c3535dec592ef9dcda315a213f8e5598aab67127c21034cc749a2d25d4bde97a8d16c423bd38b26094edb5
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2014-2018 The ruby-gettext project
1
+ # Copyright (C) 2014-2023 The ruby-gettext project
2
2
  #
3
3
  # This library is free software; you can redistribute it and/or modify
4
4
  # it under the terms of the GNU Lesser General Public License as
@@ -17,7 +17,7 @@
17
17
  module Jekyll
18
18
  module Task
19
19
  class I18n
20
- VERSION = "1.0.5"
20
+ VERSION = "1.0.7"
21
21
  end
22
22
  end
23
23
  end
@@ -101,6 +101,7 @@ module Jekyll
101
101
  end
102
102
  msgcat("--output", path.pot_file.to_s,
103
103
  "--no-all-comments",
104
+ "--no-wrap",
104
105
  "--remove-header-field=Language-Team",
105
106
  "--remove-header-field=Last-Translator",
106
107
  "--remove-header-field=POT-Creation-Date",
@@ -113,41 +114,44 @@ module Jekyll
113
114
  end
114
115
  unless path.edit_po_file.exist?
115
116
  if path.po_file.exist?
116
- msgcat("--output", path.edit_po_file.to_s,
117
- "--update-po-revision-date",
117
+ msgcat("--no-wrap",
118
+ "--output", path.edit_po_file.to_s,
118
119
  path.po_file.to_s)
119
120
  else
120
121
  msginit("--input", path.source_pot_file.to_s,
121
- "--output", path.edit_po_file.to_s,
122
- "--locale", locale)
122
+ "--locale", locale,
123
+ "--no-wrap",
124
+ "--output", path.edit_po_file.to_s)
123
125
  end
124
126
  end
125
127
 
126
128
  edit_po_file_mtime = path.edit_po_file.mtime
127
- msgmerge("--update",
129
+ msgmerge("--no-wrap",
128
130
  "--sort-by-file",
129
- "--no-wrap",
131
+ "--update",
130
132
  path.edit_po_file.to_s,
131
133
  path.source_pot_file.to_s)
132
134
  if path.po_file.exist? and path.po_file.mtime > edit_po_file_mtime
133
- msgmerge("--output", path.edit_po_file.to_s,
135
+ msgmerge("--no-obsolete-entries",
136
+ "--no-wrap",
137
+ "--output", path.edit_po_file.to_s,
134
138
  "--sort-by-file",
135
- "--no-obsolete-entries",
136
139
  path.po_file.to_s,
137
140
  path.edit_po_file.to_s)
138
- msgcat("--output", path.edit_po_file.to_s,
139
- "--update-po-revision-date",
141
+ msgcat("--no-wrap",
142
+ "--output", path.edit_po_file.to_s,
140
143
  path.edit_po_file.to_s)
141
144
  end
142
145
  if path.all_po_file.exist?
143
- msgmerge("--output", path.edit_po_file.to_s,
144
- "--sort-by-file",
145
- "--no-fuzzy-matching",
146
+ msgmerge("--no-fuzzy-matching",
146
147
  "--no-obsolete-entries",
148
+ "--no-wrap",
149
+ "--output", path.edit_po_file.to_s,
150
+ "--sort-by-file",
147
151
  path.all_po_file.to_s,
148
152
  path.edit_po_file.to_s)
149
- msgcat("--output", path.edit_po_file.to_s,
150
- "--update-po-revision-date",
153
+ msgcat("--no-wrap",
154
+ "--output", path.edit_po_file.to_s,
151
155
  path.edit_po_file.to_s)
152
156
  end
153
157
  end
@@ -186,13 +190,14 @@ module Jekyll
186
190
 
187
191
  CLEAN << path.time_stamp_file.to_s if path.time_stamp_file.exist?
188
192
  file po_file => [path.edit_po_file.to_s] do
189
- msgcat("--output", po_file,
193
+ msgcat("--no-all-comments",
190
194
  "--no-fuzzy",
191
- "--sort-by-file",
192
- "--no-all-comments",
193
- "--no-report-warning",
194
195
  "--no-obsolete-entries",
196
+ "--no-report-warning",
197
+ "--no-wrap",
198
+ "--output", po_file,
195
199
  "--remove-header-field=POT-Creation-Date",
200
+ "--sort-by-file",
196
201
  path.edit_po_file.to_s)
197
202
  touch(path.time_stamp_file.to_s)
198
203
  end
@@ -205,11 +210,12 @@ module Jekyll
205
210
  sorted_po_files = po_files.sort_by do |po_file|
206
211
  -File.mtime(po_file).to_f
207
212
  end
208
- msgcat("--output", all_po_file,
213
+ msgcat("--no-all-comments",
209
214
  "--no-fuzzy",
210
- "--no-all-comments",
211
- "--sort-by-msgid",
212
215
  "--no-obsolete-entries",
216
+ "--no-wrap",
217
+ "--output", all_po_file,
218
+ "--sort-by-msgid",
213
219
  *sorted_po_files)
214
220
  end
215
221
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-task-i18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou