gettextpo 0.3.0 → 0.4.0
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/CHANGELOG.md +10 -0
- data/README.md +2 -3
- data/ext/gettextpo/gettextpo.c +2 -2
- data/lib/gettextpo/version.rb +1 -1
- data/mrblib/mrb_gettextpo_common.rb +42 -5
- metadata +9 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8dc578aa39656a68a618fded31047596b0896d512e87c0a98fdc12414f0c58dd
|
|
4
|
+
data.tar.gz: 2bc242b9a93c0ff16c06ee2ad3e00822c5d95c6c8719a1a031a4a7b8eef8a214
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f0810544b3ab98f178611d2b93ba0b1bbc261ff1a61b8f6f42c90c04dc322c6740b827d78f68d31b4138bf8ca346320f8eb20bec6465830c8714b7d8e30e2ef8
|
|
7
|
+
data.tar.gz: 9134f46ca9b0dec4e96c855dfd2ddc3441721dd5597330ba8212c86c47f4590a77e8cd89e84ea800dacd499e74b32b5f56ef82a6f9443f0591e719facdd77cfb
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## CRuby and mruby version 0.4.0 - 2026-03-18
|
|
6
|
+
|
|
7
|
+
- Add `GettextPO::Message#sticky_flags`,
|
|
8
|
+
`GettextPO::Message#workflow_flags`, and `GettextPO::File#messages`
|
|
9
|
+
methods.
|
|
10
|
+
- Enable `GettextPO::File#each`, `GettextPO::MessageIterator#each`,
|
|
11
|
+
`GettextPO::FlagIterator#each`,
|
|
12
|
+
`GettextPO::Message#each_sticky_flag`, and
|
|
13
|
+
`GettextPO::Message#each_workflow_flag` to run without given block.
|
|
14
|
+
|
|
5
15
|
## CRuby and mruby version 0.3.0 - 2026-03-17
|
|
6
16
|
|
|
7
17
|
- Add `GettextPO::File#each_message`,
|
data/README.md
CHANGED
|
@@ -117,14 +117,13 @@ File structure:
|
|
|
117
117
|
|
|
118
118
|
## Contributing
|
|
119
119
|
|
|
120
|
-
Bug reports and pull requests are welcome on [
|
|
120
|
+
Bug reports and pull requests are welcome on [GitHub][github].
|
|
121
121
|
|
|
122
122
|
Other links:
|
|
123
123
|
|
|
124
124
|
* [RubyGems](https://rubygems.org/gems/gettextpo)
|
|
125
|
-
* [GitHub repository](https://github.com/gemmaro/ruby-gettextpo)
|
|
126
125
|
|
|
127
|
-
[
|
|
126
|
+
[github]: https://github.com/ruby-gettext/gettextpo
|
|
128
127
|
|
|
129
128
|
## License
|
|
130
129
|
|
data/ext/gettextpo/gettextpo.c
CHANGED
|
@@ -489,7 +489,7 @@ UPDATE_FLAG (workflow);
|
|
|
489
489
|
* Document-method: workflow_flag_iterator
|
|
490
490
|
* call-seq: workflow_flag_iterator -> GettextPO::FlagIterator
|
|
491
491
|
*
|
|
492
|
-
* You may find it handy to use the #
|
|
492
|
+
* You may find it handy to use the #each_workflow_flag method to
|
|
493
493
|
* iterate over the sticky flag. This is for more versatile
|
|
494
494
|
* manipulation.
|
|
495
495
|
*/
|
|
@@ -572,7 +572,7 @@ UPDATE_FLAG (sticky);
|
|
|
572
572
|
* Document-method: sticky_flag_iterator
|
|
573
573
|
* call-seq: sticky_flag_iterator -> GettextPO::FlagIterator
|
|
574
574
|
*
|
|
575
|
-
* You may find it handy to use the #
|
|
575
|
+
* You may find it handy to use the #each_sticky_flag method to
|
|
576
576
|
* iterate over the sticky flag. This is for more versatile
|
|
577
577
|
* manipulation.
|
|
578
578
|
*/
|
data/lib/gettextpo/version.rb
CHANGED
|
@@ -45,7 +45,12 @@ module GettextPO
|
|
|
45
45
|
"please use other methods instead, such as GettextPO::File#message_iterator"
|
|
46
46
|
end
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
# call-seq:
|
|
49
|
+
# each { |message| ... }
|
|
50
|
+
# each -> Enumerator
|
|
51
|
+
def each
|
|
52
|
+
block_given? or return enum_for
|
|
53
|
+
|
|
49
54
|
while true
|
|
50
55
|
begin
|
|
51
56
|
yield self.next
|
|
@@ -77,7 +82,12 @@ module GettextPO
|
|
|
77
82
|
positions
|
|
78
83
|
end
|
|
79
84
|
|
|
80
|
-
|
|
85
|
+
# call-seq:
|
|
86
|
+
# each_sticky_flag { |flag| ... }
|
|
87
|
+
# each_sticky_flag -> Enumerator
|
|
88
|
+
def each_sticky_flag
|
|
89
|
+
block_given? or return enum_for(__method__)
|
|
90
|
+
|
|
81
91
|
iter = sticky_flag_iterator
|
|
82
92
|
while true
|
|
83
93
|
begin
|
|
@@ -88,7 +98,16 @@ module GettextPO
|
|
|
88
98
|
end
|
|
89
99
|
end
|
|
90
100
|
|
|
91
|
-
def
|
|
101
|
+
def sticky_flags
|
|
102
|
+
each_sticky_flag.to_a
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# call-seq:
|
|
106
|
+
# each_workflow_flag { |flag| ... }
|
|
107
|
+
# each_workflow_flag -> Enumerator
|
|
108
|
+
def each_workflow_flag
|
|
109
|
+
block_given? or return enum_for(__method__)
|
|
110
|
+
|
|
92
111
|
iter = workflow_flag_iterator
|
|
93
112
|
while true
|
|
94
113
|
begin
|
|
@@ -98,10 +117,19 @@ module GettextPO
|
|
|
98
117
|
end
|
|
99
118
|
end
|
|
100
119
|
end
|
|
120
|
+
|
|
121
|
+
def workflow_flags
|
|
122
|
+
each_workflow_flag.to_a
|
|
123
|
+
end
|
|
101
124
|
end
|
|
102
125
|
|
|
103
126
|
class File
|
|
104
|
-
|
|
127
|
+
# call-seq:
|
|
128
|
+
# each_message (domain = nil) { |message| ... }
|
|
129
|
+
# each_message (domain = nil) -> Enumerator
|
|
130
|
+
def each_message(domain = nil)
|
|
131
|
+
block_given? or return enum_for(__method__)
|
|
132
|
+
|
|
105
133
|
iter = message_iterator(domain)
|
|
106
134
|
while true
|
|
107
135
|
begin
|
|
@@ -111,6 +139,10 @@ module GettextPO
|
|
|
111
139
|
end
|
|
112
140
|
end
|
|
113
141
|
end
|
|
142
|
+
|
|
143
|
+
def messages(domain = nil)
|
|
144
|
+
each_message(domain).to_a
|
|
145
|
+
end
|
|
114
146
|
end
|
|
115
147
|
|
|
116
148
|
# This class doesn't provide the +new+ class method. See also
|
|
@@ -131,7 +163,12 @@ module GettextPO
|
|
|
131
163
|
"please use other methods instead, such as GettextPO::Message#workflow_flag_iterator"
|
|
132
164
|
end
|
|
133
165
|
|
|
134
|
-
|
|
166
|
+
# call-seq:
|
|
167
|
+
# each { |flag| ... }
|
|
168
|
+
# each -> Enumerator
|
|
169
|
+
def each
|
|
170
|
+
block_given? or return enum_for
|
|
171
|
+
|
|
135
172
|
while true
|
|
136
173
|
begin
|
|
137
174
|
yield self.next
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gettextpo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- gemmaro
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies: []
|
|
13
12
|
description: This gem is a Ruby library for the GNU gettext PO files. This is a C
|
|
14
13
|
binding of the libgettextpo library, which is part of the GNU gettext package.
|
|
@@ -30,18 +29,17 @@ files:
|
|
|
30
29
|
- lib/gettextpo.rb
|
|
31
30
|
- lib/gettextpo/version.rb
|
|
32
31
|
- mrblib/mrb_gettextpo_common.rb
|
|
33
|
-
homepage: https://
|
|
32
|
+
homepage: https://github.com/ruby-gettext/gettextpo
|
|
34
33
|
licenses:
|
|
35
34
|
- GPL-3.0-or-later
|
|
36
35
|
metadata:
|
|
37
36
|
rubygems_mfa_required: 'true'
|
|
38
|
-
bug_tracker_uri: https://
|
|
39
|
-
changelog_uri: https://
|
|
37
|
+
bug_tracker_uri: https://github.com/ruby-gettext/gettextpo/issues
|
|
38
|
+
changelog_uri: https://github.com/ruby-gettext/gettextpo/src/branch/main/CHANGELOG.md
|
|
40
39
|
documentation_uri: https://gemmaro.github.io/ruby-gettextpo/
|
|
41
|
-
homepage_uri: https://
|
|
42
|
-
source_code_uri: https://
|
|
43
|
-
wiki_uri: https://
|
|
44
|
-
post_install_message:
|
|
40
|
+
homepage_uri: https://github.com/ruby-gettext/gettextpo
|
|
41
|
+
source_code_uri: https://github.com/ruby-gettext/gettextpo
|
|
42
|
+
wiki_uri: https://github.com/ruby-gettext/gettextpo/wiki
|
|
45
43
|
rdoc_options: []
|
|
46
44
|
require_paths:
|
|
47
45
|
- lib
|
|
@@ -57,8 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
57
55
|
version: '0'
|
|
58
56
|
requirements:
|
|
59
57
|
- libgettextpo
|
|
60
|
-
rubygems_version:
|
|
61
|
-
signing_key:
|
|
58
|
+
rubygems_version: 4.0.6
|
|
62
59
|
specification_version: 4
|
|
63
60
|
summary: GNU gettext PO file parser library
|
|
64
61
|
test_files: []
|