merb 0.3.7 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (173) hide show
  1. data/README +25 -26
  2. data/Rakefile +48 -36
  3. data/app_generators/merb/USAGE +5 -0
  4. data/app_generators/merb/merb_generator.rb +107 -0
  5. data/app_generators/merb/templates/Rakefile +99 -0
  6. data/{examples/skeleton/dist → app_generators/merb/templates}/app/controllers/application.rb +1 -1
  7. data/app_generators/merb/templates/app/controllers/exceptions.rb +13 -0
  8. data/{examples/skeleton/dist → app_generators/merb/templates}/app/helpers/global_helper.rb +0 -0
  9. data/{examples/skeleton/dist/app/mailers → app_generators/merb/templates/app/mailers/views}/layout/application.erb +0 -0
  10. data/app_generators/merb/templates/app/views/exceptions/internal_server_error.html.erb +207 -0
  11. data/app_generators/merb/templates/app/views/exceptions/not_acceptable.html.erb +38 -0
  12. data/app_generators/merb/templates/app/views/exceptions/not_found.html.erb +40 -0
  13. data/app_generators/merb/templates/app/views/layout/application.html.erb +11 -0
  14. data/app_generators/merb/templates/config/boot.rb +11 -0
  15. data/app_generators/merb/templates/config/dependencies.rb +41 -0
  16. data/{examples/skeleton/dist/conf → app_generators/merb/templates/config}/environments/development.rb +0 -0
  17. data/{examples/skeleton/dist/conf → app_generators/merb/templates/config}/environments/production.rb +0 -0
  18. data/{examples/skeleton/dist/conf → app_generators/merb/templates/config}/environments/test.rb +0 -0
  19. data/app_generators/merb/templates/config/merb.yml +64 -0
  20. data/app_generators/merb/templates/config/merb_init.rb +16 -0
  21. data/app_generators/merb/templates/config/plugins.yml +1 -0
  22. data/app_generators/merb/templates/config/router.rb +32 -0
  23. data/{lib/merb/core_ext/merb_array.rb → app_generators/merb/templates/config/upload.conf} +0 -0
  24. data/app_generators/merb/templates/public/images/merb.jpg +0 -0
  25. data/app_generators/merb/templates/public/merb.fcgi +6 -0
  26. data/app_generators/merb/templates/public/stylesheets/master.css +119 -0
  27. data/app_generators/merb/templates/script/destroy +28 -0
  28. data/app_generators/merb/templates/script/generate +28 -0
  29. data/{examples/skeleton → app_generators/merb/templates}/script/stop_merb +0 -0
  30. data/app_generators/merb/templates/script/win_script.cmd +1 -0
  31. data/app_generators/merb/templates/spec/spec.opts +6 -0
  32. data/app_generators/merb/templates/spec/spec_helper.rb +10 -0
  33. data/app_generators/merb/templates/test/test_helper.rb +13 -0
  34. data/app_generators/merb_plugin/USAGE +5 -0
  35. data/app_generators/merb_plugin/merb_plugin_generator.rb +64 -0
  36. data/app_generators/merb_plugin/templates/LICENSE +20 -0
  37. data/app_generators/merb_plugin/templates/README +4 -0
  38. data/app_generators/merb_plugin/templates/Rakefile +35 -0
  39. data/app_generators/merb_plugin/templates/TODO +5 -0
  40. data/app_generators/merb_plugin/templates/merbtasks.rb +6 -0
  41. data/app_generators/merb_plugin/templates/sampleplugin.rb +10 -0
  42. data/app_generators/merb_plugin/templates/sampleplugin_spec.rb +7 -0
  43. data/app_generators/merb_plugin/templates/spec_helper.rb +2 -0
  44. data/bin/merb +1 -1
  45. data/lib/autotest/discover.rb +3 -0
  46. data/lib/autotest/merb_rspec.rb +79 -0
  47. data/lib/merb.rb +72 -93
  48. data/lib/merb/{merb_abstract_controller.rb → abstract_controller.rb} +28 -5
  49. data/lib/merb/caching/action_cache.rb +65 -29
  50. data/lib/merb/caching/fragment_cache.rb +9 -4
  51. data/lib/merb/caching/store/file_cache.rb +22 -14
  52. data/lib/merb/caching/store/memory_cache.rb +26 -8
  53. data/lib/merb/{merb_constants.rb → constants.rb} +9 -7
  54. data/lib/merb/controller.rb +178 -0
  55. data/lib/merb/core_ext.rb +13 -11
  56. data/lib/merb/core_ext/array.rb +0 -0
  57. data/lib/merb/core_ext/{merb_class.rb → class.rb} +0 -0
  58. data/lib/merb/core_ext/{merb_enumerable.rb → enumerable.rb} +0 -0
  59. data/lib/merb/core_ext/get_args.rb +52 -0
  60. data/lib/merb/core_ext/{merb_hash.rb → hash.rb} +40 -11
  61. data/lib/merb/core_ext/{merb_inflections.rb → inflections.rb} +0 -0
  62. data/lib/merb/core_ext/{merb_inflector.rb → inflector.rb} +1 -1
  63. data/lib/merb/core_ext/{merb_kernel.rb → kernel.rb} +56 -3
  64. data/lib/merb/core_ext/mash.rb +88 -0
  65. data/lib/merb/core_ext/{merb_module.rb → module.rb} +0 -0
  66. data/lib/merb/core_ext/{merb_numeric.rb → numeric.rb} +0 -0
  67. data/lib/merb/core_ext/{merb_object.rb → object.rb} +10 -47
  68. data/lib/merb/core_ext/string.rb +56 -0
  69. data/lib/merb/core_ext/{merb_symbol.rb → symbol.rb} +0 -0
  70. data/lib/merb/dispatcher.rb +109 -0
  71. data/lib/merb/{merb_drb_server.rb → drb_server.rb} +0 -0
  72. data/lib/merb/erubis_ext.rb +10 -0
  73. data/lib/merb/exceptions.rb +173 -0
  74. data/lib/merb/generators/merb_app/merb_app.rb +5 -25
  75. data/lib/merb/generators/merb_generator_helpers.rb +317 -0
  76. data/lib/merb/generators/merb_plugin.rb +19 -0
  77. data/lib/merb/logger.rb +65 -0
  78. data/lib/merb/{merb_mail_controller.rb → mail_controller.rb} +102 -49
  79. data/lib/merb/{merb_mailer.rb → mailer.rb} +31 -27
  80. data/lib/merb/mixins/{basic_authentication_mixin.rb → basic_authentication.rb} +3 -3
  81. data/lib/merb/mixins/{controller_mixin.rb → controller.rb} +131 -112
  82. data/lib/merb/mixins/{erubis_capture_mixin.rb → erubis_capture.rb} +12 -21
  83. data/lib/merb/mixins/{form_control_mixin.rb → form_control.rb} +6 -12
  84. data/lib/merb/mixins/render.rb +401 -0
  85. data/lib/merb/mixins/responder.rb +378 -0
  86. data/lib/merb/mixins/{view_context_mixin.rb → view_context.rb} +65 -10
  87. data/lib/merb/mixins/web_controller.rb +29 -0
  88. data/lib/merb/{merb_handler.rb → mongrel_handler.rb} +59 -38
  89. data/lib/merb/part_controller.rb +19 -0
  90. data/lib/merb/plugins.rb +16 -0
  91. data/lib/merb/rack_adapter.rb +37 -0
  92. data/lib/merb/request.rb +421 -0
  93. data/lib/merb/router.rb +576 -0
  94. data/lib/merb/{merb_server.rb → server.rb} +275 -71
  95. data/lib/merb/session.rb +10 -10
  96. data/lib/merb/session/cookie_store.rb +125 -0
  97. data/lib/merb/session/{merb_mem_cache_session.rb → mem_cache_session.rb} +22 -9
  98. data/lib/merb/session/{merb_memory_session.rb → memory_session.rb} +15 -11
  99. data/lib/merb/template.rb +35 -8
  100. data/lib/merb/template/erubis.rb +16 -10
  101. data/lib/merb/template/haml.rb +33 -20
  102. data/lib/merb/template/markaby.rb +16 -14
  103. data/lib/merb/template/xml_builder.rb +8 -4
  104. data/lib/merb/test/{merb_fake_request.rb → fake_request.rb} +11 -5
  105. data/lib/merb/test/helper.rb +31 -0
  106. data/lib/merb/test/hpricot.rb +136 -0
  107. data/lib/merb/test/{merb_multipart.rb → multipart.rb} +1 -1
  108. data/lib/merb/test/rspec.rb +93 -0
  109. data/lib/merb/{merb_upload_handler.rb → upload_handler.rb} +5 -6
  110. data/lib/merb/{merb_upload_progress.rb → upload_progress.rb} +1 -1
  111. data/lib/merb/{merb_view_context.rb → view_context.rb} +27 -42
  112. data/lib/{merb_tasks.rb → tasks.rb} +0 -0
  113. data/lib/tasks/merb.rake +21 -11
  114. data/merb_default_generators/model/USAGE +0 -0
  115. data/merb_default_generators/model/model_generator.rb +16 -0
  116. data/merb_default_generators/model/templates/new_model_template.erb +5 -0
  117. data/merb_default_generators/resource_controller/USAGE +0 -0
  118. data/merb_default_generators/resource_controller/resource_controller_generator.rb +26 -0
  119. data/merb_default_generators/resource_controller/templates/controller.rb +30 -0
  120. data/merb_default_generators/resource_controller/templates/edit.html.erb +1 -0
  121. data/merb_default_generators/resource_controller/templates/helper.rb +5 -0
  122. data/merb_default_generators/resource_controller/templates/index.html.erb +1 -0
  123. data/merb_default_generators/resource_controller/templates/new.html.erb +1 -0
  124. data/merb_default_generators/resource_controller/templates/show.html.erb +1 -0
  125. data/merb_generators/controller/USAGE +5 -0
  126. data/merb_generators/controller/controller_generator.rb +16 -0
  127. data/merb_generators/controller/templates/controller.rb +8 -0
  128. data/merb_generators/controller/templates/helper.rb +5 -0
  129. data/merb_generators/controller/templates/index.html.erb +3 -0
  130. data/merb_generators/resource/USAGE +0 -0
  131. data/merb_generators/resource/resource_generator.rb +60 -0
  132. data/rspec_generators/merb_controller_test/merb_controller_test_generator.rb +67 -0
  133. data/rspec_generators/merb_controller_test/templates/controller_spec.rb +8 -0
  134. data/rspec_generators/merb_controller_test/templates/edit_spec.rb +12 -0
  135. data/rspec_generators/merb_controller_test/templates/helper_spec.rb +5 -0
  136. data/rspec_generators/merb_controller_test/templates/index_spec.rb +12 -0
  137. data/rspec_generators/merb_controller_test/templates/new_spec.rb +12 -0
  138. data/rspec_generators/merb_controller_test/templates/show_spec.rb +5 -0
  139. data/rspec_generators/merb_model_test/merb_model_test_generator.rb +26 -0
  140. data/rspec_generators/merb_model_test/templates/model_spec_template.erb +7 -0
  141. data/script/destroy +14 -0
  142. data/script/generate +14 -0
  143. data/test_unit_generators/merb_controller_test/merb_controller_test_generator.rb +53 -0
  144. data/test_unit_generators/merb_controller_test/templates/functional_test.rb +17 -0
  145. data/test_unit_generators/merb_controller_test/templates/helper_test.rb +9 -0
  146. data/test_unit_generators/merb_model_test/merb_model_test_generator.rb +29 -0
  147. data/test_unit_generators/merb_model_test/templates/model_test_unit_template.erb +9 -0
  148. metadata +172 -94
  149. data/examples/README_EXAMPLES +0 -10
  150. data/examples/skeleton/Rakefile +0 -68
  151. data/examples/skeleton/dist/app/views/layout/application.herb +0 -12
  152. data/examples/skeleton/dist/conf/database.yml +0 -23
  153. data/examples/skeleton/dist/conf/merb.yml +0 -57
  154. data/examples/skeleton/dist/conf/merb_init.rb +0 -24
  155. data/examples/skeleton/dist/conf/router.rb +0 -22
  156. data/examples/skeleton/dist/conf/upload.conf +0 -5
  157. data/examples/skeleton/dist/schema/migrations/001_add_sessions_table.rb +0 -14
  158. data/examples/skeleton/script/new_migration +0 -21
  159. data/lib/merb/core_ext/merb_string.rb +0 -18
  160. data/lib/merb/merb_controller.rb +0 -206
  161. data/lib/merb/merb_dispatcher.rb +0 -87
  162. data/lib/merb/merb_exceptions.rb +0 -319
  163. data/lib/merb/merb_part_controller.rb +0 -42
  164. data/lib/merb/merb_plugins.rb +0 -293
  165. data/lib/merb/merb_request.rb +0 -165
  166. data/lib/merb/merb_router.rb +0 -309
  167. data/lib/merb/merb_yaml_store.rb +0 -31
  168. data/lib/merb/mixins/render_mixin.rb +0 -283
  169. data/lib/merb/mixins/responder_mixin.rb +0 -159
  170. data/lib/merb/session/merb_ar_session.rb +0 -131
  171. data/lib/merb/vendor/paginator/README.txt +0 -84
  172. data/lib/merb/vendor/paginator/paginator.rb +0 -124
  173. data/lib/tasks/db.rake +0 -55
