Skip to content
This repository has been archived by the owner on Jun 10, 2018. It is now read-only.

Ruby 2.0 will return false for respond_to? on protected methods #297

Merged
merged 1 commit into from Feb 20, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/sprockets/directive_processor.rb
Expand Up @@ -126,7 +126,7 @@ def directives
@directives ||= header.lines.each_with_index.map { |line, index| @directives ||= header.lines.each_with_index.map { |line, index|
if directive = line[DIRECTIVE_PATTERN, 1] if directive = line[DIRECTIVE_PATTERN, 1]
name, *args = Shellwords.shellwords(directive) name, *args = Shellwords.shellwords(directive)
if respond_to?("process_#{name}_directive") if respond_to?("process_#{name}_directive", true)
[index + 1, name, *args] [index + 1, name, *args]
end end
end end
Expand Down