i18n-inflector 1.0.11 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -3,10 +3,10 @@ name: i18n-inflector
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
- - 1
6
+ - 2
7
7
  - 0
8
- - 11
9
- version: 1.0.11
8
+ - 0
9
+ version: 2.0.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - "Pawe\xC5\x82 Wilk"
@@ -34,7 +34,7 @@ cert_chain:
34
34
  NK3TIZaPCh1S2/ES6wXNvjQ+5EnEEL9j/pSEop9DYEBPaM2WDVR5i0jJTAaRWw==
35
35
  -----END CERTIFICATE-----
36
36
 
37
- date: 2011-01-15 00:00:00 +01:00
37
+ date: 2011-01-14 00:00:00 +01:00
38
38
  default_executable:
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
@@ -128,8 +128,23 @@ dependencies:
128
128
  prerelease: false
129
129
  version_requirements: *id006
130
130
  - !ruby/object:Gem::Dependency
131
- name: hoe
131
+ name: hoe-yard
132
132
  requirement: &id007 !ruby/object:Gem::Requirement
133
+ none: false
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ segments:
138
+ - 0
139
+ - 1
140
+ - 2
141
+ version: 0.1.2
142
+ type: :development
143
+ prerelease: false
144
+ version_requirements: *id007
145
+ - !ruby/object:Gem::Dependency
146
+ name: hoe
147
+ requirement: &id008 !ruby/object:Gem::Requirement
133
148
  none: false
134
149
  requirements:
135
150
  - - ">="
@@ -141,7 +156,7 @@ dependencies:
141
156
  version: 2.8.0
142
157
  type: :development
143
158
  prerelease: false
144
- version_requirements: *id007
159
+ version_requirements: *id008
145
160
  description: This backend module for I18n inflects translations using pattern interpolation.
146
161
  email:
147
162
  - pw@gnu.org
@@ -163,14 +178,18 @@ files:
163
178
  - docs/COPYING
164
179
  - docs/HISTORY
165
180
  - docs/LEGAL
166
- - docs/LGPL-LICENSE
181
+ - docs/LGPL
182
+ - docs/RELATIONS
167
183
  - docs/TODO
168
184
  - docs/rdoc.css
169
185
  - lib/i18n-inflector.rb
186
+ - lib/i18n-inflector/backend.rb
170
187
  - lib/i18n-inflector/errors.rb
188
+ - lib/i18n-inflector/inflection_data.rb
171
189
  - lib/i18n-inflector/inflector.rb
172
190
  - lib/i18n-inflector/long_comments.rb
173
- - lib/i18n-inflector/shortcuts.rb
191
+ - lib/i18n-inflector/options.rb
192
+ - lib/i18n-inflector/util.rb
174
193
  - lib/i18n-inflector/version.rb
175
194
  - test/inflector_test.rb
176
195
  - test/test_helper.rb
@@ -190,7 +209,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
190
209
  requirements:
191
210
  - - ">="
192
211
  - !ruby/object:Gem::Version
193
- hash: 2575214196482507959
212
+ hash: -4381976785279493702
194
213
  segments:
195
214
  - 0
196
215
  version: "0"
@@ -199,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
199
218
  requirements:
200
219
  - - ">="
201
220
  - !ruby/object:Gem::Version
202
- hash: 2575214196482507959
221
+ hash: -4381976785279493702
203
222
  segments:
204
223
  - 0
205
224
  version: "0"
