forked from rsl/stringex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
253 lines (245 loc) · 10.5 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
# coding: utf-8
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "stringex"
gem.authors = ["Russell Norris"]
gem.email = "[email protected]"
gem.homepage = "http://github.com/rsl/stringex"
gem.summary = "Some [hopefully] useful extensions to Ruby's String class"
gem.description = "Some [hopefully] useful extensions to Ruby's String class. Stringex is made up of three libraries: ActsAsUrl [permalink solution with better character translation], Unidecoder [Unicode to ASCII transliteration], and StringExtensions [miscellaneous helper methods for the String class]."
gem.has_rdoc = true
gem.files = %w{
init.rb
MIT-LICENSE
Rakefile
README.rdoc
stringex.gemspec
lib/stringex.rb
lib/lucky_sneaks/acts_as_url.rb
lib/lucky_sneaks/string_extensions.rb
lib/lucky_sneaks/unidecoder.rb
lib/lucky_sneaks/unidecoder_data/x00.yml
lib/lucky_sneaks/unidecoder_data/x01.yml
lib/lucky_sneaks/unidecoder_data/x02.yml
lib/lucky_sneaks/unidecoder_data/x03.yml
lib/lucky_sneaks/unidecoder_data/x04.yml
lib/lucky_sneaks/unidecoder_data/x05.yml
lib/lucky_sneaks/unidecoder_data/x06.yml
lib/lucky_sneaks/unidecoder_data/x07.yml
lib/lucky_sneaks/unidecoder_data/x09.yml
lib/lucky_sneaks/unidecoder_data/x0a.yml
lib/lucky_sneaks/unidecoder_data/x0b.yml
lib/lucky_sneaks/unidecoder_data/x0c.yml
lib/lucky_sneaks/unidecoder_data/x0d.yml
lib/lucky_sneaks/unidecoder_data/x0e.yml
lib/lucky_sneaks/unidecoder_data/x0f.yml
lib/lucky_sneaks/unidecoder_data/x10.yml
lib/lucky_sneaks/unidecoder_data/x11.yml
lib/lucky_sneaks/unidecoder_data/x12.yml
lib/lucky_sneaks/unidecoder_data/x13.yml
lib/lucky_sneaks/unidecoder_data/x14.yml
lib/lucky_sneaks/unidecoder_data/x15.yml
lib/lucky_sneaks/unidecoder_data/x16.yml
lib/lucky_sneaks/unidecoder_data/x17.yml
lib/lucky_sneaks/unidecoder_data/x18.yml
lib/lucky_sneaks/unidecoder_data/x1e.yml
lib/lucky_sneaks/unidecoder_data/x1f.yml
lib/lucky_sneaks/unidecoder_data/x20.yml
lib/lucky_sneaks/unidecoder_data/x21.yml
lib/lucky_sneaks/unidecoder_data/x22.yml
lib/lucky_sneaks/unidecoder_data/x23.yml
lib/lucky_sneaks/unidecoder_data/x24.yml
lib/lucky_sneaks/unidecoder_data/x25.yml
lib/lucky_sneaks/unidecoder_data/x26.yml
lib/lucky_sneaks/unidecoder_data/x27.yml
lib/lucky_sneaks/unidecoder_data/x28.yml
lib/lucky_sneaks/unidecoder_data/x2e.yml
lib/lucky_sneaks/unidecoder_data/x2f.yml
lib/lucky_sneaks/unidecoder_data/x30.yml
lib/lucky_sneaks/unidecoder_data/x31.yml
lib/lucky_sneaks/unidecoder_data/x32.yml
lib/lucky_sneaks/unidecoder_data/x33.yml
lib/lucky_sneaks/unidecoder_data/x4d.yml
lib/lucky_sneaks/unidecoder_data/x4e.yml
lib/lucky_sneaks/unidecoder_data/x4f.yml
lib/lucky_sneaks/unidecoder_data/x50.yml
lib/lucky_sneaks/unidecoder_data/x51.yml
lib/lucky_sneaks/unidecoder_data/x52.yml
lib/lucky_sneaks/unidecoder_data/x53.yml
lib/lucky_sneaks/unidecoder_data/x54.yml
lib/lucky_sneaks/unidecoder_data/x55.yml
lib/lucky_sneaks/unidecoder_data/x56.yml
lib/lucky_sneaks/unidecoder_data/x57.yml
lib/lucky_sneaks/unidecoder_data/x58.yml
lib/lucky_sneaks/unidecoder_data/x59.yml
lib/lucky_sneaks/unidecoder_data/x5a.yml
lib/lucky_sneaks/unidecoder_data/x5b.yml
lib/lucky_sneaks/unidecoder_data/x5c.yml
lib/lucky_sneaks/unidecoder_data/x5d.yml
lib/lucky_sneaks/unidecoder_data/x5e.yml
lib/lucky_sneaks/unidecoder_data/x5f.yml
lib/lucky_sneaks/unidecoder_data/x60.yml
lib/lucky_sneaks/unidecoder_data/x61.yml
lib/lucky_sneaks/unidecoder_data/x62.yml
lib/lucky_sneaks/unidecoder_data/x63.yml
lib/lucky_sneaks/unidecoder_data/x64.yml
lib/lucky_sneaks/unidecoder_data/x65.yml
lib/lucky_sneaks/unidecoder_data/x66.yml
lib/lucky_sneaks/unidecoder_data/x67.yml
lib/lucky_sneaks/unidecoder_data/x68.yml
lib/lucky_sneaks/unidecoder_data/x69.yml
lib/lucky_sneaks/unidecoder_data/x6a.yml
lib/lucky_sneaks/unidecoder_data/x6b.yml
lib/lucky_sneaks/unidecoder_data/x6c.yml
lib/lucky_sneaks/unidecoder_data/x6d.yml
lib/lucky_sneaks/unidecoder_data/x6e.yml
lib/lucky_sneaks/unidecoder_data/x6f.yml
lib/lucky_sneaks/unidecoder_data/x70.yml
lib/lucky_sneaks/unidecoder_data/x71.yml
lib/lucky_sneaks/unidecoder_data/x72.yml
lib/lucky_sneaks/unidecoder_data/x73.yml
lib/lucky_sneaks/unidecoder_data/x74.yml
lib/lucky_sneaks/unidecoder_data/x75.yml
lib/lucky_sneaks/unidecoder_data/x76.yml
lib/lucky_sneaks/unidecoder_data/x77.yml
lib/lucky_sneaks/unidecoder_data/x78.yml
lib/lucky_sneaks/unidecoder_data/x79.yml
lib/lucky_sneaks/unidecoder_data/x7a.yml
lib/lucky_sneaks/unidecoder_data/x7b.yml
lib/lucky_sneaks/unidecoder_data/x7c.yml
lib/lucky_sneaks/unidecoder_data/x7d.yml
lib/lucky_sneaks/unidecoder_data/x7e.yml
lib/lucky_sneaks/unidecoder_data/x7f.yml
lib/lucky_sneaks/unidecoder_data/x80.yml
lib/lucky_sneaks/unidecoder_data/x81.yml
lib/lucky_sneaks/unidecoder_data/x82.yml
lib/lucky_sneaks/unidecoder_data/x83.yml
lib/lucky_sneaks/unidecoder_data/x84.yml
lib/lucky_sneaks/unidecoder_data/x85.yml
lib/lucky_sneaks/unidecoder_data/x86.yml
lib/lucky_sneaks/unidecoder_data/x87.yml
lib/lucky_sneaks/unidecoder_data/x88.yml
lib/lucky_sneaks/unidecoder_data/x89.yml
lib/lucky_sneaks/unidecoder_data/x8a.yml
lib/lucky_sneaks/unidecoder_data/x8b.yml
lib/lucky_sneaks/unidecoder_data/x8c.yml
lib/lucky_sneaks/unidecoder_data/x8d.yml
lib/lucky_sneaks/unidecoder_data/x8e.yml
lib/lucky_sneaks/unidecoder_data/x8f.yml
lib/lucky_sneaks/unidecoder_data/x90.yml
lib/lucky_sneaks/unidecoder_data/x91.yml
lib/lucky_sneaks/unidecoder_data/x92.yml
lib/lucky_sneaks/unidecoder_data/x93.yml
lib/lucky_sneaks/unidecoder_data/x94.yml
lib/lucky_sneaks/unidecoder_data/x95.yml
lib/lucky_sneaks/unidecoder_data/x96.yml
lib/lucky_sneaks/unidecoder_data/x97.yml
lib/lucky_sneaks/unidecoder_data/x98.yml
lib/lucky_sneaks/unidecoder_data/x99.yml
lib/lucky_sneaks/unidecoder_data/x9a.yml
lib/lucky_sneaks/unidecoder_data/x9b.yml
lib/lucky_sneaks/unidecoder_data/x9c.yml
lib/lucky_sneaks/unidecoder_data/x9d.yml
lib/lucky_sneaks/unidecoder_data/x9e.yml
lib/lucky_sneaks/unidecoder_data/x9f.yml
lib/lucky_sneaks/unidecoder_data/xa0.yml
lib/lucky_sneaks/unidecoder_data/xa1.yml
lib/lucky_sneaks/unidecoder_data/xa2.yml
lib/lucky_sneaks/unidecoder_data/xa3.yml
lib/lucky_sneaks/unidecoder_data/xa4.yml
lib/lucky_sneaks/unidecoder_data/xac.yml
lib/lucky_sneaks/unidecoder_data/xad.yml
lib/lucky_sneaks/unidecoder_data/xae.yml
lib/lucky_sneaks/unidecoder_data/xaf.yml
lib/lucky_sneaks/unidecoder_data/xb0.yml
lib/lucky_sneaks/unidecoder_data/xb1.yml
lib/lucky_sneaks/unidecoder_data/xb2.yml
lib/lucky_sneaks/unidecoder_data/xb3.yml
lib/lucky_sneaks/unidecoder_data/xb4.yml
lib/lucky_sneaks/unidecoder_data/xb5.yml
lib/lucky_sneaks/unidecoder_data/xb6.yml
lib/lucky_sneaks/unidecoder_data/xb7.yml
lib/lucky_sneaks/unidecoder_data/xb8.yml
lib/lucky_sneaks/unidecoder_data/xb9.yml
lib/lucky_sneaks/unidecoder_data/xba.yml
lib/lucky_sneaks/unidecoder_data/xbb.yml
lib/lucky_sneaks/unidecoder_data/xbc.yml
lib/lucky_sneaks/unidecoder_data/xbd.yml
lib/lucky_sneaks/unidecoder_data/xbe.yml
lib/lucky_sneaks/unidecoder_data/xbf.yml
lib/lucky_sneaks/unidecoder_data/xc0.yml
lib/lucky_sneaks/unidecoder_data/xc1.yml
lib/lucky_sneaks/unidecoder_data/xc2.yml
lib/lucky_sneaks/unidecoder_data/xc3.yml
lib/lucky_sneaks/unidecoder_data/xc4.yml
lib/lucky_sneaks/unidecoder_data/xc5.yml
lib/lucky_sneaks/unidecoder_data/xc6.yml
lib/lucky_sneaks/unidecoder_data/xc7.yml
lib/lucky_sneaks/unidecoder_data/xc8.yml
lib/lucky_sneaks/unidecoder_data/xc9.yml
lib/lucky_sneaks/unidecoder_data/xca.yml
lib/lucky_sneaks/unidecoder_data/xcb.yml
lib/lucky_sneaks/unidecoder_data/xcc.yml
lib/lucky_sneaks/unidecoder_data/xcd.yml
lib/lucky_sneaks/unidecoder_data/xce.yml
lib/lucky_sneaks/unidecoder_data/xcf.yml
lib/lucky_sneaks/unidecoder_data/xd0.yml
lib/lucky_sneaks/unidecoder_data/xd1.yml
lib/lucky_sneaks/unidecoder_data/xd2.yml
lib/lucky_sneaks/unidecoder_data/xd3.yml
lib/lucky_sneaks/unidecoder_data/xd4.yml
lib/lucky_sneaks/unidecoder_data/xd5.yml
lib/lucky_sneaks/unidecoder_data/xd6.yml
lib/lucky_sneaks/unidecoder_data/xd7.yml
lib/lucky_sneaks/unidecoder_data/xf9.yml
lib/lucky_sneaks/unidecoder_data/xfa.yml
lib/lucky_sneaks/unidecoder_data/xfb.yml
lib/lucky_sneaks/unidecoder_data/xfc.yml
lib/lucky_sneaks/unidecoder_data/xfd.yml
lib/lucky_sneaks/unidecoder_data/xfe.yml
lib/lucky_sneaks/unidecoder_data/xff.yml
}
gem.test_files = %w{
test/acts_as_url_test.rb
test/string_extensions_test.rb
test/unidecoder_test.rb
}
gem.rdoc_options = %w{--main README.rdoc --charset utf-8 --line-numbers}
gem.extra_rdoc_files = %w{MIT-LICENSE README.rdoc}
gem.version = "1.3.0"
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
desc 'Default: run unit tests.'
task :default => [:refresh_db, :test]
desc 'Remove old sqlite file.'
task :refresh_db do
`rm -f #{File.dirname(__FILE__)}/test/acts_as_url.sqlite3`
end
desc 'Test the stringex plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
desc 'Generate documentation for the stringex plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
if File.exist?('VERSION.yml')
config = YAML.load(File.read('VERSION.yml'))
version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
else
version = ""
end
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Stringex: A String Extension Pack [#{version}]'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.options << '--charset' << 'utf-8'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
end