joe-merb-core 0.9.8
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +992 -0
- data/CONTRIBUTORS +94 -0
- data/LICENSE +20 -0
- data/PUBLIC_CHANGELOG +142 -0
- data/README +21 -0
- data/Rakefile +456 -0
- data/TODO +0 -0
- data/bin/merb +11 -0
- data/bin/merb-specs +5 -0
- data/lib/merb-core.rb +648 -0
- data/lib/merb-core/autoload.rb +31 -0
- data/lib/merb-core/bootloader.rb +889 -0
- data/lib/merb-core/config.rb +380 -0
- data/lib/merb-core/constants.rb +45 -0
- data/lib/merb-core/controller/abstract_controller.rb +620 -0
- data/lib/merb-core/controller/exceptions.rb +302 -0
- data/lib/merb-core/controller/merb_controller.rb +283 -0
- data/lib/merb-core/controller/mime.rb +111 -0
- data/lib/merb-core/controller/mixins/authentication.rb +123 -0
- data/lib/merb-core/controller/mixins/conditional_get.rb +83 -0
- data/lib/merb-core/controller/mixins/controller.rb +316 -0
- data/lib/merb-core/controller/mixins/render.rb +513 -0
- data/lib/merb-core/controller/mixins/responder.rb +469 -0
- data/lib/merb-core/controller/template.rb +254 -0
- data/lib/merb-core/core_ext.rb +9 -0
- data/lib/merb-core/core_ext/hash.rb +7 -0
- data/lib/merb-core/core_ext/kernel.rb +345 -0
- data/lib/merb-core/dispatch/cookies.rb +130 -0
- data/lib/merb-core/dispatch/default_exception/default_exception.rb +93 -0
- data/lib/merb-core/dispatch/default_exception/views/_css.html.erb +200 -0
- data/lib/merb-core/dispatch/default_exception/views/_javascript.html.erb +77 -0
- data/lib/merb-core/dispatch/default_exception/views/index.html.erb +98 -0
- data/lib/merb-core/dispatch/dispatcher.rb +172 -0
- data/lib/merb-core/dispatch/request.rb +718 -0
- data/lib/merb-core/dispatch/router.rb +228 -0
- data/lib/merb-core/dispatch/router/behavior.rb +610 -0
- data/lib/merb-core/dispatch/router/cached_proc.rb +52 -0
- data/lib/merb-core/dispatch/router/resources.rb +220 -0
- data/lib/merb-core/dispatch/router/route.rb +560 -0
- data/lib/merb-core/dispatch/session.rb +222 -0
- data/lib/merb-core/dispatch/session/container.rb +74 -0
- data/lib/merb-core/dispatch/session/cookie.rb +173 -0
- data/lib/merb-core/dispatch/session/memcached.rb +68 -0
- data/lib/merb-core/dispatch/session/memory.rb +99 -0
- data/lib/merb-core/dispatch/session/store_container.rb +150 -0
- data/lib/merb-core/dispatch/worker.rb +28 -0
- data/lib/merb-core/gem_ext/erubis.rb +77 -0
- data/lib/merb-core/logger.rb +215 -0
- data/lib/merb-core/plugins.rb +67 -0
- data/lib/merb-core/rack.rb +27 -0
- data/lib/merb-core/rack/adapter.rb +47 -0
- data/lib/merb-core/rack/adapter/ebb.rb +24 -0
- data/lib/merb-core/rack/adapter/evented_mongrel.rb +13 -0
- data/lib/merb-core/rack/adapter/fcgi.rb +17 -0
- data/lib/merb-core/rack/adapter/irb.rb +119 -0
- data/lib/merb-core/rack/adapter/mongrel.rb +33 -0
- data/lib/merb-core/rack/adapter/runner.rb +28 -0
- data/lib/merb-core/rack/adapter/swiftiplied_mongrel.rb +14 -0
- data/lib/merb-core/rack/adapter/thin.rb +40 -0
- data/lib/merb-core/rack/adapter/thin_turbo.rb +17 -0
- data/lib/merb-core/rack/adapter/webrick.rb +72 -0
- data/lib/merb-core/rack/application.rb +32 -0
- data/lib/merb-core/rack/handler/mongrel.rb +96 -0
- data/lib/merb-core/rack/middleware.rb +20 -0
- data/lib/merb-core/rack/middleware/conditional_get.rb +29 -0
- data/lib/merb-core/rack/middleware/content_length.rb +18 -0
- data/lib/merb-core/rack/middleware/csrf.rb +73 -0
- data/lib/merb-core/rack/middleware/path_prefix.rb +31 -0
- data/lib/merb-core/rack/middleware/profiler.rb +19 -0
- data/lib/merb-core/rack/middleware/static.rb +45 -0
- data/lib/merb-core/rack/middleware/tracer.rb +20 -0
- data/lib/merb-core/server.rb +321 -0
- data/lib/merb-core/tasks/audit.rake +68 -0
- data/lib/merb-core/tasks/gem_management.rb +252 -0
- data/lib/merb-core/tasks/merb.rb +2 -0
- data/lib/merb-core/tasks/merb_rake_helper.rb +51 -0
- data/lib/merb-core/tasks/stats.rake +71 -0
- data/lib/merb-core/test.rb +17 -0
- data/lib/merb-core/test/helpers.rb +10 -0
- data/lib/merb-core/test/helpers/controller_helper.rb +8 -0
- data/lib/merb-core/test/helpers/multipart_request_helper.rb +176 -0
- data/lib/merb-core/test/helpers/request_helper.rb +61 -0
- data/lib/merb-core/test/helpers/route_helper.rb +47 -0
- data/lib/merb-core/test/helpers/view_helper.rb +121 -0
- data/lib/merb-core/test/matchers.rb +10 -0
- data/lib/merb-core/test/matchers/controller_matchers.rb +108 -0
- data/lib/merb-core/test/matchers/route_matchers.rb +137 -0
- data/lib/merb-core/test/matchers/view_matchers.rb +393 -0
- data/lib/merb-core/test/run_specs.rb +141 -0
- data/lib/merb-core/test/tasks/spectasks.rb +68 -0
- data/lib/merb-core/test/test_ext/hpricot.rb +32 -0
- data/lib/merb-core/test/test_ext/object.rb +14 -0
- data/lib/merb-core/test/test_ext/string.rb +14 -0
- data/lib/merb-core/vendor/facets.rb +2 -0
- data/lib/merb-core/vendor/facets/dictionary.rb +433 -0
- data/lib/merb-core/vendor/facets/inflect.rb +342 -0
- data/lib/merb-core/version.rb +3 -0
- metadata +253 -0
@@ -0,0 +1,342 @@
|
|
1
|
+
module English
|
2
|
+
|
3
|
+
# = English Nouns Number Inflection.
|
4
|
+
#
|
5
|
+
# This module provides english singular <-> plural noun inflections.
|
6
|
+
module Inflect
|
7
|
+
|
8
|
+
@singular_of = {}
|
9
|
+
@plural_of = {}
|
10
|
+
|
11
|
+
@singular_rules = []
|
12
|
+
@plural_rules = []
|
13
|
+
|
14
|
+
class << self
|
15
|
+
# Defines a general inflection exception case.
|
16
|
+
#
|
17
|
+
# ==== Parameters
|
18
|
+
# singular<String>::
|
19
|
+
# singular form of the word
|
20
|
+
# plural<String>::
|
21
|
+
# plural form of the word
|
22
|
+
#
|
23
|
+
# ==== Examples
|
24
|
+
#
|
25
|
+
# Here we define erratum/errata exception case:
|
26
|
+
#
|
27
|
+
# English::Inflect.word "erratum", "errata"
|
28
|
+
#
|
29
|
+
# In case singular and plural forms are the same omit
|
30
|
+
# second argument on call:
|
31
|
+
#
|
32
|
+
# English::Inflect.word 'information'
|
33
|
+
def word(singular, plural=nil)
|
34
|
+
plural = singular unless plural
|
35
|
+
singular_word(singular, plural)
|
36
|
+
plural_word(singular, plural)
|
37
|
+
end
|
38
|
+
|
39
|
+
def clear(type = :all)
|
40
|
+
if type == :singular || type == :all
|
41
|
+
@singular_of = {}
|
42
|
+
@singular_rules = []
|
43
|
+
@singularization_rules, @singularization_regex = nil, nil
|
44
|
+
end
|
45
|
+
if type == :plural || type == :all
|
46
|
+
@singular_of = {}
|
47
|
+
@singular_rules = []
|
48
|
+
@singularization_rules, @singularization_regex = nil, nil
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
|
53
|
+
# Define a singularization exception.
|
54
|
+
#
|
55
|
+
# ==== Parameters
|
56
|
+
# singular<String>::
|
57
|
+
# singular form of the word
|
58
|
+
# plural<String>::
|
59
|
+
# plural form of the word
|
60
|
+
def singular_word(singular, plural)
|
61
|
+
@singular_of[plural] = singular
|
62
|
+
@singular_of[plural.capitalize] = singular.capitalize
|
63
|
+
end
|
64
|
+
|
65
|
+
# Define a pluralization exception.
|
66
|
+
#
|
67
|
+
# ==== Parameters
|
68
|
+
# singular<String>::
|
69
|
+
# singular form of the word
|
70
|
+
# plural<String>::
|
71
|
+
# plural form of the word
|
72
|
+
def plural_word(singular, plural)
|
73
|
+
@plural_of[singular] = plural
|
74
|
+
@plural_of[singular.capitalize] = plural.capitalize
|
75
|
+
end
|
76
|
+
|
77
|
+
# Define a general rule.
|
78
|
+
#
|
79
|
+
# ==== Parameters
|
80
|
+
# singular<String>::
|
81
|
+
# ending of the word in singular form
|
82
|
+
# plural<String>::
|
83
|
+
# ending of the word in plural form
|
84
|
+
# whole_word<Boolean>::
|
85
|
+
# for capitalization, since words can be
|
86
|
+
# capitalized (Man => Men) #
|
87
|
+
# ==== Examples
|
88
|
+
# Once the following rule is defined:
|
89
|
+
# English::Inflect.rule 'y', 'ies'
|
90
|
+
#
|
91
|
+
# You can see the following results:
|
92
|
+
# irb> "fly".plural
|
93
|
+
# => flies
|
94
|
+
# irb> "cry".plural
|
95
|
+
# => cries
|
96
|
+
# Define a general rule.
|
97
|
+
|
98
|
+
def rule(singular, plural, whole_word = false)
|
99
|
+
singular_rule(singular, plural)
|
100
|
+
plural_rule(singular, plural)
|
101
|
+
word(singular, plural) if whole_word
|
102
|
+
end
|
103
|
+
|
104
|
+
# Define a singularization rule.
|
105
|
+
#
|
106
|
+
# ==== Parameters
|
107
|
+
# singular<String>::
|
108
|
+
# ending of the word in singular form
|
109
|
+
# plural<String>::
|
110
|
+
# ending of the word in plural form
|
111
|
+
#
|
112
|
+
# ==== Examples
|
113
|
+
# Once the following rule is defined:
|
114
|
+
# English::Inflect.singular_rule 'o', 'oes'
|
115
|
+
#
|
116
|
+
# You can see the following results:
|
117
|
+
# irb> "heroes".singular
|
118
|
+
# => hero
|
119
|
+
def singular_rule(singular, plural)
|
120
|
+
@singular_rules << [singular, plural]
|
121
|
+
end
|
122
|
+
|
123
|
+
# Define a plurualization rule.
|
124
|
+
#
|
125
|
+
# ==== Parameters
|
126
|
+
# singular<String>::
|
127
|
+
# ending of the word in singular form
|
128
|
+
# plural<String>::
|
129
|
+
# ending of the word in plural form
|
130
|
+
#
|
131
|
+
# ==== Examples
|
132
|
+
# Once the following rule is defined:
|
133
|
+
# English::Inflect.singular_rule 'fe', 'ves'
|
134
|
+
#
|
135
|
+
# You can see the following results:
|
136
|
+
# irb> "wife".plural
|
137
|
+
# => wives
|
138
|
+
def plural_rule(singular, plural)
|
139
|
+
@plural_rules << [singular, plural]
|
140
|
+
end
|
141
|
+
|
142
|
+
# Read prepared singularization rules.
|
143
|
+
def singularization_rules
|
144
|
+
if defined?(@singularization_regex) && @singularization_regex
|
145
|
+
return [@singularization_regex, @singularization_hash]
|
146
|
+
end
|
147
|
+
# No sorting needed: Regexen match on longest string
|
148
|
+
@singularization_regex = Regexp.new("(" + @singular_rules.map {|s,p| p}.join("|") + ")$", "i")
|
149
|
+
@singularization_hash = Hash[*@singular_rules.flatten].invert
|
150
|
+
[@singularization_regex, @singularization_hash]
|
151
|
+
end
|
152
|
+
|
153
|
+
# Read prepared pluralization rules.
|
154
|
+
def pluralization_rules
|
155
|
+
if defined?(@pluralization_regex) && @pluralization_regex
|
156
|
+
return [@pluralization_regex, @pluralization_hash]
|
157
|
+
end
|
158
|
+
@pluralization_regex = Regexp.new("(" + @plural_rules.map {|s,p| s}.join("|") + ")$", "i")
|
159
|
+
@pluralization_hash = Hash[*@plural_rules.flatten]
|
160
|
+
[@pluralization_regex, @pluralization_hash]
|
161
|
+
end
|
162
|
+
|
163
|
+
attr_reader :singular_of, :plural_of
|
164
|
+
|
165
|
+
# Convert an English word from plurel to singular.
|
166
|
+
#
|
167
|
+
# "boys".singular #=> boy
|
168
|
+
# "tomatoes".singular #=> tomato
|
169
|
+
#
|
170
|
+
# ==== Parameters
|
171
|
+
# word<String>:: word to singularize
|
172
|
+
#
|
173
|
+
# ==== Returns
|
174
|
+
# <String>:: singularized form of word
|
175
|
+
#
|
176
|
+
# ==== Notes
|
177
|
+
# Aliased as singularize (a Railism)
|
178
|
+
def singular(word)
|
179
|
+
if result = singular_of[word]
|
180
|
+
return result.dup
|
181
|
+
end
|
182
|
+
result = word.dup
|
183
|
+
regex, hash = singularization_rules
|
184
|
+
result.sub!(regex) {|m| hash[m]}
|
185
|
+
singular_of[word] = result
|
186
|
+
return result
|
187
|
+
end
|
188
|
+
|
189
|
+
# Alias for #singular (a Railism).
|
190
|
+
#
|
191
|
+
alias_method(:singularize, :singular)
|
192
|
+
|
193
|
+
# Convert an English word from singular to plurel.
|
194
|
+
#
|
195
|
+
# "boy".plural #=> boys
|
196
|
+
# "tomato".plural #=> tomatoes
|
197
|
+
#
|
198
|
+
# ==== Parameters
|
199
|
+
# word<String>:: word to pluralize
|
200
|
+
#
|
201
|
+
# ==== Returns
|
202
|
+
# <String>:: pluralized form of word
|
203
|
+
#
|
204
|
+
# ==== Notes
|
205
|
+
# Aliased as pluralize (a Railism)
|
206
|
+
def plural(word)
|
207
|
+
# special exceptions
|
208
|
+
return "" if word == ""
|
209
|
+
if result = plural_of[word]
|
210
|
+
return result.dup
|
211
|
+
end
|
212
|
+
result = word.dup
|
213
|
+
regex, hash = pluralization_rules
|
214
|
+
result.sub!(regex) {|m| hash[m]}
|
215
|
+
plural_of[word] = result
|
216
|
+
return result
|
217
|
+
end
|
218
|
+
|
219
|
+
# Alias for #plural (a Railism).
|
220
|
+
alias_method(:pluralize, :plural)
|
221
|
+
end
|
222
|
+
|
223
|
+
# One argument means singular and plural are the same.
|
224
|
+
|
225
|
+
word 'equipment'
|
226
|
+
word 'information'
|
227
|
+
word 'money'
|
228
|
+
word 'species'
|
229
|
+
word 'series'
|
230
|
+
word 'fish'
|
231
|
+
word 'sheep'
|
232
|
+
word 'moose'
|
233
|
+
word 'hovercraft'
|
234
|
+
word 'grass'
|
235
|
+
word 'rain'
|
236
|
+
word 'milk'
|
237
|
+
word 'rice'
|
238
|
+
word 'plurals'
|
239
|
+
|
240
|
+
# Two arguments defines a singular and plural exception.
|
241
|
+
|
242
|
+
word 'Swiss' , 'Swiss'
|
243
|
+
word 'life' , 'lives'
|
244
|
+
word 'wife' , 'wives'
|
245
|
+
word 'goose' , 'geese'
|
246
|
+
word 'criterion' , 'criteria'
|
247
|
+
word 'alias' , 'aliases'
|
248
|
+
word 'status' , 'statuses'
|
249
|
+
word 'axis' , 'axes'
|
250
|
+
word 'crisis' , 'crises'
|
251
|
+
word 'testis' , 'testes'
|
252
|
+
word 'potato' , 'potatoes'
|
253
|
+
word 'tomato' , 'tomatoes'
|
254
|
+
word 'buffalo' , 'buffaloes'
|
255
|
+
word 'torpedo' , 'torpedoes'
|
256
|
+
word 'quiz' , 'quizzes'
|
257
|
+
word 'matrix' , 'matrices'
|
258
|
+
word 'vertex' , 'vertices'
|
259
|
+
word 'index' , 'indices'
|
260
|
+
word 'ox' , 'oxen'
|
261
|
+
word 'mouse' , 'mice'
|
262
|
+
word 'louse' , 'lice'
|
263
|
+
word 'thesis' , 'theses'
|
264
|
+
word 'thief' , 'thieves'
|
265
|
+
word 'analysis' , 'analyses'
|
266
|
+
word 'erratum' , 'errata'
|
267
|
+
word 'phenomenon', 'phenomena'
|
268
|
+
word 'octopus' , 'octopi'
|
269
|
+
word 'thesaurus' , 'thesauri'
|
270
|
+
word 'movie' , 'movies'
|
271
|
+
word 'cactus' , 'cacti'
|
272
|
+
word 'plus' , 'plusses'
|
273
|
+
word 'cross' , 'crosses'
|
274
|
+
word 'medium' , 'media'
|
275
|
+
word 'cow' , 'kine'
|
276
|
+
word 'datum' , 'data'
|
277
|
+
word 'basis' , 'bases'
|
278
|
+
word 'diagnosis' , 'diagnoses'
|
279
|
+
|
280
|
+
# One-way singularization exception (convert plural to singular).
|
281
|
+
|
282
|
+
# General rules.
|
283
|
+
rule 'person' , 'people', true
|
284
|
+
rule 'shoe' , 'shoes', true
|
285
|
+
rule 'hive' , 'hives', true
|
286
|
+
rule 'man' , 'men', true
|
287
|
+
rule 'child' , 'children', true
|
288
|
+
rule 'news' , 'news', true
|
289
|
+
rule 'rf' , 'rves'
|
290
|
+
rule 'af' , 'aves'
|
291
|
+
rule 'ero' , 'eroes'
|
292
|
+
rule 'man' , 'men'
|
293
|
+
rule 'ch' , 'ches'
|
294
|
+
rule 'sh' , 'shes'
|
295
|
+
rule 'ss' , 'sses'
|
296
|
+
rule 'ta' , 'tum'
|
297
|
+
rule 'ia' , 'ium'
|
298
|
+
rule 'ra' , 'rum'
|
299
|
+
rule 'ay' , 'ays'
|
300
|
+
rule 'ey' , 'eys'
|
301
|
+
rule 'oy' , 'oys'
|
302
|
+
rule 'uy' , 'uys'
|
303
|
+
rule 'y' , 'ies'
|
304
|
+
rule 'x' , 'xes'
|
305
|
+
rule 'lf' , 'lves'
|
306
|
+
rule 'ffe' , 'ffes'
|
307
|
+
rule 'afe' , 'aves'
|
308
|
+
rule 'ouse' , 'ouses'
|
309
|
+
# more cases of words ending in -oses not being singularized properly
|
310
|
+
# than cases of words ending in -osis
|
311
|
+
# rule 'osis' , 'oses'
|
312
|
+
rule 'ox' , 'oxes'
|
313
|
+
rule 'us' , 'uses'
|
314
|
+
rule '' , 's'
|
315
|
+
|
316
|
+
# One-way singular rules.
|
317
|
+
|
318
|
+
singular_rule 'of' , 'ofs' # proof
|
319
|
+
singular_rule 'o' , 'oes' # hero, heroes
|
320
|
+
singular_rule 'f' , 'ves'
|
321
|
+
|
322
|
+
# One-way plural rules.
|
323
|
+
|
324
|
+
#plural_rule 'fe' , 'ves' # safe, wife
|
325
|
+
plural_rule 's' , 'ses'
|
326
|
+
plural_rule 'ive' , 'ives' # don't want to snag wife
|
327
|
+
plural_rule 'fe' , 'ves' # don't want to snag perspectives
|
328
|
+
|
329
|
+
|
330
|
+
end
|
331
|
+
end
|
332
|
+
|
333
|
+
class String
|
334
|
+
def singular
|
335
|
+
English::Inflect.singular(self)
|
336
|
+
end
|
337
|
+
alias_method(:singularize, :singular)
|
338
|
+
def plural
|
339
|
+
English::Inflect.plural(self)
|
340
|
+
end
|
341
|
+
alias_method(:pluralize, :plural)
|
342
|
+
end
|
metadata
ADDED
@@ -0,0 +1,253 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: joe-merb-core
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.8
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ezra Zygmuntowicz
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2008-09-26 00:00:00 -07:00
|
13
|
+
default_executable: merb
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: extlib
|
17
|
+
version_requirement:
|
18
|
+
version_requirements: !ruby/object:Gem::Requirement
|
19
|
+
requirements:
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 0.9.6
|
23
|
+
version:
|
24
|
+
- !ruby/object:Gem::Dependency
|
25
|
+
name: erubis
|
26
|
+
version_requirement:
|
27
|
+
version_requirements: !ruby/object:Gem::Requirement
|
28
|
+
requirements:
|
29
|
+
- - ">="
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: "0"
|
32
|
+
version:
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: rake
|
35
|
+
version_requirement:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: "0"
|
41
|
+
version:
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: json_pure
|
44
|
+
version_requirement:
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: "0"
|
50
|
+
version:
|
51
|
+
- !ruby/object:Gem::Dependency
|
52
|
+
name: rspec
|
53
|
+
version_requirement:
|
54
|
+
version_requirements: !ruby/object:Gem::Requirement
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: "0"
|
59
|
+
version:
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
name: rack
|
62
|
+
version_requirement:
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: "0"
|
68
|
+
version:
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: mime-types
|
71
|
+
version_requirement:
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: "0"
|
77
|
+
version:
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: hpricot
|
80
|
+
version_requirement:
|
81
|
+
version_requirements: !ruby/object:Gem::Requirement
|
82
|
+
requirements:
|
83
|
+
- - ">="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: "0"
|
86
|
+
version:
|
87
|
+
- !ruby/object:Gem::Dependency
|
88
|
+
name: thor
|
89
|
+
version_requirement:
|
90
|
+
version_requirements: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - ">="
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: 0.9.6
|
95
|
+
version:
|
96
|
+
description: Merb. Pocket rocket web framework.
|
97
|
+
email: ez@engineyard.com
|
98
|
+
executables:
|
99
|
+
- merb
|
100
|
+
extensions: []
|
101
|
+
|
102
|
+
extra_rdoc_files:
|
103
|
+
- README
|
104
|
+
- LICENSE
|
105
|
+
- TODO
|
106
|
+
files:
|
107
|
+
- LICENSE
|
108
|
+
- README
|
109
|
+
- Rakefile
|
110
|
+
- TODO
|
111
|
+
- CHANGELOG
|
112
|
+
- PUBLIC_CHANGELOG
|
113
|
+
- CONTRIBUTORS
|
114
|
+
- bin/merb
|
115
|
+
- bin/merb-specs
|
116
|
+
- lib/merb-core
|
117
|
+
- lib/merb-core/autoload.rb
|
118
|
+
- lib/merb-core/bootloader.rb
|
119
|
+
- lib/merb-core/config.rb
|
120
|
+
- lib/merb-core/constants.rb
|
121
|
+
- lib/merb-core/controller
|
122
|
+
- lib/merb-core/controller/abstract_controller.rb
|
123
|
+
- lib/merb-core/controller/exceptions.rb
|
124
|
+
- lib/merb-core/controller/merb_controller.rb
|
125
|
+
- lib/merb-core/controller/mime.rb
|
126
|
+
- lib/merb-core/controller/mixins
|
127
|
+
- lib/merb-core/controller/mixins/authentication.rb
|
128
|
+
- lib/merb-core/controller/mixins/conditional_get.rb
|
129
|
+
- lib/merb-core/controller/mixins/controller.rb
|
130
|
+
- lib/merb-core/controller/mixins/render.rb
|
131
|
+
- lib/merb-core/controller/mixins/responder.rb
|
132
|
+
- lib/merb-core/controller/template.rb
|
133
|
+
- lib/merb-core/core_ext
|
134
|
+
- lib/merb-core/core_ext/hash.rb
|
135
|
+
- lib/merb-core/core_ext/kernel.rb
|
136
|
+
- lib/merb-core/core_ext.rb
|
137
|
+
- lib/merb-core/dispatch
|
138
|
+
- lib/merb-core/dispatch/cookies.rb
|
139
|
+
- lib/merb-core/dispatch/default_exception
|
140
|
+
- lib/merb-core/dispatch/default_exception/default_exception.rb
|
141
|
+
- lib/merb-core/dispatch/default_exception/views
|
142
|
+
- lib/merb-core/dispatch/default_exception/views/_css.html.erb
|
143
|
+
- lib/merb-core/dispatch/default_exception/views/_javascript.html.erb
|
144
|
+
- lib/merb-core/dispatch/default_exception/views/index.html.erb
|
145
|
+
- lib/merb-core/dispatch/dispatcher.rb
|
146
|
+
- lib/merb-core/dispatch/request.rb
|
147
|
+
- lib/merb-core/dispatch/router
|
148
|
+
- lib/merb-core/dispatch/router/behavior.rb
|
149
|
+
- lib/merb-core/dispatch/router/cached_proc.rb
|
150
|
+
- lib/merb-core/dispatch/router/resources.rb
|
151
|
+
- lib/merb-core/dispatch/router/route.rb
|
152
|
+
- lib/merb-core/dispatch/router.rb
|
153
|
+
- lib/merb-core/dispatch/session
|
154
|
+
- lib/merb-core/dispatch/session/container.rb
|
155
|
+
- lib/merb-core/dispatch/session/cookie.rb
|
156
|
+
- lib/merb-core/dispatch/session/memcached.rb
|
157
|
+
- lib/merb-core/dispatch/session/memory.rb
|
158
|
+
- lib/merb-core/dispatch/session/store_container.rb
|
159
|
+
- lib/merb-core/dispatch/session.rb
|
160
|
+
- lib/merb-core/dispatch/worker.rb
|
161
|
+
- lib/merb-core/gem_ext
|
162
|
+
- lib/merb-core/gem_ext/erubis.rb
|
163
|
+
- lib/merb-core/logger.rb
|
164
|
+
- lib/merb-core/plugins.rb
|
165
|
+
- lib/merb-core/rack
|
166
|
+
- lib/merb-core/rack/adapter
|
167
|
+
- lib/merb-core/rack/adapter/ebb.rb
|
168
|
+
- lib/merb-core/rack/adapter/evented_mongrel.rb
|
169
|
+
- lib/merb-core/rack/adapter/fcgi.rb
|
170
|
+
- lib/merb-core/rack/adapter/irb.rb
|
171
|
+
- lib/merb-core/rack/adapter/mongrel.rb
|
172
|
+
- lib/merb-core/rack/adapter/runner.rb
|
173
|
+
- lib/merb-core/rack/adapter/swiftiplied_mongrel.rb
|
174
|
+
- lib/merb-core/rack/adapter/thin.rb
|
175
|
+
- lib/merb-core/rack/adapter/thin_turbo.rb
|
176
|
+
- lib/merb-core/rack/adapter/webrick.rb
|
177
|
+
- lib/merb-core/rack/adapter.rb
|
178
|
+
- lib/merb-core/rack/application.rb
|
179
|
+
- lib/merb-core/rack/handler
|
180
|
+
- lib/merb-core/rack/handler/mongrel.rb
|
181
|
+
- lib/merb-core/rack/middleware
|
182
|
+
- lib/merb-core/rack/middleware/conditional_get.rb
|
183
|
+
- lib/merb-core/rack/middleware/content_length.rb
|
184
|
+
- lib/merb-core/rack/middleware/csrf.rb
|
185
|
+
- lib/merb-core/rack/middleware/path_prefix.rb
|
186
|
+
- lib/merb-core/rack/middleware/profiler.rb
|
187
|
+
- lib/merb-core/rack/middleware/static.rb
|
188
|
+
- lib/merb-core/rack/middleware/tracer.rb
|
189
|
+
- lib/merb-core/rack/middleware.rb
|
190
|
+
- lib/merb-core/rack.rb
|
191
|
+
- lib/merb-core/server.rb
|
192
|
+
- lib/merb-core/tasks
|
193
|
+
- lib/merb-core/tasks/audit.rake
|
194
|
+
- lib/merb-core/tasks/gem_management.rb
|
195
|
+
- lib/merb-core/tasks/merb.rb
|
196
|
+
- lib/merb-core/tasks/merb_rake_helper.rb
|
197
|
+
- lib/merb-core/tasks/stats.rake
|
198
|
+
- lib/merb-core/test
|
199
|
+
- lib/merb-core/test/helpers
|
200
|
+
- lib/merb-core/test/helpers/controller_helper.rb
|
201
|
+
- lib/merb-core/test/helpers/multipart_request_helper.rb
|
202
|
+
- lib/merb-core/test/helpers/request_helper.rb
|
203
|
+
- lib/merb-core/test/helpers/route_helper.rb
|
204
|
+
- lib/merb-core/test/helpers/view_helper.rb
|
205
|
+
- lib/merb-core/test/helpers.rb
|
206
|
+
- lib/merb-core/test/matchers
|
207
|
+
- lib/merb-core/test/matchers/controller_matchers.rb
|
208
|
+
- lib/merb-core/test/matchers/route_matchers.rb
|
209
|
+
- lib/merb-core/test/matchers/view_matchers.rb
|
210
|
+
- lib/merb-core/test/matchers.rb
|
211
|
+
- lib/merb-core/test/run_specs.rb
|
212
|
+
- lib/merb-core/test/tasks
|
213
|
+
- lib/merb-core/test/tasks/spectasks.rb
|
214
|
+
- lib/merb-core/test/test_ext
|
215
|
+
- lib/merb-core/test/test_ext/hpricot.rb
|
216
|
+
- lib/merb-core/test/test_ext/object.rb
|
217
|
+
- lib/merb-core/test/test_ext/string.rb
|
218
|
+
- lib/merb-core/test.rb
|
219
|
+
- lib/merb-core/vendor
|
220
|
+
- lib/merb-core/vendor/facets
|
221
|
+
- lib/merb-core/vendor/facets/dictionary.rb
|
222
|
+
- lib/merb-core/vendor/facets/inflect.rb
|
223
|
+
- lib/merb-core/vendor/facets.rb
|
224
|
+
- lib/merb-core/version.rb
|
225
|
+
- lib/merb-core.rb
|
226
|
+
has_rdoc: true
|
227
|
+
homepage: http://merbivore.com
|
228
|
+
post_install_message:
|
229
|
+
rdoc_options: []
|
230
|
+
|
231
|
+
require_paths:
|
232
|
+
- lib
|
233
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
234
|
+
requirements:
|
235
|
+
- - ">="
|
236
|
+
- !ruby/object:Gem::Version
|
237
|
+
version: 1.8.6
|
238
|
+
version:
|
239
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - ">="
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: "0"
|
244
|
+
version:
|
245
|
+
requirements:
|
246
|
+
- install the json gem to get faster json parsing
|
247
|
+
rubyforge_project:
|
248
|
+
rubygems_version: 1.2.0
|
249
|
+
signing_key:
|
250
|
+
specification_version: 2
|
251
|
+
summary: Merb. Pocket rocket web framework.
|
252
|
+
test_files: []
|
253
|
+
|