metadata.gz.sig CHANGED
Binary file
@@ -1,154 +0,0 @@
1
- # encoding: utf-8
2
- #
3
- # Author:: Paweł Wilk (mailto:pw@gnu.org)
4
- # Copyright:: (c) 2011 by Paweł Wilk
5
- # License:: This program is licensed under the terms of {file:LGPL-LICENSE GNU Lesser General Public License} or {file:COPYING Ruby License}.
6
- #
7
- # This file contains I18n::Inflector module,
8
- # which adds wrappers (module functions) for methods
9
- # in I18n::Backend::Inflector module in order to
10
- # access common methods under friendly names.
11
- #
12
-
13
- module I18n
14
-
15
- # @abstract It groups methods that are shortcuts to registered backend methods.
16
- module Inflector
17
-
18
- class <<self
19
- # {include:I18n::Backend::Inflector#inflector_raises?}
20
- # @api public
21
- # @note It's a shortcut for {I18n::Backend::Inflector#inflector_raises?}
22
- # @return [Boolean] the current state of the switch
23
- def raises?(*args); I18n.backend.inflector_raises?(*args) end
24
-
25
- # {include:I18n::Backend::Inflector#inflector_raises=}
26
- # @api public
27
- # @note It's a shortcut for {I18n::Backend::Inflector#inflector_raises=}
28
- # @return [Boolean] the current state of the switch
29
- def raises=(*args); I18n.backend.inflector_raises = *args end
30
-
31
- # {include:I18n::Backend::Inflector#inflector_raises}
32
- # @api public
33
- # @note It's a shortcut for {I18n::Backend::Inflector#inflector_raises}
34
- # @return [Boolean] the current state of the switch
35
- def raises(*args); I18n.backend.inflector_raises(*args) end
36
-
37
- # {include:I18n::Backend::Inflector#inflector_unknown_defaults?}
38
- # @api public
39
- # @note It's a shortcut for {I18n::Backend::Inflector#inflector_unknown_defaults?}
40
- # @return [Boolean] the current state of the switch
41
- def unknown_defaults?(*args); I18n.backend.inflector_unknown_defaults?(*args) end
42
-
43
- # {include:I18n::Backend::Inflector#inflector_unknown_defaults=}
44
- # @api public
45
- # @note It's a shortcut for {I18n::Backend::Inflector#inflector_unknown_defaults=}
46
- # @return [Boolean] the current state of the switch
47
- def unknown_defaults=(*args); I18n.backend.inflector_unknown_defaults = *args end
48
-
49
- # {include:I18n::Backend::Inflector#inflector_unknown_defaults}
50
- # @api public
51
- # @note It's a shortcut for {I18n::Backend::Inflector#inflector_unknown_defaults}
52
- # @return [Boolean] the current state of the switch
53
- def unknown_defaults(*args); I18n.backend.inflector_unknown_defaults(*args) end
54
-
55
- # {include:I18n::Backend::Inflector#inflector_excluded_defaults?}
56
- # @api public
57
- # @note It's a shortcut for {I18n::Backend::Inflector#inflector_excluded_defaults?}
58
- # @return [Boolean] the current state of the switch
59
- def excluded_defaults?(*args); I18n.backend.inflector_excluded_defaults?(*args) end
60
-
61
- # {include:I18n::Backend::Inflector#inflector_excluded_defaults=}
62
- # @api public
63
- # @note It's a shortcut for {I18n::Backend::Inflector#inflector_excluded_defaults=}
64
- # @return [Boolean] the current state of the switch
65
- def excluded_defaults=(*args); I18n.backend.inflector_excluded_defaults = *args end
66
-
67
- # {include:I18n::Backend::Inflector#inflector_excluded_defaults}
68
- # @api public
69
- # @note It's a shortcut for {I18n::Backend::Inflector#inflector_excluded_defaults}
70
- # @return [Boolean] the current state of the switch
71
- def excluded_defaults(*args); I18n.backend.inflector_excluded_defaults(*args) end
72
-
73
- # {include:I18n::Backend::Inflector#reload!}
74
- # @api public
75
- # @note It's a shortcut for {I18n::Backend::Inflector#reload!}
76
- # @return [void]
77
- def reload!; I18n.backend.reload! end
78
-
79
- # {include:I18n::Backend::Inflector#inflection_default_token}
80
- # @api public
81
- # @note It's a shortcut for {I18n::Backend::Inflector#inflection_default_token}
82
- # @return [Symbol] the default token for the given kind
83
- def default_token(*args); I18n.backend.inflection_default_token(*args) end
84
-
85
- # {include:I18n::Backend::Inflector#inflection_is_alias?}
86
- # @api public
87
- # @note It's a shortcut for {I18n::Backend::Inflector#inflection_is_alias?}
88
- # @return [Boolean] +true+ if the given token is really an alias
89
- def is_alias?(*args); I18n.backend.inflection_is_alias?(*args) end
90
-
91
- # {include:I18n::Backend::Inflector#inflection_tokens}
92
- # @api public
93
- # @note It's a shortcut for {I18n::Backend::Inflector#inflection_tokens}
94
- # @return [Hash] the Hash containing available inflection tokens (with aliases) and their descriptions
95
- def tokens(*args); I18n.backend.inflection_tokens(*args) end
96
-
97
- # {include:I18n::Backend::Inflector#inflection_tokens_raw}
98
- # @api public
99
- # @note It's a shortcut for {I18n::Backend::Inflector#inflection_tokens_raw}
100
- # @return [Hash] the Hash containing available inflection tokens and their values (descriptions, alias pointers)
101
- def raw_tokens(*args); I18n.backend.inflection_tokens_raw(*args) end
102
-
103
- # {include:I18n::Backend::Inflector#inflection_tokens_true}
104
- # @api public
105
- # @note It's a shortcut for {I18n::Backend::Inflector#inflection_tokens_true}
106
- # @return [Hash] the Hash containing available inflection tokens (without aliases) and their descriptions
107
- def true_tokens(*args); I18n.backend.inflection_tokens_true(*args) end
108
-
109
- # {include:I18n::Backend::Inflector#inflection_true_token}
110
- # @api public
111
- # @note It's a shortcut for {I18n::Backend::Inflector#inflection_true_token}
112
- # @return [Symbol,nil] the true token if the given +token+ is an alias, token if
113
- # the token is a real token or +nil+ otherwise
114
- def true_token(*args); I18n.backend.inflection_true_token(*args) end
115
-
116
- # {include:I18n::Backend::Inflector#inflection_aliases}
117
- # @api public
118
- # @note It's a shortcut for {I18n::Backend::Inflector#inflection_aliases}
119
- # @return [Hash] the Hash containing available inflection aliases
120
- def aliases(*args); I18n.backend.inflection_aliases(*args) end
121
-
122
- # {include:I18n::Backend::Inflector#available_inflection_kinds}
123
- # @api public
124
- # @note It's a shortcut for {I18n::Backend::Inflector#available_inflection_kinds}
125
- # @return [Array<Symbol>] the array containing known inflection kinds
126
- def kinds(*args); I18n.backend.available_inflection_kinds(*args) end
127
-
128
- # {include:I18n::Backend::Inflector#inflection_kind}
129
- # @api public
130
- # @note It's a shortcut for {I18n::Backend::Inflector#inflection_kind}
131
- # @return [Symbol,nil] the kind of the given +token+ or alias or +nil+
132
- def kind(*args); I18n.backend.inflection_kind(*args) end
133
-
134
- # {include:I18n::Backend::Inflector#inflected_locales}
135
- # @api public
136
- # @note It's a shortcut for {I18n::Backend::Inflector#inflected_locales}
137
- # @return [Array<Symbol>] the array containing locales that support inflection
138
- def locales(*args); I18n.backend.inflected_locales(*args) end
139
-
140
- # {include:I18n::Backend::Inflector#inflected_locale?}
141
- # @api public
142
- # @note It's a shortcut for {I18n::Backend::Inflector#inflected_locale?}
143
- # @return [Boolean] +true+ when a given locale supports inflection
144
- def locale?(*args); I18n.backend.inflected_locale?(*args) end
145
-
146
- # {include:I18n::Backend::Inflector#inflection_token_description}
147
- # @api public
148
- # @note It's a shortcut for {I18n::Backend::Inflector#inflection_token_description}
149
- # @return [String,nil] the descriptive string or +nil+
150
- def description(*args); I18n.backend.inflection_token_description(*args) end
151
- end
152
-
153
- end
154
- end