@@ -0,0 +1,8 @@
1
+ require File.join(File.dirname(__FILE__), '..', 'spec_helper.rb')
2
+
3
+ describe "<%= class_name.pluralize %> Controller", "index action" do
4
+ before(:each) do
5
+ @controller = <%= class_name.pluralize %>.build(fake_request)
6
+ @controller.dispatch('index')
7
+ end
8
+ end
@@ -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,5 @@
1
+ require File.join(File.dirname(__FILE__), '..', 'spec_helper.rb')
2
+
3
+ describe Merb::<%= class_name %>Helper do
4
+
5
+ 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,5 @@
1
+ require File.join(File.dirname(__FILE__),'..','..','spec_helper')
2
+
3
+ describe "/<%= file_name %>/1" do
4
+ it "should spec the show view"
5
+ 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
@@ -0,0 +1,7 @@
1
+ require File.join( File.dirname(__FILE__), "..", "spec_helper" )
2
+
3
+ describe <%= class_name %> do
4
+
5
+ it "should have specs"
6
+
7
+ end
@@ -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)
@@ -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,9 @@
1
+ require File.dirname(__FILE__) + '/../test_helper'
2
+
3
+ class <%= class_name.pluralize %>HelperTest < Test::Unit::TestCase
4
+
5
+ def test_should_be_setup
6
+ assert false
7
+ end
8
+
9
+ 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
@@ -0,0 +1,9 @@
1
+ require File.join(File.dirname(__FILE__), '..', 'test_helper' )
2
+
3
+ class <%= "#{class_name}Test" %> < Test::Unit::TestCase
4
+
5
+ def test_should_be_tested
6
+ assert false
7
+ end
8
+
9
+ end
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.2
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.3.7
7
- date: 2007-08-04 00:00:00 -07:00
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/merb_array.rb
48
- - lib/merb/core_ext/merb_class.rb
49
- - lib/merb/core_ext/merb_enumerable.rb
50
- - lib/merb/core_ext/merb_hash.rb
51
- - lib/merb/core_ext/merb_inflections.rb
52
- - lib/merb/core_ext/merb_inflector.rb
53
- - lib/merb/core_ext/merb_kernel.rb
54
- - lib/merb/core_ext/merb_module.rb
55
- - lib/merb/core_ext/merb_numeric.rb
56
- - lib/merb/core_ext/merb_object.rb
57
- - lib/merb/core_ext/merb_string.rb
58
- - lib/merb/core_ext/merb_symbol.rb
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/merb_abstract_controller.rb
64
- - lib/merb/merb_constants.rb
65
- - lib/merb/merb_controller.rb
66
- - lib/merb/merb_dispatcher.rb
67
- - lib/merb/merb_drb_server.rb
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/basic_authentication_mixin.rb
83
- - lib/merb/mixins/controller_mixin.rb
84
- - lib/merb/mixins/erubis_capture_mixin.rb
85
- - lib/merb/mixins/form_control_mixin.rb
86
- - lib/merb/mixins/render_mixin.rb
87
- - lib/merb/mixins/responder_mixin.rb
88
- - lib/merb/mixins/view_context_mixin.rb
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/merb_ar_session.rb
91
- - lib/merb/session/merb_mem_cache_session.rb
92
- - lib/merb/session/merb_memory_session.rb
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/merb_fake_request.rb
102
- - lib/merb/test/merb_multipart.rb
103
- - lib/merb/vendor
104
- - lib/merb/vendor/paginator
105
- - lib/merb/vendor/paginator/paginator.rb
106
- - lib/merb/vendor/paginator/README.txt
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
- - examples/README_EXAMPLES
113
- - examples/skeleton
114
- - examples/skeleton/dist
115
- - examples/skeleton/dist/app
116
- - examples/skeleton/dist/app/controllers
117
- - examples/skeleton/dist/app/controllers/application.rb
118
- - examples/skeleton/dist/app/helpers
119
- - examples/skeleton/dist/app/helpers/global_helper.rb
120
- - examples/skeleton/dist/app/mailers
121
- - examples/skeleton/dist/app/mailers/helpers
122
- - examples/skeleton/dist/app/mailers/layout
123
- - examples/skeleton/dist/app/mailers/layout/application.erb
124
- - examples/skeleton/dist/app/mailers/views
125
- - examples/skeleton/dist/app/models
126
- - examples/skeleton/dist/app/views
127
- - examples/skeleton/dist/app/views/layout
128
- - examples/skeleton/dist/app/views/layout/application.herb
129
- - examples/skeleton/dist/conf
130
- - examples/skeleton/dist/conf/database.yml
131
- - examples/skeleton/dist/conf/environments
132
- - examples/skeleton/dist/conf/environments/development.rb
133
- - examples/skeleton/dist/conf/environments/production.rb
134
- - examples/skeleton/dist/conf/environments/test.rb
135
- - examples/skeleton/dist/conf/merb.yml
136
- - examples/skeleton/dist/conf/merb_init.rb
137
- - examples/skeleton/dist/conf/router.rb
138
- - examples/skeleton/dist/conf/upload.conf
139
- - examples/skeleton/dist/plugins
140
- - examples/skeleton/dist/public
141
- - examples/skeleton/dist/public/images
142
- - examples/skeleton/dist/public/javascripts
143
- - examples/skeleton/dist/public/stylesheets
144
- - examples/skeleton/dist/schema
145
- - examples/skeleton/dist/schema/migrations
146
- - examples/skeleton/dist/schema/migrations/001_add_sessions_table.rb
147
- - examples/skeleton/plugins
148
- - examples/skeleton/Rakefile
149
- - examples/skeleton/script
150
- - examples/skeleton/script/new_migration
151
- - examples/skeleton/script/stop_merb
152
- - examples/skeleton/test
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: json
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: mime-types
274
+ name: rubigen
197
275
  version_requirement:
198
276
  version_requirements: !ruby/object:Gem::Version::Requirement
199
277
  requirements: