i18n-inflector-rails 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
data/ChangeLog CHANGED
@@ -1,9 +1,34 @@
1
+ commit b344f7d41c640ca75a274fb635a96ad969ae5fe3
2
+ Author: Paweł Wilk <siefca@gnu.org>
3
+ Date: Sun Jul 10 03:35:29 2011 +0200
4
+
5
+ Release 1.0.4
6
+
7
+ commit 7953d129789877ca248e7aa0771a587181853c4a
8
+ Merge: 34f876d fff4d8c
9
+ Author: Paweł Wilk <siefca@gnu.org>
10
+ Date: Sat Jul 9 23:14:45 2011 +0200
11
+
12
+ Merge branch 'master' of github.com:siefca/i18n-inflector-rails
13
+
14
+ commit 34f876d027f1fc49d8c63ec576bf4c8952c91d45
15
+ Author: Paweł Wilk <siefca@gnu.org>
16
+ Date: Sat Mar 5 14:30:04 2011 +0100
17
+
18
+ Added note about YAML parsing issues.
19
+
1
20
  commit 1aca5303d43bf300a8b802d6f69664f15522f699
2
21
  Author: Paweł Wilk <siefca@gnu.org>
3
22
  Date: Wed Feb 23 23:23:33 2011 +0100
4
23
 
5
24
  Release 1.0.3
6
25
 
26
+ commit fff4d8c91fa4f9172b7336e12126ec43145f0cf6
27
+ Author: Paweł Wilk <siefca@gnu.org>
28
+ Date: Wed Feb 23 23:23:33 2011 +0100
29
+
30
+ Release 1.0.3
31
+
7
32
  commit 1a7516470ddb82cde000188bb632e7e40166d594
8
33
  Author: Paweł Wilk <siefca@gnu.org>
9
34
  Date: Wed Feb 23 23:23:04 2011 +0100
data/Gemfile CHANGED
@@ -1,16 +1,19 @@
1
1
  # -*- ruby -*-
2
2
 
3
+ # DO NOT EDIT THIS FILE. Instead, edit Rakefile, and run `rake bundler:gemfile`.
4
+
3
5
  source :gemcutter
4
6
 
5
- gem "i18n-inflector", "~>2.3"
7
+ gem "i18n-inflector", "~>2.6"
6
8
  gem "railties", "~>3.0"
7
9
  gem "actionpack", "~>3.0"
8
10
 
9
11
  gem "hoe-yard", ">=0.1.2", :group => [:development, :test]
10
- gem "rspec", ">=2.3.0", :group => [:development, :test]
11
- gem "yard", ">=0.6.4", :group => [:development, :test]
12
- gem "bundler", ">=1.0.7", :group => [:development, :test]
13
- gem "hoe-bundler", ">=1.0.0", :group => [:development, :test]
14
- gem "hoe", ">=2.8.0", :group => [:development, :test]
12
+ gem "rspec", ">=2.6.0", :group => [:development, :test]
13
+ gem "yard", ">=0.7.2", :group => [:development, :test]
14
+ gem "rdoc", ">=3.8.0", :group => [:development, :test]
15
+ gem "bundler", ">=1.0.10", :group => [:development, :test]
16
+ gem "hoe-bundler", ">=1.1.0", :group => [:development, :test]
17
+ gem "hoe", "~>2.10", :group => [:development, :test]
15
18
 
16
19
  # vim: syntax=ruby
data/README.rdoc CHANGED
@@ -99,6 +99,33 @@ inflection, or to view all known inflection kinds or tokens assigned to them.
99
99
  To access the Inflector object bound to default I18n backend use:
100
100
  I18n.inflector
101
101
 
102
+ == Note about YAML parsing
103
+
104
+ The previous example is not compatible with Psych parser, which is used
105
+ by Rails 3. There are two ways to solve that problem.
106
+
107
+ First is to change a YAML file and replace any value that has
108
+ special meaning with a symbol:
109
+
110
+ en:
111
+ i18n:
112
+ inflections:
113
+ gender:
114
+ f: "female"
115
+ m: "male"
116
+ n: "neuter"
117
+ female: :@f
118
+ male: :@m
119
+ neuter: :@n
120
+ man: :@male
121
+ woman: :@female
122
+ default: :n
123
+
124
+ Second way is to use other parser by adding to +config/boot.rb+:
125
+
126
+ require 'yaml'
127
+ YAML::ENGINE.yamler = 'syck'
128
+
102
129
  == Requirements
103
130
 
104
131
  * i18n-inflector[https://rubygems.org/gems/i18n-inflector]
data/Rakefile CHANGED
@@ -41,13 +41,14 @@ Hoe.spec 'i18n-inflector-rails' do
41
41
  self.readme_file = 'README.rdoc'
42
42
  self.history_file = 'docs/HISTORY'
43
43
 
44
- extra_deps << ['i18n-inflector', '~> 2.5'] <<
44
+ extra_deps << ['i18n-inflector', '~> 2.6'] <<
45
45
  ['railties', '~> 3.0'] <<
46
46
  ['actionpack', '~> 3.0']
47
- extra_dev_deps << ['rspec', '>= 2.3.0'] <<
48
- ['yard', '>= 0.6.4'] <<
47
+ extra_dev_deps << ['rspec', '>= 2.6.0'] <<
48
+ ['yard', '>= 0.7.2'] <<
49
+ ['rdoc', '>= 3.8.0'] <<
49
50
  ['bundler', '>= 1.0.10'] <<
50
- ['hoe-bundler', '>= 1.0.0']
51
+ ['hoe-bundler', '>= 1.1.0']
51
52
 
52
53
  unless extra_dev_deps.flatten.include?('hoe-yard')
53
54
  extra_dev_deps << ['hoe-yard', '>= 0.1.2']
data/docs/HISTORY CHANGED
@@ -1,3 +1,9 @@
1
+ === 1.0.4 / 2011-07-09
2
+
3
+ * minor enhancements
4
+
5
+ * Dependencies updated
6
+
1
7
  === 1.0.2 / 2011-02-23
2
8
 
3
9
  * major bugfixes
@@ -25,12 +25,12 @@ Gem::Specification.new do |s|
25
25
  s.required_rubygems_version = '>= 1.4.0'
26
26
  s.specification_version = 3
27
27
 
28
- s.add_dependency 'i18n-inflector', '~> 2.5'
28
+ s.add_dependency 'i18n-inflector', '~> 2.6'
29
29
  s.add_dependency 'railties', '~> 3.0'
30
30
  s.add_dependency 'actionpack', '~> 3.0'
31
- s.add_development_dependency 'rspec', '>= 2.3.0'
32
- s.add_development_dependency 'yard', '>= 1.0.7'
31
+ s.add_development_dependency 'rspec', '>= 2.6.0'
32
+ s.add_development_dependency 'yard', '>= 0.7.2'
33
33
  s.add_development_dependency 'bundler', '>= 1.0.10'
34
- s.add_development_dependency 'hoe-bundler', '>= 1.0.0'
34
+ s.add_development_dependency 'hoe-bundler', '>= 1.1.0'
35
35
  s.add_development_dependency 'hoe-yard', '>= 0.1.2'
36
36
  end
@@ -15,7 +15,7 @@ module I18n
15
15
  # @private
16
16
  EMAIL = 'pw@gnu.org'
17
17
  # @private
18
- VERSION = '1.0.3'
18
+ VERSION = '1.0.4'
19
19
  # @private
20
20
  NAME = 'i18n-inflector-rails'
21
21
  # @private
metadata CHANGED
@@ -1,147 +1,173 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: i18n-inflector-rails
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.4
4
5
  prerelease:
5
- version: 1.0.3
6
6
  platform: ruby
7
- authors:
8
- - "Pawe\xC5\x82 Wilk"
7
+ authors:
8
+ - Paweł Wilk
9
9
  autorequire:
10
10
  bindir: bin
11
- cert_chain:
12
- - |
13
- -----BEGIN CERTIFICATE-----
11
+ cert_chain:
12
+ - ! '-----BEGIN CERTIFICATE-----
13
+
14
14
  MIIDKjCCAhKgAwIBAgIBADANBgkqhkiG9w0BAQUFADA7MQ8wDQYDVQQDDAZzaWVm
15
+
15
16
  Y2ExEzARBgoJkiaJk/IsZAEZFgNnbnUxEzARBgoJkiaJk/IsZAEZFgNvcmcwHhcN
17
+
16
18
  MDkwNjA2MDkwODA5WhcNMTAwNjA2MDkwODA5WjA7MQ8wDQYDVQQDDAZzaWVmY2Ex
19
+
17
20
  EzARBgoJkiaJk/IsZAEZFgNnbnUxEzARBgoJkiaJk/IsZAEZFgNvcmcwggEiMA0G
21
+
18
22
  CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCdk4+9ieSx2I2OPslPcj/LjajwtsrH
23
+
19
24
  mev6Fs3xK9hdDIbbLuQM9AypBS7NeKP/2YToEOGxsvzcpFzL2Ah71cP6Yfn+Z2Yo
25
+
20
26
  zvqpAx5/nl79PrJKvjlkdzVNOFBp/EOkLK67QK4Pv97ABnG2PkF4FokqOjuNHLM7
27
+
21
28
  47OkJPvFyfHyMBDZN7EFljBBNm3IuQRTiO48e5Jcp3L761PWOvCpnV8wiga0Wwt3
29
+
22
30
  98Gmy7c1nWzfbQc1wHwKLPICY/aidKU20KymSHG63BSW5pO2cXZecIeYjw5YNjGA
31
+
23
32
  M1RZMiwT7QJ9W86VVP+8EqbJKJOS95xlmQTHjPK56yXv8GiuyLQHpPh5AgMBAAGj
33
+
24
34
  OTA3MAkGA1UdEwQCMAAwHQYDVR0OBBYEFKOKspZONq4bt5D2DEexB+vsMB2GMAsG
35
+
25
36
  A1UdDwQEAwIEsDANBgkqhkiG9w0BAQUFAAOCAQEAUh0LnB4o5XKpH3yOxavEyp9X
37
+
26
38
  Nen2e854wsSjAr0waSVzEt3XxY1voyIE6WCGxZJU//40CR0Be7j5CcsJsDU2CZyZ
39
+
27
40
  8SXN1/mZjMqWvYyEMSfQP4XzkFSOuyDcoDAf43OGhOhdv5Jcs/Et/FH6DgWYwRxq
41
+
28
42
  RtATRWON5R99ugPeRb7i1nIpnzGEBA9V32r6r959Bp3XjkVEXylbItYMqSARaZlY
43
+
29
44
  qzKSsIUjh7vDyTNqta0DjSgCk26dhnOwc0hmzhvVZtBwfZritSVhfCLp5uFwqCqY
45
+
30
46
  NK3TIZaPCh1S2/ES6wXNvjQ+5EnEEL9j/pSEop9DYEBPaM2WDVR5i0jJTAaRWw==
47
+
31
48
  -----END CERTIFICATE-----
32
49
 
33
- date: 2011-02-23 00:00:00 +01:00
34
- default_executable:
35
- dependencies:
36
- - !ruby/object:Gem::Dependency
50
+ '
51
+ date: 2011-07-10 00:00:00.000000000Z
52
+ dependencies:
53
+ - !ruby/object:Gem::Dependency
37
54
  name: i18n-inflector
38
- requirement: &id001 !ruby/object:Gem::Requirement
55
+ requirement: &2159030880 !ruby/object:Gem::Requirement
39
56
  none: false
40
- requirements:
57
+ requirements:
41
58
  - - ~>
42
- - !ruby/object:Gem::Version
43
- version: "2.5"
59
+ - !ruby/object:Gem::Version
60
+ version: '2.6'
44
61
  type: :runtime
45
62
  prerelease: false
46
- version_requirements: *id001
47
- - !ruby/object:Gem::Dependency
63
+ version_requirements: *2159030880
64
+ - !ruby/object:Gem::Dependency
48
65
  name: railties
49
- requirement: &id002 !ruby/object:Gem::Requirement
66
+ requirement: &2159020480 !ruby/object:Gem::Requirement
50
67
  none: false
51
- requirements:
68
+ requirements:
52
69
  - - ~>
53
- - !ruby/object:Gem::Version
54
- version: "3.0"
70
+ - !ruby/object:Gem::Version
71
+ version: '3.0'
55
72
  type: :runtime
56
73
  prerelease: false
57
- version_requirements: *id002
58
- - !ruby/object:Gem::Dependency
74
+ version_requirements: *2159020480
75
+ - !ruby/object:Gem::Dependency
59
76
  name: actionpack
60
- requirement: &id003 !ruby/object:Gem::Requirement
77
+ requirement: &2159019040 !ruby/object:Gem::Requirement
61
78
  none: false
62
- requirements:
79
+ requirements:
63
80
  - - ~>
64
- - !ruby/object:Gem::Version
65
- version: "3.0"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.0'
66
83
  type: :runtime
67
84
  prerelease: false
68
- version_requirements: *id003
69
- - !ruby/object:Gem::Dependency
85
+ version_requirements: *2159019040
86
+ - !ruby/object:Gem::Dependency
70
87
  name: hoe-yard
71
- requirement: &id004 !ruby/object:Gem::Requirement
88
+ requirement: &2158998100 !ruby/object:Gem::Requirement
72
89
  none: false
73
- requirements:
74
- - - ">="
75
- - !ruby/object:Gem::Version
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
76
93
  version: 0.1.2
77
94
  type: :development
78
95
  prerelease: false
79
- version_requirements: *id004
80
- - !ruby/object:Gem::Dependency
96
+ version_requirements: *2158998100
97
+ - !ruby/object:Gem::Dependency
81
98
  name: rspec
82
- requirement: &id005 !ruby/object:Gem::Requirement
99
+ requirement: &2158997300 !ruby/object:Gem::Requirement
83
100
  none: false
84
- requirements:
85
- - - ">="
86
- - !ruby/object:Gem::Version
87
- version: 2.3.0
101
+ requirements:
102
+ - - ! '>='
103
+ - !ruby/object:Gem::Version
104
+ version: 2.6.0
88
105
  type: :development
89
106
  prerelease: false
90
- version_requirements: *id005
91
- - !ruby/object:Gem::Dependency
107
+ version_requirements: *2158997300
108
+ - !ruby/object:Gem::Dependency
92
109
  name: yard
93
- requirement: &id006 !ruby/object:Gem::Requirement
110
+ requirement: &2158996340 !ruby/object:Gem::Requirement
111
+ none: false
112
+ requirements:
113
+ - - ! '>='
114
+ - !ruby/object:Gem::Version
115
+ version: 0.7.2
116
+ type: :development
117
+ prerelease: false
118
+ version_requirements: *2158996340
119
+ - !ruby/object:Gem::Dependency
120
+ name: rdoc
121
+ requirement: &2158995300 !ruby/object:Gem::Requirement
94
122
  none: false
95
- requirements:
96
- - - ">="
97
- - !ruby/object:Gem::Version
98
- version: 0.6.4
123
+ requirements:
124
+ - - ! '>='
125
+ - !ruby/object:Gem::Version
126
+ version: 3.8.0
99
127
  type: :development
100
128
  prerelease: false
101
- version_requirements: *id006
102
- - !ruby/object:Gem::Dependency
129
+ version_requirements: *2158995300
130
+ - !ruby/object:Gem::Dependency
103
131
  name: bundler
104
- requirement: &id007 !ruby/object:Gem::Requirement
132
+ requirement: &2158993760 !ruby/object:Gem::Requirement
105
133
  none: false
106
- requirements:
107
- - - ">="
108
- - !ruby/object:Gem::Version
134
+ requirements:
135
+ - - ! '>='
136
+ - !ruby/object:Gem::Version
109
137
  version: 1.0.10
110
138
  type: :development
111
139
  prerelease: false
112
- version_requirements: *id007
113
- - !ruby/object:Gem::Dependency
140
+ version_requirements: *2158993760
141
+ - !ruby/object:Gem::Dependency
114
142
  name: hoe-bundler
115
- requirement: &id008 !ruby/object:Gem::Requirement
143
+ requirement: &2158992960 !ruby/object:Gem::Requirement
116
144
  none: false
117
- requirements:
118
- - - ">="
119
- - !ruby/object:Gem::Version
120
- version: 1.0.0
145
+ requirements:
146
+ - - ! '>='
147
+ - !ruby/object:Gem::Version
148
+ version: 1.1.0
121
149
  type: :development
122
150
  prerelease: false
123
- version_requirements: *id008
124
- - !ruby/object:Gem::Dependency
151
+ version_requirements: *2158992960
152
+ - !ruby/object:Gem::Dependency
125
153
  name: hoe
126
- requirement: &id009 !ruby/object:Gem::Requirement
154
+ requirement: &2158992360 !ruby/object:Gem::Requirement
127
155
  none: false
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: 2.9.1
156
+ requirements:
157
+ - - ~>
158
+ - !ruby/object:Gem::Version
159
+ version: '2.10'
132
160
  type: :development
133
161
  prerelease: false
134
- version_requirements: *id009
162
+ version_requirements: *2158992360
135
163
  description: Plug-in that provides I18n Inflector module integration with Rails.
136
- email:
164
+ email:
137
165
  - pw@gnu.org
138
166
  executables: []
139
-
140
167
  extensions: []
141
-
142
- extra_rdoc_files:
168
+ extra_rdoc_files:
143
169
  - Manifest.txt
144
- files:
170
+ files:
145
171
  - .rspec
146
172
  - .yardopts
147
173
  - ChangeLog
@@ -167,38 +193,34 @@ files:
167
193
  - spec/inflector_spec.rb
168
194
  - spec/spec_helper.rb
169
195
  - .gemtest
170
- has_rdoc: true
171
196
  homepage: https://rubygems.org/gems/i18n-inflector-rails/
172
197
  licenses: []
173
-
174
198
  post_install_message:
175
- rdoc_options:
199
+ rdoc_options:
176
200
  - --title
177
- - I18nInflectorRails Documentation
201
+ - I18n::Inflector::Rails Documentation
178
202
  - --quiet
179
- require_paths:
203
+ require_paths:
180
204
  - lib
181
- required_ruby_version: !ruby/object:Gem::Requirement
205
+ required_ruby_version: !ruby/object:Gem::Requirement
182
206
  none: false
183
- requirements:
184
- - - ">="
185
- - !ruby/object:Gem::Version
186
- hash: -1589864636913465835
187
- segments:
207
+ requirements:
208
+ - - ! '>='
209
+ - !ruby/object:Gem::Version
210
+ version: '0'
211
+ segments:
188
212
  - 0
189
- version: "0"
190
- required_rubygems_version: !ruby/object:Gem::Requirement
213
+ hash: -3754228106671568161
214
+ required_rubygems_version: !ruby/object:Gem::Requirement
191
215
  none: false
192
- requirements:
193
- - - ">="
194
- - !ruby/object:Gem::Version
195
- version: "0"
216
+ requirements:
217
+ - - ! '>='
218
+ - !ruby/object:Gem::Version
219
+ version: '0'
196
220
  requirements: []
197
-
198
221
  rubyforge_project: i18n-inflector-rails
199
- rubygems_version: 1.5.2
222
+ rubygems_version: 1.8.5
200
223
  signing_key:
201
224
  specification_version: 3
202
225
  summary: I18n Inflector bindings for Rails
203
226
  test_files: []
204
-
metadata.gz.sig CHANGED
Binary file