Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated cleaning scripts now reference libs in gem
- Loading branch information
Showing
8 changed files
with
25 additions
and
15 deletions.
There are no files selected for viewing
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
9 changes: 8 additions & 1 deletion
9
cleaner_generators/test_unit_cleaner/templates/clean_test_unit
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,5 +1,12 @@ | |||
#!/usr/bin/env ruby | #!/usr/bin/env ruby | ||
|
|
||
require File.dirname(__FILE__) + '/test_unit_cleaner' | begin | ||
require 'shubox' | |||
rescue LoadError | |||
require 'rubygems' | |||
require 'shubox' | |||
end | |||
|
|||
require 'test_unit_cleaner/lib/test_unit_cleaner' | |||
|
|
||
Shubox::TestUnitCleaner.new.run(ARGV) | Shubox::TestUnitCleaner.new.run(ARGV) |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,6 +1,11 @@ | |||
$:.unshift(File.dirname(__FILE__)) unless | $:.unshift(File.dirname(__FILE__)) unless | ||
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__))) | $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__))) | ||
|
|
||
$:.unshift(File.dirname(__FILE__) + '/../cleaner_generators') unless | |||
$:.include?(File.dirname(__FILE__) + '/../cleaner_generators') || $:.include?(File.expand_path(File.dirname(__FILE__) + '../cleaner_generators')) | |||
|
|||
module Shubox | module Shubox | ||
VERSION = '0.8' | VERSION = '0.8' | ||
end | end | ||
|
|||
require 'test_unit_cleaner/lib/test_unit_cleaner' |
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
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