rails 1.2.6 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rails might be problematic. Click here for more details.
- data/CHANGELOG +491 -12
- data/MIT-LICENSE +1 -1
- data/README +17 -25
- data/Rakefile +41 -18
- data/bin/about +1 -1
- data/bin/console +1 -1
- data/bin/destroy +1 -1
- data/bin/generate +1 -1
- data/bin/performance/request +3 -0
- data/bin/plugin +1 -1
- data/bin/runner +1 -1
- data/bin/server +1 -1
- data/builtin/rails_info/rails/info.rb +2 -2
- data/configs/apache.conf +1 -1
- data/configs/databases/mysql.yml +9 -3
- data/configs/databases/postgresql.yml +16 -12
- data/configs/initializers/inflections.rb +10 -0
- data/configs/initializers/mime_types.rb +5 -0
- data/configs/routes.rb +23 -11
- data/doc/README_FOR_APP +1 -1
- data/environments/boot.rb +95 -26
- data/environments/development.rb +2 -5
- data/environments/environment.rb +24 -25
- data/environments/test.rb +4 -1
- data/helpers/application.rb +5 -2
- data/helpers/test_helper.rb +10 -0
- data/html/422.html +30 -0
- data/html/500.html +1 -1
- data/html/index.html +2 -2
- data/html/javascripts/controls.js +484 -354
- data/html/javascripts/dragdrop.js +88 -58
- data/html/javascripts/effects.js +396 -364
- data/html/javascripts/prototype.js +2817 -1107
- data/html/robots.txt +5 -1
- data/lib/commands/console.rb +12 -5
- data/lib/commands/performance/request.rb +6 -0
- data/lib/commands/plugin.rb +15 -10
- data/lib/commands/process/spawner.rb +14 -4
- data/lib/commands/servers/base.rb +12 -0
- data/lib/commands/servers/mongrel.rb +5 -1
- data/lib/commands/servers/webrick.rb +14 -7
- data/lib/console_app.rb +5 -2
- data/lib/console_with_helpers.rb +5 -2
- data/lib/dispatcher.rb +3 -151
- data/lib/fcgi_handler.rb +79 -81
- data/lib/initializer.rb +125 -169
- data/lib/rails/plugin.rb +84 -0
- data/lib/rails/plugin/loader.rb +150 -0
- data/lib/rails/plugin/locator.rb +78 -0
- data/lib/rails/version.rb +3 -3
- data/lib/rails_generator/base.rb +11 -9
- data/lib/rails_generator/commands.rb +20 -10
- data/lib/rails_generator/generators/applications/app/USAGE +0 -7
- data/lib/rails_generator/generators/applications/app/app_generator.rb +25 -6
- data/lib/rails_generator/generators/components/controller/USAGE +11 -12
- data/lib/rails_generator/generators/components/controller/controller_generator.rb +2 -2
- data/lib/rails_generator/generators/components/controller/templates/functional_test.rb +1 -11
- data/lib/rails_generator/generators/components/controller/templates/{view.rhtml → view.html.erb} +0 -0
- data/lib/rails_generator/generators/components/integration_test/USAGE +5 -11
- data/lib/rails_generator/generators/components/mailer/USAGE +8 -10
- data/lib/rails_generator/generators/components/mailer/mailer_generator.rb +3 -3
- data/lib/rails_generator/generators/components/mailer/templates/fixture.erb +3 -0
- data/lib/rails_generator/generators/components/mailer/templates/fixture.rhtml +0 -3
- data/lib/rails_generator/generators/components/mailer/templates/unit_test.rb +8 -24
- data/lib/rails_generator/generators/components/mailer/templates/view.erb +3 -0
- data/lib/rails_generator/generators/components/mailer/templates/view.rhtml +0 -3
- data/lib/rails_generator/generators/components/migration/USAGE +23 -8
- data/lib/rails_generator/generators/components/migration/migration_generator.rb +15 -2
- data/lib/rails_generator/generators/components/migration/templates/migration.rb +6 -2
- data/lib/rails_generator/generators/components/model/USAGE +15 -14
- data/lib/rails_generator/generators/components/model/model_generator.rb +10 -3
- data/lib/rails_generator/generators/components/model/templates/fixtures.yml +11 -3
- data/lib/rails_generator/generators/components/model/templates/migration.rb +4 -1
- data/lib/rails_generator/generators/components/model/templates/unit_test.rb +1 -3
- data/lib/rails_generator/generators/components/observer/USAGE +5 -7
- data/lib/rails_generator/generators/components/observer/templates/unit_test.rb +0 -2
- data/lib/rails_generator/generators/components/plugin/USAGE +8 -18
- data/lib/rails_generator/generators/components/plugin/plugin_generator.rb +1 -0
- data/lib/rails_generator/generators/components/plugin/templates/MIT-LICENSE +20 -0
- data/lib/rails_generator/generators/components/plugin/templates/README +10 -1
- data/lib/rails_generator/generators/components/plugin/templates/USAGE +1 -1
- data/lib/rails_generator/generators/components/plugin/templates/init.rb +1 -1
- data/lib/rails_generator/generators/components/plugin/templates/plugin.rb +1 -1
- data/lib/rails_generator/generators/components/plugin/templates/tasks.rake +1 -1
- data/lib/rails_generator/generators/components/resource/USAGE +23 -0
- data/lib/rails_generator/generators/components/resource/resource_generator.rb +13 -15
- data/lib/rails_generator/generators/components/resource/templates/controller.rb +1 -1
- data/lib/rails_generator/generators/components/resource/templates/functional_test.rb +2 -14
- data/lib/rails_generator/generators/components/scaffold/USAGE +24 -31
- data/lib/rails_generator/generators/components/scaffold/scaffold_generator.rb +45 -146
- data/lib/rails_generator/generators/components/scaffold/templates/controller.rb +64 -37
- data/lib/rails_generator/generators/components/scaffold/templates/functional_test.rb +23 -80
- data/lib/rails_generator/generators/components/scaffold/templates/{layout.rhtml → layout.html.erb} +0 -0
- data/lib/rails_generator/generators/components/scaffold/templates/style.css +1 -1
- data/lib/rails_generator/generators/components/{scaffold_resource/templates/view_edit.rhtml → scaffold/templates/view_edit.html.erb} +4 -4
- data/lib/rails_generator/generators/components/{scaffold_resource/templates/view_index.rhtml → scaffold/templates/view_index.html.erb} +4 -4
- data/lib/rails_generator/generators/components/{scaffold_resource/templates/view_new.rhtml → scaffold/templates/view_new.html.erb} +3 -3
- data/lib/rails_generator/generators/components/{scaffold_resource/templates/view_show.rhtml → scaffold/templates/view_show.html.erb} +1 -1
- data/lib/rails_generator/generators/components/session_migration/USAGE +6 -11
- data/lib/rails_generator/generators/components/session_migration/templates/migration.rb +3 -3
- data/lib/rails_generator/lookup.rb +45 -10
- data/lib/rails_generator/scripts.rb +6 -3
- data/lib/rails_generator/scripts/destroy.rb +23 -0
- data/lib/rails_generator/secret_key_generator.rb +160 -0
- data/lib/rails_generator/spec.rb +1 -1
- data/lib/source_annotation_extractor.rb +62 -0
- data/lib/tasks/annotations.rake +23 -0
- data/lib/tasks/databases.rake +249 -83
- data/lib/tasks/documentation.rake +11 -13
- data/lib/tasks/framework.rake +1 -1
- data/lib/tasks/rails.rb +1 -1
- data/lib/tasks/testing.rake +5 -7
- data/lib/test_help.rb +4 -3
- data/lib/webrick_server.rb +3 -4
- metadata +31 -49
- data/bin/breakpointer +0 -3
- data/lib/binding_of_caller.rb +0 -85
- data/lib/breakpoint.rb +0 -553
- data/lib/breakpoint_client.rb +0 -196
- data/lib/commands/breakpointer.rb +0 -1
- data/lib/rails_generator/generators/components/resource/templates/USAGE +0 -18
- data/lib/rails_generator/generators/components/resource/templates/fixtures.yml +0 -11
- data/lib/rails_generator/generators/components/resource/templates/migration.rb +0 -13
- data/lib/rails_generator/generators/components/resource/templates/model.rb +0 -2
- data/lib/rails_generator/generators/components/resource/templates/unit_test.rb +0 -10
- data/lib/rails_generator/generators/components/scaffold/templates/form.rhtml +0 -3
- data/lib/rails_generator/generators/components/scaffold/templates/form_scaffolding.rhtml +0 -1
- data/lib/rails_generator/generators/components/scaffold/templates/view_edit.rhtml +0 -9
- data/lib/rails_generator/generators/components/scaffold/templates/view_list.rhtml +0 -27
- data/lib/rails_generator/generators/components/scaffold/templates/view_new.rhtml +0 -8
- data/lib/rails_generator/generators/components/scaffold/templates/view_show.rhtml +0 -8
- data/lib/rails_generator/generators/components/scaffold_resource/USAGE +0 -29
- data/lib/rails_generator/generators/components/scaffold_resource/scaffold_resource_generator.rb +0 -93
- data/lib/rails_generator/generators/components/scaffold_resource/templates/controller.rb +0 -79
- data/lib/rails_generator/generators/components/scaffold_resource/templates/fixtures.yml +0 -11
- data/lib/rails_generator/generators/components/scaffold_resource/templates/functional_test.rb +0 -57
- data/lib/rails_generator/generators/components/scaffold_resource/templates/helper.rb +0 -2
- data/lib/rails_generator/generators/components/scaffold_resource/templates/layout.rhtml +0 -17
- data/lib/rails_generator/generators/components/scaffold_resource/templates/migration.rb +0 -13
- data/lib/rails_generator/generators/components/scaffold_resource/templates/model.rb +0 -2
- data/lib/rails_generator/generators/components/scaffold_resource/templates/style.css +0 -74
- data/lib/rails_generator/generators/components/scaffold_resource/templates/unit_test.rb +0 -10
- data/lib/rails_generator/generators/components/web_service/USAGE +0 -28
- data/lib/rails_generator/generators/components/web_service/templates/api_definition.rb +0 -5
- data/lib/rails_generator/generators/components/web_service/templates/controller.rb +0 -8
- data/lib/rails_generator/generators/components/web_service/templates/functional_test.rb +0 -19
- data/lib/rails_generator/generators/components/web_service/web_service_generator.rb +0 -29
- data/lib/tasks/pre_namespace_aliases.rake +0 -53
@@ -1,9 +1,11 @@
|
|
1
1
|
namespace :doc do
|
2
|
-
desc "Generate documentation for the application"
|
2
|
+
desc "Generate documentation for the application. Set custom template with TEMPLATE=/path/to/rdoc/template.rb"
|
3
3
|
Rake::RDocTask.new("app") { |rdoc|
|
4
4
|
rdoc.rdoc_dir = 'doc/app'
|
5
|
+
rdoc.template = ENV['template'] if ENV['template']
|
5
6
|
rdoc.title = "Rails Application Documentation"
|
6
7
|
rdoc.options << '--line-numbers' << '--inline-source'
|
8
|
+
rdoc.options << '--charset' << 'utf-8'
|
7
9
|
rdoc.rdoc_files.include('doc/README_FOR_APP')
|
8
10
|
rdoc.rdoc_files.include('app/**/*.rb')
|
9
11
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
@@ -18,10 +20,16 @@ namespace :doc do
|
|
18
20
|
rdoc.rdoc_files.include('README')
|
19
21
|
rdoc.rdoc_files.include('vendor/rails/railties/CHANGELOG')
|
20
22
|
rdoc.rdoc_files.include('vendor/rails/railties/MIT-LICENSE')
|
23
|
+
rdoc.rdoc_files.include('vendor/rails/railties/README')
|
24
|
+
rdoc.rdoc_files.include('vendor/rails/railties/lib/{*.rb,commands/*.rb,rails_generator/*.rb}')
|
21
25
|
rdoc.rdoc_files.include('vendor/rails/activerecord/README')
|
22
26
|
rdoc.rdoc_files.include('vendor/rails/activerecord/CHANGELOG')
|
23
27
|
rdoc.rdoc_files.include('vendor/rails/activerecord/lib/active_record/**/*.rb')
|
24
28
|
rdoc.rdoc_files.exclude('vendor/rails/activerecord/lib/active_record/vendor/*')
|
29
|
+
rdoc.rdoc_files.include('vendor/rails/activeresource/README')
|
30
|
+
rdoc.rdoc_files.include('vendor/rails/activeresource/CHANGELOG')
|
31
|
+
rdoc.rdoc_files.include('vendor/rails/activeresource/lib/active_resource.rb')
|
32
|
+
rdoc.rdoc_files.include('vendor/rails/activeresource/lib/active_resource/*')
|
25
33
|
rdoc.rdoc_files.include('vendor/rails/actionpack/README')
|
26
34
|
rdoc.rdoc_files.include('vendor/rails/actionpack/CHANGELOG')
|
27
35
|
rdoc.rdoc_files.include('vendor/rails/actionpack/lib/action_controller/**/*.rb')
|
@@ -29,16 +37,6 @@ namespace :doc do
|
|
29
37
|
rdoc.rdoc_files.include('vendor/rails/actionmailer/README')
|
30
38
|
rdoc.rdoc_files.include('vendor/rails/actionmailer/CHANGELOG')
|
31
39
|
rdoc.rdoc_files.include('vendor/rails/actionmailer/lib/action_mailer/base.rb')
|
32
|
-
rdoc.rdoc_files.include('vendor/rails/actionwebservice/README')
|
33
|
-
rdoc.rdoc_files.include('vendor/rails/actionwebservice/CHANGELOG')
|
34
|
-
rdoc.rdoc_files.include('vendor/rails/actionwebservice/lib/action_web_service.rb')
|
35
|
-
rdoc.rdoc_files.include('vendor/rails/actionwebservice/lib/action_web_service/*.rb')
|
36
|
-
rdoc.rdoc_files.include('vendor/rails/actionwebservice/lib/action_web_service/api/*.rb')
|
37
|
-
rdoc.rdoc_files.include('vendor/rails/actionwebservice/lib/action_web_service/client/*.rb')
|
38
|
-
rdoc.rdoc_files.include('vendor/rails/actionwebservice/lib/action_web_service/container/*.rb')
|
39
|
-
rdoc.rdoc_files.include('vendor/rails/actionwebservice/lib/action_web_service/dispatcher/*.rb')
|
40
|
-
rdoc.rdoc_files.include('vendor/rails/actionwebservice/lib/action_web_service/protocol/*.rb')
|
41
|
-
rdoc.rdoc_files.include('vendor/rails/actionwebservice/lib/action_web_service/support/*.rb')
|
42
40
|
rdoc.rdoc_files.include('vendor/rails/activesupport/README')
|
43
41
|
rdoc.rdoc_files.include('vendor/rails/activesupport/CHANGELOG')
|
44
42
|
rdoc.rdoc_files.include('vendor/rails/activesupport/lib/active_support/**/*.rb')
|
@@ -46,7 +44,7 @@ namespace :doc do
|
|
46
44
|
|
47
45
|
plugins = FileList['vendor/plugins/**'].collect { |plugin| File.basename(plugin) }
|
48
46
|
|
49
|
-
desc "Generate
|
47
|
+
desc "Generate documentation for all installed plugins"
|
50
48
|
task :plugins => plugins.collect { |plugin| "doc:plugins:#{plugin}" }
|
51
49
|
|
52
50
|
desc "Remove plugin documentation"
|
@@ -79,4 +77,4 @@ namespace :doc do
|
|
79
77
|
end
|
80
78
|
end
|
81
79
|
end
|
82
|
-
end
|
80
|
+
end
|
data/lib/tasks/framework.rake
CHANGED
@@ -2,7 +2,7 @@ namespace :rails do
|
|
2
2
|
namespace :freeze do
|
3
3
|
desc "Lock this application to the current gems (by unpacking them into vendor/rails)"
|
4
4
|
task :gems do
|
5
|
-
deps = %w(actionpack activerecord actionmailer activesupport
|
5
|
+
deps = %w(actionpack activerecord actionmailer activesupport activeresource)
|
6
6
|
require 'rubygems'
|
7
7
|
Gem.manage_gems
|
8
8
|
|
data/lib/tasks/rails.rb
CHANGED
@@ -5,4 +5,4 @@ Dir["#{File.dirname(__FILE__)}/*.rake"].each { |ext| load ext }
|
|
5
5
|
|
6
6
|
# Load any custom rakefile extensions
|
7
7
|
Dir["#{RAILS_ROOT}/lib/tasks/**/*.rake"].sort.each { |ext| load ext }
|
8
|
-
Dir["#{RAILS_ROOT}/vendor/plugins
|
8
|
+
Dir["#{RAILS_ROOT}/vendor/plugins/*/**/tasks/**/*.rake"].sort.each { |ext| load ext }
|
data/lib/tasks/testing.rake
CHANGED
@@ -40,17 +40,15 @@ end
|
|
40
40
|
|
41
41
|
desc 'Test all units and functionals'
|
42
42
|
task :test do
|
43
|
-
|
43
|
+
errors = %w(test:units test:functionals test:integration).collect do |task|
|
44
44
|
begin
|
45
45
|
Rake::Task[task].invoke
|
46
46
|
nil
|
47
47
|
rescue => e
|
48
|
-
|
48
|
+
task
|
49
49
|
end
|
50
50
|
end.compact
|
51
|
-
|
52
|
-
exceptions.each {|e| puts e;puts e.backtrace }
|
53
|
-
raise "Test failures" unless exceptions.empty?
|
51
|
+
abort "Errors running #{errors.to_sentence}!" if errors.any?
|
54
52
|
end
|
55
53
|
|
56
54
|
namespace :test do
|
@@ -111,10 +109,10 @@ namespace :test do
|
|
111
109
|
if ENV['PLUGIN']
|
112
110
|
t.pattern = "vendor/plugins/#{ENV['PLUGIN']}/test/**/*_test.rb"
|
113
111
|
else
|
114
|
-
t.pattern = 'vendor/plugins
|
112
|
+
t.pattern = 'vendor/plugins/*/**/test/**/*_test.rb'
|
115
113
|
end
|
116
114
|
|
117
115
|
t.verbose = true
|
118
116
|
end
|
119
|
-
Rake::Task['test:plugins'].comment = "Run the plugin tests in vendor/plugins
|
117
|
+
Rake::Task['test:plugins'].comment = "Run the plugin tests in vendor/plugins/*/**/test (or specify with PLUGIN=name)"
|
120
118
|
end
|
data/lib/test_help.rb
CHANGED
@@ -5,15 +5,16 @@ require_dependency 'application'
|
|
5
5
|
silence_warnings { RAILS_ENV = "test" }
|
6
6
|
|
7
7
|
require 'test/unit'
|
8
|
+
require 'active_support/test_case'
|
8
9
|
require 'active_record/fixtures'
|
10
|
+
require 'action_controller/test_case'
|
9
11
|
require 'action_controller/test_process'
|
10
12
|
require 'action_controller/integration'
|
11
|
-
require '
|
12
|
-
require 'breakpoint'
|
13
|
+
require 'action_mailer/test_case' if defined?(ActionMailer)
|
13
14
|
|
14
15
|
Test::Unit::TestCase.fixture_path = RAILS_ROOT + "/test/fixtures/"
|
15
16
|
ActionController::IntegrationTest.fixture_path = Test::Unit::TestCase.fixture_path
|
16
17
|
|
17
18
|
def create_fixtures(*table_names)
|
18
|
-
Fixtures.create_fixtures(
|
19
|
+
Fixtures.create_fixtures(Test::Unit::TestCase.fixture_path, table_names)
|
19
20
|
end
|
data/lib/webrick_server.rb
CHANGED
@@ -59,16 +59,15 @@ class DispatchServlet < WEBrick::HTTPServlet::AbstractServlet
|
|
59
59
|
server.mount('/', DispatchServlet, options)
|
60
60
|
|
61
61
|
trap("INT") { server.shutdown }
|
62
|
-
|
63
62
|
server.start
|
64
63
|
end
|
65
64
|
|
66
65
|
def initialize(server, options) #:nodoc:
|
67
66
|
@server_options = options
|
68
67
|
@file_handler = WEBrick::HTTPServlet::FileHandler.new(server, options[:server_root])
|
69
|
-
# Change to the RAILS_ROOT, since Webrick::Daemon.start does a Dir::cwd("/")
|
70
|
-
# OPTIONS['working_directory'] is an absolute path of the RAILS_ROOT, set in railties/lib/commands/servers/webrick.rb
|
71
|
-
Dir.chdir(OPTIONS['working_directory']) if defined?(OPTIONS) && File.directory?(OPTIONS['working_directory'])
|
68
|
+
# Change to the RAILS_ROOT, since Webrick::Daemon.start does a Dir::cwd("/")
|
69
|
+
# OPTIONS['working_directory'] is an absolute path of the RAILS_ROOT, set in railties/lib/commands/servers/webrick.rb
|
70
|
+
Dir.chdir(OPTIONS['working_directory']) if defined?(OPTIONS) && File.directory?(OPTIONS['working_directory'])
|
72
71
|
super
|
73
72
|
end
|
74
73
|
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: rails
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version:
|
7
|
-
date: 2007-
|
6
|
+
version: 2.0.0
|
7
|
+
date: 2007-12-06 00:00:00 -06:00
|
8
8
|
summary: Web-application framework with template engine, control-flow layer, and ORM.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -44,13 +44,13 @@ files:
|
|
44
44
|
- Rakefile
|
45
45
|
- README
|
46
46
|
- bin/about
|
47
|
-
- bin/breakpointer
|
48
47
|
- bin/console
|
49
48
|
- bin/destroy
|
50
49
|
- bin/generate
|
51
50
|
- bin/performance
|
52
51
|
- bin/performance/benchmarker
|
53
52
|
- bin/performance/profiler
|
53
|
+
- bin/performance/request
|
54
54
|
- bin/plugin
|
55
55
|
- bin/process
|
56
56
|
- bin/process/inspector
|
@@ -74,6 +74,9 @@ files:
|
|
74
74
|
- configs/databases/sqlite2.yml
|
75
75
|
- configs/databases/sqlite3.yml
|
76
76
|
- configs/empty.log
|
77
|
+
- configs/initializers
|
78
|
+
- configs/initializers/inflections.rb
|
79
|
+
- configs/initializers/mime_types.rb
|
77
80
|
- configs/lighttpd.conf
|
78
81
|
- configs/routes.rb
|
79
82
|
- doc/README_FOR_APP
|
@@ -89,6 +92,7 @@ files:
|
|
89
92
|
- helpers/application_helper.rb
|
90
93
|
- helpers/test_helper.rb
|
91
94
|
- html/404.html
|
95
|
+
- html/422.html
|
92
96
|
- html/500.html
|
93
97
|
- html/favicon.ico
|
94
98
|
- html/images
|
@@ -101,13 +105,9 @@ files:
|
|
101
105
|
- html/javascripts/effects.js
|
102
106
|
- html/javascripts/prototype.js
|
103
107
|
- html/robots.txt
|
104
|
-
- lib/binding_of_caller.rb
|
105
|
-
- lib/breakpoint.rb
|
106
|
-
- lib/breakpoint_client.rb
|
107
108
|
- lib/code_statistics.rb
|
108
109
|
- lib/commands
|
109
110
|
- lib/commands/about.rb
|
110
|
-
- lib/commands/breakpointer.rb
|
111
111
|
- lib/commands/console.rb
|
112
112
|
- lib/commands/destroy.rb
|
113
113
|
- lib/commands/generate.rb
|
@@ -117,6 +117,7 @@ files:
|
|
117
117
|
- lib/commands/performance
|
118
118
|
- lib/commands/performance/benchmarker.rb
|
119
119
|
- lib/commands/performance/profiler.rb
|
120
|
+
- lib/commands/performance/request.rb
|
120
121
|
- lib/commands/plugin.rb
|
121
122
|
- lib/commands/process
|
122
123
|
- lib/commands/process/inspector.rb
|
@@ -139,6 +140,10 @@ files:
|
|
139
140
|
- lib/fcgi_handler.rb
|
140
141
|
- lib/initializer.rb
|
141
142
|
- lib/rails
|
143
|
+
- lib/rails/plugin
|
144
|
+
- lib/rails/plugin/loader.rb
|
145
|
+
- lib/rails/plugin/locator.rb
|
146
|
+
- lib/rails/plugin.rb
|
142
147
|
- lib/rails/version.rb
|
143
148
|
- lib/rails_generator
|
144
149
|
- lib/rails_generator/base.rb
|
@@ -156,7 +161,7 @@ files:
|
|
156
161
|
- lib/rails_generator/generators/components/controller/templates/controller.rb
|
157
162
|
- lib/rails_generator/generators/components/controller/templates/functional_test.rb
|
158
163
|
- lib/rails_generator/generators/components/controller/templates/helper.rb
|
159
|
-
- lib/rails_generator/generators/components/controller/templates/view.
|
164
|
+
- lib/rails_generator/generators/components/controller/templates/view.html.erb
|
160
165
|
- lib/rails_generator/generators/components/controller/USAGE
|
161
166
|
- lib/rails_generator/generators/components/integration_test
|
162
167
|
- lib/rails_generator/generators/components/integration_test/integration_test_generator.rb
|
@@ -166,9 +171,11 @@ files:
|
|
166
171
|
- lib/rails_generator/generators/components/mailer
|
167
172
|
- lib/rails_generator/generators/components/mailer/mailer_generator.rb
|
168
173
|
- lib/rails_generator/generators/components/mailer/templates
|
174
|
+
- lib/rails_generator/generators/components/mailer/templates/fixture.erb
|
169
175
|
- lib/rails_generator/generators/components/mailer/templates/fixture.rhtml
|
170
176
|
- lib/rails_generator/generators/components/mailer/templates/mailer.rb
|
171
177
|
- lib/rails_generator/generators/components/mailer/templates/unit_test.rb
|
178
|
+
- lib/rails_generator/generators/components/mailer/templates/view.erb
|
172
179
|
- lib/rails_generator/generators/components/mailer/templates/view.rhtml
|
173
180
|
- lib/rails_generator/generators/components/mailer/USAGE
|
174
181
|
- lib/rails_generator/generators/components/migration
|
@@ -196,6 +203,7 @@ files:
|
|
196
203
|
- lib/rails_generator/generators/components/plugin/templates/generator.rb
|
197
204
|
- lib/rails_generator/generators/components/plugin/templates/init.rb
|
198
205
|
- lib/rails_generator/generators/components/plugin/templates/install.rb
|
206
|
+
- lib/rails_generator/generators/components/plugin/templates/MIT-LICENSE
|
199
207
|
- lib/rails_generator/generators/components/plugin/templates/plugin.rb
|
200
208
|
- lib/rails_generator/generators/components/plugin/templates/Rakefile
|
201
209
|
- lib/rails_generator/generators/components/plugin/templates/README
|
@@ -208,45 +216,22 @@ files:
|
|
208
216
|
- lib/rails_generator/generators/components/resource/resource_generator.rb
|
209
217
|
- lib/rails_generator/generators/components/resource/templates
|
210
218
|
- lib/rails_generator/generators/components/resource/templates/controller.rb
|
211
|
-
- lib/rails_generator/generators/components/resource/templates/fixtures.yml
|
212
219
|
- lib/rails_generator/generators/components/resource/templates/functional_test.rb
|
213
220
|
- lib/rails_generator/generators/components/resource/templates/helper.rb
|
214
|
-
- lib/rails_generator/generators/components/resource/
|
215
|
-
- lib/rails_generator/generators/components/resource/templates/model.rb
|
216
|
-
- lib/rails_generator/generators/components/resource/templates/unit_test.rb
|
217
|
-
- lib/rails_generator/generators/components/resource/templates/USAGE
|
221
|
+
- lib/rails_generator/generators/components/resource/USAGE
|
218
222
|
- lib/rails_generator/generators/components/scaffold
|
219
223
|
- lib/rails_generator/generators/components/scaffold/scaffold_generator.rb
|
220
224
|
- lib/rails_generator/generators/components/scaffold/templates
|
221
225
|
- lib/rails_generator/generators/components/scaffold/templates/controller.rb
|
222
|
-
- lib/rails_generator/generators/components/scaffold/templates/form.rhtml
|
223
|
-
- lib/rails_generator/generators/components/scaffold/templates/form_scaffolding.rhtml
|
224
226
|
- lib/rails_generator/generators/components/scaffold/templates/functional_test.rb
|
225
227
|
- lib/rails_generator/generators/components/scaffold/templates/helper.rb
|
226
|
-
- lib/rails_generator/generators/components/scaffold/templates/layout.
|
228
|
+
- lib/rails_generator/generators/components/scaffold/templates/layout.html.erb
|
227
229
|
- lib/rails_generator/generators/components/scaffold/templates/style.css
|
228
|
-
- lib/rails_generator/generators/components/scaffold/templates/view_edit.
|
229
|
-
- lib/rails_generator/generators/components/scaffold/templates/
|
230
|
-
- lib/rails_generator/generators/components/scaffold/templates/view_new.
|
231
|
-
- lib/rails_generator/generators/components/scaffold/templates/view_show.
|
230
|
+
- lib/rails_generator/generators/components/scaffold/templates/view_edit.html.erb
|
231
|
+
- lib/rails_generator/generators/components/scaffold/templates/view_index.html.erb
|
232
|
+
- lib/rails_generator/generators/components/scaffold/templates/view_new.html.erb
|
233
|
+
- lib/rails_generator/generators/components/scaffold/templates/view_show.html.erb
|
232
234
|
- lib/rails_generator/generators/components/scaffold/USAGE
|
233
|
-
- lib/rails_generator/generators/components/scaffold_resource
|
234
|
-
- lib/rails_generator/generators/components/scaffold_resource/scaffold_resource_generator.rb
|
235
|
-
- lib/rails_generator/generators/components/scaffold_resource/templates
|
236
|
-
- lib/rails_generator/generators/components/scaffold_resource/templates/controller.rb
|
237
|
-
- lib/rails_generator/generators/components/scaffold_resource/templates/fixtures.yml
|
238
|
-
- lib/rails_generator/generators/components/scaffold_resource/templates/functional_test.rb
|
239
|
-
- lib/rails_generator/generators/components/scaffold_resource/templates/helper.rb
|
240
|
-
- lib/rails_generator/generators/components/scaffold_resource/templates/layout.rhtml
|
241
|
-
- lib/rails_generator/generators/components/scaffold_resource/templates/migration.rb
|
242
|
-
- lib/rails_generator/generators/components/scaffold_resource/templates/model.rb
|
243
|
-
- lib/rails_generator/generators/components/scaffold_resource/templates/style.css
|
244
|
-
- lib/rails_generator/generators/components/scaffold_resource/templates/unit_test.rb
|
245
|
-
- lib/rails_generator/generators/components/scaffold_resource/templates/view_edit.rhtml
|
246
|
-
- lib/rails_generator/generators/components/scaffold_resource/templates/view_index.rhtml
|
247
|
-
- lib/rails_generator/generators/components/scaffold_resource/templates/view_new.rhtml
|
248
|
-
- lib/rails_generator/generators/components/scaffold_resource/templates/view_show.rhtml
|
249
|
-
- lib/rails_generator/generators/components/scaffold_resource/USAGE
|
250
235
|
- lib/rails_generator/generators/components/session_migration
|
251
236
|
- lib/rails_generator/generators/components/session_migration/session_migration_generator.rb
|
252
237
|
- lib/rails_generator/generators/components/session_migration/templates
|
@@ -254,11 +239,6 @@ files:
|
|
254
239
|
- lib/rails_generator/generators/components/session_migration/USAGE
|
255
240
|
- lib/rails_generator/generators/components/web_service
|
256
241
|
- lib/rails_generator/generators/components/web_service/templates
|
257
|
-
- lib/rails_generator/generators/components/web_service/templates/api_definition.rb
|
258
|
-
- lib/rails_generator/generators/components/web_service/templates/controller.rb
|
259
|
-
- lib/rails_generator/generators/components/web_service/templates/functional_test.rb
|
260
|
-
- lib/rails_generator/generators/components/web_service/USAGE
|
261
|
-
- lib/rails_generator/generators/components/web_service/web_service_generator.rb
|
262
242
|
- lib/rails_generator/lookup.rb
|
263
243
|
- lib/rails_generator/manifest.rb
|
264
244
|
- lib/rails_generator/options.rb
|
@@ -267,19 +247,21 @@ files:
|
|
267
247
|
- lib/rails_generator/scripts/generate.rb
|
268
248
|
- lib/rails_generator/scripts/update.rb
|
269
249
|
- lib/rails_generator/scripts.rb
|
250
|
+
- lib/rails_generator/secret_key_generator.rb
|
270
251
|
- lib/rails_generator/simple_logger.rb
|
271
252
|
- lib/rails_generator/spec.rb
|
272
253
|
- lib/rails_generator.rb
|
273
254
|
- lib/railties_path.rb
|
274
255
|
- lib/ruby_version_check.rb
|
275
256
|
- lib/rubyprof_ext.rb
|
257
|
+
- lib/source_annotation_extractor.rb
|
276
258
|
- lib/tasks
|
259
|
+
- lib/tasks/annotations.rake
|
277
260
|
- lib/tasks/databases.rake
|
278
261
|
- lib/tasks/documentation.rake
|
279
262
|
- lib/tasks/framework.rake
|
280
263
|
- lib/tasks/log.rake
|
281
264
|
- lib/tasks/misc.rake
|
282
|
-
- lib/tasks/pre_namespace_aliases.rake
|
283
265
|
- lib/tasks/rails.rb
|
284
266
|
- lib/tasks/routes.rake
|
285
267
|
- lib/tasks/statistics.rake
|
@@ -317,7 +299,7 @@ dependencies:
|
|
317
299
|
requirements:
|
318
300
|
- - "="
|
319
301
|
- !ruby/object:Gem::Version
|
320
|
-
version:
|
302
|
+
version: 2.0.0
|
321
303
|
version:
|
322
304
|
- !ruby/object:Gem::Dependency
|
323
305
|
name: activerecord
|
@@ -326,7 +308,7 @@ dependencies:
|
|
326
308
|
requirements:
|
327
309
|
- - "="
|
328
310
|
- !ruby/object:Gem::Version
|
329
|
-
version:
|
311
|
+
version: 2.0.0
|
330
312
|
version:
|
331
313
|
- !ruby/object:Gem::Dependency
|
332
314
|
name: actionpack
|
@@ -335,7 +317,7 @@ dependencies:
|
|
335
317
|
requirements:
|
336
318
|
- - "="
|
337
319
|
- !ruby/object:Gem::Version
|
338
|
-
version:
|
320
|
+
version: 2.0.0
|
339
321
|
version:
|
340
322
|
- !ruby/object:Gem::Dependency
|
341
323
|
name: actionmailer
|
@@ -344,14 +326,14 @@ dependencies:
|
|
344
326
|
requirements:
|
345
327
|
- - "="
|
346
328
|
- !ruby/object:Gem::Version
|
347
|
-
version:
|
329
|
+
version: 2.0.0
|
348
330
|
version:
|
349
331
|
- !ruby/object:Gem::Dependency
|
350
|
-
name:
|
332
|
+
name: activeresource
|
351
333
|
version_requirement:
|
352
334
|
version_requirements: !ruby/object:Gem::Version::Requirement
|
353
335
|
requirements:
|
354
336
|
- - "="
|
355
337
|
- !ruby/object:Gem::Version
|
356
|
-
version:
|
338
|
+
version: 2.0.0
|
357
339
|
version:
|
data/bin/breakpointer
DELETED
data/lib/binding_of_caller.rb
DELETED
@@ -1,85 +0,0 @@
|
|
1
|
-
begin
|
2
|
-
require 'simplecc'
|
3
|
-
rescue LoadError
|
4
|
-
# to satisfy rdoc
|
5
|
-
class Continuation #:nodoc:
|
6
|
-
end
|
7
|
-
def Continuation.create(*args, &block) # :nodoc:
|
8
|
-
cc = nil; result = callcc {|c| cc = c; block.call(cc) if block and args.empty?}
|
9
|
-
result ||= args
|
10
|
-
return *[cc, *result]
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
class Binding; end # for RDoc
|
15
|
-
# This method returns the binding of the method that called your
|
16
|
-
# method. It will raise an Exception when you're not inside a method.
|
17
|
-
#
|
18
|
-
# It's used like this:
|
19
|
-
# def inc_counter(amount = 1)
|
20
|
-
# Binding.of_caller do |binding|
|
21
|
-
# # Create a lambda that will increase the variable 'counter'
|
22
|
-
# # in the caller of this method when called.
|
23
|
-
# inc = eval("lambda { |arg| counter += arg }", binding)
|
24
|
-
# # We can refer to amount from inside this block safely.
|
25
|
-
# inc.call(amount)
|
26
|
-
# end
|
27
|
-
# # No other statements can go here. Put them inside the block.
|
28
|
-
# end
|
29
|
-
# counter = 0
|
30
|
-
# 2.times { inc_counter }
|
31
|
-
# counter # => 2
|
32
|
-
#
|
33
|
-
# Binding.of_caller must be the last statement in the method.
|
34
|
-
# This means that you will have to put everything you want to
|
35
|
-
# do after the call to Binding.of_caller into the block of it.
|
36
|
-
# This should be no problem however, because Ruby has closures.
|
37
|
-
# If you don't do this an Exception will be raised. Because of
|
38
|
-
# the way that Binding.of_caller is implemented it has to be
|
39
|
-
# done this way.
|
40
|
-
def Binding.of_caller(&block)
|
41
|
-
old_critical = Thread.critical
|
42
|
-
Thread.critical = true
|
43
|
-
count = 0
|
44
|
-
cc, result, error, extra_data = Continuation.create(nil, nil)
|
45
|
-
error.call if error
|
46
|
-
|
47
|
-
tracer = lambda do |*args|
|
48
|
-
type, context, extra_data = args[0], args[4], args
|
49
|
-
if type == "return"
|
50
|
-
count += 1
|
51
|
-
# First this method and then calling one will return --
|
52
|
-
# the trace event of the second event gets the context
|
53
|
-
# of the method which called the method that called this
|
54
|
-
# method.
|
55
|
-
if count == 2
|
56
|
-
# It would be nice if we could restore the trace_func
|
57
|
-
# that was set before we swapped in our own one, but
|
58
|
-
# this is impossible without overloading set_trace_func
|
59
|
-
# in current Ruby.
|
60
|
-
set_trace_func(nil)
|
61
|
-
cc.call(eval("binding", context), nil, extra_data)
|
62
|
-
end
|
63
|
-
elsif type == "line" then
|
64
|
-
nil
|
65
|
-
elsif type == "c-return" and extra_data[3] == :set_trace_func then
|
66
|
-
nil
|
67
|
-
else
|
68
|
-
set_trace_func(nil)
|
69
|
-
error_msg = "Binding.of_caller used in non-method context or " +
|
70
|
-
"trailing statements of method using it aren't in the block."
|
71
|
-
cc.call(nil, lambda { raise(ArgumentError, error_msg) }, nil)
|
72
|
-
end
|
73
|
-
end
|
74
|
-
|
75
|
-
unless result
|
76
|
-
set_trace_func(tracer)
|
77
|
-
return nil
|
78
|
-
else
|
79
|
-
Thread.critical = old_critical
|
80
|
-
case block.arity
|
81
|
-
when 1 then yield(result)
|
82
|
-
else yield(result, extra_data)
|
83
|
-
end
|
84
|
-
end
|
85
|
-
end
|