gettext 3.2.2 → 3.2.3

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
  SHA1:
3
- metadata.gz: 193810e8995216ea92f5b25f5479cb7da7a6bd03
4
- data.tar.gz: 65e1f0e1e19f07e90dc41cfc3cc011df7059b32a
3
+ metadata.gz: 2e2780bac8d7ddbcd471ee663b5fae94990e4039
4
+ data.tar.gz: 92ab7de4a9ca6ce1b20cc6aafcf6164a1e62af5c
5
5
  SHA512:
6
- metadata.gz: 23ed8a4824df193546d42395ad4101b7cd085d23a01c4b87ee33dde6549d9da7629df9824b7b2ebb0399ca9eb5f80401759b7e1031c1fb6be1e5a5bb7600c11f
7
- data.tar.gz: 56576b05d338358a7d2777f2644a028b4df7228c96ec4009046b2a346ba5b31b732915e6b62e02ac75ac671fdb9de869ee0cdb61996c17ae8f438232ab3305dc
6
+ metadata.gz: 6f300a7044941ebabc5e7449ef58199a5bc25b49004a0788c13e224eb28c3dc5f3c8580081ad5277cfbdfc3d1cc3492e4466d24e932bb344df7a3ad29894fb9b
7
+ data.tar.gz: a691da06902d1605fced897c22e489d171c08254c6c006a33997e73371d55686fe5ad7e396736cef1b0e0abe45dcb182251d8f69f9b4e0992c9610cfdb525496
@@ -1,5 +1,21 @@
1
1
  # News
2
2
 
