rails 0.9.5 → 0.10.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 +46 -0
- data/README +36 -8
- data/Rakefile +18 -25
- data/bin/console +17 -30
- data/bin/console_sandbox.rb +6 -0
- data/bin/destroy +5 -0
- data/bin/generate +2 -70
- data/bin/rails +4 -28
- data/bin/server +4 -2
- data/bin/update +5 -0
- data/configs/apache.conf +7 -54
- data/configs/empty.log +0 -0
- data/configs/routes.rb +15 -0
- data/environments/shared.rb +14 -6
- data/environments/shared_for_gem.rb +12 -6
- data/fresh_rakefile +40 -8
- data/html/index.html +70 -1
- data/lib/breakpoint.rb +6 -1
- data/lib/breakpoint_client.rb +196 -193
- data/lib/dispatcher.rb +16 -38
- data/lib/rails_generator.rb +39 -198
- data/lib/rails_generator/base.rb +203 -0
- data/lib/rails_generator/commands.rb +409 -0
- data/lib/rails_generator/generators/applications/app/USAGE +16 -0
- data/lib/rails_generator/generators/applications/app/app_generator.rb +120 -0
- data/lib/rails_generator/generators/components/controller/USAGE +30 -0
- data/lib/rails_generator/generators/components/controller/controller_generator.rb +37 -0
- data/{generators → lib/rails_generator/generators/components}/controller/templates/controller.rb +1 -1
- data/lib/rails_generator/generators/components/controller/templates/functional_test.rb +18 -0
- data/{generators → lib/rails_generator/generators/components}/controller/templates/helper.rb +0 -0
- data/{generators → lib/rails_generator/generators/components}/controller/templates/view.rhtml +0 -0
- data/lib/rails_generator/generators/components/mailer/USAGE +19 -0
- data/lib/rails_generator/generators/components/mailer/mailer_generator.rb +32 -0
- data/{generators → lib/rails_generator/generators/components}/mailer/templates/fixture.rhtml +0 -0
- data/{generators → lib/rails_generator/generators/components}/mailer/templates/mailer.rb +0 -0
- data/{generators → lib/rails_generator/generators/components}/mailer/templates/unit_test.rb +7 -1
- data/{generators → lib/rails_generator/generators/components}/mailer/templates/view.rhtml +0 -0
- data/lib/rails_generator/generators/components/model/USAGE +17 -0
- data/lib/rails_generator/generators/components/model/model_generator.rb +18 -0
- data/{generators/scaffold → lib/rails_generator/generators/components/model}/templates/fixtures.yml +0 -2
- data/{generators → lib/rails_generator/generators/components}/model/templates/model.rb +0 -0
- data/{generators → lib/rails_generator/generators/components}/model/templates/unit_test.rb +5 -1
- data/lib/rails_generator/generators/components/scaffold/USAGE +32 -0
- data/lib/rails_generator/generators/components/scaffold/scaffold_generator.rb +178 -0
- data/{generators → lib/rails_generator/generators/components}/scaffold/templates/controller.rb +1 -1
- data/lib/rails_generator/generators/components/scaffold/templates/form.rhtml +5 -0
- data/{generators → lib/rails_generator/generators/components}/scaffold/templates/functional_test.rb +7 -6
- data/lib/rails_generator/generators/components/scaffold/templates/helper.rb +2 -0
- data/{generators → lib/rails_generator/generators/components}/scaffold/templates/layout.rhtml +1 -1
- data/{generators → lib/rails_generator/generators/components}/scaffold/templates/style.css +17 -17
- data/{generators → lib/rails_generator/generators/components}/scaffold/templates/view_edit.rhtml +1 -1
- data/{generators → lib/rails_generator/generators/components}/scaffold/templates/view_list.rhtml +1 -1
- data/{generators → lib/rails_generator/generators/components}/scaffold/templates/view_new.rhtml +1 -1
- data/{generators → lib/rails_generator/generators/components}/scaffold/templates/view_show.rhtml +0 -0
- data/lib/rails_generator/lookup.rb +200 -0
- data/lib/rails_generator/manifest.rb +53 -0
- data/lib/rails_generator/options.rb +134 -0
- data/lib/rails_generator/scripts.rb +83 -0
- data/lib/rails_generator/scripts/destroy.rb +7 -0
- data/lib/rails_generator/scripts/generate.rb +7 -0
- data/lib/rails_generator/scripts/update.rb +12 -0
- data/lib/rails_generator/simple_logger.rb +46 -0
- data/lib/rails_generator/spec.rb +44 -0
- data/lib/webrick_server.rb +15 -65
- metadata +92 -48
- data/doc/apache_protection +0 -3
- data/doc/index.html +0 -70
- data/generators/controller/USAGE +0 -28
- data/generators/controller/controller_generator.rb +0 -26
- data/generators/controller/templates/functional_test.rb +0 -17
- data/generators/mailer/USAGE +0 -27
- data/generators/mailer/mailer_generator.rb +0 -22
- data/generators/model/USAGE +0 -17
- data/generators/model/model_generator.rb +0 -10
- data/generators/model/templates/fixtures.yml +0 -1
- data/generators/scaffold/USAGE +0 -27
- data/generators/scaffold/scaffold_generator.rb +0 -60
@@ -0,0 +1,83 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/options'
|
2
|
+
|
3
|
+
module Rails
|
4
|
+
module Generator
|
5
|
+
module Scripts
|
6
|
+
|
7
|
+
# Generator scripts handle command-line invocation. Each script
|
8
|
+
# responds to an invoke! class method which handles option parsing
|
9
|
+
# and generator invocation.
|
10
|
+
class Base
|
11
|
+
include Options
|
12
|
+
default_options :collision => :ask, :quiet => false
|
13
|
+
|
14
|
+
# Run the generator script. Takes an array of unparsed arguments
|
15
|
+
# and a hash of parsed arguments, takes the generator as an option
|
16
|
+
# or first remaining argument, and invokes the requested command.
|
17
|
+
def run(args = [], runtime_options = {})
|
18
|
+
begin
|
19
|
+
parse!(args.dup, runtime_options)
|
20
|
+
rescue OptionParser::InvalidOption => e
|
21
|
+
# Don't cry, script. Generators want what you think is invalid.
|
22
|
+
end
|
23
|
+
|
24
|
+
# Generator name is the only required option.
|
25
|
+
unless options[:generator]
|
26
|
+
usage if args.empty?
|
27
|
+
options[:generator] ||= args.shift
|
28
|
+
end
|
29
|
+
|
30
|
+
# Look up generator instance and invoke command on it.
|
31
|
+
Rails::Generator::Base.instance(options[:generator], args, options).command(options[:command]).invoke!
|
32
|
+
rescue => e
|
33
|
+
puts e
|
34
|
+
puts " #{e.backtrace.join("\n ")}\n" if options[:backtrace]
|
35
|
+
raise SystemExit
|
36
|
+
end
|
37
|
+
|
38
|
+
protected
|
39
|
+
# Override with your own script usage banner.
|
40
|
+
def banner
|
41
|
+
"Usage: #{$0} [options] generator [args]"
|
42
|
+
end
|
43
|
+
|
44
|
+
def usage_message
|
45
|
+
usage = "\nInstalled Generators\n"
|
46
|
+
Rails::Generator::Base.sources.each do |source|
|
47
|
+
label = source.label.to_s.capitalize
|
48
|
+
names = source.names
|
49
|
+
usage << " #{label}: #{names.join(', ')}\n" unless names.empty?
|
50
|
+
end
|
51
|
+
|
52
|
+
usage << <<end_blurb
|
53
|
+
|
54
|
+
More are available at http://rubyonrails.org/show/Generators
|
55
|
+
1. Download, for example, login_generator.zip
|
56
|
+
2. Unzip to directory #{Dir.user_home}/.rails/generators/login
|
57
|
+
to use the generator with all your Rails apps
|
58
|
+
end_blurb
|
59
|
+
|
60
|
+
if Object.const_defined?(:RAILS_ROOT)
|
61
|
+
usage << <<end_blurb
|
62
|
+
or to #{File.expand_path(RAILS_ROOT)}/script/generators/login
|
63
|
+
to use with this app only.
|
64
|
+
end_blurb
|
65
|
+
end
|
66
|
+
|
67
|
+
usage << <<end_blurb
|
68
|
+
3. Run generate with no arguments for usage information
|
69
|
+
#{$0} login
|
70
|
+
|
71
|
+
Generator gems are also available:
|
72
|
+
1. gem list generator -s http://gems.rubyonrails.org
|
73
|
+
2. gem install login_generator -s http://gems.rubyonrails.org
|
74
|
+
3. #{$0} login
|
75
|
+
|
76
|
+
end_blurb
|
77
|
+
return usage
|
78
|
+
end
|
79
|
+
end # Base
|
80
|
+
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
module Rails
|
2
|
+
module Generator
|
3
|
+
class SimpleLogger # :nodoc:
|
4
|
+
attr_reader :out
|
5
|
+
attr_accessor :quiet
|
6
|
+
|
7
|
+
def initialize(out = $stdout)
|
8
|
+
@out = out
|
9
|
+
@quiet = false
|
10
|
+
@level = 0
|
11
|
+
end
|
12
|
+
|
13
|
+
def log(status, message, &block)
|
14
|
+
@out.print("%12s %s%s\n" % [status, ' ' * @level, message]) unless quiet
|
15
|
+
indent(&block) if block_given?
|
16
|
+
end
|
17
|
+
|
18
|
+
def indent(&block)
|
19
|
+
@level += 1
|
20
|
+
if block_given?
|
21
|
+
begin
|
22
|
+
block.call
|
23
|
+
ensure
|
24
|
+
outdent
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
def outdent
|
30
|
+
@level -= 1
|
31
|
+
if block_given?
|
32
|
+
begin
|
33
|
+
block.call
|
34
|
+
ensure
|
35
|
+
indent
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
private
|
41
|
+
def method_missing(method, *args, &block)
|
42
|
+
log(method.to_s, args.first, &block)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
module Rails
|
2
|
+
module Generator
|
3
|
+
# A spec knows where a generator was found and how to instantiate it.
|
4
|
+
# Metadata include the generator's name, its base path, and the source
|
5
|
+
# which yielded it (PathSource, GemSource, etc.)
|
6
|
+
class Spec
|
7
|
+
attr_reader :name, :path, :source
|
8
|
+
|
9
|
+
def initialize(name, path, source)
|
10
|
+
@name, @path, @source = name, path, source
|
11
|
+
end
|
12
|
+
|
13
|
+
# Look up the generator class. Require its class file, find the class
|
14
|
+
# in ObjectSpace, tag it with this spec, and return.
|
15
|
+
def klass
|
16
|
+
unless @klass
|
17
|
+
require class_file
|
18
|
+
@klass = lookup_class
|
19
|
+
@klass.spec = self
|
20
|
+
end
|
21
|
+
@klass
|
22
|
+
end
|
23
|
+
|
24
|
+
def class_file
|
25
|
+
"#{path}/#{name}_generator.rb"
|
26
|
+
end
|
27
|
+
|
28
|
+
def class_name
|
29
|
+
"#{name.camelize}Generator"
|
30
|
+
end
|
31
|
+
|
32
|
+
private
|
33
|
+
# Search for the first Class descending from Rails::Generator::Base
|
34
|
+
# whose name matches the requested class name.
|
35
|
+
def lookup_class
|
36
|
+
ObjectSpace.each_object(Class) do |obj|
|
37
|
+
return obj if obj.ancestors.include?(Rails::Generator::Base) and
|
38
|
+
obj.name.split('::').last == class_name
|
39
|
+
end
|
40
|
+
raise NameError, "Missing #{class_name} class in #{class_file}"
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
data/lib/webrick_server.rb
CHANGED
@@ -6,6 +6,7 @@ require 'stringio'
|
|
6
6
|
|
7
7
|
include WEBrick
|
8
8
|
|
9
|
+
|
9
10
|
class DispatchServlet < WEBrick::HTTPServlet::AbstractServlet
|
10
11
|
REQUEST_MUTEX = Mutex.new
|
11
12
|
|
@@ -17,6 +18,7 @@ class DispatchServlet < WEBrick::HTTPServlet::AbstractServlet
|
|
17
18
|
|
18
19
|
trap("INT") { server.shutdown }
|
19
20
|
server.start
|
21
|
+
Dir::chdir(OPTIONS['working_directory']) if OPTIONS['working_directory']
|
20
22
|
end
|
21
23
|
|
22
24
|
def initialize(server, options)
|
@@ -27,14 +29,10 @@ class DispatchServlet < WEBrick::HTTPServlet::AbstractServlet
|
|
27
29
|
|
28
30
|
def do_GET(req, res)
|
29
31
|
begin
|
30
|
-
unless
|
32
|
+
unless handle_file(req, res)
|
33
|
+
REQUEST_MUTEX.lock
|
31
34
|
unless handle_dispatch(req, res)
|
32
|
-
|
33
|
-
REQUEST_MUTEX.lock
|
34
|
-
unless handle_mapped(req, res)
|
35
|
-
raise WEBrick::HTTPStatus::NotFound, "`#{req.path}' not found."
|
36
|
-
end
|
37
|
-
end
|
35
|
+
raise WEBrick::HTTPStatus::NotFound, "`#{req.path}' not found."
|
38
36
|
end
|
39
37
|
end
|
40
38
|
ensure
|
@@ -44,48 +42,31 @@ class DispatchServlet < WEBrick::HTTPServlet::AbstractServlet
|
|
44
42
|
|
45
43
|
alias :do_POST :do_GET
|
46
44
|
|
47
|
-
def handle_index(req, res)
|
48
|
-
if req.request_uri.path == "/"
|
49
|
-
if @server_options[:index_controller]
|
50
|
-
res.set_redirect WEBrick::HTTPStatus::MovedPermanently, "/#{@server_options[:index_controller]}/"
|
51
|
-
else
|
52
|
-
res.set_redirect WEBrick::HTTPStatus::MovedPermanently, "/_doc/"
|
53
|
-
end
|
54
|
-
|
55
|
-
return true
|
56
|
-
else
|
57
|
-
return false
|
58
|
-
end
|
59
|
-
end
|
60
|
-
|
61
45
|
def handle_file(req, res)
|
62
46
|
begin
|
47
|
+
add_dot_html(req)
|
63
48
|
@file_handler.send(:do_GET, req, res)
|
49
|
+
remove_dot_html(req)
|
64
50
|
return true
|
65
51
|
rescue HTTPStatus::PartialContent, HTTPStatus::NotModified => err
|
66
52
|
res.set_error(err)
|
67
53
|
return true
|
68
54
|
rescue => err
|
69
55
|
return false
|
56
|
+
ensure
|
57
|
+
remove_dot_html(req)
|
70
58
|
end
|
71
59
|
end
|
72
60
|
|
73
|
-
def
|
74
|
-
if
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
req.request_uri.query = query
|
80
|
-
handle_dispatch(req, res, origin)
|
81
|
-
else
|
82
|
-
return false
|
83
|
-
end
|
61
|
+
def add_dot_html(req)
|
62
|
+
if /^([^.]+)$/ =~ req.path && req.path != "/" then req.instance_variable_set(:@path_info, "#{$1}.html") end
|
63
|
+
end
|
64
|
+
|
65
|
+
def remove_dot_html(req)
|
66
|
+
if /^([^.]+).html$/ =~ req.path && req.path != "/" then req.instance_variable_set(:@path_info, $1) end
|
84
67
|
end
|
85
68
|
|
86
69
|
def handle_dispatch(req, res, origin = nil)
|
87
|
-
return false unless /^\/dispatch\.(?:cgi|rb|fcgi)$/.match(req.request_uri.path)
|
88
|
-
|
89
70
|
env = req.meta_vars.clone
|
90
71
|
env["QUERY_STRING"] = req.request_uri.query
|
91
72
|
env["REQUEST_URI"] = origin if origin
|
@@ -120,35 +101,4 @@ class DispatchServlet < WEBrick::HTTPServlet::AbstractServlet
|
|
120
101
|
p err, err.backtrace
|
121
102
|
return false
|
122
103
|
end
|
123
|
-
|
124
|
-
def self.parse_uri(path)
|
125
|
-
component, id = /([-_a-zA-Z0-9]+)/, /([0-9]+)/
|
126
|
-
|
127
|
-
case path.sub(%r{^/(?:fcgi|mruby|cgi)/}, "/")
|
128
|
-
when %r{^/#{component}/?$} then
|
129
|
-
{ :controller => $1, :action => "index" }
|
130
|
-
when %r{^/#{component}/#{component}$} then
|
131
|
-
{ :controller => $1, :action => $2 }
|
132
|
-
when %r{^/#{component}/#{component}/#{id}$} then
|
133
|
-
{ :controller => $1, :action => $2, :id => $3 }
|
134
|
-
|
135
|
-
when %r{^/#{component}/#{component}/$} then
|
136
|
-
{ :module => $1, :controller => $2, :action => "index" }
|
137
|
-
when %r{^/#{component}/#{component}/#{component}$} then
|
138
|
-
if DispatchServlet.modules(component).include?($1)
|
139
|
-
{ :module => $1, :controller => $2, :action => $3 }
|
140
|
-
else
|
141
|
-
{ :controller => $1, :action => $2, :id => $3 }
|
142
|
-
end
|
143
|
-
when %r{^/#{component}/#{component}/#{component}/#{id}$} then
|
144
|
-
{ :module => $1, :controller => $2, :action => $3, :id => $4 }
|
145
|
-
else
|
146
|
-
false
|
147
|
-
end
|
148
|
-
end
|
149
|
-
|
150
|
-
def self.modules(module_pattern = '[^.]+')
|
151
|
-
path = RAILS_ROOT + '/app/controllers'
|
152
|
-
Dir.entries(path).grep(/^#{module_pattern}$/).find_all {|e| File.directory?("#{path}/#{e}")}
|
153
|
-
end
|
154
104
|
end
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: rails
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.
|
7
|
-
date: 2005-
|
6
|
+
version: 0.10.0
|
7
|
+
date: 2005-02-24
|
8
8
|
summary: "Web-application framework with template engine, control-flow layer, and ORM."
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -36,7 +36,6 @@ files:
|
|
36
36
|
- doc
|
37
37
|
- environments
|
38
38
|
- fresh_rakefile
|
39
|
-
- generators
|
40
39
|
- helpers
|
41
40
|
- html
|
42
41
|
- lib
|
@@ -48,13 +47,16 @@ files:
|
|
48
47
|
- bin/breakpointer
|
49
48
|
- bin/breakpointer_for_gem
|
50
49
|
- bin/console
|
50
|
+
- bin/console_sandbox.rb
|
51
|
+
- bin/destroy
|
51
52
|
- bin/generate
|
52
53
|
- bin/rails
|
53
54
|
- bin/server
|
55
|
+
- bin/update
|
54
56
|
- configs/apache.conf
|
55
57
|
- configs/database.yml
|
56
|
-
-
|
57
|
-
-
|
58
|
+
- configs/empty.log
|
59
|
+
- configs/routes.rb
|
58
60
|
- doc/README_FOR_APP
|
59
61
|
- dispatches/dispatch.fcgi
|
60
62
|
- dispatches/dispatch.rb
|
@@ -66,42 +68,6 @@ files:
|
|
66
68
|
- helpers/application.rb
|
67
69
|
- helpers/application_helper.rb
|
68
70
|
- helpers/test_helper.rb
|
69
|
-
- generators/controller
|
70
|
-
- generators/mailer
|
71
|
-
- generators/model
|
72
|
-
- generators/scaffold
|
73
|
-
- generators/controller/controller_generator.rb
|
74
|
-
- generators/controller/templates
|
75
|
-
- generators/controller/USAGE
|
76
|
-
- generators/controller/templates/controller.rb
|
77
|
-
- generators/controller/templates/functional_test.rb
|
78
|
-
- generators/controller/templates/helper.rb
|
79
|
-
- generators/controller/templates/view.rhtml
|
80
|
-
- generators/mailer/mailer_generator.rb
|
81
|
-
- generators/mailer/templates
|
82
|
-
- generators/mailer/USAGE
|
83
|
-
- generators/mailer/templates/fixture.rhtml
|
84
|
-
- generators/mailer/templates/mailer.rb
|
85
|
-
- generators/mailer/templates/unit_test.rb
|
86
|
-
- generators/mailer/templates/view.rhtml
|
87
|
-
- generators/model/model_generator.rb
|
88
|
-
- generators/model/templates
|
89
|
-
- generators/model/USAGE
|
90
|
-
- generators/model/templates/fixtures.yml
|
91
|
-
- generators/model/templates/model.rb
|
92
|
-
- generators/model/templates/unit_test.rb
|
93
|
-
- generators/scaffold/scaffold_generator.rb
|
94
|
-
- generators/scaffold/templates
|
95
|
-
- generators/scaffold/USAGE
|
96
|
-
- generators/scaffold/templates/controller.rb
|
97
|
-
- generators/scaffold/templates/fixtures.yml
|
98
|
-
- generators/scaffold/templates/functional_test.rb
|
99
|
-
- generators/scaffold/templates/layout.rhtml
|
100
|
-
- generators/scaffold/templates/style.css
|
101
|
-
- generators/scaffold/templates/view_edit.rhtml
|
102
|
-
- generators/scaffold/templates/view_list.rhtml
|
103
|
-
- generators/scaffold/templates/view_new.rhtml
|
104
|
-
- generators/scaffold/templates/view_show.rhtml
|
105
71
|
- html/404.html
|
106
72
|
- html/500.html
|
107
73
|
- html/index.html
|
@@ -110,10 +76,68 @@ files:
|
|
110
76
|
- lib/breakpoint_client.rb
|
111
77
|
- lib/code_statistics.rb
|
112
78
|
- lib/dispatcher.rb
|
79
|
+
- lib/rails_generator
|
113
80
|
- lib/rails_generator.rb
|
114
81
|
- lib/webrick_server.rb
|
82
|
+
- lib/rails_generator/base.rb
|
83
|
+
- lib/rails_generator/commands.rb
|
84
|
+
- lib/rails_generator/generators
|
85
|
+
- lib/rails_generator/lookup.rb
|
86
|
+
- lib/rails_generator/manifest.rb
|
87
|
+
- lib/rails_generator/options.rb
|
88
|
+
- lib/rails_generator/scripts
|
89
|
+
- lib/rails_generator/scripts.rb
|
90
|
+
- lib/rails_generator/simple_logger.rb
|
91
|
+
- lib/rails_generator/spec.rb
|
92
|
+
- lib/rails_generator/generators/applications
|
93
|
+
- lib/rails_generator/generators/components
|
94
|
+
- lib/rails_generator/generators/applications/app
|
95
|
+
- lib/rails_generator/generators/applications/app/app_generator.rb
|
96
|
+
- lib/rails_generator/generators/applications/app/USAGE
|
97
|
+
- lib/rails_generator/generators/components/controller
|
98
|
+
- lib/rails_generator/generators/components/mailer
|
99
|
+
- lib/rails_generator/generators/components/model
|
100
|
+
- lib/rails_generator/generators/components/scaffold
|
101
|
+
- lib/rails_generator/generators/components/controller/controller_generator.rb
|
102
|
+
- lib/rails_generator/generators/components/controller/templates
|
103
|
+
- lib/rails_generator/generators/components/controller/USAGE
|
104
|
+
- lib/rails_generator/generators/components/controller/templates/controller.rb
|
105
|
+
- lib/rails_generator/generators/components/controller/templates/functional_test.rb
|
106
|
+
- lib/rails_generator/generators/components/controller/templates/helper.rb
|
107
|
+
- lib/rails_generator/generators/components/controller/templates/view.rhtml
|
108
|
+
- lib/rails_generator/generators/components/mailer/mailer_generator.rb
|
109
|
+
- lib/rails_generator/generators/components/mailer/templates
|
110
|
+
- lib/rails_generator/generators/components/mailer/USAGE
|
111
|
+
- lib/rails_generator/generators/components/mailer/templates/fixture.rhtml
|
112
|
+
- lib/rails_generator/generators/components/mailer/templates/mailer.rb
|
113
|
+
- lib/rails_generator/generators/components/mailer/templates/unit_test.rb
|
114
|
+
- lib/rails_generator/generators/components/mailer/templates/view.rhtml
|
115
|
+
- lib/rails_generator/generators/components/model/model_generator.rb
|
116
|
+
- lib/rails_generator/generators/components/model/templates
|
117
|
+
- lib/rails_generator/generators/components/model/USAGE
|
118
|
+
- lib/rails_generator/generators/components/model/templates/fixtures.yml
|
119
|
+
- lib/rails_generator/generators/components/model/templates/model.rb
|
120
|
+
- lib/rails_generator/generators/components/model/templates/unit_test.rb
|
121
|
+
- lib/rails_generator/generators/components/scaffold/scaffold_generator.rb
|
122
|
+
- lib/rails_generator/generators/components/scaffold/templates
|
123
|
+
- lib/rails_generator/generators/components/scaffold/USAGE
|
124
|
+
- lib/rails_generator/generators/components/scaffold/templates/controller.rb
|
125
|
+
- lib/rails_generator/generators/components/scaffold/templates/form.rhtml
|
126
|
+
- lib/rails_generator/generators/components/scaffold/templates/functional_test.rb
|
127
|
+
- lib/rails_generator/generators/components/scaffold/templates/helper.rb
|
128
|
+
- lib/rails_generator/generators/components/scaffold/templates/layout.rhtml
|
129
|
+
- lib/rails_generator/generators/components/scaffold/templates/style.css
|
130
|
+
- lib/rails_generator/generators/components/scaffold/templates/view_edit.rhtml
|
131
|
+
- lib/rails_generator/generators/components/scaffold/templates/view_list.rhtml
|
132
|
+
- lib/rails_generator/generators/components/scaffold/templates/view_new.rhtml
|
133
|
+
- lib/rails_generator/generators/components/scaffold/templates/view_show.rhtml
|
134
|
+
- lib/rails_generator/scripts/destroy.rb
|
135
|
+
- lib/rails_generator/scripts/generate.rb
|
136
|
+
- lib/rails_generator/scripts/update.rb
|
115
137
|
test_files: []
|
116
|
-
rdoc_options:
|
138
|
+
rdoc_options:
|
139
|
+
- "--exclude"
|
140
|
+
- "."
|
117
141
|
extra_rdoc_files: []
|
118
142
|
executables:
|
119
143
|
- rails
|
@@ -130,15 +154,25 @@ dependencies:
|
|
130
154
|
- !ruby/object:Gem::Version
|
131
155
|
version: 0.4.15
|
132
156
|
version:
|
157
|
+
- !ruby/object:Gem::Dependency
|
158
|
+
name: activesupport
|
159
|
+
version_requirement:
|
160
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
161
|
+
requirements:
|
162
|
+
-
|
163
|
+
- "="
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: 1.0.0
|
166
|
+
version:
|
133
167
|
- !ruby/object:Gem::Dependency
|
134
168
|
name: activerecord
|
135
169
|
version_requirement:
|
136
170
|
version_requirements: !ruby/object:Gem::Version::Requirement
|
137
171
|
requirements:
|
138
172
|
-
|
139
|
-
- "
|
173
|
+
- "="
|
140
174
|
- !ruby/object:Gem::Version
|
141
|
-
version: 1.
|
175
|
+
version: 1.7.0
|
142
176
|
version:
|
143
177
|
- !ruby/object:Gem::Dependency
|
144
178
|
name: actionpack
|
@@ -146,9 +180,9 @@ dependencies:
|
|
146
180
|
version_requirements: !ruby/object:Gem::Version::Requirement
|
147
181
|
requirements:
|
148
182
|
-
|
149
|
-
- "
|
183
|
+
- "="
|
150
184
|
- !ruby/object:Gem::Version
|
151
|
-
version: 1.
|
185
|
+
version: 1.5.0
|
152
186
|
version:
|
153
187
|
- !ruby/object:Gem::Dependency
|
154
188
|
name: actionmailer
|
@@ -156,7 +190,17 @@ dependencies:
|
|
156
190
|
version_requirements: !ruby/object:Gem::Version::Requirement
|
157
191
|
requirements:
|
158
192
|
-
|
159
|
-
- "
|
193
|
+
- "="
|
194
|
+
- !ruby/object:Gem::Version
|
195
|
+
version: 0.7.0
|
196
|
+
version:
|
197
|
+
- !ruby/object:Gem::Dependency
|
198
|
+
name: actionwebservice
|
199
|
+
version_requirement:
|
200
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
201
|
+
requirements:
|
202
|
+
-
|
203
|
+
- "="
|
160
204
|
- !ruby/object:Gem::Version
|
161
|
-
version: 0.
|
205
|
+
version: 0.5.0
|
162
206
|
version:
|