actionpack 3.2.1 → 3.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.md +12 -0
- data/README.rdoc +1 -1
- data/lib/action_controller/caching/actions.rb +4 -2
- data/lib/action_controller/metal/force_ssl.rb +1 -0
- data/lib/action_controller/metal/mime_responds.rb +29 -15
- data/lib/action_controller/metal/rendering.rb +1 -1
- data/lib/action_controller/metal/responder.rb +2 -3
- data/lib/action_dispatch/http/mime_type.rb +3 -1
- data/lib/action_dispatch/middleware/stack.rb +3 -2
- data/lib/action_dispatch/middleware/static.rb +10 -2
- data/lib/action_dispatch/routing/route_set.rb +8 -3
- data/lib/action_pack/version.rb +1 -1
- data/lib/action_view/helpers/capture_helper.rb +1 -1
- data/lib/action_view/helpers/form_helper.rb +1 -1
- data/lib/action_view/helpers/form_options_helper.rb +3 -3
- data/lib/action_view/lookup_context.rb +3 -11
- data/lib/action_view/renderer/abstract_renderer.rb +1 -1
- data/lib/action_view/renderer/template_renderer.rb +2 -1
- data/lib/action_view/template/handlers/erb.rb +0 -4
- data/lib/action_view/template/handlers.rb +1 -0
- data/lib/sprockets/assets.rake +5 -1
- metadata +168 -170
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## Rails 3.2.2 (unreleased) ##
|
|
2
|
+
|
|
3
|
+
* Format lookup for partials is derived from the format in which the template is being rendered. Closes #5025 part 2 *Santiago Pastorino*
|
|
4
|
+
|
|
5
|
+
* Use the right format when a partial is missing. Closes #5025. *Santiago Pastorino*
|
|
6
|
+
|
|
7
|
+
* Default responder will now always use your overridden block in `respond_with` to render your response. *Prem Sichanugrist*
|
|
8
|
+
|
|
9
|
+
* check_box helper with :disabled => true will generate a disabled hidden field to conform with the HTML convention where disabled fields are not submitted with the form.
|
|
10
|
+
This is a behavior change, previously the hidden tag had a value of the disabled checkbox.
|
|
11
|
+
*Tadas Tamosauskas*
|
|
12
|
+
|
|
1
13
|
## Rails 3.2.1 (January 26, 2012) ##
|
|
2
14
|
|
|
3
15
|
* Documentation improvements.
|
data/README.rdoc
CHANGED
|
@@ -218,7 +218,7 @@ A short rundown of some of the major features:
|
|
|
218
218
|
|
|
219
219
|
def show
|
|
220
220
|
# the output of the method will be cached as
|
|
221
|
-
# ActionController::Base.page_cache_directory + "/weblog/show
|
|
221
|
+
# ActionController::Base.page_cache_directory + "/weblog/show.html"
|
|
222
222
|
# and the web server will pick it up without even hitting Rails
|
|
223
223
|
end
|
|
224
224
|
|
|
@@ -102,8 +102,10 @@ module ActionController #:nodoc:
|
|
|
102
102
|
end
|
|
103
103
|
|
|
104
104
|
def _save_fragment(name, options)
|
|
105
|
-
content =
|
|
106
|
-
|
|
105
|
+
content = ""
|
|
106
|
+
response_body.each do |parts|
|
|
107
|
+
content << parts
|
|
108
|
+
end
|
|
107
109
|
|
|
108
110
|
if caching_allowed?
|
|
109
111
|
write_fragment(name, content, options)
|
|
@@ -29,6 +29,7 @@ module ActionController
|
|
|
29
29
|
if !request.ssl? && !Rails.env.development?
|
|
30
30
|
redirect_options = {:protocol => 'https://', :status => :moved_permanently}
|
|
31
31
|
redirect_options.merge!(:host => host) if host
|
|
32
|
+
redirect_options.merge!(:params => request.query_parameters)
|
|
32
33
|
redirect_to redirect_options
|
|
33
34
|
end
|
|
34
35
|
end
|
|
@@ -191,8 +191,9 @@ module ActionController #:nodoc:
|
|
|
191
191
|
def respond_to(*mimes, &block)
|
|
192
192
|
raise ArgumentError, "respond_to takes either types or a block, never both" if mimes.any? && block_given?
|
|
193
193
|
|
|
194
|
-
if
|
|
195
|
-
response.
|
|
194
|
+
if collector = retrieve_collector_from_mimes(mimes, &block)
|
|
195
|
+
response = collector.response
|
|
196
|
+
response ? response.call : default_render({})
|
|
196
197
|
end
|
|
197
198
|
end
|
|
198
199
|
|
|
@@ -232,10 +233,18 @@ module ActionController #:nodoc:
|
|
|
232
233
|
raise "In order to use respond_with, first you need to declare the formats your " <<
|
|
233
234
|
"controller responds to in the class level" if self.class.mimes_for_respond_to.empty?
|
|
234
235
|
|
|
235
|
-
if
|
|
236
|
+
if collector = retrieve_collector_from_mimes(&block)
|
|
236
237
|
options = resources.size == 1 ? {} : resources.extract_options!
|
|
237
|
-
|
|
238
|
-
|
|
238
|
+
|
|
239
|
+
if defined_response = collector.response
|
|
240
|
+
if action = options.delete(:action)
|
|
241
|
+
render :action => action
|
|
242
|
+
else
|
|
243
|
+
defined_response.call
|
|
244
|
+
end
|
|
245
|
+
else
|
|
246
|
+
(options.delete(:responder) || self.class.responder).call(self, resources, options)
|
|
247
|
+
end
|
|
239
248
|
end
|
|
240
249
|
end
|
|
241
250
|
|
|
@@ -263,15 +272,16 @@ module ActionController #:nodoc:
|
|
|
263
272
|
# Collects mimes and return the response for the negotiated format. Returns
|
|
264
273
|
# nil if :not_acceptable was sent to the client.
|
|
265
274
|
#
|
|
266
|
-
def
|
|
275
|
+
def retrieve_collector_from_mimes(mimes=nil, &block) #:nodoc:
|
|
267
276
|
mimes ||= collect_mimes_from_class_level
|
|
268
|
-
collector = Collector.new(mimes)
|
|
277
|
+
collector = Collector.new(mimes)
|
|
269
278
|
block.call(collector) if block_given?
|
|
279
|
+
format = collector.negotiate_format(request)
|
|
270
280
|
|
|
271
|
-
if format
|
|
281
|
+
if format
|
|
272
282
|
self.content_type ||= format.to_s
|
|
273
|
-
lookup_context.
|
|
274
|
-
collector
|
|
283
|
+
lookup_context.formats = [format.to_sym]
|
|
284
|
+
collector
|
|
275
285
|
else
|
|
276
286
|
head :not_acceptable
|
|
277
287
|
nil
|
|
@@ -280,10 +290,10 @@ module ActionController #:nodoc:
|
|
|
280
290
|
|
|
281
291
|
class Collector #:nodoc:
|
|
282
292
|
include AbstractController::Collector
|
|
283
|
-
attr_accessor :order
|
|
293
|
+
attr_accessor :order, :format
|
|
284
294
|
|
|
285
|
-
def initialize(mimes
|
|
286
|
-
@order, @responses
|
|
295
|
+
def initialize(mimes)
|
|
296
|
+
@order, @responses = [], {}
|
|
287
297
|
mimes.each { |mime| send(mime) }
|
|
288
298
|
end
|
|
289
299
|
|
|
@@ -302,8 +312,12 @@ module ActionController #:nodoc:
|
|
|
302
312
|
@responses[mime_type] ||= block
|
|
303
313
|
end
|
|
304
314
|
|
|
305
|
-
def
|
|
306
|
-
@responses[
|
|
315
|
+
def response
|
|
316
|
+
@responses[format] || @responses[Mime::ALL]
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
def negotiate_format(request)
|
|
320
|
+
@format = request.negotiate_mime(order)
|
|
307
321
|
end
|
|
308
322
|
end
|
|
309
323
|
end
|
|
@@ -14,7 +14,7 @@ module ActionController
|
|
|
14
14
|
def render(*args) #:nodoc:
|
|
15
15
|
raise ::AbstractController::DoubleRenderError if response_body
|
|
16
16
|
super
|
|
17
|
-
self.content_type ||= Mime[
|
|
17
|
+
self.content_type ||= Mime[lookup_context.rendered_format].to_s
|
|
18
18
|
response_body
|
|
19
19
|
end
|
|
20
20
|
|
|
@@ -129,7 +129,6 @@ module ActionController #:nodoc:
|
|
|
129
129
|
@resources = resources
|
|
130
130
|
@options = options
|
|
131
131
|
@action = options.delete(:action)
|
|
132
|
-
@default_response = options.delete(:default_response)
|
|
133
132
|
end
|
|
134
133
|
|
|
135
134
|
delegate :head, :render, :redirect_to, :to => :controller
|
|
@@ -226,7 +225,7 @@ module ActionController #:nodoc:
|
|
|
226
225
|
# controller.
|
|
227
226
|
#
|
|
228
227
|
def default_render
|
|
229
|
-
|
|
228
|
+
controller.default_render(options)
|
|
230
229
|
end
|
|
231
230
|
|
|
232
231
|
# Display is just a shortcut to render a resource with the current format.
|
|
@@ -268,7 +267,7 @@ module ActionController #:nodoc:
|
|
|
268
267
|
end
|
|
269
268
|
|
|
270
269
|
def resource_errors
|
|
271
|
-
respond_to?("#{format}_resource_errors") ? send("#{format}_resource_errors") : resource.errors
|
|
270
|
+
respond_to?("#{format}_resource_errors", true) ? send("#{format}_resource_errors") : resource.errors
|
|
272
271
|
end
|
|
273
272
|
|
|
274
273
|
def json_resource_errors
|
|
@@ -82,6 +82,7 @@ module Mime
|
|
|
82
82
|
class << self
|
|
83
83
|
|
|
84
84
|
TRAILING_STAR_REGEXP = /(text|application)\/\*/
|
|
85
|
+
Q_SEPARATOR_REGEXP = /;\s*q=/
|
|
85
86
|
|
|
86
87
|
def lookup(string)
|
|
87
88
|
LOOKUP[string]
|
|
@@ -108,6 +109,7 @@ module Mime
|
|
|
108
109
|
|
|
109
110
|
def parse(accept_header)
|
|
110
111
|
if accept_header !~ /,/
|
|
112
|
+
accept_header = accept_header.split(Q_SEPARATOR_REGEXP).first
|
|
111
113
|
if accept_header =~ TRAILING_STAR_REGEXP
|
|
112
114
|
parse_data_with_trailing_star($1)
|
|
113
115
|
else
|
|
@@ -117,7 +119,7 @@ module Mime
|
|
|
117
119
|
# keep track of creation order to keep the subsequent sort stable
|
|
118
120
|
list, index = [], 0
|
|
119
121
|
accept_header.split(/,/).each do |header|
|
|
120
|
-
params, q = header.split(
|
|
122
|
+
params, q = header.split(Q_SEPARATOR_REGEXP)
|
|
121
123
|
if params.present?
|
|
122
124
|
params.strip!
|
|
123
125
|
|
|
@@ -93,8 +93,9 @@ module ActionDispatch
|
|
|
93
93
|
end
|
|
94
94
|
|
|
95
95
|
def swap(target, *args, &block)
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
index = assert_index(target, :before)
|
|
97
|
+
insert(index, *args, &block)
|
|
98
|
+
middlewares.delete_at(index + 1)
|
|
98
99
|
end
|
|
99
100
|
|
|
100
101
|
def delete(target)
|
|
@@ -11,14 +11,14 @@ module ActionDispatch
|
|
|
11
11
|
def match?(path)
|
|
12
12
|
path = path.dup
|
|
13
13
|
|
|
14
|
-
full_path = path.empty? ? @root : File.join(@root,
|
|
14
|
+
full_path = path.empty? ? @root : File.join(@root, escape_glob_chars(unescape_path(path)))
|
|
15
15
|
paths = "#{full_path}#{ext}"
|
|
16
16
|
|
|
17
17
|
matches = Dir[paths]
|
|
18
18
|
match = matches.detect { |m| File.file?(m) }
|
|
19
19
|
if match
|
|
20
20
|
match.sub!(@compiled_root, '')
|
|
21
|
-
match
|
|
21
|
+
::Rack::Utils.escape(match)
|
|
22
22
|
end
|
|
23
23
|
end
|
|
24
24
|
|
|
@@ -32,6 +32,14 @@ module ActionDispatch
|
|
|
32
32
|
"{,#{ext},/index#{ext}}"
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
|
+
|
|
36
|
+
def unescape_path(path)
|
|
37
|
+
URI.parser.unescape(path)
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def escape_glob_chars(path)
|
|
41
|
+
path.gsub(/[*?{}\[\]]/, "\\\\\\&")
|
|
42
|
+
end
|
|
35
43
|
end
|
|
36
44
|
|
|
37
45
|
class Static
|
|
@@ -31,6 +31,7 @@ module ActionDispatch
|
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
def prepare_params!(params)
|
|
34
|
+
normalize_controller!(params)
|
|
34
35
|
merge_default_action!(params)
|
|
35
36
|
split_glob_param!(params) if @glob_param
|
|
36
37
|
end
|
|
@@ -66,6 +67,10 @@ module ActionDispatch
|
|
|
66
67
|
controller.action(action).call(env)
|
|
67
68
|
end
|
|
68
69
|
|
|
70
|
+
def normalize_controller!(params)
|
|
71
|
+
params[:controller] = params[:controller].underscore if params.key?(:controller)
|
|
72
|
+
end
|
|
73
|
+
|
|
69
74
|
def merge_default_action!(params)
|
|
70
75
|
params[:action] ||= 'index'
|
|
71
76
|
end
|
|
@@ -262,8 +267,7 @@ module ActionDispatch
|
|
|
262
267
|
def eval_block(block)
|
|
263
268
|
if block.arity == 1
|
|
264
269
|
raise "You are using the old router DSL which has been removed in Rails 3.1. " <<
|
|
265
|
-
"Please check how to update your routes file at: http://www.engineyard.com/blog/2010/the-lowdown-on-routes-in-rails-3/
|
|
266
|
-
"or add the rails_legacy_mapper gem to your Gemfile"
|
|
270
|
+
"Please check how to update your routes file at: http://www.engineyard.com/blog/2010/the-lowdown-on-routes-in-rails-3/"
|
|
267
271
|
end
|
|
268
272
|
mapper = Mapper.new(self)
|
|
269
273
|
if default_scope
|
|
@@ -489,7 +493,7 @@ module ActionDispatch
|
|
|
489
493
|
# if the current controller is "foo/bar/baz" and :controller => "baz/bat"
|
|
490
494
|
# is specified, the controller becomes "foo/baz/bat"
|
|
491
495
|
def use_relative_controller!
|
|
492
|
-
if !named_route && different_controller?
|
|
496
|
+
if !named_route && different_controller? && !controller.start_with?("/")
|
|
493
497
|
old_parts = current_controller.split('/')
|
|
494
498
|
size = controller.count("/") + 1
|
|
495
499
|
parts = old_parts[0...-size] << controller
|
|
@@ -575,6 +579,7 @@ module ActionDispatch
|
|
|
575
579
|
|
|
576
580
|
path_addition, params = generate(path_options, path_segments || {})
|
|
577
581
|
path << path_addition
|
|
582
|
+
params.merge!(options[:params] || {})
|
|
578
583
|
|
|
579
584
|
ActionDispatch::Http::URL.url_for(options.merge!({
|
|
580
585
|
:path => path,
|
data/lib/action_pack/version.rb
CHANGED
|
@@ -194,7 +194,7 @@ module ActionView
|
|
|
194
194
|
def flush_output_buffer #:nodoc:
|
|
195
195
|
if output_buffer && !output_buffer.empty?
|
|
196
196
|
response.body_parts << output_buffer
|
|
197
|
-
self.output_buffer = output_buffer[0,0]
|
|
197
|
+
self.output_buffer = output_buffer.respond_to?(:clone_empty) ? output_buffer.clone_empty : output_buffer[0, 0]
|
|
198
198
|
nil
|
|
199
199
|
end
|
|
200
200
|
end
|
|
@@ -1092,7 +1092,7 @@ module ActionView
|
|
|
1092
1092
|
else
|
|
1093
1093
|
add_default_name_and_id(options)
|
|
1094
1094
|
end
|
|
1095
|
-
hidden = tag("input", "name" => options["name"], "type" => "hidden", "value" => options[
|
|
1095
|
+
hidden = unchecked_value ? tag("input", "name" => options["name"], "type" => "hidden", "value" => unchecked_value, "disabled" => options["disabled"]) : ""
|
|
1096
1096
|
checkbox = tag("input", options)
|
|
1097
1097
|
(hidden + checkbox).html_safe
|
|
1098
1098
|
end
|
|
@@ -616,13 +616,13 @@ module ActionView
|
|
|
616
616
|
private
|
|
617
617
|
def add_options(option_tags, options, value = nil)
|
|
618
618
|
if options[:include_blank]
|
|
619
|
-
option_tags =
|
|
619
|
+
option_tags = content_tag('option', options[:include_blank].kind_of?(String) ? options[:include_blank] : nil, :value => '') + "\n" + option_tags
|
|
620
620
|
end
|
|
621
621
|
if value.blank? && options[:prompt]
|
|
622
622
|
prompt = options[:prompt].kind_of?(String) ? options[:prompt] : I18n.translate('helpers.select.prompt', :default => 'Please select')
|
|
623
|
-
option_tags =
|
|
623
|
+
option_tags = content_tag('option', prompt, :value => '') + "\n" + option_tags
|
|
624
624
|
end
|
|
625
|
-
option_tags
|
|
625
|
+
option_tags
|
|
626
626
|
end
|
|
627
627
|
|
|
628
628
|
def select_content_tag(option_tags, options, html_options)
|
|
@@ -10,7 +10,7 @@ module ActionView
|
|
|
10
10
|
# generate a key, given to view paths, used in the resolver cache lookup. Since
|
|
11
11
|
# this key is generated just once during the request, it speeds up all cache accesses.
|
|
12
12
|
class LookupContext #:nodoc:
|
|
13
|
-
attr_accessor :prefixes
|
|
13
|
+
attr_accessor :prefixes, :rendered_format
|
|
14
14
|
|
|
15
15
|
mattr_accessor :fallbacks
|
|
16
16
|
@@fallbacks = FallbackFileSystemResolver.instances
|
|
@@ -180,23 +180,15 @@ module ActionView
|
|
|
180
180
|
|
|
181
181
|
def initialize(view_paths, details = {}, prefixes = [])
|
|
182
182
|
@details, @details_key = {}, nil
|
|
183
|
-
@
|
|
183
|
+
@skip_default_locale = false
|
|
184
184
|
@cache = true
|
|
185
185
|
@prefixes = prefixes
|
|
186
|
+
@rendered_format = nil
|
|
186
187
|
|
|
187
188
|
self.view_paths = view_paths
|
|
188
189
|
initialize_details(details)
|
|
189
190
|
end
|
|
190
191
|
|
|
191
|
-
# Freeze the current formats in the lookup context. By freezing them, you
|
|
192
|
-
# that next template lookups are not going to modify the formats. The con
|
|
193
|
-
# use this, to ensure that formats won't be further modified (as it does
|
|
194
|
-
def freeze_formats(formats, unless_frozen=false) #:nodoc:
|
|
195
|
-
return if unless_frozen && @frozen_formats
|
|
196
|
-
self.formats = formats
|
|
197
|
-
@frozen_formats = true
|
|
198
|
-
end
|
|
199
|
-
|
|
200
192
|
# Override formats= to expand ["*/*"] values and automatically
|
|
201
193
|
# add :html as fallback to :js.
|
|
202
194
|
def formats=(values)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module ActionView
|
|
2
2
|
class AbstractRenderer #:nodoc:
|
|
3
3
|
delegate :find_template, :template_exists?, :with_fallbacks, :update_details,
|
|
4
|
-
:with_layout_format, :formats, :
|
|
4
|
+
:with_layout_format, :formats, :to => :@lookup_context
|
|
5
5
|
|
|
6
6
|
def initialize(lookup_context)
|
|
7
7
|
@lookup_context = lookup_context
|
|
@@ -8,7 +8,8 @@ module ActionView
|
|
|
8
8
|
@details = extract_details(options)
|
|
9
9
|
extract_format(options[:file] || options[:template], @details)
|
|
10
10
|
template = determine_template(options)
|
|
11
|
-
|
|
11
|
+
@lookup_context.rendered_format ||= template.formats.first
|
|
12
|
+
@lookup_context.formats = template.formats
|
|
12
13
|
render_template(template, options[:layout], options[:locals])
|
|
13
14
|
end
|
|
14
15
|
|
|
@@ -44,10 +44,6 @@ module ActionView
|
|
|
44
44
|
class_attribute :erb_trim_mode
|
|
45
45
|
self.erb_trim_mode = '-'
|
|
46
46
|
|
|
47
|
-
# Default format used by ERB.
|
|
48
|
-
class_attribute :default_format
|
|
49
|
-
self.default_format = Mime::HTML
|
|
50
|
-
|
|
51
47
|
# Default implementation used.
|
|
52
48
|
class_attribute :erb_implementation
|
|
53
49
|
self.erb_implementation = Erubis
|
data/lib/sprockets/assets.rake
CHANGED
|
@@ -6,7 +6,11 @@ namespace :assets do
|
|
|
6
6
|
groups = ENV['RAILS_GROUPS'] || 'assets'
|
|
7
7
|
args = [$0, task,"RAILS_ENV=#{env}","RAILS_GROUPS=#{groups}"]
|
|
8
8
|
args << "--trace" if Rake.application.options.trace
|
|
9
|
-
|
|
9
|
+
if $0 =~ /rake\.bat\Z/i
|
|
10
|
+
Kernel.exec $0, *args
|
|
11
|
+
else
|
|
12
|
+
fork ? ruby(*args) : Kernel.exec(FileUtils::RUBY, *args)
|
|
13
|
+
end
|
|
10
14
|
end
|
|
11
15
|
|
|
12
16
|
# We are currently running with no explicit bundler group
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: actionpack
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 11
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 3
|
|
8
8
|
- 2
|
|
9
|
-
-
|
|
10
|
-
version: 3.2.
|
|
9
|
+
- 2
|
|
10
|
+
version: 3.2.2
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- David Heinemeier Hansson
|
|
@@ -15,8 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2012-01
|
|
19
|
-
default_executable:
|
|
18
|
+
date: 2012-03-01 00:00:00 Z
|
|
20
19
|
dependencies:
|
|
21
20
|
- !ruby/object:Gem::Dependency
|
|
22
21
|
name: activesupport
|
|
@@ -26,12 +25,12 @@ dependencies:
|
|
|
26
25
|
requirements:
|
|
27
26
|
- - "="
|
|
28
27
|
- !ruby/object:Gem::Version
|
|
29
|
-
hash:
|
|
28
|
+
hash: 11
|
|
30
29
|
segments:
|
|
31
30
|
- 3
|
|
32
31
|
- 2
|
|
33
|
-
-
|
|
34
|
-
version: 3.2.
|
|
32
|
+
- 2
|
|
33
|
+
version: 3.2.2
|
|
35
34
|
type: :runtime
|
|
36
35
|
version_requirements: *id001
|
|
37
36
|
- !ruby/object:Gem::Dependency
|
|
@@ -42,12 +41,12 @@ dependencies:
|
|
|
42
41
|
requirements:
|
|
43
42
|
- - "="
|
|
44
43
|
- !ruby/object:Gem::Version
|
|
45
|
-
hash:
|
|
44
|
+
hash: 11
|
|
46
45
|
segments:
|
|
47
46
|
- 3
|
|
48
47
|
- 2
|
|
49
|
-
-
|
|
50
|
-
version: 3.2.
|
|
48
|
+
- 2
|
|
49
|
+
version: 3.2.2
|
|
51
50
|
type: :runtime
|
|
52
51
|
version_requirements: *id002
|
|
53
52
|
- !ruby/object:Gem::Dependency
|
|
@@ -189,195 +188,194 @@ files:
|
|
|
189
188
|
- CHANGELOG.md
|
|
190
189
|
- README.rdoc
|
|
191
190
|
- MIT-LICENSE
|
|
192
|
-
- lib/
|
|
193
|
-
- lib/
|
|
194
|
-
- lib/
|
|
195
|
-
- lib/
|
|
196
|
-
- lib/
|
|
197
|
-
- lib/
|
|
198
|
-
- lib/
|
|
199
|
-
- lib/
|
|
200
|
-
- lib/
|
|
201
|
-
- lib/
|
|
202
|
-
- lib/
|
|
203
|
-
- lib/
|
|
204
|
-
- lib/
|
|
205
|
-
- lib/
|
|
206
|
-
- lib/
|
|
207
|
-
- lib/
|
|
208
|
-
- lib/
|
|
209
|
-
- lib/
|
|
210
|
-
- lib/
|
|
211
|
-
- lib/
|
|
212
|
-
- lib/
|
|
213
|
-
- lib/
|
|
214
|
-
- lib/
|
|
215
|
-
- lib/action_view/context.rb
|
|
216
|
-
- lib/action_view/flows.rb
|
|
217
|
-
- lib/action_view/base.rb
|
|
218
|
-
- lib/action_view/template.rb
|
|
219
|
-
- lib/action_view/lookup_context.rb
|
|
220
|
-
- lib/action_view/helpers.rb
|
|
221
|
-
- lib/action_view/asset_paths.rb
|
|
222
|
-
- lib/action_view/helpers/sanitize_helper.rb
|
|
223
|
-
- lib/action_view/helpers/controller_helper.rb
|
|
224
|
-
- lib/action_view/helpers/capture_helper.rb
|
|
225
|
-
- lib/action_view/helpers/javascript_helper.rb
|
|
226
|
-
- lib/action_view/helpers/tag_helper.rb
|
|
227
|
-
- lib/action_view/helpers/form_helper.rb
|
|
228
|
-
- lib/action_view/helpers/active_model_helper.rb
|
|
229
|
-
- lib/action_view/helpers/debug_helper.rb
|
|
230
|
-
- lib/action_view/helpers/form_options_helper.rb
|
|
231
|
-
- lib/action_view/helpers/form_tag_helper.rb
|
|
232
|
-
- lib/action_view/helpers/csrf_helper.rb
|
|
233
|
-
- lib/action_view/helpers/cache_helper.rb
|
|
234
|
-
- lib/action_view/helpers/date_helper.rb
|
|
235
|
-
- lib/action_view/helpers/translation_helper.rb
|
|
236
|
-
- lib/action_view/helpers/rendering_helper.rb
|
|
237
|
-
- lib/action_view/helpers/record_tag_helper.rb
|
|
238
|
-
- lib/action_view/helpers/asset_paths.rb
|
|
239
|
-
- lib/action_view/helpers/asset_tag_helper.rb
|
|
240
|
-
- lib/action_view/helpers/url_helper.rb
|
|
241
|
-
- lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb
|
|
242
|
-
- lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb
|
|
243
|
-
- lib/action_view/helpers/asset_tag_helpers/javascript_tag_helpers.rb
|
|
244
|
-
- lib/action_view/helpers/asset_tag_helpers/asset_paths.rb
|
|
245
|
-
- lib/action_view/helpers/text_helper.rb
|
|
246
|
-
- lib/action_view/helpers/output_safety_helper.rb
|
|
247
|
-
- lib/action_view/helpers/number_helper.rb
|
|
248
|
-
- lib/action_view/helpers/atom_feed_helper.rb
|
|
249
|
-
- lib/action_view/log_subscriber.rb
|
|
250
|
-
- lib/action_view/path_set.rb
|
|
251
|
-
- lib/action_view/buffers.rb
|
|
252
|
-
- lib/action_view.rb
|
|
253
|
-
- lib/action_pack.rb
|
|
254
|
-
- lib/action_controller.rb
|
|
255
|
-
- lib/action_dispatch.rb
|
|
256
|
-
- lib/action_controller/railtie.rb
|
|
257
|
-
- lib/action_controller/metal/instrumentation.rb
|
|
258
|
-
- lib/action_controller/metal/head.rb
|
|
259
|
-
- lib/action_controller/metal/request_forgery_protection.rb
|
|
191
|
+
- lib/abstract_controller/asset_paths.rb
|
|
192
|
+
- lib/abstract_controller/base.rb
|
|
193
|
+
- lib/abstract_controller/callbacks.rb
|
|
194
|
+
- lib/abstract_controller/collector.rb
|
|
195
|
+
- lib/abstract_controller/helpers.rb
|
|
196
|
+
- lib/abstract_controller/layouts.rb
|
|
197
|
+
- lib/abstract_controller/logger.rb
|
|
198
|
+
- lib/abstract_controller/railties/routes_helpers.rb
|
|
199
|
+
- lib/abstract_controller/rendering.rb
|
|
200
|
+
- lib/abstract_controller/translation.rb
|
|
201
|
+
- lib/abstract_controller/url_for.rb
|
|
202
|
+
- lib/abstract_controller/view_paths.rb
|
|
203
|
+
- lib/abstract_controller.rb
|
|
204
|
+
- lib/action_controller/base.rb
|
|
205
|
+
- lib/action_controller/caching/actions.rb
|
|
206
|
+
- lib/action_controller/caching/fragments.rb
|
|
207
|
+
- lib/action_controller/caching/pages.rb
|
|
208
|
+
- lib/action_controller/caching/sweeping.rb
|
|
209
|
+
- lib/action_controller/caching.rb
|
|
210
|
+
- lib/action_controller/deprecated/integration_test.rb
|
|
211
|
+
- lib/action_controller/deprecated/performance_test.rb
|
|
212
|
+
- lib/action_controller/deprecated.rb
|
|
213
|
+
- lib/action_controller/log_subscriber.rb
|
|
260
214
|
- lib/action_controller/metal/compatibility.rb
|
|
215
|
+
- lib/action_controller/metal/conditional_get.rb
|
|
216
|
+
- lib/action_controller/metal/cookies.rb
|
|
217
|
+
- lib/action_controller/metal/data_streaming.rb
|
|
261
218
|
- lib/action_controller/metal/exceptions.rb
|
|
219
|
+
- lib/action_controller/metal/flash.rb
|
|
220
|
+
- lib/action_controller/metal/force_ssl.rb
|
|
221
|
+
- lib/action_controller/metal/head.rb
|
|
222
|
+
- lib/action_controller/metal/helpers.rb
|
|
262
223
|
- lib/action_controller/metal/hide_actions.rb
|
|
263
|
-
- lib/action_controller/metal/
|
|
224
|
+
- lib/action_controller/metal/http_authentication.rb
|
|
225
|
+
- lib/action_controller/metal/implicit_render.rb
|
|
226
|
+
- lib/action_controller/metal/instrumentation.rb
|
|
227
|
+
- lib/action_controller/metal/mime_responds.rb
|
|
228
|
+
- lib/action_controller/metal/params_wrapper.rb
|
|
229
|
+
- lib/action_controller/metal/rack_delegation.rb
|
|
230
|
+
- lib/action_controller/metal/redirecting.rb
|
|
264
231
|
- lib/action_controller/metal/renderers.rb
|
|
265
|
-
- lib/action_controller/metal/conditional_get.rb
|
|
266
232
|
- lib/action_controller/metal/rendering.rb
|
|
233
|
+
- lib/action_controller/metal/request_forgery_protection.rb
|
|
234
|
+
- lib/action_controller/metal/rescue.rb
|
|
267
235
|
- lib/action_controller/metal/responder.rb
|
|
268
|
-
- lib/action_controller/metal/
|
|
269
|
-
- lib/action_controller/metal/data_streaming.rb
|
|
270
|
-
- lib/action_controller/metal/force_ssl.rb
|
|
236
|
+
- lib/action_controller/metal/session_management.rb
|
|
271
237
|
- lib/action_controller/metal/streaming.rb
|
|
272
238
|
- lib/action_controller/metal/testing.rb
|
|
273
|
-
- lib/action_controller/metal/mime_responds.rb
|
|
274
|
-
- lib/action_controller/metal/rescue.rb
|
|
275
|
-
- lib/action_controller/metal/implicit_render.rb
|
|
276
|
-
- lib/action_controller/metal/redirecting.rb
|
|
277
|
-
- lib/action_controller/metal/session_management.rb
|
|
278
|
-
- lib/action_controller/metal/rack_delegation.rb
|
|
279
|
-
- lib/action_controller/metal/flash.rb
|
|
280
|
-
- lib/action_controller/metal/http_authentication.rb
|
|
281
|
-
- lib/action_controller/metal/params_wrapper.rb
|
|
282
239
|
- lib/action_controller/metal/url_for.rb
|
|
240
|
+
- lib/action_controller/metal.rb
|
|
241
|
+
- lib/action_controller/middleware.rb
|
|
242
|
+
- lib/action_controller/railtie.rb
|
|
283
243
|
- lib/action_controller/railties/paths.rb
|
|
244
|
+
- lib/action_controller/record_identifier.rb
|
|
284
245
|
- lib/action_controller/test_case.rb
|
|
285
|
-
- lib/action_controller/middleware.rb
|
|
286
|
-
- lib/action_controller/base.rb
|
|
287
|
-
- lib/action_controller/deprecated/integration_test.rb
|
|
288
|
-
- lib/action_controller/deprecated/performance_test.rb
|
|
289
|
-
- lib/action_controller/metal.rb
|
|
290
246
|
- lib/action_controller/vendor/html-scanner/html/document.rb
|
|
291
|
-
- lib/action_controller/vendor/html-scanner/html/tokenizer.rb
|
|
292
|
-
- lib/action_controller/vendor/html-scanner/html/selector.rb
|
|
293
|
-
- lib/action_controller/vendor/html-scanner/html/sanitizer.rb
|
|
294
247
|
- lib/action_controller/vendor/html-scanner/html/node.rb
|
|
248
|
+
- lib/action_controller/vendor/html-scanner/html/sanitizer.rb
|
|
249
|
+
- lib/action_controller/vendor/html-scanner/html/selector.rb
|
|
250
|
+
- lib/action_controller/vendor/html-scanner/html/tokenizer.rb
|
|
295
251
|
- lib/action_controller/vendor/html-scanner/html/version.rb
|
|
296
252
|
- lib/action_controller/vendor/html-scanner.rb
|
|
297
|
-
- lib/action_controller
|
|
298
|
-
- lib/
|
|
299
|
-
- lib/
|
|
300
|
-
- lib/
|
|
301
|
-
- lib/
|
|
302
|
-
- lib/
|
|
303
|
-
- lib/
|
|
304
|
-
- lib/
|
|
305
|
-
- lib/
|
|
306
|
-
- lib/
|
|
307
|
-
- lib/action_dispatch/
|
|
308
|
-
- lib/action_dispatch/
|
|
309
|
-
- lib/action_dispatch/
|
|
310
|
-
- lib/action_dispatch/
|
|
311
|
-
- lib/action_dispatch/middleware/
|
|
312
|
-
- lib/action_dispatch/middleware/reloader.rb
|
|
313
|
-
- lib/action_dispatch/middleware/static.rb
|
|
314
|
-
- lib/action_dispatch/middleware/head.rb
|
|
253
|
+
- lib/action_controller.rb
|
|
254
|
+
- lib/action_dispatch/http/cache.rb
|
|
255
|
+
- lib/action_dispatch/http/filter_parameters.rb
|
|
256
|
+
- lib/action_dispatch/http/headers.rb
|
|
257
|
+
- lib/action_dispatch/http/mime_negotiation.rb
|
|
258
|
+
- lib/action_dispatch/http/mime_type.rb
|
|
259
|
+
- lib/action_dispatch/http/mime_types.rb
|
|
260
|
+
- lib/action_dispatch/http/parameter_filter.rb
|
|
261
|
+
- lib/action_dispatch/http/parameters.rb
|
|
262
|
+
- lib/action_dispatch/http/rack_cache.rb
|
|
263
|
+
- lib/action_dispatch/http/request.rb
|
|
264
|
+
- lib/action_dispatch/http/response.rb
|
|
265
|
+
- lib/action_dispatch/http/upload.rb
|
|
266
|
+
- lib/action_dispatch/http/url.rb
|
|
267
|
+
- lib/action_dispatch/middleware/best_standards_support.rb
|
|
315
268
|
- lib/action_dispatch/middleware/body_proxy.rb
|
|
269
|
+
- lib/action_dispatch/middleware/callbacks.rb
|
|
316
270
|
- lib/action_dispatch/middleware/cookies.rb
|
|
317
|
-
- lib/action_dispatch/middleware/
|
|
271
|
+
- lib/action_dispatch/middleware/debug_exceptions.rb
|
|
318
272
|
- lib/action_dispatch/middleware/exception_wrapper.rb
|
|
319
|
-
- lib/action_dispatch/middleware/params_parser.rb
|
|
320
|
-
- lib/action_dispatch/middleware/callbacks.rb
|
|
321
|
-
- lib/action_dispatch/middleware/show_exceptions.rb
|
|
322
|
-
- lib/action_dispatch/middleware/rescue.rb
|
|
323
|
-
- lib/action_dispatch/middleware/remote_ip.rb
|
|
324
|
-
- lib/action_dispatch/middleware/best_standards_support.rb
|
|
325
273
|
- lib/action_dispatch/middleware/flash.rb
|
|
274
|
+
- lib/action_dispatch/middleware/head.rb
|
|
275
|
+
- lib/action_dispatch/middleware/params_parser.rb
|
|
326
276
|
- lib/action_dispatch/middleware/public_exceptions.rb
|
|
327
|
-
- lib/action_dispatch/middleware/
|
|
277
|
+
- lib/action_dispatch/middleware/reloader.rb
|
|
278
|
+
- lib/action_dispatch/middleware/remote_ip.rb
|
|
328
279
|
- lib/action_dispatch/middleware/request_id.rb
|
|
329
|
-
- lib/action_dispatch/middleware/
|
|
330
|
-
- lib/action_dispatch/middleware/
|
|
280
|
+
- lib/action_dispatch/middleware/rescue.rb
|
|
281
|
+
- lib/action_dispatch/middleware/session/abstract_store.rb
|
|
282
|
+
- lib/action_dispatch/middleware/session/cache_store.rb
|
|
283
|
+
- lib/action_dispatch/middleware/session/cookie_store.rb
|
|
284
|
+
- lib/action_dispatch/middleware/session/mem_cache_store.rb
|
|
285
|
+
- lib/action_dispatch/middleware/show_exceptions.rb
|
|
286
|
+
- lib/action_dispatch/middleware/stack.rb
|
|
287
|
+
- lib/action_dispatch/middleware/static.rb
|
|
288
|
+
- lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb
|
|
331
289
|
- lib/action_dispatch/middleware/templates/rescues/_trace.erb
|
|
290
|
+
- lib/action_dispatch/middleware/templates/rescues/diagnostics.erb
|
|
332
291
|
- lib/action_dispatch/middleware/templates/rescues/layout.erb
|
|
333
292
|
- lib/action_dispatch/middleware/templates/rescues/missing_template.erb
|
|
334
|
-
- lib/action_dispatch/middleware/templates/rescues/
|
|
335
|
-
- lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb
|
|
293
|
+
- lib/action_dispatch/middleware/templates/rescues/routing_error.erb
|
|
336
294
|
- lib/action_dispatch/middleware/templates/rescues/template_error.erb
|
|
337
|
-
- lib/action_dispatch/
|
|
338
|
-
- lib/action_dispatch/
|
|
295
|
+
- lib/action_dispatch/middleware/templates/rescues/unknown_action.erb
|
|
296
|
+
- lib/action_dispatch/railtie.rb
|
|
297
|
+
- lib/action_dispatch/routing/mapper.rb
|
|
339
298
|
- lib/action_dispatch/routing/polymorphic_routes.rb
|
|
299
|
+
- lib/action_dispatch/routing/redirection.rb
|
|
340
300
|
- lib/action_dispatch/routing/route_set.rb
|
|
341
|
-
- lib/action_dispatch/routing/
|
|
301
|
+
- lib/action_dispatch/routing/routes_proxy.rb
|
|
342
302
|
- lib/action_dispatch/routing/url_for.rb
|
|
343
|
-
- lib/action_dispatch/
|
|
344
|
-
- lib/action_dispatch/testing/performance_test.rb
|
|
345
|
-
- lib/action_dispatch/testing/assertions.rb
|
|
346
|
-
- lib/action_dispatch/testing/test_response.rb
|
|
347
|
-
- lib/action_dispatch/testing/assertions/tag.rb
|
|
348
|
-
- lib/action_dispatch/testing/assertions/response.rb
|
|
303
|
+
- lib/action_dispatch/routing.rb
|
|
349
304
|
- lib/action_dispatch/testing/assertions/dom.rb
|
|
350
|
-
- lib/action_dispatch/testing/assertions/
|
|
305
|
+
- lib/action_dispatch/testing/assertions/response.rb
|
|
351
306
|
- lib/action_dispatch/testing/assertions/routing.rb
|
|
352
|
-
- lib/action_dispatch/testing/
|
|
307
|
+
- lib/action_dispatch/testing/assertions/selector.rb
|
|
308
|
+
- lib/action_dispatch/testing/assertions/tag.rb
|
|
309
|
+
- lib/action_dispatch/testing/assertions.rb
|
|
353
310
|
- lib/action_dispatch/testing/integration.rb
|
|
354
|
-
- lib/action_dispatch/
|
|
355
|
-
- lib/action_dispatch/
|
|
356
|
-
- lib/action_dispatch/
|
|
357
|
-
- lib/action_dispatch/
|
|
358
|
-
- lib/action_dispatch
|
|
359
|
-
- lib/
|
|
360
|
-
- lib/
|
|
361
|
-
- lib/
|
|
362
|
-
- lib/
|
|
363
|
-
- lib/
|
|
364
|
-
- lib/
|
|
365
|
-
- lib/
|
|
366
|
-
- lib/
|
|
367
|
-
- lib/
|
|
368
|
-
- lib/
|
|
369
|
-
- lib/
|
|
370
|
-
- lib/
|
|
371
|
-
- lib/
|
|
372
|
-
- lib/
|
|
373
|
-
- lib/
|
|
374
|
-
- lib/
|
|
375
|
-
- lib/
|
|
376
|
-
- lib/
|
|
377
|
-
- lib/
|
|
378
|
-
- lib/
|
|
379
|
-
- lib/
|
|
380
|
-
|
|
311
|
+
- lib/action_dispatch/testing/performance_test.rb
|
|
312
|
+
- lib/action_dispatch/testing/test_process.rb
|
|
313
|
+
- lib/action_dispatch/testing/test_request.rb
|
|
314
|
+
- lib/action_dispatch/testing/test_response.rb
|
|
315
|
+
- lib/action_dispatch.rb
|
|
316
|
+
- lib/action_pack/version.rb
|
|
317
|
+
- lib/action_pack.rb
|
|
318
|
+
- lib/action_view/asset_paths.rb
|
|
319
|
+
- lib/action_view/base.rb
|
|
320
|
+
- lib/action_view/buffers.rb
|
|
321
|
+
- lib/action_view/context.rb
|
|
322
|
+
- lib/action_view/flows.rb
|
|
323
|
+
- lib/action_view/helpers/active_model_helper.rb
|
|
324
|
+
- lib/action_view/helpers/asset_paths.rb
|
|
325
|
+
- lib/action_view/helpers/asset_tag_helper.rb
|
|
326
|
+
- lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb
|
|
327
|
+
- lib/action_view/helpers/asset_tag_helpers/asset_paths.rb
|
|
328
|
+
- lib/action_view/helpers/asset_tag_helpers/javascript_tag_helpers.rb
|
|
329
|
+
- lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb
|
|
330
|
+
- lib/action_view/helpers/atom_feed_helper.rb
|
|
331
|
+
- lib/action_view/helpers/cache_helper.rb
|
|
332
|
+
- lib/action_view/helpers/capture_helper.rb
|
|
333
|
+
- lib/action_view/helpers/controller_helper.rb
|
|
334
|
+
- lib/action_view/helpers/csrf_helper.rb
|
|
335
|
+
- lib/action_view/helpers/date_helper.rb
|
|
336
|
+
- lib/action_view/helpers/debug_helper.rb
|
|
337
|
+
- lib/action_view/helpers/form_helper.rb
|
|
338
|
+
- lib/action_view/helpers/form_options_helper.rb
|
|
339
|
+
- lib/action_view/helpers/form_tag_helper.rb
|
|
340
|
+
- lib/action_view/helpers/javascript_helper.rb
|
|
341
|
+
- lib/action_view/helpers/number_helper.rb
|
|
342
|
+
- lib/action_view/helpers/output_safety_helper.rb
|
|
343
|
+
- lib/action_view/helpers/record_tag_helper.rb
|
|
344
|
+
- lib/action_view/helpers/rendering_helper.rb
|
|
345
|
+
- lib/action_view/helpers/sanitize_helper.rb
|
|
346
|
+
- lib/action_view/helpers/tag_helper.rb
|
|
347
|
+
- lib/action_view/helpers/text_helper.rb
|
|
348
|
+
- lib/action_view/helpers/translation_helper.rb
|
|
349
|
+
- lib/action_view/helpers/url_helper.rb
|
|
350
|
+
- lib/action_view/helpers.rb
|
|
351
|
+
- lib/action_view/locale/en.yml
|
|
352
|
+
- lib/action_view/log_subscriber.rb
|
|
353
|
+
- lib/action_view/lookup_context.rb
|
|
354
|
+
- lib/action_view/path_set.rb
|
|
355
|
+
- lib/action_view/railtie.rb
|
|
356
|
+
- lib/action_view/renderer/abstract_renderer.rb
|
|
357
|
+
- lib/action_view/renderer/partial_renderer.rb
|
|
358
|
+
- lib/action_view/renderer/renderer.rb
|
|
359
|
+
- lib/action_view/renderer/streaming_template_renderer.rb
|
|
360
|
+
- lib/action_view/renderer/template_renderer.rb
|
|
361
|
+
- lib/action_view/template/error.rb
|
|
362
|
+
- lib/action_view/template/handlers/builder.rb
|
|
363
|
+
- lib/action_view/template/handlers/erb.rb
|
|
364
|
+
- lib/action_view/template/handlers.rb
|
|
365
|
+
- lib/action_view/template/resolver.rb
|
|
366
|
+
- lib/action_view/template/text.rb
|
|
367
|
+
- lib/action_view/template.rb
|
|
368
|
+
- lib/action_view/test_case.rb
|
|
369
|
+
- lib/action_view/testing/resolvers.rb
|
|
370
|
+
- lib/action_view.rb
|
|
371
|
+
- lib/sprockets/assets.rake
|
|
372
|
+
- lib/sprockets/bootstrap.rb
|
|
373
|
+
- lib/sprockets/compressors.rb
|
|
374
|
+
- lib/sprockets/helpers/isolated_helper.rb
|
|
375
|
+
- lib/sprockets/helpers/rails_helper.rb
|
|
376
|
+
- lib/sprockets/helpers.rb
|
|
377
|
+
- lib/sprockets/railtie.rb
|
|
378
|
+
- lib/sprockets/static_compiler.rb
|
|
381
379
|
homepage: http://www.rubyonrails.org
|
|
382
380
|
licenses: []
|
|
383
381
|
|
|
@@ -409,7 +407,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
409
407
|
requirements:
|
|
410
408
|
- none
|
|
411
409
|
rubyforge_project:
|
|
412
|
-
rubygems_version: 1.
|
|
410
|
+
rubygems_version: 1.8.16
|
|
413
411
|
signing_key:
|
|
414
412
|
specification_version: 3
|
|
415
413
|
summary: Web-flow and rendering framework putting the VC in MVC (part of Rails).
|