3
+ ## 3.2.3: 2017-06-24 {#version-3-2-3}
4
+
5
+ ### Improvements
6
+
7
+ * Disabled unmaintainable Ruby from CI.
8
+ [GitHub#48][Reported by JP Hastings-Spital]
9
+
10
+ * Supported `--enable-frozen-string-literal` `ruby` option.
11
+ [GitHub#52][Reported by Pat Allan]
12
+
13
+ ### Thanks
14
+
15
+ * JP Hastings-Spital
16
+
17
+ * Pat Allan
18
+
3
19
  ## 3.2.2: 2016-04-17 {#version-3-2-2}
4
20
 
5
21
  ### Improvements
@@ -3,7 +3,7 @@
3
3
  =begin
4
4
  mo.rb - A simple class for operating GNU MO file.
5
5
 
6
- Copyright (C) 2012 Kouhei Sutou <kou@clear-code.com>
6
+ Copyright (C) 2012-2017 Kouhei Sutou <kou@clear-code.com>
7
7
  Copyright (C) 2003-2009 Masao Mutoh
8
8
  Copyright (C) 2002 Masahiro Sakai, Masao Mutoh
9
9
  Copyright (C) 2001 Masahiro Sakai
@@ -43,8 +43,8 @@ module GetText
43
43
  :trans_sysdep_tab_offset
44
44
  end
45
45
 
46
- MAGIC_BIG_ENDIAN = "\x95\x04\x12\xde".force_encoding("ASCII-8BIT")
47
- MAGIC_LITTLE_ENDIAN = "\xde\x12\x04\x95".force_encoding("ASCII-8BIT")
46
+ MAGIC_BIG_ENDIAN = "\x95\x04\x12\xde".b
47
+ MAGIC_LITTLE_ENDIAN = "\xde\x12\x04\x95".b
48
48
 
49
49
  def self.open(arg = nil, output_charset = nil)
50
50
  result = self.new(output_charset)
@@ -325,7 +325,7 @@ module GetText
325
325
  end
326
326
 
327
327
  def generate_original_string(msgid, options)
328
- string = ""
328
+ string = String.new
329
329
 
330
330
  msgctxt = options.delete(:msgctxt)
331
331
  msgid_plural = options.delete(:msgid_plural)
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  #
3
- # Copyright (C) 2012-2014 Kouhei Sutou <kou@clear-code.com>
3
+ # Copyright (C) 2012-2017 Kouhei Sutou <kou@clear-code.com>
4
4
  # Copyright (C) 2012 Haruka Yoshihara <yoshihara@clear-code.com>
5
5
  #
6
6
  # License: Ruby's or LGPL
@@ -194,7 +194,7 @@ module GetText
194
194
  # @return [String] Formatted and joined PO entries. It is used for
195
195
  # creating .po files.
196
196
  def to_s(options={})
197
- po_string = ""
197
+ po_string = String.new
198
198
 
199
199
  header_entry = @entries[[nil, ""]]
200
200
  unless header_entry.nil?
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  #
3
- # Copyright (C) 2012-2014 Kouhei Sutou <kou@clear-code.com>
3
+ # Copyright (C) 2012-2017 Kouhei Sutou <kou@clear-code.com>
4
4
  # Copyright (C) 2010 masone (Christian Felder) <ema@rh-productions.ch>
5
5
  # Copyright (C) 2009 Masao Mutoh
6
6
  #
@@ -83,7 +83,7 @@ module GetText
83
83
  # @return [void]
84
84
  def add_comment(new_comment)
85
85
  if (new_comment and ! new_comment.empty?)
86
- @extracted_comment ||= ""
86
+ @extracted_comment ||= String.new
87
87
  @extracted_comment << "\n" unless @extracted_comment.empty?
88
88
  @extracted_comment << new_comment
89
89
  end
@@ -366,7 +366,7 @@ module GetText
366
366
  end
367
367
 
368
368
  def format_comments
369
- formatted_comment = ""
369
+ formatted_comment = String.new
370
370
  if include_translator_comment?
371
371
  formatted_comment << format_translator_comment
372
372
  end
@@ -395,7 +395,7 @@ module GetText
395
395
 
396
396
  def format_reference_comment
397
397
  max_line_width = @options[:max_line_width]
398
- formatted_reference = ""
398
+ formatted_reference = String.new
399
399
  if not @entry.references.nil? and not @entry.references.empty?
400
400
  formatted_reference << REFERENCE_COMMENT_MARK
401
401
  line_width = 2
@@ -417,7 +417,7 @@ module GetText
417
417
  end
418
418
 
419
419
  def format_flag_comment
420
- formatted_flags = ""
420
+ formatted_flags = String.new
421
421
  @entry.flags.each do |flag|
422
422
  formatted_flags << format_comment(FLAG_MARK, flag)
423
423
  end
@@ -431,7 +431,7 @@ module GetText
431
431
  def format_comment(mark, comment)
432
432
  return "" if comment.nil?
433
433
 
434
- formatted_comment = ""
434
+ formatted_comment = String.new
435
435
  comment.each_line do |comment_line|
436
436
  if comment_line == "\n"
437
437
  formatted_comment << "#{mark}\n"
@@ -446,7 +446,7 @@ module GetText
446
446
  mark = "#~"
447
447
  return "" if comment.nil?
448
448
 
449
- formatted_comment = ""
449
+ formatted_comment = String.new
450
450
  comment.each_line do |comment_line|
451
451
  if /\A#[^~]/ =~ comment_line or comment_line.start_with?(mark)
452
452
  formatted_comment << "#{comment_line.chomp}\n"
@@ -466,7 +466,7 @@ module GetText
466
466
  chunks = wrap_message(message)
467
467
  return empty_formatted_message if chunks.empty?
468
468
 
469
- formatted_message = ""
469
+ formatted_message = String.new
470
470
  if chunks.size > 1 or chunks.first.end_with?("\n")
471
471
  formatted_message << empty_formatted_message
472
472
  end
@@ -3,14 +3,14 @@
3
3
  # po_parser.rb - Generate a .mo
4
4
  #
5
5
  # Copyright (C) 2003-2009 Masao Mutoh <mutomasa at gmail.com>
6
- # Copyright (C) 2012 Kouhei Sutou <kou@clear-code.com>
6
+ # Copyright (C) 2012-2017 Kouhei Sutou <kou@clear-code.com>
7
7
  #
8
8
  # You may redistribute it and/or modify it under the same
9
9
  # license terms as Ruby or LGPL.
10
10
 
11
11
  #
12
12
  # DO NOT MODIFY!!!!
13
- # This file is automatically generated by Racc 1.4.11
13
+ # This file is automatically generated by Racc 1.4.14
14
14
  # from Racc grammer file "".
15
15
  #
16
16
 
@@ -72,7 +72,7 @@ module_eval(<<'...end po_parser.ry/module_eval...', 'po_parser.ry', 123)
72
72
  @msgctxt = nil
73
73
  @msgid_plural = nil
74
74
 
75
- str.strip!
75
+ str = str.strip
76
76
  @q = []
77
77
  until str.empty? do
78
78
  case str
@@ -266,16 +266,16 @@ module_eval(<<'...end po_parser.ry/module_eval...', 'po_parser.ry', 123)
266
266
  ##### State transition tables begin ###
267
267
 
268
268
  racc_action_table = [
269
- 2, 13, 10, 9, 6, 17, 16, 15, 22, 15,
270
- 15, 13, 13, 13, 15, 11, 22, 24, 13, 15 ]
269
+ 2, 11, 10, 9, 6, 17, 16, 15, 22, 15,
270
+ 13, 13, 15, 13, 13, 15, 22, 24, 13, 15 ]
271
271
 
272
272
  racc_action_check = [
273
- 1, 17, 1, 1, 1, 14, 14, 14, 19, 19,
274
- 12, 6, 16, 9, 18, 2, 20, 22, 24, 25 ]
273
+ 1, 2, 1, 1, 1, 14, 14, 14, 19, 19,
274
+ 6, 9, 12, 16, 17, 18, 20, 22, 24, 25 ]
275
275
 
