gettext 3.3.3 → 3.3.4

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: a2b035c2e33e7e5d59eb90ca4bc2ec5f002300cd597bb7170b265ee3dea1017b
4
- data.tar.gz: c964321d37fb3e9608527d08c96a3aef18791fc4ce41f9efdc950e49086cdf53
3
+ metadata.gz: 2042428f38c26ad37b232abdd52d2450339e52fa476c129dd31ffd58ee7e7c8f
4
+ data.tar.gz: e7de1e426ce9699a0f8cc7e0fa7a1a9e4df9cc05af35b32911bb690dc2eeeac0
5
5
  SHA512:
6
- metadata.gz: ff63d36681ef49c5d9ae4478da15f671046b67422477f01a3f408c6a6ee653688354d1502c44f0923691b706fdf2ca8de0fa267715c31f85ac8cb4c531ac7c5f
7
- data.tar.gz: 41cc509f2ab0502e3220ca39e37c201a056cbf372aca206fc3f3eb240b49308388c64f09b80aa26397f5cd92d35f750a09cd5f279ca7cd887bea134e119f0514
6
+ metadata.gz: bcff65fd44de8574479c1d8d12d7d32c0b2fbb703516656f5ceadf57e3a6c7ceaa23985a1ad069db8fff222e53c3bd37333d1410c7e5c6d1398f2276e5300b8d
7
+ data.tar.gz: a653287bf1ca9b1361bc5e9aacb1bee26175d51a061d963915db161f80c38af2984bedb3757767d543e2f2c2e71dff5d6a30014a133fef38cde833985b478abc
@@ -1,5 +1,16 @@
1
1
  # News
2
2
 
3
+ ## 3.3.4: 2020-02-12 {#version-3-3-4}
4
+
5
+ ### Improvements
6
+
7
+ * Added support for `%W`.
8
+ [GitHub#72][Reported by Michaël Hoste]
9
+
10
+ ### Thanks
11
+
12
+ * Michaël Hoste
13
+
3
14
  ## 3.3.3: 2020-02-05 {#version-3-3-3}
4
15
 
5
16
  ### Improvements
@@ -203,18 +203,18 @@ module GetText
203
203
  po
204
204
  end
205
205
 
206
- def process_on_embexpr_beg(token, po)
207
- @current_po_entry = nil
208
- @current_po_entry_nth_attribute = 0
209
- po
210
- end
211
-
212
206
  def process_on_regexp_end(token, po)
213
207
  @string_mark_stack.pop
214
208
  @string_stack.pop
215
209
  po
216
210
  end
217
211
 
212
+ def process_on_embexpr_beg(token, po)
213
+ @current_po_entry = nil
214
+ @current_po_entry_nth_attribute = 0
215
+ po
216
+ end
217
+
218
218
  def process_on_int(token, po)
219
219
  @ignore_next_comma = true
220
220
  po
@@ -247,14 +247,14 @@ module GetText
247
247
  po
248
248
  end
249
249
 
250
- def process_on_symbols_beg(token, po)
251
- @string_mark_stack << "\""
250
+ def process_on_backtick(token, po)
251
+ @string_mark_stack << "`"
252
252
  @string_stack << ""
253
253
  po
254
254
  end
255
255
 
256
- def process_on_backtick(token, po)
257
- @string_mark_stack << "`"
256
+ def process_on_symbols_beg(token, po)
257
+ @string_mark_stack << "\""
258
258
  @string_stack << ""
259
259
  po
260
260
  end
@@ -265,6 +265,12 @@ module GetText
265
265
  po
266
266
  end
267
267
 
268
+ def process_on_words_beg(token, po)
269
+ @string_mark_stack << "\""
270
+ @string_stack << ""
271
+ po
272
+ end
273
+
268
274
  def process_on_qwords_beg(token, po)
269
275
  @string_mark_stack << token
270
276
  @string_stack << ""
@@ -9,5 +9,5 @@
9
9
  =end
10
10
 
11
11
  module GetText
12
- VERSION = "3.3.3"
12
+ VERSION = "3.3.4"
13
13
  end
@@ -6,10 +6,10 @@
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: gettext 3.3.3\n"
9
+ "Project-Id-Version: gettext 3.3.4\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2020-02-05 14:03+0900\n"
12
- "PO-Revision-Date: 2020-02-05 14:03+0900\n"
11
+ "POT-Creation-Date: 2020-02-12 14:09+0900\n"
12
+ "PO-Revision-Date: 2020-02-12 14:09+0900\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -0,0 +1 @@
1
+ %I(hello world)
@@ -0,0 +1 @@
1
+ %W(Hello World)
@@ -0,0 +1 @@
1
+ %i(hello world)
@@ -0,0 +1 @@
1
+ %w(Hello World)
@@ -266,4 +266,31 @@ class TestRubyParser < Test::Unit::TestCase
266
266
  super("ns_", *components)
267
267
  end
268
268
  end
269
+
270
+ sub_test_case("parse") do
271
+ def test_percent_w
272
+ assert_parse([],
273
+ "percent_w.rb")
274
+ end
275
+
276
+ def test_percent_W
277
+ assert_parse([],
278
+ "percent_W.rb")
279
+ end
280
+
281
+ def test_percent_i
282
+ assert_parse([],
283
+ "percent_i.rb")
284
+ end
285
+
286
+ def test_percent_I
287
+ assert_parse([],
288
+ "percent_I.rb")
289
+ end
290
+
291
+ private
292
+ def fixture_path(*components)
293
+ super("ruby", *components)
294
+ end
295
+ end
269
296
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gettext
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.3
4
+ version: 3.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-02-05 00:00:00.000000000 Z
12
+ date: 2020-02-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: locale
@@ -1541,6 +1541,10 @@ files:
1541
1541
  - test/fixtures/ns_.rb
1542
1542
  - test/fixtures/ns_/custom.rb
1543
1543
  - test/fixtures/p_.rb
1544
+ - test/fixtures/ruby/percent_I.rb
1545
+ - test/fixtures/ruby/percent_W.rb
1546
+ - test/fixtures/ruby/percent_i.rb
1547
+ - test/fixtures/ruby/percent_w.rb
1544
1548
  - test/fixtures/s_.rb
1545
1549
  - test/fixtures/s_/custom.rb
1546
1550
  - test/fixtures/simple.rb