merb 0.3.7 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README +25 -26
- data/Rakefile +48 -36
- data/app_generators/merb/USAGE +5 -0
- data/app_generators/merb/merb_generator.rb +107 -0
- data/app_generators/merb/templates/Rakefile +99 -0
- data/{examples/skeleton/dist → app_generators/merb/templates}/app/controllers/application.rb +1 -1
- data/app_generators/merb/templates/app/controllers/exceptions.rb +13 -0
- data/{examples/skeleton/dist → app_generators/merb/templates}/app/helpers/global_helper.rb +0 -0
- data/{examples/skeleton/dist/app/mailers → app_generators/merb/templates/app/mailers/views}/layout/application.erb +0 -0
- data/app_generators/merb/templates/app/views/exceptions/internal_server_error.html.erb +207 -0
- data/app_generators/merb/templates/app/views/exceptions/not_acceptable.html.erb +38 -0
- data/app_generators/merb/templates/app/views/exceptions/not_found.html.erb +40 -0
- data/app_generators/merb/templates/app/views/layout/application.html.erb +11 -0
- data/app_generators/merb/templates/config/boot.rb +11 -0
- data/app_generators/merb/templates/config/dependencies.rb +41 -0
- data/{examples/skeleton/dist/conf → app_generators/merb/templates/config}/environments/development.rb +0 -0
- data/{examples/skeleton/dist/conf → app_generators/merb/templates/config}/environments/production.rb +0 -0
- data/{examples/skeleton/dist/conf → app_generators/merb/templates/config}/environments/test.rb +0 -0
- data/app_generators/merb/templates/config/merb.yml +64 -0
- data/app_generators/merb/templates/config/merb_init.rb +16 -0
- data/app_generators/merb/templates/config/plugins.yml +1 -0
- data/app_generators/merb/templates/config/router.rb +32 -0
- data/{lib/merb/core_ext/merb_array.rb → app_generators/merb/templates/config/upload.conf} +0 -0
- data/app_generators/merb/templates/public/images/merb.jpg +0 -0
- data/app_generators/merb/templates/public/merb.fcgi +6 -0
- data/app_generators/merb/templates/public/stylesheets/master.css +119 -0
- data/app_generators/merb/templates/script/destroy +28 -0
- data/app_generators/merb/templates/script/generate +28 -0
- data/{examples/skeleton → app_generators/merb/templates}/script/stop_merb +0 -0
- data/app_generators/merb/templates/script/win_script.cmd +1 -0
- data/app_generators/merb/templates/spec/spec.opts +6 -0
- data/app_generators/merb/templates/spec/spec_helper.rb +10 -0
- data/app_generators/merb/templates/test/test_helper.rb +13 -0
- data/app_generators/merb_plugin/USAGE +5 -0
- data/app_generators/merb_plugin/merb_plugin_generator.rb +64 -0
- data/app_generators/merb_plugin/templates/LICENSE +20 -0
- data/app_generators/merb_plugin/templates/README +4 -0
- data/app_generators/merb_plugin/templates/Rakefile +35 -0
- data/app_generators/merb_plugin/templates/TODO +5 -0
- data/app_generators/merb_plugin/templates/merbtasks.rb +6 -0
- data/app_generators/merb_plugin/templates/sampleplugin.rb +10 -0
- data/app_generators/merb_plugin/templates/sampleplugin_spec.rb +7 -0
- data/app_generators/merb_plugin/templates/spec_helper.rb +2 -0
- data/bin/merb +1 -1
- data/lib/autotest/discover.rb +3 -0
- data/lib/autotest/merb_rspec.rb +79 -0
- data/lib/merb.rb +72 -93
- data/lib/merb/{merb_abstract_controller.rb → abstract_controller.rb} +28 -5
- data/lib/merb/caching/action_cache.rb +65 -29
- data/lib/merb/caching/fragment_cache.rb +9 -4
- data/lib/merb/caching/store/file_cache.rb +22 -14
- data/lib/merb/caching/store/memory_cache.rb +26 -8
- data/lib/merb/{merb_constants.rb → constants.rb} +9 -7
- data/lib/merb/controller.rb +178 -0
- data/lib/merb/core_ext.rb +13 -11
- data/lib/merb/core_ext/array.rb +0 -0
- data/lib/merb/core_ext/{merb_class.rb → class.rb} +0 -0
- data/lib/merb/core_ext/{merb_enumerable.rb → enumerable.rb} +0 -0
- data/lib/merb/core_ext/get_args.rb +52 -0
- data/lib/merb/core_ext/{merb_hash.rb → hash.rb} +40 -11
- data/lib/merb/core_ext/{merb_inflections.rb → inflections.rb} +0 -0
- data/lib/merb/core_ext/{merb_inflector.rb → inflector.rb} +1 -1
- data/lib/merb/core_ext/{merb_kernel.rb → kernel.rb} +56 -3
- data/lib/merb/core_ext/mash.rb +88 -0
- data/lib/merb/core_ext/{merb_module.rb → module.rb} +0 -0
- data/lib/merb/core_ext/{merb_numeric.rb → numeric.rb} +0 -0
- data/lib/merb/core_ext/{merb_object.rb → object.rb} +10 -47
- data/lib/merb/core_ext/string.rb +56 -0
- data/lib/merb/core_ext/{merb_symbol.rb → symbol.rb} +0 -0
- data/lib/merb/dispatcher.rb +109 -0
- data/lib/merb/{merb_drb_server.rb → drb_server.rb} +0 -0
- data/lib/merb/erubis_ext.rb +10 -0
- data/lib/merb/exceptions.rb +173 -0
- data/lib/merb/generators/merb_app/merb_app.rb +5 -25
- data/lib/merb/generators/merb_generator_helpers.rb +317 -0
- data/lib/merb/generators/merb_plugin.rb +19 -0
- data/lib/merb/logger.rb +65 -0
- data/lib/merb/{merb_mail_controller.rb → mail_controller.rb} +102 -49
- data/lib/merb/{merb_mailer.rb → mailer.rb} +31 -27
- data/lib/merb/mixins/{basic_authentication_mixin.rb → basic_authentication.rb} +3 -3
- data/lib/merb/mixins/{controller_mixin.rb → controller.rb} +131 -112
- data/lib/merb/mixins/{erubis_capture_mixin.rb → erubis_capture.rb} +12 -21
- data/lib/merb/mixins/{form_control_mixin.rb → form_control.rb} +6 -12
- data/lib/merb/mixins/render.rb +401 -0
- data/lib/merb/mixins/responder.rb +378 -0
- data/lib/merb/mixins/{view_context_mixin.rb → view_context.rb} +65 -10
- data/lib/merb/mixins/web_controller.rb +29 -0
- data/lib/merb/{merb_handler.rb → mongrel_handler.rb} +59 -38
- data/lib/merb/part_controller.rb +19 -0
- data/lib/merb/plugins.rb +16 -0
- data/lib/merb/rack_adapter.rb +37 -0
- data/lib/merb/request.rb +421 -0
- data/lib/merb/router.rb +576 -0
- data/lib/merb/{merb_server.rb → server.rb} +275 -71
- data/lib/merb/session.rb +10 -10
- data/lib/merb/session/cookie_store.rb +125 -0
- data/lib/merb/session/{merb_mem_cache_session.rb → mem_cache_session.rb} +22 -9
- data/lib/merb/session/{merb_memory_session.rb → memory_session.rb} +15 -11
- data/lib/merb/template.rb +35 -8
- data/lib/merb/template/erubis.rb +16 -10
- data/lib/merb/template/haml.rb +33 -20
- data/lib/merb/template/markaby.rb +16 -14
- data/lib/merb/template/xml_builder.rb +8 -4
- data/lib/merb/test/{merb_fake_request.rb → fake_request.rb} +11 -5
- data/lib/merb/test/helper.rb +31 -0
- data/lib/merb/test/hpricot.rb +136 -0
- data/lib/merb/test/{merb_multipart.rb → multipart.rb} +1 -1
- data/lib/merb/test/rspec.rb +93 -0
- data/lib/merb/{merb_upload_handler.rb → upload_handler.rb} +5 -6
- data/lib/merb/{merb_upload_progress.rb → upload_progress.rb} +1 -1
- data/lib/merb/{merb_view_context.rb → view_context.rb} +27 -42
- data/lib/{merb_tasks.rb → tasks.rb} +0 -0
- data/lib/tasks/merb.rake +21 -11
- data/merb_default_generators/model/USAGE +0 -0
- data/merb_default_generators/model/model_generator.rb +16 -0
- data/merb_default_generators/model/templates/new_model_template.erb +5 -0
- data/merb_default_generators/resource_controller/USAGE +0 -0
- data/merb_default_generators/resource_controller/resource_controller_generator.rb +26 -0
- data/merb_default_generators/resource_controller/templates/controller.rb +30 -0
- data/merb_default_generators/resource_controller/templates/edit.html.erb +1 -0
- data/merb_default_generators/resource_controller/templates/helper.rb +5 -0
- data/merb_default_generators/resource_controller/templates/index.html.erb +1 -0
- data/merb_default_generators/resource_controller/templates/new.html.erb +1 -0
- data/merb_default_generators/resource_controller/templates/show.html.erb +1 -0
- data/merb_generators/controller/USAGE +5 -0
- data/merb_generators/controller/controller_generator.rb +16 -0
- data/merb_generators/controller/templates/controller.rb +8 -0
- data/merb_generators/controller/templates/helper.rb +5 -0
- data/merb_generators/controller/templates/index.html.erb +3 -0
- data/merb_generators/resource/USAGE +0 -0
- data/merb_generators/resource/resource_generator.rb +60 -0
- data/rspec_generators/merb_controller_test/merb_controller_test_generator.rb +67 -0
- data/rspec_generators/merb_controller_test/templates/controller_spec.rb +8 -0
- data/rspec_generators/merb_controller_test/templates/edit_spec.rb +12 -0
- data/rspec_generators/merb_controller_test/templates/helper_spec.rb +5 -0
- data/rspec_generators/merb_controller_test/templates/index_spec.rb +12 -0
- data/rspec_generators/merb_controller_test/templates/new_spec.rb +12 -0
- data/rspec_generators/merb_controller_test/templates/show_spec.rb +5 -0
- data/rspec_generators/merb_model_test/merb_model_test_generator.rb +26 -0
- data/rspec_generators/merb_model_test/templates/model_spec_template.erb +7 -0
- data/script/destroy +14 -0
- data/script/generate +14 -0
- data/test_unit_generators/merb_controller_test/merb_controller_test_generator.rb +53 -0
- data/test_unit_generators/merb_controller_test/templates/functional_test.rb +17 -0
- data/test_unit_generators/merb_controller_test/templates/helper_test.rb +9 -0
- data/test_unit_generators/merb_model_test/merb_model_test_generator.rb +29 -0
- data/test_unit_generators/merb_model_test/templates/model_test_unit_template.erb +9 -0
- metadata +172 -94
- data/examples/README_EXAMPLES +0 -10
- data/examples/skeleton/Rakefile +0 -68
- data/examples/skeleton/dist/app/views/layout/application.herb +0 -12
- data/examples/skeleton/dist/conf/database.yml +0 -23
- data/examples/skeleton/dist/conf/merb.yml +0 -57
- data/examples/skeleton/dist/conf/merb_init.rb +0 -24
- data/examples/skeleton/dist/conf/router.rb +0 -22
- data/examples/skeleton/dist/conf/upload.conf +0 -5
- data/examples/skeleton/dist/schema/migrations/001_add_sessions_table.rb +0 -14
- data/examples/skeleton/script/new_migration +0 -21
- data/lib/merb/core_ext/merb_string.rb +0 -18
- data/lib/merb/merb_controller.rb +0 -206
- data/lib/merb/merb_dispatcher.rb +0 -87
- data/lib/merb/merb_exceptions.rb +0 -319
- data/lib/merb/merb_part_controller.rb +0 -42
- data/lib/merb/merb_plugins.rb +0 -293
- data/lib/merb/merb_request.rb +0 -165
- data/lib/merb/merb_router.rb +0 -309
- data/lib/merb/merb_yaml_store.rb +0 -31
- data/lib/merb/mixins/render_mixin.rb +0 -283
- data/lib/merb/mixins/responder_mixin.rb +0 -159
- data/lib/merb/session/merb_ar_session.rb +0 -131
- data/lib/merb/vendor/paginator/README.txt +0 -84
- data/lib/merb/vendor/paginator/paginator.rb +0 -124
- data/lib/tasks/db.rake +0 -55
@@ -0,0 +1,12 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__),'..','..','spec_helper')
|
2
|
+
|
3
|
+
describe "/<%= file_name %>/edit" do
|
4
|
+
before(:each) do
|
5
|
+
@controller,@action = get("/<%= file_name %>/edit")
|
6
|
+
@body = @controller.body
|
7
|
+
end
|
8
|
+
|
9
|
+
it "should mention <%= class_name %>" do
|
10
|
+
@body.should match(/<%= class_name %>/)
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__),'..','..','spec_helper')
|
2
|
+
|
3
|
+
describe "/<%= file_name %>" do
|
4
|
+
before(:each) do
|
5
|
+
@controller,@action = get("/<%= file_name %>")
|
6
|
+
@body = @controller.body
|
7
|
+
end
|
8
|
+
|
9
|
+
it "should mention <%= class_name %>" do
|
10
|
+
@body.should match(/<%= class_name %>/)
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__),'..','..','spec_helper')
|
2
|
+
|
3
|
+
describe "/<%= file_name %>/new" do
|
4
|
+
before(:each) do
|
5
|
+
@controller,@action = get("/<%= file_name %>/new")
|
6
|
+
@body = @controller.body
|
7
|
+
end
|
8
|
+
|
9
|
+
it "should mention <%= class_name %>" do
|
10
|
+
@body.should match(/<%= class_name %>/)
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'merb/generators/merb_generator_helpers'
|
2
|
+
class MerbModelTestGenerator < Merb::GeneratorHelpers::MerbModelTestGenerator
|
3
|
+
|
4
|
+
def initialize( *args )
|
5
|
+
super( *args )
|
6
|
+
@model_test_template_name = "model_spec_template.erb"
|
7
|
+
@model_test_path_name = File.join("spec", "models")
|
8
|
+
@model_test_file_suffix = "spec"
|
9
|
+
end
|
10
|
+
|
11
|
+
def banner
|
12
|
+
<<-EOS
|
13
|
+
Creates a model spec stub for use in Merb
|
14
|
+
|
15
|
+
USAGE: #{$0} #{spec.name} NameOfModel
|
16
|
+
Example:
|
17
|
+
#{$0} #{spec.name} project
|
18
|
+
|
19
|
+
|
20
|
+
EOS
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.superclass
|
24
|
+
RubiGen::Base
|
25
|
+
end
|
26
|
+
end
|
data/script/destroy
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
APP_ROOT = File.join(File.dirname(__FILE__), '..')
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'rubigen'
|
6
|
+
rescue LoadError
|
7
|
+
require 'rubygems'
|
8
|
+
require 'rubigen'
|
9
|
+
end
|
10
|
+
require 'rubigen/scripts/destroy'
|
11
|
+
|
12
|
+
ARGV.shift if ['--help', '-h'].include?(ARGV[0])
|
13
|
+
RubiGen::Base.use_component_sources! :rubygems
|
14
|
+
RubiGen::Scripts::Destroy.new.run(ARGV)
|
data/script/generate
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
APP_ROOT = File.join(File.dirname(__FILE__), '..')
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'rubigen'
|
6
|
+
rescue LoadError
|
7
|
+
require 'rubygems'
|
8
|
+
require 'rubigen'
|
9
|
+
end
|
10
|
+
require 'rubigen/scripts/generate'
|
11
|
+
|
12
|
+
ARGV.shift if ['--help', '-h'].include?(ARGV[0])
|
13
|
+
RubiGen::Base.use_component_sources! :rubygems
|
14
|
+
RubiGen::Scripts::Generate.new.run(ARGV)
|
@@ -0,0 +1,53 @@
|
|
1
|
+
require 'merb'
|
2
|
+
class MerbControllerTestGenerator < RubiGen::Base
|
3
|
+
|
4
|
+
default_options :author => nil
|
5
|
+
|
6
|
+
attr_reader :name, :class_name, :file_name
|
7
|
+
|
8
|
+
def initialize(runtime_args, runtime_options = {})
|
9
|
+
super
|
10
|
+
usage if args.empty?
|
11
|
+
@name = args.shift
|
12
|
+
@class_name = @name.camel_case
|
13
|
+
@file_name = @name.snake_case
|
14
|
+
extract_options
|
15
|
+
end
|
16
|
+
|
17
|
+
def manifest
|
18
|
+
record do |m|
|
19
|
+
m.directory 'test/functional'
|
20
|
+
m.template "functional_test.rb", "test/functional/#{file_name}_test.rb"
|
21
|
+
|
22
|
+
m.directory 'test/helpers'
|
23
|
+
m.template "helper_test.rb", "test/helpers/#{file_name}_helper_test.rb"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
protected
|
28
|
+
def banner
|
29
|
+
<<-EOS
|
30
|
+
Creates a test unit stub for a resource controller
|
31
|
+
|
32
|
+
USAGE: #{$0} #{spec.name} name"
|
33
|
+
EOS
|
34
|
+
end
|
35
|
+
|
36
|
+
def add_options!(opts)
|
37
|
+
# opts.separator ''
|
38
|
+
# opts.separator 'Options:'
|
39
|
+
# For each option below, place the default
|
40
|
+
# at the top of the file next to "default_options"
|
41
|
+
# opts.on("-a", "--author=\"Your Name\"", String,
|
42
|
+
# "Some comment about this option",
|
43
|
+
# "Default: none") { |options[:author]| }
|
44
|
+
# opts.on("-v", "--version", "Show the #{File.basename($0)} version number and quit.")
|
45
|
+
end
|
46
|
+
|
47
|
+
def extract_options
|
48
|
+
# for each option, extract it into a local variable (and create an "attr_reader :author" at the top)
|
49
|
+
# Templates can access these value via the attr_reader-generated methods, but not the
|
50
|
+
# raw instance variable value.
|
51
|
+
# @author = options[:author]
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../test_helper'
|
2
|
+
|
3
|
+
# Re-raise errors caught by the controller.
|
4
|
+
class <%= class_name.pluralize %>; def rescue_action(e) raise e end; end
|
5
|
+
|
6
|
+
class <%= class_name.pluralize %>Test < Test::Unit::TestCase
|
7
|
+
|
8
|
+
def setup
|
9
|
+
@controller = <%= class_name.pluralize %>.build(fake_request)
|
10
|
+
@controller.dispatch('index')
|
11
|
+
end
|
12
|
+
|
13
|
+
# Replace this with your real tests.
|
14
|
+
def test_should_be_setup
|
15
|
+
assert false
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'merb/generators/merb_generator_helpers'
|
2
|
+
class MerbModelTestGenerator < Merb::GeneratorHelpers::MerbModelTestGenerator
|
3
|
+
|
4
|
+
def initialize( *args )
|
5
|
+
super( *args )
|
6
|
+
@model_test_template_name = "model_test_unit_template.erb"
|
7
|
+
@model_test_path_name = File.join( "test", "unit" )
|
8
|
+
@model_test_file_suffix = "test"
|
9
|
+
end
|
10
|
+
|
11
|
+
def banner
|
12
|
+
<<-EOS
|
13
|
+
Creates a model Test::Unit stub for use in Merb
|
14
|
+
|
15
|
+
USAGE: #{$0} #{spec.name} NameOfModel
|
16
|
+
Example:
|
17
|
+
#{$0} #{spec.name} project
|
18
|
+
|
19
|
+
|
20
|
+
EOS
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.superclass
|
24
|
+
RubiGen::Base
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
class MerbTesterThing
|
29
|
+
end
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.
|
2
|
+
rubygems_version: 0.9.4
|
3
3
|
specification_version: 1
|
4
4
|
name: merb
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.
|
7
|
-
date: 2007-
|
6
|
+
version: 0.4.0
|
7
|
+
date: 2007-11-06 00:00:00 -08:00
|
8
8
|
summary: Merb == Mongrel + Erb. Pocket rocket web framework.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -34,7 +34,11 @@ files:
|
|
34
34
|
- Rakefile
|
35
35
|
- TODO
|
36
36
|
- bin/merb
|
37
|
+
- lib/autotest
|
38
|
+
- lib/autotest/discover.rb
|
39
|
+
- lib/autotest/merb_rspec.rb
|
37
40
|
- lib/merb
|
41
|
+
- lib/merb/abstract_controller.rb
|
38
42
|
- lib/merb/caching
|
39
43
|
- lib/merb/caching/action_cache.rb
|
40
44
|
- lib/merb/caching/fragment_cache.rb
|
@@ -43,53 +47,56 @@ files:
|
|
43
47
|
- lib/merb/caching/store/memcache.rb
|
44
48
|
- lib/merb/caching/store/memory_cache.rb
|
45
49
|
- lib/merb/caching.rb
|
50
|
+
- lib/merb/constants.rb
|
51
|
+
- lib/merb/controller.rb
|
46
52
|
- lib/merb/core_ext
|
47
|
-
- lib/merb/core_ext/
|
48
|
-
- lib/merb/core_ext/
|
49
|
-
- lib/merb/core_ext/
|
50
|
-
- lib/merb/core_ext/
|
51
|
-
- lib/merb/core_ext/
|
52
|
-
- lib/merb/core_ext/
|
53
|
-
- lib/merb/core_ext/
|
54
|
-
- lib/merb/core_ext/
|
55
|
-
- lib/merb/core_ext/
|
56
|
-
- lib/merb/core_ext/
|
57
|
-
- lib/merb/core_ext/
|
58
|
-
- lib/merb/core_ext/
|
53
|
+
- lib/merb/core_ext/array.rb
|
54
|
+
- lib/merb/core_ext/class.rb
|
55
|
+
- lib/merb/core_ext/enumerable.rb
|
56
|
+
- lib/merb/core_ext/get_args.rb
|
57
|
+
- lib/merb/core_ext/hash.rb
|
58
|
+
- lib/merb/core_ext/inflections.rb
|
59
|
+
- lib/merb/core_ext/inflector.rb
|
60
|
+
- lib/merb/core_ext/kernel.rb
|
61
|
+
- lib/merb/core_ext/mash.rb
|
62
|
+
- lib/merb/core_ext/module.rb
|
63
|
+
- lib/merb/core_ext/numeric.rb
|
64
|
+
- lib/merb/core_ext/object.rb
|
65
|
+
- lib/merb/core_ext/string.rb
|
66
|
+
- lib/merb/core_ext/symbol.rb
|
59
67
|
- lib/merb/core_ext.rb
|
68
|
+
- lib/merb/dispatcher.rb
|
69
|
+
- lib/merb/drb_server.rb
|
70
|
+
- lib/merb/erubis_ext.rb
|
71
|
+
- lib/merb/exceptions.rb
|
60
72
|
- lib/merb/generators
|
61
73
|
- lib/merb/generators/merb_app
|
62
74
|
- lib/merb/generators/merb_app/merb_app.rb
|
63
|
-
- lib/merb/
|
64
|
-
- lib/merb/
|
65
|
-
- lib/merb/
|
66
|
-
- lib/merb/
|
67
|
-
- lib/merb/
|
68
|
-
- lib/merb/merb_exceptions.rb
|
69
|
-
- lib/merb/merb_handler.rb
|
70
|
-
- lib/merb/merb_mail_controller.rb
|
71
|
-
- lib/merb/merb_mailer.rb
|
72
|
-
- lib/merb/merb_part_controller.rb
|
73
|
-
- lib/merb/merb_plugins.rb
|
74
|
-
- lib/merb/merb_request.rb
|
75
|
-
- lib/merb/merb_router.rb
|
76
|
-
- lib/merb/merb_server.rb
|
77
|
-
- lib/merb/merb_upload_handler.rb
|
78
|
-
- lib/merb/merb_upload_progress.rb
|
79
|
-
- lib/merb/merb_view_context.rb
|
80
|
-
- lib/merb/merb_yaml_store.rb
|
75
|
+
- lib/merb/generators/merb_generator_helpers.rb
|
76
|
+
- lib/merb/generators/merb_plugin.rb
|
77
|
+
- lib/merb/logger.rb
|
78
|
+
- lib/merb/mail_controller.rb
|
79
|
+
- lib/merb/mailer.rb
|
81
80
|
- lib/merb/mixins
|
82
|
-
- lib/merb/mixins/
|
83
|
-
- lib/merb/mixins/
|
84
|
-
- lib/merb/mixins/
|
85
|
-
- lib/merb/mixins/
|
86
|
-
- lib/merb/mixins/
|
87
|
-
- lib/merb/mixins/
|
88
|
-
- lib/merb/mixins/
|
81
|
+
- lib/merb/mixins/basic_authentication.rb
|
82
|
+
- lib/merb/mixins/controller.rb
|
83
|
+
- lib/merb/mixins/erubis_capture.rb
|
84
|
+
- lib/merb/mixins/form_control.rb
|
85
|
+
- lib/merb/mixins/render.rb
|
86
|
+
- lib/merb/mixins/responder.rb
|
87
|
+
- lib/merb/mixins/view_context.rb
|
88
|
+
- lib/merb/mixins/web_controller.rb
|
89
|
+
- lib/merb/mongrel_handler.rb
|
90
|
+
- lib/merb/part_controller.rb
|
91
|
+
- lib/merb/plugins.rb
|
92
|
+
- lib/merb/rack_adapter.rb
|
93
|
+
- lib/merb/request.rb
|
94
|
+
- lib/merb/router.rb
|
95
|
+
- lib/merb/server.rb
|
89
96
|
- lib/merb/session
|
90
|
-
- lib/merb/session/
|
91
|
-
- lib/merb/session/
|
92
|
-
- lib/merb/session/
|
97
|
+
- lib/merb/session/cookie_store.rb
|
98
|
+
- lib/merb/session/mem_cache_session.rb
|
99
|
+
- lib/merb/session/memory_session.rb
|
93
100
|
- lib/merb/session.rb
|
94
101
|
- lib/merb/template
|
95
102
|
- lib/merb/template/erubis.rb
|
@@ -98,58 +105,129 @@ files:
|
|
98
105
|
- lib/merb/template/xml_builder.rb
|
99
106
|
- lib/merb/template.rb
|
100
107
|
- lib/merb/test
|
101
|
-
- lib/merb/test/
|
102
|
-
- lib/merb/test/
|
103
|
-
- lib/merb/
|
104
|
-
- lib/merb/
|
105
|
-
- lib/merb/
|
106
|
-
- lib/merb/
|
108
|
+
- lib/merb/test/fake_request.rb
|
109
|
+
- lib/merb/test/helper.rb
|
110
|
+
- lib/merb/test/hpricot.rb
|
111
|
+
- lib/merb/test/multipart.rb
|
112
|
+
- lib/merb/test/rspec.rb
|
113
|
+
- lib/merb/upload_handler.rb
|
114
|
+
- lib/merb/upload_progress.rb
|
115
|
+
- lib/merb/view_context.rb
|
107
116
|
- lib/merb.rb
|
108
|
-
- lib/merb_tasks.rb
|
109
117
|
- lib/tasks
|
110
|
-
- lib/tasks/db.rake
|
111
118
|
- lib/tasks/merb.rake
|
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
|
-
-
|
119
|
+
- lib/tasks.rb
|
120
|
+
- app_generators/merb
|
121
|
+
- app_generators/merb/merb_generator.rb
|
122
|
+
- app_generators/merb/templates
|
123
|
+
- app_generators/merb/templates/app
|
124
|
+
- app_generators/merb/templates/app/controllers
|
125
|
+
- app_generators/merb/templates/app/controllers/application.rb
|
126
|
+
- app_generators/merb/templates/app/controllers/exceptions.rb
|
127
|
+
- app_generators/merb/templates/app/helpers
|
128
|
+
- app_generators/merb/templates/app/helpers/global_helper.rb
|
129
|
+
- app_generators/merb/templates/app/mailers
|
130
|
+
- app_generators/merb/templates/app/mailers/views
|
131
|
+
- app_generators/merb/templates/app/mailers/views/layout
|
132
|
+
- app_generators/merb/templates/app/mailers/views/layout/application.erb
|
133
|
+
- app_generators/merb/templates/app/views
|
134
|
+
- app_generators/merb/templates/app/views/exceptions
|
135
|
+
- app_generators/merb/templates/app/views/exceptions/internal_server_error.html.erb
|
136
|
+
- app_generators/merb/templates/app/views/exceptions/not_acceptable.html.erb
|
137
|
+
- app_generators/merb/templates/app/views/exceptions/not_found.html.erb
|
138
|
+
- app_generators/merb/templates/app/views/layout
|
139
|
+
- app_generators/merb/templates/app/views/layout/application.html.erb
|
140
|
+
- app_generators/merb/templates/config
|
141
|
+
- app_generators/merb/templates/config/boot.rb
|
142
|
+
- app_generators/merb/templates/config/dependencies.rb
|
143
|
+
- app_generators/merb/templates/config/environments
|
144
|
+
- app_generators/merb/templates/config/environments/development.rb
|
145
|
+
- app_generators/merb/templates/config/environments/production.rb
|
146
|
+
- app_generators/merb/templates/config/environments/test.rb
|
147
|
+
- app_generators/merb/templates/config/merb.yml
|
148
|
+
- app_generators/merb/templates/config/merb_init.rb
|
149
|
+
- app_generators/merb/templates/config/plugins.yml
|
150
|
+
- app_generators/merb/templates/config/router.rb
|
151
|
+
- app_generators/merb/templates/config/upload.conf
|
152
|
+
- app_generators/merb/templates/public
|
153
|
+
- app_generators/merb/templates/public/images
|
154
|
+
- app_generators/merb/templates/public/images/merb.jpg
|
155
|
+
- app_generators/merb/templates/public/merb.fcgi
|
156
|
+
- app_generators/merb/templates/public/stylesheets
|
157
|
+
- app_generators/merb/templates/public/stylesheets/master.css
|
158
|
+
- app_generators/merb/templates/Rakefile
|
159
|
+
- app_generators/merb/templates/script
|
160
|
+
- app_generators/merb/templates/script/destroy
|
161
|
+
- app_generators/merb/templates/script/generate
|
162
|
+
- app_generators/merb/templates/script/stop_merb
|
163
|
+
- app_generators/merb/templates/script/win_script.cmd
|
164
|
+
- app_generators/merb/templates/spec
|
165
|
+
- app_generators/merb/templates/spec/spec.opts
|
166
|
+
- app_generators/merb/templates/spec/spec_helper.rb
|
167
|
+
- app_generators/merb/templates/test
|
168
|
+
- app_generators/merb/templates/test/test_helper.rb
|
169
|
+
- app_generators/merb/USAGE
|
170
|
+
- app_generators/merb_plugin
|
171
|
+
- app_generators/merb_plugin/merb_plugin_generator.rb
|
172
|
+
- app_generators/merb_plugin/templates
|
173
|
+
- app_generators/merb_plugin/templates/LICENSE
|
174
|
+
- app_generators/merb_plugin/templates/merbtasks.rb
|
175
|
+
- app_generators/merb_plugin/templates/Rakefile
|
176
|
+
- app_generators/merb_plugin/templates/README
|
177
|
+
- app_generators/merb_plugin/templates/sampleplugin.rb
|
178
|
+
- app_generators/merb_plugin/templates/sampleplugin_spec.rb
|
179
|
+
- app_generators/merb_plugin/templates/spec_helper.rb
|
180
|
+
- app_generators/merb_plugin/templates/TODO
|
181
|
+
- app_generators/merb_plugin/USAGE
|
182
|
+
- merb_generators/controller
|
183
|
+
- merb_generators/controller/controller_generator.rb
|
184
|
+
- merb_generators/controller/templates
|
185
|
+
- merb_generators/controller/templates/controller.rb
|
186
|
+
- merb_generators/controller/templates/helper.rb
|
187
|
+
- merb_generators/controller/templates/index.html.erb
|
188
|
+
- merb_generators/controller/USAGE
|
189
|
+
- merb_generators/resource
|
190
|
+
- merb_generators/resource/resource_generator.rb
|
191
|
+
- merb_generators/resource/USAGE
|
192
|
+
- merb_default_generators/model
|
193
|
+
- merb_default_generators/model/model_generator.rb
|
194
|
+
- merb_default_generators/model/templates
|
195
|
+
- merb_default_generators/model/templates/new_model_template.erb
|
196
|
+
- merb_default_generators/model/USAGE
|
197
|
+
- merb_default_generators/resource_controller
|
198
|
+
- merb_default_generators/resource_controller/resource_controller_generator.rb
|
199
|
+
- merb_default_generators/resource_controller/templates
|
200
|
+
- merb_default_generators/resource_controller/templates/controller.rb
|
201
|
+
- merb_default_generators/resource_controller/templates/edit.html.erb
|
202
|
+
- merb_default_generators/resource_controller/templates/helper.rb
|
203
|
+
- merb_default_generators/resource_controller/templates/index.html.erb
|
204
|
+
- merb_default_generators/resource_controller/templates/new.html.erb
|
205
|
+
- merb_default_generators/resource_controller/templates/show.html.erb
|
206
|
+
- merb_default_generators/resource_controller/USAGE
|
207
|
+
- rspec_generators/merb_controller_test
|
208
|
+
- rspec_generators/merb_controller_test/merb_controller_test_generator.rb
|
209
|
+
- rspec_generators/merb_controller_test/templates
|
210
|
+
- rspec_generators/merb_controller_test/templates/controller_spec.rb
|
211
|
+
- rspec_generators/merb_controller_test/templates/edit_spec.rb
|
212
|
+
- rspec_generators/merb_controller_test/templates/helper_spec.rb
|
213
|
+
- rspec_generators/merb_controller_test/templates/index_spec.rb
|
214
|
+
- rspec_generators/merb_controller_test/templates/new_spec.rb
|
215
|
+
- rspec_generators/merb_controller_test/templates/show_spec.rb
|
216
|
+
- rspec_generators/merb_model_test
|
217
|
+
- rspec_generators/merb_model_test/merb_model_test_generator.rb
|
218
|
+
- rspec_generators/merb_model_test/templates
|
219
|
+
- rspec_generators/merb_model_test/templates/model_spec_template.erb
|
220
|
+
- test_unit_generators/merb_controller_test
|
221
|
+
- test_unit_generators/merb_controller_test/merb_controller_test_generator.rb
|
222
|
+
- test_unit_generators/merb_controller_test/templates
|
223
|
+
- test_unit_generators/merb_controller_test/templates/functional_test.rb
|
224
|
+
- test_unit_generators/merb_controller_test/templates/helper_test.rb
|
225
|
+
- test_unit_generators/merb_model_test
|
226
|
+
- test_unit_generators/merb_model_test/merb_model_test_generator.rb
|
227
|
+
- test_unit_generators/merb_model_test/templates
|
228
|
+
- test_unit_generators/merb_model_test/templates/model_test_unit_template.erb
|
229
|
+
- script/destroy
|
230
|
+
- script/generate
|
153
231
|
test_files: []
|
154
232
|
|
155
233
|
rdoc_options: []
|
@@ -184,7 +262,7 @@ dependencies:
|
|
184
262
|
version: 0.0.0
|
185
263
|
version:
|
186
264
|
- !ruby/object:Gem::Dependency
|
187
|
-
name:
|
265
|
+
name: mime-types
|
188
266
|
version_requirement:
|
189
267
|
version_requirements: !ruby/object:Gem::Version::Requirement
|
190
268
|
requirements:
|
@@ -193,7 +271,7 @@ dependencies:
|
|
193
271
|
version: 0.0.0
|
194
272
|
version:
|
195
273
|
- !ruby/object:Gem::Dependency
|
196
|
-
name:
|
274
|
+
name: rubigen
|
197
275
|
version_requirement:
|
198
276
|
version_requirements: !ruby/object:Gem::Version::Requirement
|
199
277
|
requirements:
|