276
276
  racc_action_pointer = [
277
- nil, 0, 15, nil, nil, nil, 4, nil, nil, 6,
278
- nil, nil, 3, nil, 0, nil, 5, -6, 7, 2,
277
+ nil, 0, 1, nil, nil, nil, 3, nil, nil, 4,
278
+ nil, nil, 5, nil, 0, nil, 6, 7, 8, 2,
279
279
  10, nil, 9, nil, 11, 12 ]
280
280
 
281
281
  racc_action_default = [
@@ -284,15 +284,15 @@ racc_action_default = [
284
284
  -9, -11, -16, -10, -16, -12 ]
285
285
 
286
286
  racc_goto_table = [
287
- 12, 21, 23, 14, 4, 5, 3, 7, 8, 20,
288
- 18, 19, 1, nil, nil, nil, nil, nil, 25 ]
287
+ 12, 21, 23, 14, 1, 3, 4, 5, 7, 8,
288
+ 18, 19, 20, nil, nil, nil, nil, nil, 25 ]
289
289
 
290
290
  racc_goto_check = [
291
- 5, 9, 9, 5, 3, 4, 2, 6, 7, 8,
292
- 5, 5, 1, nil, nil, nil, nil, nil, 5 ]
291
+ 5, 9, 9, 5, 1, 2, 3, 4, 6, 7,
292
+ 5, 5, 8, nil, nil, nil, nil, nil, 5 ]
293
293
 
294
294
  racc_goto_pointer = [
295
- nil, 12, 5, 3, 4, -6, 6, 7, -10, -18 ]
295
+ nil, 4, 4, 5, 6, -6, 7, 8, -7, -18 ]
296
296
 
297
297
  racc_goto_default = [
298
298
  nil, nil, nil, nil, nil, nil, nil, nil, nil, nil ]
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2014 Kouhei Sutou <kou@clear-code.com>
1
+ # Copyright (C) 2014-2017 Kouhei Sutou <kou@clear-code.com>
2
2
  #
3
3
  # License: Ruby's or LGPL
4
4
  #
@@ -121,7 +121,7 @@ module GetText
121
121
  msgstr = header_entry.msgstr
122
122
  return if msgstr.nil?
123
123
 
124
- new_msgstr = ""
124
+ new_msgstr = String.new
125
125
  msgstr.each_line do |line|
