i18n-inflector 2.6.6 → 2.6.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.
- data.tar.gz.sig +0 -0
- data/.yardopts +1 -1
- data/ChangeLog +53 -0
- data/Gemfile +3 -3
- data/Gemfile.lock +10 -10
- data/README.rdoc +12 -2
- data/Rakefile +2 -2
- data/ci/i18n-inflector.gemspec +1 -1
- data/ci/i18nv4-Gemfile +1 -1
- data/ci/i18nv4-Gemfile.lock +6 -6
- data/docs/HISTORY +10 -0
- data/docs/TODO +8 -1
- data/lib/i18n-inflector/api.rb +1 -1
- data/lib/i18n-inflector/api_strict.rb +2 -2
- data/lib/i18n-inflector/backend.rb +2 -2
- data/lib/i18n-inflector/config.rb +1 -1
- data/lib/i18n-inflector/errors.rb +1 -1
- data/lib/i18n-inflector/hset.rb +1 -1
- data/lib/i18n-inflector/inflection_data.rb +3 -3
- data/lib/i18n-inflector/inflection_data_strict.rb +6 -6
- data/lib/i18n-inflector/inflector.rb +1 -1
- data/lib/i18n-inflector/interpolate.rb +1 -1
- data/lib/i18n-inflector/lazy_enum.rb +11 -1
- data/lib/i18n-inflector/long_comments.rb +1 -1
- data/lib/i18n-inflector/options.rb +1 -1
- data/lib/i18n-inflector/version.rb +2 -2
- metadata +89 -61
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
|
Binary file
|
data/.yardopts
CHANGED
data/ChangeLog
CHANGED
|
@@ -1,3 +1,56 @@
|
|
|
1
|
+
commit 0e3aa01679ba2c1d4ac6594cd133dde6a1c92218
|
|
2
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
|
3
|
+
Date: Tue Jun 18 18:40:19 2013 +0200
|
|
4
|
+
|
|
5
|
+
ChangeLog and Gemfile.lock updated
|
|
6
|
+
|
|
7
|
+
commit ea2a4c588e4b6a04fe71a255796375c3e03c0cce
|
|
8
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
|
9
|
+
Date: Tue Jun 18 18:39:15 2013 +0200
|
|
10
|
+
|
|
11
|
+
Release 2.6.7
|
|
12
|
+
|
|
13
|
+
commit 55d7719d687e2b7d40b04d7b0f925ec5cfcff851
|
|
14
|
+
Merge: a9c8426 36b30d5
|
|
15
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
|
16
|
+
Date: Tue Jun 18 09:10:22 2013 -0700
|
|
17
|
+
|
|
18
|
+
Merge pull request #6 from MrZYX/deprecations
|
|
19
|
+
|
|
20
|
+
Remove deprecation warnings for Ruby 2.0 (Thanx MrZYX!!)
|
|
21
|
+
|
|
22
|
+
commit 36b30d5172072ae1f5bccb1b5b4f2569b25ce226
|
|
23
|
+
Author: Jonne Haß <me@mrzyx.de>
|
|
24
|
+
Date: Tue Jun 18 00:19:05 2013 +0200
|
|
25
|
+
|
|
26
|
+
Add LazyEnumerator::for
|
|
27
|
+
|
|
28
|
+
This wraps Enumerator::new to always pass it a block
|
|
29
|
+
|
|
30
|
+
commit 9edbc33f904dd3a4a51826763cab9251ba31e121
|
|
31
|
+
Author: Jonne Haß <me@mrzyx.de>
|
|
32
|
+
Date: Mon Jun 17 23:52:42 2013 +0200
|
|
33
|
+
|
|
34
|
+
update gem dependencies
|
|
35
|
+
|
|
36
|
+
commit a9c84266f993961ed1d53a2485ab7f3e3bcb1120
|
|
37
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
|
38
|
+
Date: Thu Oct 18 22:26:45 2012 +0200
|
|
39
|
+
|
|
40
|
+
README updated
|
|
41
|
+
|
|
42
|
+
commit 67156d6d86160334489da5b99303e2a315043925
|
|
43
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
|
44
|
+
Date: Sat Sep 8 18:57:14 2012 +0200
|
|
45
|
+
|
|
46
|
+
README updated
|
|
47
|
+
|
|
48
|
+
commit 7701498c13e6b2297f7063c7396aada9627d1107
|
|
49
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
|
50
|
+
Date: Wed Mar 14 09:59:39 2012 +0100
|
|
51
|
+
|
|
52
|
+
Changed documentation title; seems it's not so simple anymore
|
|
53
|
+
|
|
1
54
|
commit c0bcc1dd60256076d9ac79d6f57d11d6a578f3ee
|
|
2
55
|
Author: Paweł Wilk <siefca@gnu.org>
|
|
3
56
|
Date: Wed Mar 14 02:10:49 2012 +0100
|
data/Gemfile
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
# DO NOT EDIT THIS FILE. Instead, edit Rakefile, and run `rake bundler:gemfile`.
|
|
4
4
|
|
|
5
|
-
source
|
|
5
|
+
source "https://rubygems.org/"
|
|
6
6
|
|
|
7
7
|
gem "i18n", ">=0.4.1"
|
|
8
8
|
|
|
9
9
|
gem "hoe-yard", ">=0.1.2", :group => [:development, :test]
|
|
10
10
|
gem "test_declarative", ">=0.0.5", :group => [:development, :test]
|
|
11
|
-
gem "yard", ">=0.
|
|
11
|
+
gem "yard", ">=0.8.6", :group => [:development, :test]
|
|
12
12
|
gem "rdoc", ">=3.8.0", :group => [:development, :test]
|
|
13
13
|
gem "bundler", ">=1.0.15", :group => [:development, :test]
|
|
14
|
-
gem "hoe-bundler", ">=1.
|
|
14
|
+
gem "hoe-bundler", ">=1.2.0", :group => [:development, :test]
|
|
15
15
|
gem "hoe", "~>2.16", :group => [:development, :test]
|
|
16
16
|
|
|
17
17
|
# vim: syntax=ruby
|
data/Gemfile.lock
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
GEM
|
|
2
|
-
remote:
|
|
2
|
+
remote: https://rubygems.org/
|
|
3
3
|
specs:
|
|
4
|
-
hoe (2.16.
|
|
4
|
+
hoe (2.16.1)
|
|
5
5
|
rake (~> 0.8)
|
|
6
|
-
hoe-bundler (1.
|
|
6
|
+
hoe-bundler (1.2.0)
|
|
7
7
|
hoe (>= 2.2.0)
|
|
8
8
|
hoe-yard (0.1.2)
|
|
9
9
|
yard (>= 0.2.3.1)
|
|
10
|
-
i18n (0.6.
|
|
11
|
-
json (1.
|
|
12
|
-
rake (0.9.
|
|
13
|
-
rdoc (
|
|
10
|
+
i18n (0.6.4)
|
|
11
|
+
json (1.8.0)
|
|
12
|
+
rake (0.9.6)
|
|
13
|
+
rdoc (4.0.1)
|
|
14
14
|
json (~> 1.4)
|
|
15
15
|
test_declarative (0.0.5)
|
|
16
|
-
yard (0.
|
|
16
|
+
yard (0.8.6.1)
|
|
17
17
|
|
|
18
18
|
PLATFORMS
|
|
19
19
|
ruby
|
|
@@ -21,9 +21,9 @@ PLATFORMS
|
|
|
21
21
|
DEPENDENCIES
|
|
22
22
|
bundler (>= 1.0.15)
|
|
23
23
|
hoe (~> 2.16)
|
|
24
|
-
hoe-bundler (>= 1.
|
|
24
|
+
hoe-bundler (>= 1.2.0)
|
|
25
25
|
hoe-yard (>= 0.1.2)
|
|
26
26
|
i18n (>= 0.4.1)
|
|
27
27
|
rdoc (>= 3.8.0)
|
|
28
28
|
test_declarative (>= 0.0.5)
|
|
29
|
-
yard (>= 0.
|
|
29
|
+
yard (>= 0.8.6)
|
data/README.rdoc
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
= I18n Inflector
|
|
2
2
|
|
|
3
|
-
<b>i18n-inflector version <tt>2.6.
|
|
3
|
+
<b>i18n-inflector version <tt>2.6.7</tt></b> (<b><tt>Little Kózka</tt></b>)
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
* https://rubygems.org/gems/i18n-inflector
|
|
@@ -241,7 +241,17 @@ You can run tests both with
|
|
|
241
241
|
== Credits
|
|
242
242
|
|
|
243
243
|
{Heise Media Polska}[http://www.heise-online.pl/] supports Free Software and has
|
|
244
|
-
contributed to this library by paying for
|
|
244
|
+
contributed to this library by paying for my food during the coding.
|
|
245
|
+
|
|
246
|
+
== Donations
|
|
247
|
+
|
|
248
|
+
If you like my work you can send me some BitCoins:
|
|
249
|
+
|
|
250
|
+
* <tt>13wZbBjs6yQQuAb3zjfHubQSyer2cLAYzH</tt>
|
|
251
|
+
|
|
252
|
+
Or you can endorse my skills on LinkedIn:
|
|
253
|
+
|
|
254
|
+
* {pl.linkedin.com/in/pwilk}[http://www.linkedin.com/profile/view?id=4251568#profile-skills]
|
|
245
255
|
|
|
246
256
|
== License
|
|
247
257
|
|
data/Rakefile
CHANGED
|
@@ -72,10 +72,10 @@ Hoe.spec 'i18n-inflector' do
|
|
|
72
72
|
|
|
73
73
|
extra_deps << ['i18n', '>= 0.4.1']
|
|
74
74
|
extra_dev_deps << ['test_declarative', '>= 0.0.5'] <<
|
|
75
|
-
['yard', '>= 0.
|
|
75
|
+
['yard', '>= 0.8.6'] <<
|
|
76
76
|
['rdoc', '>= 3.8.0'] <<
|
|
77
77
|
['bundler', '>= 1.0.15'] <<
|
|
78
|
-
['hoe-bundler', '>= 1.
|
|
78
|
+
['hoe-bundler', '>= 1.2.0']
|
|
79
79
|
|
|
80
80
|
unless extra_dev_deps.flatten.include?('hoe-yard')
|
|
81
81
|
extra_dev_deps << ['hoe-yard', '>= 0.1.2']
|
data/ci/i18n-inflector.gemspec
CHANGED
|
@@ -30,7 +30,7 @@ Gem::Specification.new do |s|
|
|
|
30
30
|
s.add_dependency 'i18n', '>= 0.4.1'
|
|
31
31
|
s.add_development_dependency 'test_declarative', '>= 0.0.5'
|
|
32
32
|
s.add_development_dependency 'rspec', '>= 2.3.0'
|
|
33
|
-
s.add_development_dependency 'yard', '>= 0.
|
|
33
|
+
s.add_development_dependency 'yard', '>= 0.8.6'
|
|
34
34
|
s.add_development_dependency 'bundler', '>= 1.0.15'
|
|
35
35
|
s.add_development_dependency 'hoe-yard', '>= 0.1.2'
|
|
36
36
|
s.add_development_dependency 'hoe-bundler', '>= 1.1.0'
|
data/ci/i18nv4-Gemfile
CHANGED
data/ci/i18nv4-Gemfile.lock
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
GEM
|
|
2
|
-
remote:
|
|
2
|
+
remote: https://rubygems.org/
|
|
3
3
|
specs:
|
|
4
|
-
hoe (
|
|
5
|
-
rake (
|
|
6
|
-
hoe-bundler (1.
|
|
4
|
+
hoe (3.6.2)
|
|
5
|
+
rake (>= 0.8, < 11.0)
|
|
6
|
+
hoe-bundler (1.2.0)
|
|
7
7
|
hoe (>= 2.2.0)
|
|
8
8
|
hoe-yard (0.1.2)
|
|
9
9
|
yard (>= 0.2.3.1)
|
|
10
10
|
i18n (0.4.2)
|
|
11
|
-
rake (0.
|
|
11
|
+
rake (10.0.4)
|
|
12
12
|
test_declarative (0.0.5)
|
|
13
|
-
yard (0.
|
|
13
|
+
yard (0.8.6.1)
|
|
14
14
|
|
|
15
15
|
PLATFORMS
|
|
16
16
|
ruby
|
data/docs/HISTORY
CHANGED
data/docs/TODO
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
== Near future
|
|
2
2
|
|
|
3
|
+
* allow nested vaules: pattern values that refer to other translation keys (needs loop detection) (doc name: nesting patterns)
|
|
4
|
+
* add unfold method that whill generate array or hash with all possible combinations of a given translation
|
|
3
5
|
|
|
6
|
+
(lazy?)
|
|
4
7
|
|
|
8
|
+
e.g: unfold('welcome') # :only_used => false|true, :recursive => false|true
|
|
9
|
+
=> :levels => [:gender, :tense, :time]
|
|
10
|
+
[:welcome][:m][:p] = 'hello sir'
|
|
11
|
+
|
|
5
12
|
== Distant future
|
|
6
13
|
|
|
7
14
|
* split interpolate_core and make it more reusable by raw data (e.g. pattern content)
|
|
8
|
-
* allow different descriptions for aliases pointing to the same token, e.g.: now: @present
|
|
15
|
+
* allow different descriptions for aliases pointing to the same token, e.g.: now: [@present, "description"]
|
data/lib/i18n-inflector/api.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
#
|
|
3
3
|
# Author:: Paweł Wilk (mailto:pw@gnu.org)
|
|
4
|
-
# Copyright:: (c) 2011,2012 by Paweł Wilk
|
|
4
|
+
# Copyright:: (c) 2011,2012,2013 by Paweł Wilk
|
|
5
5
|
# License:: This program is licensed under the terms of {file:docs/LGPL GNU Lesser General Public License} or {file:docs/COPYING Ruby License}.
|
|
6
6
|
#
|
|
7
7
|
# This file contains {I18n::Inflector::API} class,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
#
|
|
3
3
|
# Author:: Paweł Wilk (mailto:pw@gnu.org)
|
|
4
|
-
# Copyright:: (c) 2011,2012 by Paweł Wilk
|
|
4
|
+
# Copyright:: (c) 2011,2012,2013 by Paweł Wilk
|
|
5
5
|
# License:: This program is licensed under the terms of {file:docs/LGPL GNU Lesser General Public License} or {file:docs/COPYING Ruby License}.
|
|
6
6
|
#
|
|
7
7
|
# This file contains I18n::Inflector::API_Strict class,
|
|
@@ -57,7 +57,7 @@ module I18n
|
|
|
57
57
|
def initialize(idb=nil, options=nil)
|
|
58
58
|
@idb = idb.nil? ? {} : idb
|
|
59
59
|
@options = options.nil? ? I18n::Inflector::InflectionOptions.new : options
|
|
60
|
-
@lazy_locales = LazyHashEnumerator.
|
|
60
|
+
@lazy_locales = LazyHashEnumerator.for(@idb)
|
|
61
61
|
@inflected_locales_cache = Hash.new
|
|
62
62
|
end
|
|
63
63
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
#
|
|
3
3
|
# Author:: Paweł Wilk (mailto:pw@gnu.org)
|
|
4
|
-
# Copyright:: (c) 2011,2012 by Paweł Wilk
|
|
4
|
+
# Copyright:: (c) 2011,2012,2013 by Paweł Wilk
|
|
5
5
|
# License:: This program is licensed under the terms of {file:docs/LGPL GNU Lesser General Public License} or {file:docs/COPYING Ruby License}.
|
|
6
6
|
#
|
|
7
7
|
# This file contains I18n::Backend::Inflector module,
|
|
@@ -328,7 +328,7 @@ module I18n
|
|
|
328
328
|
unless inflections.respond_to?(:has_key?)
|
|
329
329
|
raise I18n::BadInflectionKind.new(locale, :INFLECTIONS_ROOT)
|
|
330
330
|
end
|
|
331
|
-
I18n::Inflector::LazyHashEnumerator.
|
|
331
|
+
I18n::Inflector::LazyHashEnumerator.for(inflections).ary_map do |kind, tokens|
|
|
332
332
|
next if (tokens.nil? || tokens.empty?)
|
|
333
333
|
unless tokens.respond_to?(:has_key?)
|
|
334
334
|
raise I18n::BadInflectionKind.new(locale, kind)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
#
|
|
3
3
|
# Author:: Paweł Wilk (mailto:pw@gnu.org)
|
|
4
|
-
# Copyright:: (c) 2011,2012 by Paweł Wilk
|
|
4
|
+
# Copyright:: (c) 2011,2012,2013 by Paweł Wilk
|
|
5
5
|
# License:: This program is licensed under the terms of {file:docs/LGPL GNU Lesser General Public License} or {file:docs/COPYING Ruby License}.
|
|
6
6
|
#
|
|
7
7
|
# This file contains configuration of I18n::Inflector module.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
#
|
|
3
3
|
# Author:: Paweł Wilk (mailto:pw@gnu.org)
|
|
4
|
-
# Copyright:: (c) 2011,2012 by Paweł Wilk
|
|
4
|
+
# Copyright:: (c) 2011,2012,2013 by Paweł Wilk
|
|
5
5
|
# License:: This program is licensed under the terms of {file:docs/LGPL GNU Lesser General Public License} or {file:docs/COPYING Ruby License}.
|
|
6
6
|
#
|
|
7
7
|
# This file contains error reporting classes for I18n::Backend::Inflector module.
|
data/lib/i18n-inflector/hset.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
#
|
|
3
3
|
# Author:: Paweł Wilk (mailto:pw@gnu.org)
|
|
4
|
-
# Copyright:: (c) 2011,2012 by Paweł Wilk
|
|
4
|
+
# Copyright:: (c) 2011,2012,2013 by Paweł Wilk
|
|
5
5
|
# License:: This program is licensed under the terms of {file:docs/LGPL GNU Lesser General Public License} or {file:docs/COPYING Ruby License}.
|
|
6
6
|
#
|
|
7
7
|
# This file contains more intuitive version of Set.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
#
|
|
3
3
|
# Author:: Paweł Wilk (mailto:pw@gnu.org)
|
|
4
|
-
# Copyright:: (c) 2011,2012 by Paweł Wilk
|
|
4
|
+
# Copyright:: (c) 2011,2012,2013 by Paweł Wilk
|
|
5
5
|
# License:: This program is licensed under the terms of {file:docs/LGPL GNU Lesser General Public License} or {file:docs/COPYING Ruby License}.
|
|
6
6
|
#
|
|
7
7
|
# This file contains class that is used to keep
|
|
@@ -21,8 +21,8 @@ module I18n
|
|
|
21
21
|
def initialize(locale=nil)
|
|
22
22
|
@kinds = Hash.new(false)
|
|
23
23
|
@tokens = Hash.new(DUMMY_TOKEN)
|
|
24
|
-
@lazy_tokens = LazyHashEnumerator.
|
|
25
|
-
@lazy_kinds = LazyArrayEnumerator.
|
|
24
|
+
@lazy_tokens = LazyHashEnumerator.for(@tokens)
|
|
25
|
+
@lazy_kinds = LazyArrayEnumerator.for(@kinds)
|
|
26
26
|
@defaults = Hash.new
|
|
27
27
|
@locale = locale
|
|
28
28
|
end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
#
|
|
3
3
|
# Author:: Paweł Wilk (mailto:pw@gnu.org)
|
|
4
|
-
# Copyright:: (c) 2011,2012 by Paweł Wilk
|
|
4
|
+
# Copyright:: (c) 2011,2012,2013 by Paweł Wilk
|
|
5
5
|
# License:: This program is licensed under the terms of {file:docs/LGPL GNU Lesser General Public License} or {file:docs/COPYING Ruby License}.
|
|
6
6
|
#
|
|
7
7
|
# This file contains class that is used to keep
|
|
@@ -39,7 +39,7 @@ module I18n
|
|
|
39
39
|
# the object to be labeled with
|
|
40
40
|
def initialize(locale=nil)
|
|
41
41
|
@tokens = Hash.new(DUMMY_TOKENS)
|
|
42
|
-
@lazy_kinds = LazyArrayEnumerator.
|
|
42
|
+
@lazy_kinds = LazyArrayEnumerator.for(@tokens)
|
|
43
43
|
@defaults = Hash.new
|
|
44
44
|
@locale = locale
|
|
45
45
|
end
|
|
@@ -158,7 +158,7 @@ module I18n
|
|
|
158
158
|
# @yieldparam [String] description a description string for a token
|
|
159
159
|
# @yieldreturn [LazyHashEnumerator] the lazy enumerator
|
|
160
160
|
def each_true_token(kind, &block)
|
|
161
|
-
LazyHashEnumerator.
|
|
161
|
+
LazyHashEnumerator.for(@tokens[kind]).
|
|
162
162
|
select { |token,data| data[:target].nil? }.
|
|
163
163
|
map { |token,data| data[:description] }.
|
|
164
164
|
each(&block)
|
|
@@ -173,7 +173,7 @@ module I18n
|
|
|
173
173
|
# @yieldparam [Symbol] target a name of the target token
|
|
174
174
|
# @yieldreturn [LazyHashEnumerator] the lazy enumerator
|
|
175
175
|
def each_alias(kind, &block)
|
|
176
|
-
LazyHashEnumerator.
|
|
176
|
+
LazyHashEnumerator.for(@tokens[kind]).
|
|
177
177
|
reject { |token,data| data[:target].nil? }.
|
|
178
178
|
map { |token,data| data[:target] }.
|
|
179
179
|
each(&block)
|
|
@@ -192,7 +192,7 @@ module I18n
|
|
|
192
192
|
# @yieldparam [Symbol, String] value a description string for a token or a target (if alias)
|
|
193
193
|
# @yieldreturn [LazyHashEnumerator] the lazy enumerator
|
|
194
194
|
def each_raw_token(kind, &block)
|
|
195
|
-
LazyHashEnumerator.
|
|
195
|
+
LazyHashEnumerator.for(@tokens[kind]).
|
|
196
196
|
map { |token,data| data[:target] || data[:description] }.
|
|
197
197
|
each(&block)
|
|
198
198
|
end
|
|
@@ -209,7 +209,7 @@ module I18n
|
|
|
209
209
|
# @yieldparam [String] description a description string for a token
|
|
210
210
|
# @yieldreturn [LazyHashEnumerator] the lazy enumerator
|
|
211
211
|
def each_token(kind, &block)
|
|
212
|
-
LazyHashEnumerator.
|
|
212
|
+
LazyHashEnumerator.for(@tokens[kind]).
|
|
213
213
|
map{ |token,data| data[:description] }.
|
|
214
214
|
each(&block)
|
|
215
215
|
end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
#
|
|
3
3
|
# Author:: Paweł Wilk (mailto:pw@gnu.org)
|
|
4
|
-
# Copyright:: (c) 2011,2012 by Paweł Wilk
|
|
4
|
+
# Copyright:: (c) 2011,2012,2013 by Paweł Wilk
|
|
5
5
|
# License:: This program is licensed under the terms of {file:docs/LGPL GNU Lesser General Public License} or {file:docs/COPYING Ruby License}.
|
|
6
6
|
#
|
|
7
7
|
# This file contains a stub of I18n::Inflector module,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
#
|
|
3
3
|
# Author:: Paweł Wilk (mailto:pw@gnu.org)
|
|
4
|
-
# Copyright:: (c) 2011,2012 by Paweł Wilk
|
|
4
|
+
# Copyright:: (c) 2011,2012,2013 by Paweł Wilk
|
|
5
5
|
# License:: This program is licensed under the terms of {file:docs/LGPL GNU Lesser General Public License} or {file:docs/COPYING Ruby License}.
|
|
6
6
|
#
|
|
7
7
|
# This file contains I18n::Inflector::Interpolate module,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
#
|
|
3
3
|
# Author:: Paweł Wilk (mailto:pw@gnu.org)
|
|
4
|
-
# Copyright:: (c) 2011,2012 by Paweł Wilk
|
|
4
|
+
# Copyright:: (c) 2011,2012,2013 by Paweł Wilk
|
|
5
5
|
# License:: This program is licensed under the terms of {file:docs/LGPL GNU Lesser General Public License} or {file:docs/COPYING Ruby License}.
|
|
6
6
|
#
|
|
7
7
|
# This file contains lazy enumerators.
|
|
@@ -63,6 +63,16 @@ module I18n
|
|
|
63
63
|
# This class adds some lazy operations for collections
|
|
64
64
|
class LazyEnumerator
|
|
65
65
|
|
|
66
|
+
# Create a new instance that iterates over the passed Enumerable
|
|
67
|
+
# @return [I18n::Inflector::LazyEnumerator] the enumerator
|
|
68
|
+
def self.for(enumerable)
|
|
69
|
+
new do |y|
|
|
70
|
+
enumerable.each do |e|
|
|
71
|
+
y << e
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
66
76
|
# Addition operator for collections
|
|
67
77
|
# @return [I18n::Inflector::LazyEnumerator] the enumerator
|
|
68
78
|
def +(other)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
#
|
|
3
3
|
# Author:: Paweł Wilk (mailto:pw@gnu.org)
|
|
4
|
-
# Copyright:: (c) 2011,2012 by Paweł Wilk
|
|
4
|
+
# Copyright:: (c) 2011,2012,2013 by Paweł Wilk
|
|
5
5
|
# License:: This program is licensed under the terms of {file:docs/LGPL GNU Lesser General Public License} or {file:docs/COPYING Ruby License}.
|
|
6
6
|
#
|
|
7
7
|
# This file contains inline documentation data
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
#
|
|
3
3
|
# Author:: Paweł Wilk (mailto:pw@gnu.org)
|
|
4
|
-
# Copyright:: (c) 2011,2012 by Paweł Wilk
|
|
4
|
+
# Copyright:: (c) 2011,2012,2013 by Paweł Wilk
|
|
5
5
|
# License:: This program is licensed under the terms of {file:docs/LGPL GNU Lesser General Public License} or {file:docs/COPYING Ruby License}.
|
|
6
6
|
#
|
|
7
7
|
# This file contains a class used to set up some options,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
#
|
|
3
3
|
# Author:: Paweł Wilk (mailto:pw@gnu.org)
|
|
4
|
-
# Copyright:: (c) 2011,2012 by Paweł Wilk
|
|
4
|
+
# Copyright:: (c) 2011,2012,2013 by Paweł Wilk
|
|
5
5
|
# License:: This program is licensed under the terms of {file:docs/LGPL GNU Lesser General Public License} or {file:docs/COPYING Ruby License}.
|
|
6
6
|
#
|
|
7
7
|
# This file contains version information.
|
|
@@ -14,7 +14,7 @@ module I18n
|
|
|
14
14
|
# @private
|
|
15
15
|
EMAIL = 'pw@gnu.org'
|
|
16
16
|
# @private
|
|
17
|
-
VERSION = '2.6.
|
|
17
|
+
VERSION = '2.6.7'
|
|
18
18
|
# @private
|
|
19
19
|
NAME = 'i18n-inflector'
|
|
20
20
|
# @private
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: i18n-inflector
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.6.
|
|
4
|
+
version: 2.6.7
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,50 +9,38 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain:
|
|
12
|
-
- !
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
8SXN1/mZjMqWvYyEMSfQP4XzkFSOuyDcoDAf43OGhOhdv5Jcs/Et/FH6DgWYwRxq
|
|
41
|
-
|
|
42
|
-
RtATRWON5R99ugPeRb7i1nIpnzGEBA9V32r6r959Bp3XjkVEXylbItYMqSARaZlY
|
|
43
|
-
|
|
44
|
-
qzKSsIUjh7vDyTNqta0DjSgCk26dhnOwc0hmzhvVZtBwfZritSVhfCLp5uFwqCqY
|
|
45
|
-
|
|
46
|
-
NK3TIZaPCh1S2/ES6wXNvjQ+5EnEEL9j/pSEop9DYEBPaM2WDVR5i0jJTAaRWw==
|
|
47
|
-
|
|
48
|
-
-----END CERTIFICATE-----
|
|
49
|
-
|
|
50
|
-
'
|
|
51
|
-
date: 2012-03-14 00:00:00.000000000 Z
|
|
12
|
+
- !binary |-
|
|
13
|
+
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURLakNDQWhLZ0F3SUJB
|
|
14
|
+
Z0lCQURBTkJna3Foa2lHOXcwQkFRVUZBREE3TVE4d0RRWURWUVFEREFaemFX
|
|
15
|
+
Vm0KWTJFeEV6QVJCZ29Ka2lhSmsvSXNaQUVaRmdObmJuVXhFekFSQmdvSmtp
|
|
16
|
+
YUprL0lzWkFFWkZnTnZjbWN3SGhjTgpNRGt3TmpBMk1Ea3dPREE1V2hjTk1U
|
|
17
|
+
QXdOakEyTURrd09EQTVXakE3TVE4d0RRWURWUVFEREFaemFXVm1ZMkV4CkV6
|
|
18
|
+
QVJCZ29Ka2lhSmsvSXNaQUVaRmdObmJuVXhFekFSQmdvSmtpYUprL0lzWkFF
|
|
19
|
+
WkZnTnZjbWN3Z2dFaU1BMEcKQ1NxR1NJYjNEUUVCQVFVQUE0SUJEd0F3Z2dF
|
|
20
|
+
S0FvSUJBUUNkazQrOWllU3gySTJPUHNsUGNqL0xqYWp3dHNySAptZXY2RnMz
|
|
21
|
+
eEs5aGRESWJiTHVRTTlBeXBCUzdOZUtQLzJZVG9FT0d4c3Z6Y3BGekwyQWg3
|
|
22
|
+
MWNQNllmbitaMllvCnp2cXBBeDUvbmw3OVBySkt2amxrZHpWTk9GQnAvRU9r
|
|
23
|
+
TEs2N1FLNFB2OTdBQm5HMlBrRjRGb2txT2p1TkhMTTcKNDdPa0pQdkZ5Zkh5
|
|
24
|
+
TUJEWk43RUZsakJCTm0zSXVRUlRpTzQ4ZTVKY3AzTDc2MVBXT3ZDcG5WOHdp
|
|
25
|
+
Z2EwV3d0Mwo5OEdteTdjMW5XemZiUWMxd0h3S0xQSUNZL2FpZEtVMjBLeW1T
|
|
26
|
+
SEc2M0JTVzVwTzJjWFplY0llWWp3NVlOakdBCk0xUlpNaXdUN1FKOVc4NlZW
|
|
27
|
+
UCs4RXFiSktKT1M5NXhsbVFUSGpQSzU2eVh2OEdpdXlMUUhwUGg1QWdNQkFB
|
|
28
|
+
R2oKT1RBM01Ba0dBMVVkRXdRQ01BQXdIUVlEVlIwT0JCWUVGS09Lc3BaT05x
|
|
29
|
+
NGJ0NUQyREVleEIrdnNNQjJHTUFzRwpBMVVkRHdRRUF3SUVzREFOQmdrcWhr
|
|
30
|
+
aUc5dzBCQVFVRkFBT0NBUUVBVWgwTG5CNG81WEtwSDN5T3hhdkV5cDlYCk5l
|
|
31
|
+
bjJlODU0d3NTakFyMHdhU1Z6RXQzWHhZMXZveUlFNldDR3haSlUvLzQwQ1Iw
|
|
32
|
+
QmU3ajVDY3NKc0RVMkNaeVoKOFNYTjEvbVpqTXFXdll5RU1TZlFQNFh6a0ZT
|
|
33
|
+
T3V5RGNvREFmNDNPR2hPaGR2NUpjcy9FdC9GSDZEZ1dZd1J4cQpSdEFUUldP
|
|
34
|
+
TjVSOTl1Z1BlUmI3aTFuSXBuekdFQkE5VjMycjZyOTU5QnAzWGprVkVYeWxi
|
|
35
|
+
SXRZTXFTQVJhWmxZCnF6S1NzSVVqaDd2RHlUTnF0YTBEalNnQ2syNmRobk93
|
|
36
|
+
YzBobXpodlZadEJ3ZlpyaXRTVmhmQ0xwNXVGd3FDcVkKTkszVElaYVBDaDFT
|
|
37
|
+
Mi9FUzZ3WE52alErNUVuRUVMOWovcFNFb3A5RFlFQlBhTTJXRFZSNWkwakpU
|
|
38
|
+
QWFSV3c9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
|
|
39
|
+
date: 2013-06-18 00:00:00.000000000 Z
|
|
52
40
|
dependencies:
|
|
53
41
|
- !ruby/object:Gem::Dependency
|
|
54
42
|
name: i18n
|
|
55
|
-
requirement:
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
56
44
|
none: false
|
|
57
45
|
requirements:
|
|
58
46
|
- - ! '>='
|
|
@@ -60,10 +48,15 @@ dependencies:
|
|
|
60
48
|
version: 0.4.1
|
|
61
49
|
type: :runtime
|
|
62
50
|
prerelease: false
|
|
63
|
-
version_requirements:
|
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
52
|
+
none: false
|
|
53
|
+
requirements:
|
|
54
|
+
- - ! '>='
|
|
55
|
+
- !ruby/object:Gem::Version
|
|
56
|
+
version: 0.4.1
|
|
64
57
|
- !ruby/object:Gem::Dependency
|
|
65
58
|
name: hoe-yard
|
|
66
|
-
requirement:
|
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
|
67
60
|
none: false
|
|
68
61
|
requirements:
|
|
69
62
|
- - ! '>='
|
|
@@ -71,10 +64,15 @@ dependencies:
|
|
|
71
64
|
version: 0.1.2
|
|
72
65
|
type: :development
|
|
73
66
|
prerelease: false
|
|
74
|
-
version_requirements:
|
|
67
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
68
|
+
none: false
|
|
69
|
+
requirements:
|
|
70
|
+
- - ! '>='
|
|
71
|
+
- !ruby/object:Gem::Version
|
|
72
|
+
version: 0.1.2
|
|
75
73
|
- !ruby/object:Gem::Dependency
|
|
76
74
|
name: test_declarative
|
|
77
|
-
requirement:
|
|
75
|
+
requirement: !ruby/object:Gem::Requirement
|
|
78
76
|
none: false
|
|
79
77
|
requirements:
|
|
80
78
|
- - ! '>='
|
|
@@ -82,21 +80,31 @@ dependencies:
|
|
|
82
80
|
version: 0.0.5
|
|
83
81
|
type: :development
|
|
84
82
|
prerelease: false
|
|
85
|
-
version_requirements:
|
|
83
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
84
|
+
none: false
|
|
85
|
+
requirements:
|
|
86
|
+
- - ! '>='
|
|
87
|
+
- !ruby/object:Gem::Version
|
|
88
|
+
version: 0.0.5
|
|
86
89
|
- !ruby/object:Gem::Dependency
|
|
87
90
|
name: yard
|
|
88
|
-
requirement:
|
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
|
89
92
|
none: false
|
|
90
93
|
requirements:
|
|
91
94
|
- - ! '>='
|
|
92
95
|
- !ruby/object:Gem::Version
|
|
93
|
-
version: 0.
|
|
96
|
+
version: 0.8.6
|
|
94
97
|
type: :development
|
|
95
98
|
prerelease: false
|
|
96
|
-
version_requirements:
|
|
99
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
100
|
+
none: false
|
|
101
|
+
requirements:
|
|
102
|
+
- - ! '>='
|
|
103
|
+
- !ruby/object:Gem::Version
|
|
104
|
+
version: 0.8.6
|
|
97
105
|
- !ruby/object:Gem::Dependency
|
|
98
106
|
name: rdoc
|
|
99
|
-
requirement:
|
|
107
|
+
requirement: !ruby/object:Gem::Requirement
|
|
100
108
|
none: false
|
|
101
109
|
requirements:
|
|
102
110
|
- - ! '>='
|
|
@@ -104,10 +112,15 @@ dependencies:
|
|
|
104
112
|
version: 3.8.0
|
|
105
113
|
type: :development
|
|
106
114
|
prerelease: false
|
|
107
|
-
version_requirements:
|
|
115
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
116
|
+
none: false
|
|
117
|
+
requirements:
|
|
118
|
+
- - ! '>='
|
|
119
|
+
- !ruby/object:Gem::Version
|
|
120
|
+
version: 3.8.0
|
|
108
121
|
- !ruby/object:Gem::Dependency
|
|
109
122
|
name: bundler
|
|
110
|
-
requirement:
|
|
123
|
+
requirement: !ruby/object:Gem::Requirement
|
|
111
124
|
none: false
|
|
112
125
|
requirements:
|
|
113
126
|
- - ! '>='
|
|
@@ -115,21 +128,31 @@ dependencies:
|
|
|
115
128
|
version: 1.0.15
|
|
116
129
|
type: :development
|
|
117
130
|
prerelease: false
|
|
118
|
-
version_requirements:
|
|
131
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
132
|
+
none: false
|
|
133
|
+
requirements:
|
|
134
|
+
- - ! '>='
|
|
135
|
+
- !ruby/object:Gem::Version
|
|
136
|
+
version: 1.0.15
|
|
119
137
|
- !ruby/object:Gem::Dependency
|
|
120
138
|
name: hoe-bundler
|
|
121
|
-
requirement:
|
|
139
|
+
requirement: !ruby/object:Gem::Requirement
|
|
122
140
|
none: false
|
|
123
141
|
requirements:
|
|
124
142
|
- - ! '>='
|
|
125
143
|
- !ruby/object:Gem::Version
|
|
126
|
-
version: 1.
|
|
144
|
+
version: 1.2.0
|
|
127
145
|
type: :development
|
|
128
146
|
prerelease: false
|
|
129
|
-
version_requirements:
|
|
147
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
148
|
+
none: false
|
|
149
|
+
requirements:
|
|
150
|
+
- - ! '>='
|
|
151
|
+
- !ruby/object:Gem::Version
|
|
152
|
+
version: 1.2.0
|
|
130
153
|
- !ruby/object:Gem::Dependency
|
|
131
154
|
name: hoe
|
|
132
|
-
requirement:
|
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
|
133
156
|
none: false
|
|
134
157
|
requirements:
|
|
135
158
|
- - ~>
|
|
@@ -137,7 +160,12 @@ dependencies:
|
|
|
137
160
|
version: '2.16'
|
|
138
161
|
type: :development
|
|
139
162
|
prerelease: false
|
|
140
|
-
version_requirements:
|
|
163
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
164
|
+
none: false
|
|
165
|
+
requirements:
|
|
166
|
+
- - ~>
|
|
167
|
+
- !ruby/object:Gem::Version
|
|
168
|
+
version: '2.16'
|
|
141
169
|
description: Enhances simple I18n backend in a way that it inflects translation data
|
|
142
170
|
using pattern interpolation.
|
|
143
171
|
email:
|
|
@@ -202,7 +230,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
202
230
|
version: '0'
|
|
203
231
|
segments:
|
|
204
232
|
- 0
|
|
205
|
-
hash:
|
|
233
|
+
hash: 1106903433960736617
|
|
206
234
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
207
235
|
none: false
|
|
208
236
|
requirements:
|
|
@@ -211,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
211
239
|
version: '0'
|
|
212
240
|
requirements: []
|
|
213
241
|
rubyforge_project: i18n-inflector
|
|
214
|
-
rubygems_version: 1.8.
|
|
242
|
+
rubygems_version: 1.8.24
|
|
215
243
|
signing_key:
|
|
216
244
|
specification_version: 3
|
|
217
245
|
summary: Inflection module for I18n
|
metadata.gz.sig
CHANGED
|
Binary file
|