Permalink
Browse files

deleting final svn methods

  • Loading branch information...
vanntastic committed Oct 24, 2008
1 parent e8fcb4c commit b5e4da7269801960e95c60b3aa6e3b95d4f3dd77
Showing with 0 additions and 1,422 deletions.
  1. +0 −55 lib/generators/controller/.svn/entries
  2. +0 −1 lib/generators/controller/.svn/format
  3. +0 −29 lib/generators/controller/.svn/text-base/USAGE.svn-base
  4. +0 −37 lib/generators/controller/.svn/text-base/controller_generator.rb.svn-base
  5. +0 −76 lib/generators/controller/templates/.svn/entries
  6. +0 −1 lib/generators/controller/templates/.svn/format
  7. +0 −10 lib/generators/controller/templates/.svn/text-base/controller.rb.svn-base
  8. +0 −8 lib/generators/controller/templates/.svn/text-base/functional_test.rb.svn-base
  9. +0 −2 lib/generators/controller/templates/.svn/text-base/helper.rb.svn-base
  10. +0 −2 lib/generators/controller/templates/.svn/text-base/view.html.erb.svn-base
  11. +0 −55 lib/generators/model/.svn/entries
  12. +0 −1 lib/generators/model/.svn/format
  13. +0 −27 lib/generators/model/.svn/text-base/USAGE.svn-base
  14. +0 −45 lib/generators/model/.svn/text-base/model_generator.rb.svn-base
  15. +0 −76 lib/generators/model/templates/.svn/entries
  16. +0 −1 lib/generators/model/templates/.svn/format
  17. +0 −19 lib/generators/model/templates/.svn/text-base/fixtures.yml.svn-base
  18. +0 −16 lib/generators/model/templates/.svn/text-base/migration.rb.svn-base
  19. +0 −2 lib/generators/model/templates/.svn/text-base/model.rb.svn-base
  20. +0 −8 lib/generators/model/templates/.svn/text-base/unit_test.rb.svn-base
  21. +0 −43 lib/test/spec/.svn/entries
  22. +0 −1 lib/test/spec/.svn/format
  23. +0 −28 lib/test/spec/.svn/text-base/rails.rb.svn-base
  24. +0 −208 lib/test/spec/rails/.svn/entries
  25. +0 −1 lib/test/spec/rails/.svn/format
  26. +0 −21 lib/test/spec/rails/.svn/text-base/dummy_response.rb.svn-base
  27. +0 −33 lib/test/spec/rails/.svn/text-base/should_redirect.rb.svn-base
  28. +0 −22 lib/test/spec/rails/.svn/text-base/should_render.rb.svn-base
  29. +0 −34 lib/test/spec/rails/.svn/text-base/should_route.rb.svn-base
  30. +0 −52 lib/test/spec/rails/.svn/text-base/should_select.rb.svn-base
  31. +0 −16 lib/test/spec/rails/.svn/text-base/should_validate.rb.svn-base
  32. +0 −27 lib/test/spec/rails/.svn/text-base/should_validate_presence_of.rb.svn-base
  33. +0 −38 lib/test/spec/rails/.svn/text-base/test_dummy.rb.svn-base
  34. +0 −15 lib/test/spec/rails/.svn/text-base/test_layout.rb.svn-base
  35. +0 −40 lib/test/spec/rails/.svn/text-base/test_spec_ext.rb.svn-base
  36. +0 −15 lib/test/spec/rails/.svn/text-base/test_status.rb.svn-base
  37. +0 −14 lib/test/spec/rails/.svn/text-base/test_template.rb.svn-base
  38. +0 −33 lib/test/spec/rails/.svn/text-base/test_unit_ext.rb.svn-base
  39. +0 −25 lib/test/spec/rails/.svn/text-base/test_url.rb.svn-base
  40. +0 −51 lib/test/spec/rails/.svn/text-base/use_controller.rb.svn-base
  41. +0 −40 tasks/.svn/entries
  42. +0 −1 tasks/.svn/format
  43. +0 −15 tasks/.svn/text-base/spec.rake.svn-base
  44. +0 −43 test/.svn/entries
  45. +0 −1 test/.svn/format
  46. +0 −7 test/.svn/text-base/test_helper.rb.svn-base
  47. +0 −31 test/test/.svn/entries
  48. +0 −1 test/test/.svn/format
  49. +0 −31 test/test/spec/.svn/entries
  50. +0 −1 test/test/spec/.svn/format
  51. +0 −40 test/test/spec/rails/.svn/entries
  52. +0 −1 test/test/spec/rails/.svn/format
  53. +0 −22 test/test/spec/rails/.svn/text-base/test_status_test.rb.svn-base
