-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
83 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,55 @@ | ||
Files in this directory are used to replace those that are stamped in specs so we start | ||
each test with fresh, unstamped files. | ||
# Katana Code's Copyright Stamper | ||
|
||
This gem is used internally by Katana Code. Feel free to fork it and modify for your | ||
own organisation. | ||
|
||
## Usage: | ||
|
||
$ katana_stamp | ||
|
||
adds **(c) Copyright 2012 Katana Code Ltd. All Rights Reserved.** to the end of every Ruby file under app/ and lib/. | ||
|
||
See options below for configuration | ||
|
||
## Options | ||
|
||
### --include-dirs (-i) | ||
|
||
Include these dir patterns in stamp list | ||
e.g. | ||
$ katana_stamp -i vendor/**/*.rb # will also stamp files matching vendor/**/*.rb | ||
|
||
### --exclude-dirs (-x) | ||
|
||
Don't include these dir patterns in stamp list | ||
e.g. | ||
|
||
$ katana_stamp -x app/controllers/application_controller.rb # will not stamp files matching app/controllers/application_controller.rb | ||
|
||
### --year (-y) | ||
|
||
Change the year of the Copyright | ||
e.g. | ||
|
||
$ katana_stamp -y 1999 | ||
|
||
|
||
### --owner (-o) | ||
|
||
Change the owner of the Copyright | ||
e.g. | ||
|
||
$ katana_stamp -o "Ace Rimmer!" | ||
|
||
|
||
### --message (-m) | ||
|
||
Overwrite the entire message for the stamp. | ||
e.g. | ||
|
||
$ katana_stamp -m "Released under the MIT license" | ||
|
||
## Known Issues | ||
|
||
At the moment there's no way to reverse this... make sure you commit any changes before you | ||
run this! |
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,3 +1,4 @@ | ||
class TestModelOne | ||
|
||
end | ||
end | ||
# (c) Copyright 2012 Katana Code Ltd. All Rights Reserved. |
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,3 +1,4 @@ | ||
class TestModelTwo | ||
|
||
end | ||
end | ||
# (c) Copyright 2012 Katana Code Ltd. All Rights Reserved. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,5 +40,4 @@ def last_line | |
end | ||
|
||
end | ||
end | ||
# (c) Copyright 2012 Katana Code Ltd. All Rights Reserved. | ||
end |
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,4 +1,3 @@ | ||
module KatanaStamp | ||
VERSION = "0.1.0" | ||
end | ||
# (c) Copyright 2012 Katana Code Ltd. All Rights Reserved. | ||
end |