gettext 3.2.3 → 3.2.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 +4 -4
- data/doc/text/news.md +11 -0
- data/lib/gettext/tools/parser/ruby.rb +2 -0
- data/lib/gettext/version.rb +2 -2
- data/po/gettext.pot +3 -3
- data/test/fixtures/_/block_parameter.rb +33 -0
- data/test/tools/parser/test_ruby.rb +6 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bac2fd859011e8ae4d00beeb2e6dd710f29800c8
|
|
4
|
+
data.tar.gz: c23300fe99fb48180e4c076bfd521b4cfbbeacdc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a3db533e9c26b4e18a12a60197df1d40aa165182c0ffc28a16951695e5bfd756dc7147a6ef7e02f1e37360521fee8ec61ad0f549c037a0c3d5136c2588a647ab
|
|
7
|
+
data.tar.gz: ac6356ad3dc58df6c2a67e26a4a657d0c078f97ba97d9f16c89f03bf1746fdbf8f6c967c5df59b9f7d5352c0a7d14101b21ea07e15c847503a34f2e5334433ac
|
data/doc/text/news.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# News
|
|
2
2
|
|
|
3
|
+
## 3.2.4: 2017-08-13 {#version-3-2-4}
|
|
4
|
+
|
|
5
|
+
### Fixes
|
|
6
|
+
|
|
7
|
+
* Fixed a bug that block parameter is handled as method name.
|
|
8
|
+
[GitHub#53][Reported by Renaud Chaput]
|
|
9
|
+
|
|
10
|
+
### Thanks
|
|
11
|
+
|
|
12
|
+
* Renaud Chaput
|
|
13
|
+
|
|
3
14
|
## 3.2.3: 2017-06-24 {#version-3-2-3}
|
|
4
15
|
|
|
5
16
|
### Improvements
|
|
@@ -260,6 +260,8 @@ module GetText
|
|
|
260
260
|
po_entry = nil
|
|
261
261
|
end
|
|
262
262
|
line_no = tk.line_no.to_s
|
|
263
|
+
when RubyToken::TkBITOR
|
|
264
|
+
po_entry = nil
|
|
263
265
|
when RubyToken::TkSTRING, RubyToken::TkDSTRING
|
|
264
266
|
po_entry.set_current_attribute tk.value if po_entry
|
|
265
267
|
when RubyToken::TkPLUS, RubyToken::TkNL
|
data/lib/gettext/version.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
version - version information of gettext
|
|
3
3
|
|
|
4
|
-
Copyright (C) 2012-
|
|
4
|
+
Copyright (C) 2012-2017 Kouhei Sutou <kou@clear-code.com>
|
|
5
5
|
Copyright (C) 2005-2009 Masao Mutoh
|
|
6
6
|
|
|
7
7
|
You may redistribute it and/or modify it under the same
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
=end
|
|
10
10
|
|
|
11
11
|
module GetText
|
|
12
|
-
VERSION = "3.2.
|
|
12
|
+
VERSION = "3.2.4"
|
|
13
13
|
end
|
data/po/gettext.pot
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
#, fuzzy
|
|
7
7
|
msgid ""
|
|
8
8
|
msgstr ""
|
|
9
|
-
"Project-Id-Version: gettext 3.2.
|
|
9
|
+
"Project-Id-Version: gettext 3.2.4\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
|
11
|
-
"POT-Creation-Date: 2017-
|
|
12
|
-
"PO-Revision-Date: 2017-
|
|
11
|
+
"POT-Creation-Date: 2017-08-13 21:55+0900\n"
|
|
12
|
+
"PO-Revision-Date: 2017-08-13 21:55+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,33 @@
|
|
|
1
|
+
# Copyright (C) 2017 Kouhei Sutou <kou@clear-code.com>
|
|
2
|
+
#
|
|
3
|
+
# License: Ruby's or LGPL
|
|
4
|
+
#
|
|
5
|
+
# This library is free software: you can redistribute it and/or modify
|
|
6
|
+
# it under the terms of the GNU Lesser General Public License as published by
|
|
7
|
+
# the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
# (at your option) any later version.
|
|
9
|
+
#
|
|
10
|
+
# This library is distributed in the hope that it will be useful,
|
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
# GNU Lesser General Public License for more details.
|
|
14
|
+
#
|
|
15
|
+
# You should have received a copy of the GNU Lesser General Public License
|
|
16
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
|
|
18
|
+
module Fixtures
|
|
19
|
+
module Method_
|
|
20
|
+
class BlockParameter
|
|
21
|
+
include GetText
|
|
22
|
+
|
|
23
|
+
bindtextdomain("_", :path => GetTextTestUtils.locale_path)
|
|
24
|
+
|
|
25
|
+
def message
|
|
26
|
+
message_generator = lambda do |_|
|
|
27
|
+
"this is not a translate target message"
|
|
28
|
+
end
|
|
29
|
+
message_generator.call(nil)
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -221,6 +221,12 @@ class TestRubyParser < Test::Unit::TestCase
|
|
|
221
221
|
path)
|
|
222
222
|
end
|
|
223
223
|
|
|
224
|
+
def test_block_parameter
|
|
225
|
+
path = "block_parameter.rb"
|
|
226
|
+
assert_parse([],
|
|
227
|
+
path)
|
|
228
|
+
end
|
|
229
|
+
|
|
224
230
|
private
|
|
225
231
|
def fixture_path(*components)
|
|
226
232
|
super("_", *components)
|
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.
|
|
4
|
+
version: 3.2.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: 2017-
|
|
12
|
+
date: 2017-08-13 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: locale
|
|
@@ -1513,6 +1513,7 @@ files:
|
|
|
1513
1513
|
- samples/po/zh_TW/hello_tk.po.time_stamp
|
|
1514
1514
|
- src/po_parser.ry
|
|
1515
1515
|
- test/fixtures/_.rb
|
|
1516
|
+
- test/fixtures/_/block_parameter.rb
|
|
1516
1517
|
- test/fixtures/_/double_quote_in_double_quote.rb
|
|
1517
1518
|
- test/fixtures/_/double_quote_in_single_quote.rb
|
|
1518
1519
|
- test/fixtures/_/literal_concatenation_with_continuation_line.rb
|