@@ -1,55 +0,0 @@
-8
-
-dir
-3350
-svn://internal.innerfusion.us/gameday_undies/trunk/gameday_undies/vendor/plugins/test_spec_on_rails/lib/generators/controller
-svn://internal.innerfusion.us
-
-
-
-2008-10-13T22:46:52.221139Z
-3293
-vanne
-
-
-svn:special svn:externals svn:needs-lock
-
-
-
-
-
-
-
-
-
-
-
-d9c37a22-14b1-0441-8096-eb603b6dc06e
-
-USAGE
-file
-
-
-
-
-2008-10-24T16:58:42.000000Z
-334eb6dcaa907a9902e134f5f2bd9679
-2008-10-13T22:46:52.221139Z
-3293
-vanne
-
-controller_generator.rb
-file
-
-
-
-
-2008-10-24T16:58:42.000000Z
-dc6d5969d1797ba6f2cb4758948a84de
-2008-10-13T22:46:52.221139Z
-3293
-vanne
-
-templates
-dir
-
@@ -1 +0,0 @@
-8
@@ -1,29 +0,0 @@
-Description:
- Stubs out a new controller and its views. Pass the controller name, either
- CamelCased or under_scored, and a list of views as arguments.
-
- To create a controller within a module, specify the controller name as a
- path like 'parent_module/controller_name'.
-
- This generates a controller class in app/controllers, view templates in
- app/views/controller_name, a helper class in app/helpers, and a functional
- test suite in test/functional.
-
-Example:
- `./script/generate controller CreditCard open debit credit close`
-
- Credit card controller with URLs like /credit_card/debit.
- Controller: app/controllers/credit_card_controller.rb
- Views: app/views/credit_card/debit.html.erb [...]
- Helper: app/helpers/credit_card_helper.rb
- Test: test/functional/credit_card_controller_test.rb
-
-Modules Example:
- `./script/generate controller 'admin/credit_card' suspend late_fee`
-
- Credit card admin controller with URLs /admin/credit_card/suspend.
- Controller: app/controllers/admin/credit_card_controller.rb
- Views: app/views/admin/credit_card/debit.html.erb [...]
- Helper: app/helpers/admin/credit_card_helper.rb
- Test: test/functional/admin/credit_card_controller_test.rb
-
@@ -1,37 +0,0 @@
-class ControllerGenerator < Rails::Generator::NamedBase
- def manifest
- record do |m|
- # Check for class naming collisions.
- m.class_collisions class_path, "#{class_name}Controller", "#{class_name}ControllerTest", "#{class_name}Helper"
-
- # Controller, helper, views, and test directories.
- m.directory File.join('app/controllers', class_path)
- m.directory File.join('app/helpers', class_path)
- m.directory File.join('app/views', class_path, file_name)
- m.directory File.join('test/functional', class_path)
-
- # Controller class, functional test, and helper class.
- m.template 'controller.rb',
- File.join('app/controllers',
- class_path,
- "#{file_name}_controller.rb")
-
- m.template 'functional_test.rb',
- File.join('test/functional',
- class_path,
- "#{file_name}_controller_test.rb")
-
- m.template 'helper.rb',
- File.join('app/helpers',
- class_path,
- "#{file_name}_helper.rb")
-
- # View template for each action.
- actions.each do |action|
- path = File.join('app/views', class_path, file_name, "#{action}.html.erb")
- m.template 'view.html.erb', path,
- :assigns => { :action => action, :path => path }
- end
- end
- end
-end
@@ -1,76 +0,0 @@
-8
-
-dir
-3350
-svn://internal.innerfusion.us/gameday_undies/trunk/gameday_undies/vendor/plugins/test_spec_on_rails/lib/generators/controller/templates
-svn://internal.innerfusion.us
-
-
-
-2008-10-13T22:46:52.221139Z
-3293
-vanne
-
-
-svn:special svn:externals svn:needs-lock
-
-
-
-
-
-
-
-
-
-
-
-d9c37a22-14b1-0441-8096-eb603b6dc06e
-
-helper.rb
-file
-
-
-
-
-2008-10-24T16:58:42.000000Z
-e8491aac2379dbba3d3ddadc30f6db07
-2008-10-13T22:46:52.221139Z
-3293
-vanne
-
-functional_test.rb
-file
-
-
-
-
-2008-10-24T16:58:42.000000Z
-fa9bd8d807ac8a12173b93a28cfa71a3
-2008-10-13T22:46:52.221139Z
-3293
-vanne
-
-view.html.erb
-file
-
-
-
-
-2008-10-24T16:58:42.000000Z
-9174fe893f23101aa086395a0f0436ff
-2008-10-13T22:46:52.221139Z
-3293
-vanne
-
-controller.rb
-file
-
-
-
-
-2008-10-24T16:58:42.000000Z
-f856baaf1a7ed492e286d32a12ac8a42
-2008-10-13T22:46:52.221139Z
-3293
-vanne
-
@@ -1 +0,0 @@
-8
@@ -1,10 +0,0 @@
-class <%= class_name %>Controller < ApplicationController
-<% if options[:scaffold] -%>
- scaffold :<%= singular_name %>
-<% end -%>
-<% for action in actions -%>
-
- def <%= action %>
- end
-<% end -%>
-end
@@ -1,8 +0,0 @@
-require File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../test_helper'
-
-describe "<%= class_name %>Controller", ActionController::TestCase do
- # Replace this with your real tests.
- it "should be true" do
- assert true
- end
-end
@@ -1,2 +0,0 @@
-module <%= class_name %>Helper
-end
@@ -1,2 +0,0 @@
-<h1><%= class_name %>#<%= action %></h1>
-<p>Find me in <%= path %></p>
@@ -1,55 +0,0 @@
-8
-
-dir
-3350
-svn://internal.innerfusion.us/gameday_undies/trunk/gameday_undies/vendor/plugins/test_spec_on_rails/lib/generators/model
-svn://internal.innerfusion.us
-
-
-
-2008-10-13T22:46:52.221139Z
-3293
-vanne
-
-
-svn:special svn:externals svn:needs-lock
-
-
-
-
-
-
-
-
-
-
-
-d9c37a22-14b1-0441-8096-eb603b6dc06e
-
-USAGE
-file
-
-
-
-
-2008-10-24T16:58:42.000000Z
-3bc7b2ad4300620a30fa7a1706050c2d
-2008-10-13T22:46:52.221139Z
-3293
-vanne
-
-model_generator.rb
-file
-
-
-
-
-2008-10-24T16:58:42.000000Z
-f8664613e6fd42ea9973009887898655
-2008-10-13T22:46:52.221139Z
-3293
-vanne
-
-templates
-dir
-
@@ -1 +0,0 @@
-8
@@ -1,27 +0,0 @@
-Description:
- Stubs out a new model. Pass the model name, either CamelCased or
- under_scored, and an optional list of attribute pairs as arguments.
-
- Attribute pairs are column_name:sql_type arguments specifying the
- model's attributes. Timestamps are added by default, so you don't have to
- specify them by hand as 'created_at:datetime updated_at:datetime'.
-
- You don't have to think up every attribute up front, but it helps to
- sketch out a few so you can start working with the model immediately.
-
- This generates a model class in app/models, a unit test in test/unit,
- a test fixture in test/fixtures/singular_name.yml, and a migration in
- db/migrate.
-
-Examples:
- `./script/generate model account`
-
- creates an Account model, test, fixture, and migration:
- Model: app/models/account.rb
- Test: test/unit/account_test.rb
- Fixtures: test/fixtures/accounts.yml
- Migration: db/migrate/XXX_add_accounts.rb
-
- `./script/generate model post title:string body:text published:boolean`
-
- creates a Post model with a string title, text body, and published flag.
@@ -1,45 +0,0 @@
-class ModelGenerator < Rails::Generator::NamedBase
- default_options :skip_timestamps => false, :skip_migration => false, :skip_fixture => false
-
- def manifest
- record do |m|
- # Check for class naming collisions.
- m.class_collisions class_path, class_name, "#{class_name}Test"
-
- # Model, test, and fixture directories.
- m.directory File.join('app/models', class_path)
- m.directory File.join('test/unit', class_path)
- m.directory File.join('test/fixtures', class_path)
-
- # Model class, unit test, and fixtures.
- m.template 'model.rb', File.join('app/models', class_path, "#{file_name}.rb")
- m.template 'unit_test.rb', File.join('test/unit', class_path, "#{file_name}_test.rb")
-
- unless options[:skip_fixture]
- m.template 'fixtures.yml', File.join('test/fixtures', "#{table_name}.yml")
- end
-
- unless options[:skip_migration]
- m.migration_template 'migration.rb', 'db/migrate', :assigns => {
- :migration_name => "Create#{class_name.pluralize.gsub(/::/, '')}"
- }, :migration_file_name => "create_#{file_path.gsub(/\//, '_').pluralize}"
- end
- end
- end
-
- protected
- def banner
- "Usage: #{$0} #{spec.name} ModelName [field:type, field:type]"
- end
-
- def add_options!(opt)
- opt.separator ''
- opt.separator 'Options:'
- opt.on("--skip-timestamps",
- "Don't add timestamps to the migration file for this model") { |v| options[:skip_timestamps] = v }
- opt.on("--skip-migration",
- "Don't generate a migration file for this model") { |v| options[:skip_migration] = v }
- opt.on("--skip-fixture",
- "Don't generation a fixture file for this model") { |v| options[:skip_fixture] = v}
- end
-end
Oops, something went wrong.

0 comments on commit b5e4da7

Please sign in to comment.