actionpack 3.0.20 → 3.1.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of actionpack might be problematic. Click here for more details.
- data/CHANGELOG +88 -142
- data/MIT-LICENSE +1 -1
- data/README.rdoc +5 -6
- data/lib/abstract_controller.rb +1 -0
- data/lib/abstract_controller/asset_paths.rb +2 -2
- data/lib/abstract_controller/base.rb +24 -19
- data/lib/abstract_controller/callbacks.rb +19 -19
- data/lib/abstract_controller/helpers.rb +11 -13
- data/lib/abstract_controller/layouts.rb +4 -5
- data/lib/abstract_controller/railties/routes_helpers.rb +18 -0
- data/lib/abstract_controller/rendering.rb +34 -31
- data/lib/abstract_controller/url_for.rb +27 -0
- data/lib/abstract_controller/view_paths.rb +31 -6
- data/lib/action_controller.rb +5 -3
- data/lib/action_controller/base.rb +15 -16
- data/lib/action_controller/caching.rb +2 -2
- data/lib/action_controller/caching/actions.rb +11 -12
- data/lib/action_controller/caching/fragments.rb +41 -19
- data/lib/action_controller/caching/pages.rb +3 -9
- data/lib/action_controller/caching/sweeping.rb +0 -1
- data/lib/action_controller/deprecated.rb +1 -1
- data/lib/action_controller/log_subscriber.rb +1 -1
- data/lib/action_controller/metal.rb +78 -20
- data/lib/action_controller/metal/compatibility.rb +0 -9
- data/lib/action_controller/metal/conditional_get.rb +9 -9
- data/lib/action_controller/metal/data_streaming.rb +145 -0
- data/lib/action_controller/metal/force_ssl.rb +35 -0
- data/lib/action_controller/metal/head.rb +1 -1
- data/lib/action_controller/metal/helpers.rb +37 -44
- data/lib/action_controller/metal/hide_actions.rb +2 -3
- data/lib/action_controller/metal/http_authentication.rb +41 -38
- data/lib/action_controller/metal/implicit_render.rb +13 -13
- data/lib/action_controller/metal/instrumentation.rb +2 -2
- data/lib/action_controller/metal/mime_responds.rb +25 -19
- data/lib/action_controller/metal/params_wrapper.rb +224 -0
- data/lib/action_controller/metal/redirecting.rb +6 -2
- data/lib/action_controller/metal/renderers.rb +50 -36
- data/lib/action_controller/metal/rendering.rb +34 -25
- data/lib/action_controller/metal/request_forgery_protection.rb +18 -36
- data/lib/action_controller/metal/responder.rb +47 -12
- data/lib/action_controller/metal/streaming.rb +244 -138
- data/lib/action_controller/metal/testing.rb +0 -9
- data/lib/action_controller/metal/url_for.rb +12 -14
- data/lib/action_controller/railtie.rb +19 -37
- data/lib/action_controller/railties/paths.rb +24 -0
- data/lib/action_controller/record_identifier.rb +4 -10
- data/lib/action_controller/test_case.rb +36 -19
- data/lib/action_controller/vendor/html-scanner/html/node.rb +5 -5
- data/lib/action_controller/vendor/html-scanner/html/sanitizer.rb +3 -3
- data/lib/action_controller/vendor/html-scanner/html/selector.rb +2 -0
- data/lib/action_dispatch.rb +4 -1
- data/lib/action_dispatch/http/cache.rb +5 -32
- data/lib/action_dispatch/http/filter_parameters.rb +3 -1
- data/lib/action_dispatch/http/mime_negotiation.rb +22 -3
- data/lib/action_dispatch/http/mime_type.rb +45 -5
- data/lib/action_dispatch/http/rack_cache.rb +58 -0
- data/lib/action_dispatch/http/request.rb +27 -41
- data/lib/action_dispatch/http/response.rb +56 -54
- data/lib/action_dispatch/http/upload.rb +1 -11
- data/lib/action_dispatch/http/url.rb +102 -42
- data/lib/action_dispatch/middleware/callbacks.rb +8 -25
- data/lib/action_dispatch/middleware/closed_error.rb +7 -0
- data/lib/action_dispatch/middleware/cookies.rb +37 -15
- data/lib/action_dispatch/middleware/flash.rb +80 -11
- data/lib/action_dispatch/middleware/params_parser.rb +2 -2
- data/lib/action_dispatch/middleware/reloader.rb +76 -0
- data/lib/action_dispatch/middleware/session/abstract_store.rb +56 -226
- data/lib/action_dispatch/middleware/session/cookie_store.rb +20 -44
- data/lib/action_dispatch/middleware/session/mem_cache_store.rb +7 -46
- data/lib/action_dispatch/middleware/show_exceptions.rb +15 -2
- data/lib/action_dispatch/middleware/stack.rb +50 -17
- data/lib/action_dispatch/middleware/static.rb +41 -29
- data/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb +3 -3
- data/lib/action_dispatch/middleware/templates/rescues/_trace.erb +3 -3
- data/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb +3 -3
- data/lib/action_dispatch/middleware/templates/rescues/layout.erb +4 -2
- data/lib/action_dispatch/middleware/templates/rescues/template_error.erb +2 -6
- data/lib/action_dispatch/railtie.rb +8 -0
- data/lib/action_dispatch/routing.rb +13 -1
- data/lib/action_dispatch/routing/mapper.rb +345 -227
- data/lib/action_dispatch/routing/polymorphic_routes.rb +33 -13
- data/lib/action_dispatch/routing/redirection.rb +110 -0
- data/lib/action_dispatch/routing/route.rb +15 -13
- data/lib/action_dispatch/routing/route_set.rb +116 -90
- data/lib/action_dispatch/routing/routes_proxy.rb +35 -0
- data/lib/action_dispatch/routing/url_for.rb +25 -1
- data/lib/action_dispatch/testing/assertions/response.rb +8 -10
- data/lib/action_dispatch/testing/assertions/routing.rb +15 -15
- data/lib/action_dispatch/testing/assertions/selector.rb +13 -220
- data/lib/action_dispatch/testing/integration.rb +37 -28
- data/lib/action_dispatch/testing/performance_test.rb +1 -3
- data/lib/action_dispatch/testing/test_process.rb +1 -1
- data/lib/action_dispatch/testing/test_request.rb +9 -3
- data/lib/action_dispatch/testing/test_response.rb +4 -111
- data/lib/action_pack.rb +1 -1
- data/lib/action_pack/version.rb +3 -3
- data/lib/action_view.rb +39 -24
- data/lib/action_view/base.rb +61 -86
- data/lib/action_view/buffers.rb +43 -0
- data/lib/action_view/context.rb +21 -24
- data/lib/action_view/flows.rb +79 -0
- data/lib/action_view/helpers.rb +8 -6
- data/lib/action_view/helpers/active_model_helper.rb +0 -23
- data/lib/action_view/helpers/asset_paths.rb +79 -0
- data/lib/action_view/helpers/asset_tag_helper.rb +30 -500
- data/lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb +147 -0
- data/lib/action_view/helpers/asset_tag_helpers/asset_paths.rb +101 -0
- data/lib/action_view/helpers/asset_tag_helpers/javascript_tag_helpers.rb +200 -0
- data/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb +152 -0
- data/lib/action_view/helpers/atom_feed_helper.rb +2 -2
- data/lib/action_view/helpers/cache_helper.rb +11 -19
- data/lib/action_view/helpers/capture_helper.rb +19 -8
- data/lib/action_view/helpers/controller_helper.rb +21 -0
- data/lib/action_view/helpers/csrf_helper.rb +22 -4
- data/lib/action_view/helpers/date_helper.rb +36 -22
- data/lib/action_view/helpers/form_helper.rb +199 -113
- data/lib/action_view/helpers/form_options_helper.rb +10 -11
- data/lib/action_view/helpers/form_tag_helper.rb +94 -22
- data/lib/action_view/helpers/javascript_helper.rb +24 -107
- data/lib/action_view/helpers/number_helper.rb +36 -33
- data/lib/action_view/helpers/output_safety_helper.rb +38 -0
- data/lib/action_view/helpers/record_tag_helper.rb +6 -6
- data/lib/action_view/helpers/rendering_helper.rb +90 -0
- data/lib/action_view/helpers/sanitize_helper.rb +2 -2
- data/lib/action_view/helpers/sprockets_helper.rb +69 -0
- data/lib/action_view/helpers/tag_helper.rb +34 -12
- data/lib/action_view/helpers/text_helper.rb +30 -145
- data/lib/action_view/helpers/translation_helper.rb +10 -17
- data/lib/action_view/helpers/url_helper.rb +70 -67
- data/lib/action_view/locale/en.yml +1 -1
- data/lib/action_view/lookup_context.rb +36 -14
- data/lib/action_view/{paths.rb → path_set.rb} +9 -8
- data/lib/action_view/railtie.rb +12 -4
- data/lib/action_view/renderer/abstract_renderer.rb +36 -0
- data/lib/action_view/{render/partials.rb → renderer/partial_renderer.rb} +147 -146
- data/lib/action_view/renderer/renderer.rb +54 -0
- data/lib/action_view/renderer/streaming_template_renderer.rb +106 -0
- data/lib/action_view/renderer/template_renderer.rb +74 -0
- data/lib/action_view/template.rb +91 -54
- data/lib/action_view/template/error.rb +11 -8
- data/lib/action_view/template/handler.rb +9 -1
- data/lib/action_view/template/handlers.rb +9 -9
- data/lib/action_view/template/handlers/builder.rb +4 -4
- data/lib/action_view/template/handlers/erb.rb +21 -41
- data/lib/action_view/template/resolver.rb +171 -57
- data/lib/action_view/template/text.rb +0 -4
- data/lib/action_view/test_case.rb +32 -16
- data/lib/action_view/testing/resolvers.rb +16 -10
- data/lib/sprockets/railtie.rb +100 -0
- metadata +162 -140
- checksums.yaml +0 -7
- data/lib/action_controller/deprecated/base.rb +0 -143
- data/lib/action_controller/deprecated/dispatcher.rb +0 -28
- data/lib/action_controller/deprecated/url_writer.rb +0 -14
- data/lib/action_dispatch/routing/deprecated_mapper.rb +0 -525
- data/lib/action_view/helpers/prototype_helper.rb +0 -851
- data/lib/action_view/helpers/raw_output_helper.rb +0 -18
- data/lib/action_view/helpers/scriptaculous_helper.rb +0 -263
- data/lib/action_view/render/layouts.rb +0 -83
- data/lib/action_view/render/rendering.rb +0 -67
- data/lib/action_view/template/handlers/rjs.rb +0 -17
@@ -1,4 +1,6 @@
|
|
1
1
|
require 'active_support/core_ext/object/blank'
|
2
|
+
require 'active_support/core_ext/module/delegation'
|
3
|
+
require 'active_support/core_ext/module/remove_method'
|
2
4
|
require 'action_controller'
|
3
5
|
require 'action_controller/test_case'
|
4
6
|
require 'action_view'
|
@@ -20,12 +22,12 @@ module ActionView
|
|
20
22
|
end
|
21
23
|
|
22
24
|
def initialize
|
25
|
+
super
|
23
26
|
self.class.controller_path = ""
|
24
27
|
@request = ActionController::TestRequest.new
|
25
28
|
@response = ActionController::TestResponse.new
|
26
29
|
|
27
30
|
@request.env.delete('PATH_INFO')
|
28
|
-
|
29
31
|
@params = {}
|
30
32
|
end
|
31
33
|
end
|
@@ -43,6 +45,7 @@ module ActionView
|
|
43
45
|
include AbstractController::Helpers
|
44
46
|
include ActionView::Helpers
|
45
47
|
|
48
|
+
delegate :lookup_context, :to => :controller
|
46
49
|
attr_accessor :controller, :output_buffer, :rendered
|
47
50
|
|
48
51
|
module ClassMethods
|
@@ -121,12 +124,13 @@ module ActionView
|
|
121
124
|
# Support the selector assertions
|
122
125
|
#
|
123
126
|
# Need to experiment if this priority is the best one: rendered => output_buffer
|
124
|
-
def
|
127
|
+
def response_from_page
|
125
128
|
HTML::Document.new(@rendered.blank? ? @output_buffer : @rendered).root
|
126
129
|
end
|
127
130
|
|
128
131
|
def say_no_to_protect_against_forgery!
|
129
132
|
_helpers.module_eval do
|
133
|
+
remove_possible_method :protect_against_forgery?
|
130
134
|
def protect_against_forgery?
|
131
135
|
false
|
132
136
|
end
|
@@ -136,30 +140,42 @@ module ActionView
|
|
136
140
|
def make_test_case_available_to_view!
|
137
141
|
test_case_instance = self
|
138
142
|
_helpers.module_eval do
|
139
|
-
|
140
|
-
|
143
|
+
unless private_method_defined?(:_test_case)
|
144
|
+
define_method(:_test_case) { test_case_instance }
|
145
|
+
private :_test_case
|
146
|
+
end
|
141
147
|
end
|
142
148
|
end
|
143
149
|
|
144
150
|
module Locals
|
145
151
|
attr_accessor :locals
|
146
152
|
|
147
|
-
def
|
148
|
-
|
149
|
-
|
153
|
+
def render(options = {}, local_assigns = {})
|
154
|
+
case options
|
155
|
+
when Hash
|
156
|
+
if block_given?
|
157
|
+
locals[options[:layout]] = options[:locals]
|
158
|
+
elsif options.key?(:partial)
|
159
|
+
locals[options[:partial]] = options[:locals]
|
160
|
+
end
|
161
|
+
else
|
162
|
+
locals[options] = local_assigns
|
163
|
+
end
|
164
|
+
|
165
|
+
super
|
150
166
|
end
|
151
167
|
end
|
152
168
|
|
153
169
|
# The instance of ActionView::Base that is used by +render+.
|
154
170
|
def view
|
155
171
|
@view ||= begin
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
172
|
+
view = @controller.view_context
|
173
|
+
view.singleton_class.send :include, _helpers
|
174
|
+
view.extend(Locals)
|
175
|
+
view.locals = self.locals
|
176
|
+
view.output_buffer = self.output_buffer
|
177
|
+
view
|
178
|
+
end
|
163
179
|
end
|
164
180
|
|
165
181
|
alias_method :_view, :view
|
@@ -198,7 +214,7 @@ module ActionView
|
|
198
214
|
# frameworks.
|
199
215
|
def view_assigns
|
200
216
|
Hash[_user_defined_ivars.map do |var|
|
201
|
-
[var[1
|
217
|
+
[var[1, var.length].to_sym, instance_variable_get(var)]
|
202
218
|
end]
|
203
219
|
end
|
204
220
|
|
@@ -214,7 +230,7 @@ module ActionView
|
|
214
230
|
|
215
231
|
def method_missing(selector, *args)
|
216
232
|
if @controller.respond_to?(:_routes) &&
|
217
|
-
|
233
|
+
@controller._routes.named_routes.helpers.include?(selector)
|
218
234
|
@controller.__send__(selector, *args)
|
219
235
|
else
|
220
236
|
super
|
@@ -8,32 +8,38 @@ module ActionView #:nodoc:
|
|
8
8
|
class FixtureResolver < PathResolver
|
9
9
|
attr_reader :hash
|
10
10
|
|
11
|
-
def initialize(hash = {})
|
12
|
-
super()
|
11
|
+
def initialize(hash = {}, pattern=nil)
|
12
|
+
super(pattern)
|
13
13
|
@hash = hash
|
14
14
|
end
|
15
15
|
|
16
|
+
def to_s
|
17
|
+
@hash.keys.join(', ')
|
18
|
+
end
|
19
|
+
|
16
20
|
private
|
17
21
|
|
18
22
|
def query(path, exts, formats)
|
19
|
-
query =
|
20
|
-
|
21
|
-
query << '(' << ext.map {|e| e && Regexp.escape(".#{e}") }.join('|') << '|)'
|
23
|
+
query = ""
|
24
|
+
EXTENSIONS.each do |ext|
|
25
|
+
query << '(' << exts[ext].map {|e| e && Regexp.escape(".#{e}") }.join('|') << '|)'
|
22
26
|
end
|
27
|
+
query = /^(#{Regexp.escape(path)})#{query}$/
|
23
28
|
|
24
29
|
templates = []
|
25
|
-
@hash.each do |_path,
|
26
|
-
|
30
|
+
@hash.each do |_path, array|
|
31
|
+
source, updated_at = array
|
32
|
+
next unless _path =~ query
|
27
33
|
handler, format = extract_handler_and_format(_path, formats)
|
28
34
|
templates << Template.new(source, _path, handler,
|
29
|
-
:virtual_path =>
|
35
|
+
:virtual_path => path.virtual, :format => format, :updated_at => updated_at)
|
30
36
|
end
|
31
|
-
|
37
|
+
|
32
38
|
templates.sort_by {|t| -t.identifier.match(/^#{query}$/).captures.reject(&:blank?).size }
|
33
39
|
end
|
34
40
|
end
|
35
41
|
|
36
|
-
class NullResolver <
|
42
|
+
class NullResolver < PathResolver
|
37
43
|
def query(path, exts, formats)
|
38
44
|
handler, format = extract_handler_and_format(path, formats)
|
39
45
|
[ActionView::Template.new("Template generated by Null Resolver", path, handler, :virtual_path => path, :format => format)]
|
@@ -0,0 +1,100 @@
|
|
1
|
+
module Sprockets
|
2
|
+
class Railtie < Rails::Railtie
|
3
|
+
def self.using_coffee?
|
4
|
+
require 'coffee-script'
|
5
|
+
defined?(CoffeeScript)
|
6
|
+
rescue LoadError
|
7
|
+
false
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.using_scss?
|
11
|
+
require 'sass'
|
12
|
+
defined?(Sass)
|
13
|
+
rescue LoadError
|
14
|
+
false
|
15
|
+
end
|
16
|
+
|
17
|
+
config.app_generators.javascript_engine :coffee if using_coffee?
|
18
|
+
config.app_generators.stylesheet_engine :scss if using_scss?
|
19
|
+
|
20
|
+
# Configure ActionController to use sprockets.
|
21
|
+
initializer "sprockets.set_configs", :after => "action_controller.set_configs" do |app|
|
22
|
+
ActiveSupport.on_load(:action_controller) do
|
23
|
+
self.use_sprockets = app.config.assets.enabled
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
# We need to configure this after initialization to ensure we collect
|
28
|
+
# paths from all engines. This hook is invoked exactly before routes
|
29
|
+
# are compiled.
|
30
|
+
config.after_initialize do |app|
|
31
|
+
assets = app.config.assets
|
32
|
+
next unless assets.enabled
|
33
|
+
|
34
|
+
app.assets = asset_environment(app)
|
35
|
+
|
36
|
+
ActiveSupport.on_load(:action_view) do
|
37
|
+
app.assets.context.instance_eval do
|
38
|
+
include ::ActionView::Helpers::SprocketsHelper
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
app.routes.append do
|
43
|
+
mount app.assets => assets.prefix
|
44
|
+
end
|
45
|
+
|
46
|
+
if config.action_controller.perform_caching
|
47
|
+
app.assets = app.assets.index
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
protected
|
52
|
+
|
53
|
+
def asset_environment(app)
|
54
|
+
require "sprockets"
|
55
|
+
assets = app.config.assets
|
56
|
+
env = Sprockets::Environment.new(app.root.to_s)
|
57
|
+
env.static_root = File.join(app.root.join("public"), assets.prefix)
|
58
|
+
env.paths.concat assets.paths
|
59
|
+
env.logger = Rails.logger
|
60
|
+
env.js_compressor = expand_js_compressor(assets.js_compressor)
|
61
|
+
env.css_compressor = expand_css_compressor(assets.css_compressor)
|
62
|
+
env
|
63
|
+
end
|
64
|
+
|
65
|
+
def expand_js_compressor(sym)
|
66
|
+
case sym
|
67
|
+
when :closure
|
68
|
+
require 'closure-compiler'
|
69
|
+
Closure::Compiler.new
|
70
|
+
when :uglifier
|
71
|
+
require 'uglifier'
|
72
|
+
Uglifier.new
|
73
|
+
when :yui
|
74
|
+
require 'yui/compressor'
|
75
|
+
YUI::JavaScriptCompressor.new
|
76
|
+
else
|
77
|
+
sym
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
def expand_css_compressor(sym)
|
82
|
+
case sym
|
83
|
+
when :scss
|
84
|
+
require 'sass'
|
85
|
+
compressor = Object.new
|
86
|
+
def compressor.compress(source)
|
87
|
+
Sass::Engine.new(source,
|
88
|
+
:syntax => :scss, :style => :compressed
|
89
|
+
).render
|
90
|
+
end
|
91
|
+
compressor
|
92
|
+
when :yui
|
93
|
+
require 'yui/compressor'
|
94
|
+
YUI::JavaScriptCompressor.new(:munge => true)
|
95
|
+
else
|
96
|
+
sym
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
metadata
CHANGED
@@ -1,148 +1,148 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: actionpack
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: 6
|
5
|
+
version: 3.1.0.beta1
|
5
6
|
platform: ruby
|
6
|
-
authors:
|
7
|
+
authors:
|
7
8
|
- David Heinemeier Hansson
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
12
|
+
|
13
|
+
date: 2011-05-04 00:00:00 -05:00
|
14
|
+
default_executable:
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
14
17
|
name: activesupport
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - '='
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 3.0.20
|
20
|
-
type: :runtime
|
21
18
|
prerelease: false
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
19
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
|
+
none: false
|
21
|
+
requirements:
|
22
|
+
- - "="
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: 3.1.0.beta1
|
25
|
+
type: :runtime
|
26
|
+
version_requirements: *id001
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
28
|
name: activemodel
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
29
|
+
prerelease: false
|
30
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
31
|
+
none: false
|
32
|
+
requirements:
|
33
|
+
- - "="
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: 3.1.0.beta1
|
34
36
|
type: :runtime
|
37
|
+
version_requirements: *id002
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
name: rack-cache
|
35
40
|
prerelease: false
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
name: builder
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 2.1.2
|
41
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ~>
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 1.0.1
|
48
47
|
type: :runtime
|
48
|
+
version_requirements: *id003
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: builder
|
49
51
|
prerelease: false
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
name: i18n
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 0.5.0
|
52
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ~>
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: 3.0.0
|
62
58
|
type: :runtime
|
59
|
+
version_requirements: *id004
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
name: i18n
|
63
62
|
prerelease: false
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
name: rack
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: 1.2.5
|
63
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
64
|
+
none: false
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.6.0beta1
|
76
69
|
type: :runtime
|
70
|
+
version_requirements: *id005
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: rack
|
77
73
|
prerelease: false
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
name: rack-test
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: 0.5.7
|
74
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
75
|
+
none: false
|
76
|
+
requirements:
|
77
|
+
- - ~>
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: 1.3.0.beta
|
90
80
|
type: :runtime
|
81
|
+
version_requirements: *id006
|
82
|
+
- !ruby/object:Gem::Dependency
|
83
|
+
name: rack-test
|
91
84
|
prerelease: false
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
85
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
86
|
+
none: false
|
87
|
+
requirements:
|
88
|
+
- - ~>
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: 0.6.0
|
91
|
+
type: :runtime
|
92
|
+
version_requirements: *id007
|
93
|
+
- !ruby/object:Gem::Dependency
|
98
94
|
name: rack-mount
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
95
|
+
prerelease: false
|
96
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ~>
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: 0.7.2
|
104
102
|
type: :runtime
|
103
|
+
version_requirements: *id008
|
104
|
+
- !ruby/object:Gem::Dependency
|
105
|
+
name: sprockets
|
105
106
|
prerelease: false
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
name: tzinfo
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - "~>"
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: 0.3.23
|
107
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
108
|
+
none: false
|
109
|
+
requirements:
|
110
|
+
- - ~>
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: 2.0.0.beta.2
|
118
113
|
type: :runtime
|
114
|
+
version_requirements: *id009
|
115
|
+
- !ruby/object:Gem::Dependency
|
116
|
+
name: tzinfo
|
119
117
|
prerelease: false
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
name: erubis
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - "~>"
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: 2.6.6
|
118
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
119
|
+
none: false
|
120
|
+
requirements:
|
121
|
+
- - ~>
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: 0.3.27
|
132
124
|
type: :runtime
|
125
|
+
version_requirements: *id010
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: erubis
|
133
128
|
prerelease: false
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
129
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
130
|
+
none: false
|
131
|
+
requirements:
|
132
|
+
- - ~>
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: 2.7.0
|
135
|
+
type: :runtime
|
136
|
+
version_requirements: *id011
|
137
|
+
description: Web apps on Rails. Simple, battle-tested conventions for building and testing MVC web applications. Works with any Rack-compatible server.
|
141
138
|
email: david@loudthinking.com
|
142
139
|
executables: []
|
140
|
+
|
143
141
|
extensions: []
|
142
|
+
|
144
143
|
extra_rdoc_files: []
|
145
|
-
|
144
|
+
|
145
|
+
files:
|
146
146
|
- CHANGELOG
|
147
147
|
- README.rdoc
|
148
148
|
- MIT-LICENSE
|
@@ -153,8 +153,10 @@ files:
|
|
153
153
|
- lib/abstract_controller/helpers.rb
|
154
154
|
- lib/abstract_controller/layouts.rb
|
155
155
|
- lib/abstract_controller/logger.rb
|
156
|
+
- lib/abstract_controller/railties/routes_helpers.rb
|
156
157
|
- lib/abstract_controller/rendering.rb
|
157
158
|
- lib/abstract_controller/translation.rb
|
159
|
+
- lib/abstract_controller/url_for.rb
|
158
160
|
- lib/abstract_controller/view_paths.rb
|
159
161
|
- lib/abstract_controller.rb
|
160
162
|
- lib/action_controller/base.rb
|
@@ -163,18 +165,17 @@ files:
|
|
163
165
|
- lib/action_controller/caching/pages.rb
|
164
166
|
- lib/action_controller/caching/sweeping.rb
|
165
167
|
- lib/action_controller/caching.rb
|
166
|
-
- lib/action_controller/deprecated/base.rb
|
167
|
-
- lib/action_controller/deprecated/dispatcher.rb
|
168
168
|
- lib/action_controller/deprecated/integration_test.rb
|
169
169
|
- lib/action_controller/deprecated/performance_test.rb
|
170
|
-
- lib/action_controller/deprecated/url_writer.rb
|
171
170
|
- lib/action_controller/deprecated.rb
|
172
171
|
- lib/action_controller/log_subscriber.rb
|
173
172
|
- lib/action_controller/metal/compatibility.rb
|
174
173
|
- lib/action_controller/metal/conditional_get.rb
|
175
174
|
- lib/action_controller/metal/cookies.rb
|
175
|
+
- lib/action_controller/metal/data_streaming.rb
|
176
176
|
- lib/action_controller/metal/exceptions.rb
|
177
177
|
- lib/action_controller/metal/flash.rb
|
178
|
+
- lib/action_controller/metal/force_ssl.rb
|
178
179
|
- lib/action_controller/metal/head.rb
|
179
180
|
- lib/action_controller/metal/helpers.rb
|
180
181
|
- lib/action_controller/metal/hide_actions.rb
|
@@ -182,6 +183,7 @@ files:
|
|
182
183
|
- lib/action_controller/metal/implicit_render.rb
|
183
184
|
- lib/action_controller/metal/instrumentation.rb
|
184
185
|
- lib/action_controller/metal/mime_responds.rb
|
186
|
+
- lib/action_controller/metal/params_wrapper.rb
|
185
187
|
- lib/action_controller/metal/rack_delegation.rb
|
186
188
|
- lib/action_controller/metal/redirecting.rb
|
187
189
|
- lib/action_controller/metal/renderers.rb
|
@@ -196,6 +198,7 @@ files:
|
|
196
198
|
- lib/action_controller/metal.rb
|
197
199
|
- lib/action_controller/middleware.rb
|
198
200
|
- lib/action_controller/railtie.rb
|
201
|
+
- lib/action_controller/railties/paths.rb
|
199
202
|
- lib/action_controller/record_identifier.rb
|
200
203
|
- lib/action_controller/test_case.rb
|
201
204
|
- lib/action_controller/vendor/html-scanner/html/document.rb
|
@@ -214,16 +217,19 @@ files:
|
|
214
217
|
- lib/action_dispatch/http/mime_types.rb
|
215
218
|
- lib/action_dispatch/http/parameter_filter.rb
|
216
219
|
- lib/action_dispatch/http/parameters.rb
|
220
|
+
- lib/action_dispatch/http/rack_cache.rb
|
217
221
|
- lib/action_dispatch/http/request.rb
|
218
222
|
- lib/action_dispatch/http/response.rb
|
219
223
|
- lib/action_dispatch/http/upload.rb
|
220
224
|
- lib/action_dispatch/http/url.rb
|
221
225
|
- lib/action_dispatch/middleware/best_standards_support.rb
|
222
226
|
- lib/action_dispatch/middleware/callbacks.rb
|
227
|
+
- lib/action_dispatch/middleware/closed_error.rb
|
223
228
|
- lib/action_dispatch/middleware/cookies.rb
|
224
229
|
- lib/action_dispatch/middleware/flash.rb
|
225
230
|
- lib/action_dispatch/middleware/head.rb
|
226
231
|
- lib/action_dispatch/middleware/params_parser.rb
|
232
|
+
- lib/action_dispatch/middleware/reloader.rb
|
227
233
|
- lib/action_dispatch/middleware/remote_ip.rb
|
228
234
|
- lib/action_dispatch/middleware/rescue.rb
|
229
235
|
- lib/action_dispatch/middleware/session/abstract_store.rb
|
@@ -241,11 +247,12 @@ files:
|
|
241
247
|
- lib/action_dispatch/middleware/templates/rescues/template_error.erb
|
242
248
|
- lib/action_dispatch/middleware/templates/rescues/unknown_action.erb
|
243
249
|
- lib/action_dispatch/railtie.rb
|
244
|
-
- lib/action_dispatch/routing/deprecated_mapper.rb
|
245
250
|
- lib/action_dispatch/routing/mapper.rb
|
246
251
|
- lib/action_dispatch/routing/polymorphic_routes.rb
|
252
|
+
- lib/action_dispatch/routing/redirection.rb
|
247
253
|
- lib/action_dispatch/routing/route.rb
|
248
254
|
- lib/action_dispatch/routing/route_set.rb
|
255
|
+
- lib/action_dispatch/routing/routes_proxy.rb
|
249
256
|
- lib/action_dispatch/routing/url_for.rb
|
250
257
|
- lib/action_dispatch/routing.rb
|
251
258
|
- lib/action_dispatch/testing/assertions/dom.rb
|
@@ -263,12 +270,20 @@ files:
|
|
263
270
|
- lib/action_pack/version.rb
|
264
271
|
- lib/action_pack.rb
|
265
272
|
- lib/action_view/base.rb
|
273
|
+
- lib/action_view/buffers.rb
|
266
274
|
- lib/action_view/context.rb
|
275
|
+
- lib/action_view/flows.rb
|
267
276
|
- lib/action_view/helpers/active_model_helper.rb
|
277
|
+
- lib/action_view/helpers/asset_paths.rb
|
268
278
|
- lib/action_view/helpers/asset_tag_helper.rb
|
279
|
+
- lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb
|
280
|
+
- lib/action_view/helpers/asset_tag_helpers/asset_paths.rb
|
281
|
+
- lib/action_view/helpers/asset_tag_helpers/javascript_tag_helpers.rb
|
282
|
+
- lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb
|
269
283
|
- lib/action_view/helpers/atom_feed_helper.rb
|
270
284
|
- lib/action_view/helpers/cache_helper.rb
|
271
285
|
- lib/action_view/helpers/capture_helper.rb
|
286
|
+
- lib/action_view/helpers/controller_helper.rb
|
272
287
|
- lib/action_view/helpers/csrf_helper.rb
|
273
288
|
- lib/action_view/helpers/date_helper.rb
|
274
289
|
- lib/action_view/helpers/debug_helper.rb
|
@@ -277,11 +292,11 @@ files:
|
|
277
292
|
- lib/action_view/helpers/form_tag_helper.rb
|
278
293
|
- lib/action_view/helpers/javascript_helper.rb
|
279
294
|
- lib/action_view/helpers/number_helper.rb
|
280
|
-
- lib/action_view/helpers/
|
281
|
-
- lib/action_view/helpers/raw_output_helper.rb
|
295
|
+
- lib/action_view/helpers/output_safety_helper.rb
|
282
296
|
- lib/action_view/helpers/record_tag_helper.rb
|
297
|
+
- lib/action_view/helpers/rendering_helper.rb
|
283
298
|
- lib/action_view/helpers/sanitize_helper.rb
|
284
|
-
- lib/action_view/helpers/
|
299
|
+
- lib/action_view/helpers/sprockets_helper.rb
|
285
300
|
- lib/action_view/helpers/tag_helper.rb
|
286
301
|
- lib/action_view/helpers/text_helper.rb
|
287
302
|
- lib/action_view/helpers/translation_helper.rb
|
@@ -290,16 +305,17 @@ files:
|
|
290
305
|
- lib/action_view/locale/en.yml
|
291
306
|
- lib/action_view/log_subscriber.rb
|
292
307
|
- lib/action_view/lookup_context.rb
|
293
|
-
- lib/action_view/
|
308
|
+
- lib/action_view/path_set.rb
|
294
309
|
- lib/action_view/railtie.rb
|
295
|
-
- lib/action_view/
|
296
|
-
- lib/action_view/
|
297
|
-
- lib/action_view/
|
310
|
+
- lib/action_view/renderer/abstract_renderer.rb
|
311
|
+
- lib/action_view/renderer/partial_renderer.rb
|
312
|
+
- lib/action_view/renderer/renderer.rb
|
313
|
+
- lib/action_view/renderer/streaming_template_renderer.rb
|
314
|
+
- lib/action_view/renderer/template_renderer.rb
|
298
315
|
- lib/action_view/template/error.rb
|
299
316
|
- lib/action_view/template/handler.rb
|
300
317
|
- lib/action_view/template/handlers/builder.rb
|
301
318
|
- lib/action_view/template/handlers/erb.rb
|
302
|
-
- lib/action_view/template/handlers/rjs.rb
|
303
319
|
- lib/action_view/template/handlers.rb
|
304
320
|
- lib/action_view/template/resolver.rb
|
305
321
|
- lib/action_view/template/text.rb
|
@@ -307,28 +323,34 @@ files:
|
|
307
323
|
- lib/action_view/test_case.rb
|
308
324
|
- lib/action_view/testing/resolvers.rb
|
309
325
|
- lib/action_view.rb
|
326
|
+
- lib/sprockets/railtie.rb
|
327
|
+
has_rdoc: true
|
310
328
|
homepage: http://www.rubyonrails.org
|
311
329
|
licenses: []
|
312
|
-
|
330
|
+
|
313
331
|
post_install_message:
|
314
332
|
rdoc_options: []
|
315
|
-
|
333
|
+
|
334
|
+
require_paths:
|
316
335
|
- lib
|
317
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
318
|
-
|
336
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
337
|
+
none: false
|
338
|
+
requirements:
|
319
339
|
- - ">="
|
320
|
-
- !ruby/object:Gem::Version
|
340
|
+
- !ruby/object:Gem::Version
|
321
341
|
version: 1.8.7
|
322
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
342
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
343
|
+
none: false
|
344
|
+
requirements:
|
345
|
+
- - ">"
|
346
|
+
- !ruby/object:Gem::Version
|
347
|
+
version: 1.3.1
|
348
|
+
requirements:
|
328
349
|
- none
|
329
350
|
rubyforge_project: actionpack
|
330
|
-
rubygems_version:
|
351
|
+
rubygems_version: 1.6.2
|
331
352
|
signing_key:
|
332
|
-
specification_version:
|
353
|
+
specification_version: 3
|
333
354
|
summary: Web-flow and rendering framework putting the VC in MVC (part of Rails).
|
334
355
|
test_files: []
|
356
|
+
|