-
Notifications
You must be signed in to change notification settings - Fork 21.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed AS core_ext/kernel/requires as it's not used and is bad pract…
…ice.
- Loading branch information
Showing
7 changed files
with
3 additions
and
35 deletions.
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
require 'active_support/core_ext/kernel/reporting' | ||
require 'active_support/core_ext/kernel/agnostics' | ||
require 'active_support/core_ext/kernel/requires' | ||
require 'active_support/core_ext/kernel/debugger' | ||
require 'active_support/core_ext/kernel/singleton_class' |
26 changes: 0 additions & 26 deletions
26
activesupport/lib/active_support/core_ext/kernel/requires.rb
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eff5d9a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, there are still references to this method in the project. Could you perform another grep?
eff5d9a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there? I'm sorry, I will check into it further, my ack didn't pick anything up.
eff5d9a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're not the first one to fall there, I promise you :).
Thing is guides are written in Textile, and ack ignores .textile files by default. You need to pass -a to have them ack'ed :).
eff5d9a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ahhhhhhhhh, so
require_library_or_gem
is referenced in the guides? I am using the textmate ack bundle, not sure how to tell it to include textile, I'll look into it and get this updated.Thanks for letting me know.
eff5d9a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fxn I just tried out using ack and it did search through the textile files. @joshk: Check out Active Support Core Extensions Guide! :)
eff5d9a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have committed the correction to
docrails
https://github.com/lifo/docrails/commit/09314f21c5ad9125aaaa3d7a3b1ddee417fb5a03
eff5d9a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vijaydec i fixed my ackmate textmate plugin to include textile for now on
eff5d9a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vijaydev could it be the case that you've got a custom ~/.ackrc ?
eff5d9a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fxn No, I don't have one.
eff5d9a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's strange. The default types do not include .textile
https://github.com/petdance/ack/blob/master/Ack.pm#L74-128
What does the command
ack --help=types | ack textile
output in your machine?
eff5d9a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm... the command outputs nothing. Meaning textile is not a supported type?!
ack-grep version: 1.92
eff5d9a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the expected output. I have 1.94 here, but .textile has never been among the types known by ack by default. Errrr, can't understand why is searching them in your machine.
What about environment variables? For example,
env | ack ACK
eff5d9a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing in env either!