126
126
  case line
127
127
  when /\A([\w\-]+):/
@@ -2,7 +2,7 @@
2
2
  =begin
3
3
  parser/ruby.rb - parser for ruby script
4
4
 
5
- Copyright (C) 2013 Kouhei Sutou <kou@clear-code.com>
5
+ Copyright (C) 2013-2017 Kouhei Sutou <kou@clear-code.com>
6
6
  Copyright (C) 2003-2009 Masao Mutoh
7
7
  Copyright (C) 2005 speakillof
8
8
  Copyright (C) 2001,2002 Yasushi Shoji, Masao Mutoh
@@ -291,7 +291,7 @@ module GetText
291
291
  if last_comment.empty?
292
292
  comment1 = tk.value.lstrip
293
293
  if comment_to_be_extracted?(comment1)
294
- last_comment << comment1
294
+ last_comment += comment1
295
295
  end
296
296
  else
297
297
  last_comment += "\n"
@@ -9,5 +9,5 @@
9
9
  =end
10
10
 
11
11
  module GetText
12
- VERSION = "3.2.2"
12
+ VERSION = "3.2.3"
13
13
  end
@@ -6,10 +6,10 @@
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: gettext 3.2.2\n"
9
+ "Project-Id-Version: gettext 3.2.3\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2016-04-17 23:55+0900\n"
12
- "PO-Revision-Date: 2016-04-17 23:55+0900\n"
11
+ "POT-Creation-Date: 2017-06-24 12:33+0900\n"
12
+ "PO-Revision-Date: 2017-06-24 12:33+0900\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -3,7 +3,7 @@
3
3
  # po_parser.ry - ruby version of msgfmt
4
4
  #
5
5
  # Copyright (C) 2002-2008 Masao Mutoh <mutomasa at gmail.com>
6
- # Copyright (C) 2012-2014 Kouhei Sutou <kou@clear-code.com>
6
+ # Copyright (C) 2012-2017 Kouhei Sutou <kou@clear-code.com>
7
7
  # Copyright (C) 2012-2013 Haruka Yoshihara <yoshihara@clear-code.com>
8
8
  #
9
9
  # You may redistribute it and/or modify it under the same
@@ -170,7 +170,7 @@ require "gettext/po"
170
170
  @msgctxt = nil
171
171
  @msgid_plural = nil
172
172
 
173
- str.strip!
173
+ str = str.strip
174
174
  @q = []
175
175
  until str.empty? do
176
176
  case str
@@ -1,7 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  #
3
3
  # Copyright (C) 2012 Haruka Yoshihara <yoshihara@clear-code.com>
4
- # Copyright (C) 2012-2014 Kouhei Sutou <kou@clear-code.com>
4
+ # Copyright (C) 2012-2017 Kouhei Sutou <kou@clear-code.com>
5
5
  #
6
6
  # License: Ruby's or LGPL
7
7
  #
@@ -101,7 +101,7 @@ msgstr ""
101
101
  "Content-Transfer-Encoding: 8bit\\n"
102
102
  EOF
103
103
  if have_plural_forms
104
- header << "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\\n"
104
+ header += "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\\n"
105
105
  end
106
106
  header
107
107
  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.2.2
4
+ version: 3.2.3
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: 2016-04-17 00:00:00.000000000 Z
12
+ date: 2017-06-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: locale
@@ -1678,7 +1678,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1678
1678
  version: '0'
1679
1679
  requirements: []
1680
1680
  rubyforge_project: gettext
1681
- rubygems_version: 2.5.1
1681
+ rubygems_version: 2.5.2
1682
1682
  signing_key:
1683
1683
  specification_version: 4
1684
1684
  summary: Gettext is a pure Ruby libary and tools to localize messages.
@@ -1697,4 +1697,3 @@ test_files:
1697
1697
  - test/test_thread.rb
1698
1698
  - test/test_text_domain_multi.rb
1699
1699
  - test/test_po_parser.rb
1700
- has_rdoc: