i18n-inflector 1.0.0 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/.yardopts +11 -0
- data/ChangeLog +223 -0
- data/Gemfile +6 -1
- data/Manifest.txt +7 -5
- data/{docs/README → README.rdoc} +37 -26
- data/Rakefile +22 -42
- data/ci/i18n-inflector.gemspec +32 -0
- data/docs/COPYING +41 -45
- data/docs/HISTORY +62 -0
- data/docs/LEGAL +3 -3
- data/docs/LGPL-LICENSE +166 -169
- data/docs/TODO +9 -0
- data/lib/i18n-inflector/errors.rb +93 -0
- data/lib/i18n-inflector/inflector.rb +486 -264
- data/lib/i18n-inflector/long_comments.rb +99 -74
- data/lib/i18n-inflector/shortcuts.rb +139 -47
- data/lib/i18n-inflector/version.rb +28 -0
- data/lib/i18n-inflector.rb +7 -2
- data/test/{backend/inflection_test.rb → inflector_test.rb} +64 -13
- data/test/test_helper.rb +1 -3
- data.tar.gz.sig +0 -0
- metadata +102 -29
- metadata.gz.sig +0 -0
- data/README.textile +0 -27
- data/test/all.rb +0 -8
- data/test/run_all.rb +0 -21
data/.yardopts
ADDED
data/ChangeLog
CHANGED
@@ -1,3 +1,226 @@
|
|
1
|
+
commit dc81afa48b36336b9efde0ce9019637edc0474f8
|
2
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
3
|
+
Date: Mon Jan 10 04:23:49 2011 +0100
|
4
|
+
|
5
|
+
Release 1.0.10
|
6
|
+
|
7
|
+
commit 2a3e10b2b9310c37a66a88f0511e24336671ee80
|
8
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
9
|
+
Date: Mon Jan 10 04:19:21 2011 +0100
|
10
|
+
|
11
|
+
Serious bugfixes and enhancements; removed cause of the infinite loop while loading translations
|
12
|
+
|
13
|
+
commit 34321a02570226c07948f306bf3a68dff9d8ecb1
|
14
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
15
|
+
Date: Mon Jan 10 01:38:22 2011 +0100
|
16
|
+
|
17
|
+
Added TODO
|
18
|
+
|
19
|
+
commit 5e3f970ffd3bd9d56bad8fe910439d2689e83da1
|
20
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
21
|
+
Date: Sun Jan 9 07:06:39 2011 +0100
|
22
|
+
|
23
|
+
ChangeLog updated
|
24
|
+
|
25
|
+
commit fb02e573ec85a29efac5e7cd3f2f5f01c7ff3859
|
26
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
27
|
+
Date: Sun Jan 9 07:06:11 2011 +0100
|
28
|
+
|
29
|
+
Version information moved out of main include file and Backend namespace, dependencies fixed
|
30
|
+
|
31
|
+
commit dff3f3214f4601d1ac5351b1f7444b200abc7101
|
32
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
33
|
+
Date: Sun Jan 9 07:03:15 2011 +0100
|
34
|
+
|
35
|
+
Year change to 2011 in doco
|
36
|
+
|
37
|
+
commit f100799dff8d5b289db6fa7e7348e17439847037
|
38
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
39
|
+
Date: Sat Jan 8 16:47:16 2011 +0100
|
40
|
+
|
41
|
+
Fixed typo in doc
|
42
|
+
|
43
|
+
commit 5b6fbbf2bffdcf5cd082532068ad7900454db163
|
44
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
45
|
+
Date: Sat Jan 8 16:30:23 2011 +0100
|
46
|
+
|
47
|
+
Release 1.0.8
|
48
|
+
|
49
|
+
commit a58d0636a559419e6c3f715562d2240ee9f6e1ff
|
50
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
51
|
+
Date: Sat Jan 8 16:29:40 2011 +0100
|
52
|
+
|
53
|
+
Enabled escaping of patterns and added some documentation about it and tests
|
54
|
+
|
55
|
+
commit 3e0a295246dd90a18cc164d71f064fb11d8d2364
|
56
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
57
|
+
Date: Fri Jan 7 00:08:18 2011 +0100
|
58
|
+
|
59
|
+
Using default GPG key for signing tags that's referenced in the global configuration of the git tool
|
60
|
+
|
61
|
+
commit 591de41dd9e6418457ee6273121ac25ee7e0d4b8
|
62
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
63
|
+
Date: Thu Jan 6 23:54:41 2011 +0100
|
64
|
+
|
65
|
+
Release 1.0.7
|
66
|
+
|
67
|
+
commit 7bb3d12c15221b3d2bb9cb74ff9cda86378ce5c7
|
68
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
69
|
+
Date: Thu Jan 6 23:53:52 2011 +0100
|
70
|
+
|
71
|
+
Fixed bug that caused translation data containing anything but a pattern to not be interpolated
|
72
|
+
|
73
|
+
commit 70fceb583e8201ac5ae5d8a6210e160024fd3c83
|
74
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
75
|
+
Date: Thu Jan 6 23:52:26 2011 +0100
|
76
|
+
|
77
|
+
Typo in documentation fixed
|
78
|
+
|
79
|
+
commit 948438fdcbb940b5f02186b7fe337348c7e86930
|
80
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
81
|
+
Date: Thu Dec 30 18:00:22 2010 +0100
|
82
|
+
|
83
|
+
Release 1.0.6
|
84
|
+
|
85
|
+
commit cf0e6b5a0c01de939c0bdeea82b9cd615966b3a8
|
86
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
87
|
+
Date: Thu Dec 30 17:43:49 2010 +0100
|
88
|
+
|
89
|
+
Added two API methods to test tokens: inflection_true_token() and inflecion_kind()
|
90
|
+
|
91
|
+
commit a1b2aa5314e7724c145902fec445dd2ef63356c3
|
92
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
93
|
+
Date: Thu Dec 30 02:37:41 2010 +0100
|
94
|
+
|
95
|
+
Added API method inflected_locale? to check if a locale supports inflection
|
96
|
+
|
97
|
+
commit 322d88353b88966a2c1f2daa281b2e825156201b
|
98
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
99
|
+
Date: Thu Dec 30 02:35:14 2010 +0100
|
100
|
+
|
101
|
+
Added YARD's @api public metatag to public methods
|
102
|
+
|
103
|
+
commit d20c178f9ca63735e5cad860b09a0935c3601365
|
104
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
105
|
+
Date: Thu Dec 30 02:31:44 2010 +0100
|
106
|
+
|
107
|
+
Moved RESERVED_KEYS reading to module scope from instance method
|
108
|
+
|
109
|
+
commit 44b365005abe11ac310ceb3ca55dd598f73ae6b6
|
110
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
111
|
+
Date: Wed Dec 29 16:18:59 2010 +0100
|
112
|
+
|
113
|
+
Release 1.0.5
|
114
|
+
|
115
|
+
commit c101947a64bb40050ff7a7df48c7207297140b5b
|
116
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
117
|
+
Date: Wed Dec 29 16:18:22 2010 +0100
|
118
|
+
|
119
|
+
Compatible with i18n >= 0.4.1
|
120
|
+
|
121
|
+
commit d2916cbe2fb605c95c875cef0c16f9f6bacaf001
|
122
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
123
|
+
Date: Mon Dec 27 16:02:59 2010 +0100
|
124
|
+
|
125
|
+
Release 1.0.4
|
126
|
+
|
127
|
+
commit 2c87d11e253ed34d427e6c74c052c7a890f75a80
|
128
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
129
|
+
Date: Mon Dec 27 15:45:53 2010 +0100
|
130
|
+
|
131
|
+
Added @return metatags to shortcuts documentation
|
132
|
+
|
133
|
+
commit b269c64ae9be6054d61cac5ac17611c37efccc3f
|
134
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
135
|
+
Date: Sun Dec 26 00:59:05 2010 +0100
|
136
|
+
|
137
|
+
Typo fixed
|
138
|
+
|
139
|
+
commit 822737f020057b84179b323e3e156f8521fb7507
|
140
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
141
|
+
Date: Sun Dec 26 00:16:42 2010 +0100
|
142
|
+
|
143
|
+
Added entry to HISTORY file and fixed the description string
|
144
|
+
|
145
|
+
commit e3fde026a01ec3103650f5beac96f831da422c99
|
146
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
147
|
+
Date: Sat Dec 25 21:48:57 2010 +0100
|
148
|
+
|
149
|
+
Release 1.0.3
|
150
|
+
|
151
|
+
commit 1425a4ec1101de2b4d15182af012714a842308ed
|
152
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
153
|
+
Date: Sat Dec 25 21:47:40 2010 +0100
|
154
|
+
|
155
|
+
Serious changes in documentation, accessors refactored
|
156
|
+
|
157
|
+
- YARD options moved to .yardopts
|
158
|
+
- Added YARD metatags to inline documentation
|
159
|
+
- Exception classes moved to in errors.rb
|
160
|
+
- Method inflection_raw_tokens renamed to inflection_tokens_raw with alias added
|
161
|
+
- Method inflection_true_tokens renamed to inflection_tokens_true with alias added
|
162
|
+
- Shortcut names from I18n::Inflector are now module methods defined within class<<self
|
163
|
+
|
164
|
+
commit 397c0e67473315a83dd026dc990c104ce1895541
|
165
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
166
|
+
Date: Wed Dec 22 20:37:49 2010 +0100
|
167
|
+
|
168
|
+
Cosmetics in README.rdoc
|
169
|
+
|
170
|
+
commit 79e3a3adf00b6fbd4709ab1d60631ae4c8a676f5
|
171
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
172
|
+
Date: Wed Dec 22 20:13:20 2010 +0100
|
173
|
+
|
174
|
+
Moving to README.rdoc as an index file for documentation
|
175
|
+
|
176
|
+
commit b299fef82a0358fecdeb0ff9b634a34b3f30f707
|
177
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
178
|
+
Date: Wed Dec 22 20:04:26 2010 +0100
|
179
|
+
|
180
|
+
Removed redundant dependencies and moved YARD options out of Rakefile
|
181
|
+
|
182
|
+
commit 0c12a10a5a0b0a6a886cea5bbafd6f77a15ae8a9
|
183
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
184
|
+
Date: Wed Dec 22 15:59:50 2010 +0100
|
185
|
+
|
186
|
+
Release 1.0.2
|
187
|
+
|
188
|
+
commit bc666bd326a2bd3724239923f8204d5576d3a855
|
189
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
190
|
+
Date: Wed Dec 22 15:58:42 2010 +0100
|
191
|
+
|
192
|
+
Prepared for release 1.0.2
|
193
|
+
|
194
|
+
commit 6bbda195d3f4fe0999a1a88b42a8489b0ebbd210
|
195
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
196
|
+
Date: Wed Dec 22 15:55:06 2010 +0100
|
197
|
+
|
198
|
+
Release 1.0.1 fixed
|
199
|
+
|
200
|
+
commit fb6ecc91e8c8a7d06e8fce986209a0443aa05cc6
|
201
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
202
|
+
Date: Wed Dec 22 15:52:27 2010 +0100
|
203
|
+
|
204
|
+
Module linked in README.
|
205
|
+
|
206
|
+
commit 678e90c7b04499a71f1c6f907a898a2b5722a853
|
207
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
208
|
+
Date: Wed Dec 22 15:42:37 2010 +0100
|
209
|
+
|
210
|
+
Release 1.0.1
|
211
|
+
|
212
|
+
commit 778841d1dab12aafc478e74df61f192a744607f1
|
213
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
214
|
+
Date: Wed Dec 22 15:40:56 2010 +0100
|
215
|
+
|
216
|
+
Switched fully to YARD
|
217
|
+
|
218
|
+
commit 053d21b50b5441a973a870d415e72fb88497d0f2
|
219
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
220
|
+
Date: Wed Dec 22 14:15:01 2010 +0100
|
221
|
+
|
222
|
+
Tests simplified, Rakefile cleaned, dependencies cleaned, documentation fixed.
|
223
|
+
|
1
224
|
commit 3ed077e240660ff09e4ff3df5e698f198b8eafbf
|
2
225
|
Author: Paweł Wilk <siefca@gnu.org>
|
3
226
|
Date: Wed Dec 22 04:01:25 2010 +0100
|
data/Gemfile
CHANGED
@@ -2,9 +2,14 @@
|
|
2
2
|
|
3
3
|
source :gemcutter
|
4
4
|
|
5
|
-
gem "i18n", ">=0.
|
5
|
+
gem "i18n", ">=0.4.1"
|
6
6
|
|
7
|
+
gem "hoe-yard", ">=0.1.2", :group => [:development, :test]
|
7
8
|
gem "test_declarative", ">=0.0.4", :group => [:development, :test]
|
9
|
+
gem "yard", ">=0.6.4", :group => [:development, :test]
|
10
|
+
gem "bundler", ">=1.0.7", :group => [:development, :test]
|
11
|
+
gem "hoe-bundler", ">=1.0.0", :group => [:development, :test]
|
12
|
+
gem "hoe-yard", ">=0.1.2", :group => [:development, :test]
|
8
13
|
gem "hoe", ">=2.8.0", :group => [:development, :test]
|
9
14
|
|
10
15
|
# vim: syntax=ruby
|
data/Manifest.txt
CHANGED
@@ -1,20 +1,22 @@
|
|
1
|
+
.yardopts
|
1
2
|
ChangeLog
|
2
3
|
Gemfile
|
3
4
|
LGPL-LICENSE
|
4
5
|
Manifest.txt
|
5
|
-
README.
|
6
|
+
README.rdoc
|
6
7
|
Rakefile
|
8
|
+
ci/i18n-inflector.gemspec
|
7
9
|
docs/COPYING
|
8
10
|
docs/HISTORY
|
9
11
|
docs/LEGAL
|
10
12
|
docs/LGPL-LICENSE
|
11
|
-
docs/
|
13
|
+
docs/TODO
|
12
14
|
docs/rdoc.css
|
13
15
|
lib/i18n-inflector.rb
|
16
|
+
lib/i18n-inflector/errors.rb
|
14
17
|
lib/i18n-inflector/inflector.rb
|
15
18
|
lib/i18n-inflector/long_comments.rb
|
16
19
|
lib/i18n-inflector/shortcuts.rb
|
17
|
-
|
18
|
-
test/
|
19
|
-
test/run_all.rb
|
20
|
+
lib/i18n-inflector/version.rb
|
21
|
+
test/inflector_test.rb
|
20
22
|
test/test_helper.rb
|
data/{docs/README → README.rdoc}
RENAMED
@@ -1,10 +1,10 @@
|
|
1
1
|
= Simple Inflector for I18n
|
2
2
|
|
3
|
-
<b>i18n-inflector version <tt>1.0
|
3
|
+
<b>i18n-inflector version <tt>1.0</tt></b> (<b><tt>Aropsaid</tt></b>)
|
4
4
|
|
5
5
|
|
6
6
|
|
7
|
-
*
|
7
|
+
* https://rubygems.org/gems/i18n-inflector
|
8
8
|
* https://github.com/siefca/i18n-inflector/tree
|
9
9
|
* mailto:pw@gnu.org
|
10
10
|
|
@@ -29,6 +29,27 @@ If you have a troop of happy translators that shouldn't have the
|
|
29
29
|
ability to execute any code yet you need some simple inflection
|
30
30
|
then you can make use of this module.
|
31
31
|
|
32
|
+
== Requirements
|
33
|
+
|
34
|
+
* i18n[https://rubygems.org/gems/i18n]
|
35
|
+
* rake[https://rubygems.org/gems/rake]
|
36
|
+
* rubygems[http://docs.rubygems.org/]
|
37
|
+
|
38
|
+
== Download
|
39
|
+
|
40
|
+
==== Source code
|
41
|
+
|
42
|
+
* https://github.com/siefca/i18n-inflector/tree
|
43
|
+
* <tt>git clone git://github.com/siefca/i18n-inflector.git</tt>
|
44
|
+
|
45
|
+
==== Gem
|
46
|
+
|
47
|
+
* https://rubygems.org/gems/i18n-inflector
|
48
|
+
|
49
|
+
== Installation
|
50
|
+
|
51
|
+
* <tt>sudo gem install i18n-inflector</tt>
|
52
|
+
|
32
53
|
== Synopsis
|
33
54
|
|
34
55
|
require 'i18n-inflector'
|
@@ -58,44 +79,34 @@ Detailed example:
|
|
58
79
|
I18n.t('welcome', :gender => nil)
|
59
80
|
# => "Dear All"
|
60
81
|
|
61
|
-
|
62
|
-
|
63
|
-
== Requirements
|
64
|
-
|
65
|
-
* i18n[https://rubygems.org/gems/i18n]
|
66
|
-
* rake[https://rubygems.org/gems/rake]
|
67
|
-
* rubygems[http://docs.rubygems.org/]
|
68
|
-
|
69
|
-
== Download
|
70
|
-
|
71
|
-
==== Source code
|
82
|
+
== Tests
|
72
83
|
|
73
|
-
|
74
|
-
* <tt>git clone git://github.com/siefca/i18n-inflector.git</tt>
|
84
|
+
You can run tests both with
|
75
85
|
|
76
|
-
|
86
|
+
* <tt>rake test</tt> or just <tt>rake</tt>
|
87
|
+
* run a test file directly, e.g. <tt>ruby -Ilib -Itest test/inflector_test.rb</tt>
|
77
88
|
|
78
|
-
|
89
|
+
== More information
|
79
90
|
|
80
|
-
|
91
|
+
See {whole documentation}[http://rubydoc.info/gems/i18n-inflector/] for more info about usage.
|
81
92
|
|
82
|
-
|
93
|
+
See {I18n::Backend::Inflector} module documentation for detailed information.
|
83
94
|
|
84
|
-
==
|
95
|
+
== See also
|
85
96
|
|
86
|
-
See i18n-inflector
|
97
|
+
See {i18n-inflector-rails}[https://rubygems.org/gems/i18n-inflector-rails] if you need
|
98
|
+
the Rails plug-in that integrates this module with ActionController.
|
87
99
|
|
88
100
|
== License
|
89
101
|
|
90
|
-
Copyright (c)
|
102
|
+
Copyright (c) 2011 by Paweł Wilk.
|
91
103
|
|
92
|
-
|
104
|
+
i18n-inflector is copyrighted software owned by Paweł Wilk (pw@gnu.org).
|
93
105
|
You may redistribute and/or modify this software as long as you
|
94
|
-
comply with either the terms of the LGPL (see
|
95
|
-
or Ruby's license (see
|
106
|
+
comply with either the terms of the LGPL (see {file:LGPL-LICENSE}),
|
107
|
+
or Ruby's license (see {file:COPYING}).
|
96
108
|
|
97
109
|
THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS
|
98
110
|
OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION,
|
99
111
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
100
112
|
FOR A PARTICULAR PURPOSE.
|
101
|
-
|
data/Rakefile
CHANGED
@@ -4,15 +4,13 @@
|
|
4
4
|
$:.unshift File.join(File.dirname(__FILE__), "lib")
|
5
5
|
|
6
6
|
require 'rubygems'
|
7
|
-
|
8
|
-
gem 'hoe-bundler', '>=1.0.0'
|
7
|
+
require 'bundler/setup'
|
9
8
|
|
10
9
|
require "rake"
|
11
10
|
require "rake/clean"
|
12
|
-
require "rake/testtask"
|
13
11
|
|
14
12
|
require "fileutils"
|
15
|
-
require 'i18n-inflector'
|
13
|
+
require 'i18n-inflector/version'
|
16
14
|
|
17
15
|
require 'hoe'
|
18
16
|
|
@@ -23,51 +21,33 @@ task :install do
|
|
23
21
|
sh "sudo ruby setup.rb install"
|
24
22
|
end
|
25
23
|
|
26
|
-
Rake::TestTask.new(:test) do |t|
|
27
|
-
t.libs << 'lib'
|
28
|
-
t.libs << 'test'
|
29
|
-
t.pattern = "#{File.dirname(__FILE__)}/test/all.rb"
|
30
|
-
t.verbose = true
|
31
|
-
t.warning = true
|
32
|
-
end
|
33
|
-
Rake::Task['test'].comment = "Run all i18n-inflector tests"
|
34
|
-
|
35
24
|
### Gem
|
36
25
|
|
37
26
|
Hoe.plugin :bundler
|
27
|
+
Hoe.plugin :yard
|
38
28
|
|
39
29
|
Hoe.spec 'i18n-inflector' do
|
40
|
-
|
41
|
-
|
42
|
-
self.
|
43
|
-
self.
|
44
|
-
self.
|
30
|
+
developer I18n::Inflector::DEVELOPER, I18n::Inflector::EMAIL
|
31
|
+
|
32
|
+
self.version = I18n::Inflector::VERSION
|
33
|
+
self.rubyforge_name = I18n::Inflector::NAME
|
34
|
+
self.summary = I18n::Inflector::SUMMARY
|
35
|
+
self.description = I18n::Inflector::DESCRIPTION
|
36
|
+
self.url = I18n::Inflector::URL
|
37
|
+
|
38
|
+
self.test_globs = %w(test/**/*_test.rb)
|
45
39
|
|
46
|
-
developer "Paweł Wilk", "pw@gnu.org"
|
47
|
-
|
48
40
|
self.remote_rdoc_dir = ''
|
49
41
|
self.rsync_args << '--chmod=a+rX'
|
50
|
-
self.readme_file = '
|
42
|
+
self.readme_file = 'README.rdoc'
|
51
43
|
self.history_file = 'docs/HISTORY'
|
52
|
-
|
53
|
-
self.extra_rdoc_files = ["docs/README",
|
54
|
-
"docs/LGPL-LICENSE",
|
55
|
-
"docs/LEGAL", "docs/HISTORY",
|
56
|
-
"docs/COPYING"]
|
57
|
-
|
58
|
-
extra_deps << ["i18n",">= 0.5.0"]
|
59
|
-
extra_dev_deps << ['test_declarative', '>= 0.0.4']
|
60
|
-
|
61
|
-
self.spec_extras['rdoc_options'] = proc do |rdoc_options|
|
62
|
-
rdoc_options << "--title" << "Simple Inflector for I18n"
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
task :docs do
|
67
44
|
|
68
|
-
|
69
|
-
|
70
|
-
|
45
|
+
extra_deps << ['i18n', '>= 0.4.1']
|
46
|
+
extra_dev_deps << ['test_declarative', '>= 0.0.4'] <<
|
47
|
+
['yard', '>= 0.6.4'] <<
|
48
|
+
['bundler', '>= 1.0.7'] <<
|
49
|
+
['hoe-bundler', '>= 1.0.0'] <<
|
50
|
+
['hoe-yard', '>= 0.1.2']
|
71
51
|
end
|
72
52
|
|
73
53
|
task 'Manifest.txt' do
|
@@ -89,12 +69,12 @@ end
|
|
89
69
|
|
90
70
|
desc "Create signed tag in Git"
|
91
71
|
task :tag do
|
92
|
-
sh %{git tag -
|
72
|
+
sh %{git tag -s v#{I18n::Inflector::VERSION} -m 'version #{I18n::Inflector::VERSION}'}
|
93
73
|
end
|
94
74
|
|
95
75
|
desc "Create external GnuPG signature for Gem"
|
96
76
|
task :gemsign do
|
97
|
-
sh %{gpg -u #{I18n::
|
98
|
-
-o pkg/#{I18n::
|
77
|
+
sh %{gpg -u #{I18n::Inflector::EMAIL} -ab pkg/#{I18n::Inflector::NAME}-#{I18n::Inflector::VERSION}.gem \
|
78
|
+
-o pkg/#{I18n::Inflector::NAME}-#{I18n::Inflector::VERSION}.gem.sig}
|
99
79
|
end
|
100
80
|
|