copyright-header 1.0.1 → 1.0.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/README.md +6 -1
- data/bin/copyright-header +1 -1
- data/lib/copyright_header.rb +1 -1
- data/lib/copyright_header/command_line.rb +2 -2
- data/lib/copyright_header/parser.rb +2 -2
- data/lib/copyright_header/version.rb +2 -2
- data/licenses/GPL3.erb +1 -1
- metadata +2 -2
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
Copyright Header
|
|
2
2
|
===============
|
|
3
3
|
|
|
4
4
|
|
|
@@ -36,6 +36,11 @@ Remove the header created in the previous step (without --dry-run argument):
|
|
|
36
36
|
|
|
37
37
|
copyright-header --remove-path /tmp/test.rb --license GPL3 --dry-run
|
|
38
38
|
|
|
39
|
+
Command used to generate copyright headers for this script:
|
|
40
|
+
|
|
41
|
+
copyright-header --license GPL3 --add lib/ --copyright-holder 'Erik Osterman <e@osterman.com>' --copyright-software 'Copyright Header' --copyright-software-description "A utility to manipulate copyright headers on source code files" --copyright-year 2012 --word-wrap 100 --output-dir ./
|
|
42
|
+
|
|
43
|
+
|
|
39
44
|
Paths can be either files or directories. It will recursively traverse the directory tree ignoring all dot files.
|
|
40
45
|
|
|
41
46
|
You can specify an alternative syntax configuration file using the --syntax argument.
|
data/bin/copyright-header
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
# the Free Software Foundation, either version 3 of the License, or
|
|
11
11
|
# (at your option) any later version.
|
|
12
12
|
#
|
|
13
|
-
#
|
|
13
|
+
# Copyright Header is distributed in the hope that it will be useful,
|
|
14
14
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
15
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
16
|
# GNU General Public License for more details.
|
data/lib/copyright_header.rb
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
# the Free Software Foundation, either version 3 of the License, or
|
|
10
10
|
# (at your option) any later version.
|
|
11
11
|
#
|
|
12
|
-
#
|
|
12
|
+
# Copyright Header is distributed in the hope that it will be useful,
|
|
13
13
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
14
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
15
|
# GNU General Public License for more details.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
# the Free Software Foundation, either version 3 of the License, or
|
|
10
10
|
# (at your option) any later version.
|
|
11
11
|
#
|
|
12
|
-
#
|
|
12
|
+
# Copyright Header is distributed in the hope that it will be useful,
|
|
13
13
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
14
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
15
|
# GNU General Public License for more details.
|
|
@@ -127,4 +127,4 @@ module CopyrightHeader
|
|
|
127
127
|
@parser.execute
|
|
128
128
|
end
|
|
129
129
|
end
|
|
130
|
-
end
|
|
130
|
+
end
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
# the Free Software Foundation, either version 3 of the License, or
|
|
10
10
|
# (at your option) any later version.
|
|
11
11
|
#
|
|
12
|
-
#
|
|
12
|
+
# Copyright Header is distributed in the hope that it will be useful,
|
|
13
13
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
14
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
15
|
# GNU General Public License for more details.
|
|
@@ -247,4 +247,4 @@ module CopyrightHeader
|
|
|
247
247
|
end
|
|
248
248
|
end
|
|
249
249
|
end
|
|
250
|
-
end
|
|
250
|
+
end
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
# the Free Software Foundation, either version 3 of the License, or
|
|
10
10
|
# (at your option) any later version.
|
|
11
11
|
#
|
|
12
|
-
#
|
|
12
|
+
# Copyright Header is distributed in the hope that it will be useful,
|
|
13
13
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
14
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
15
|
# GNU General Public License for more details.
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
# along with Copyright Header. If not, see <http://www.gnu.org/licenses/>.
|
|
19
19
|
#
|
|
20
20
|
module CopyrightHeader
|
|
21
|
-
VERSION = "1.0.
|
|
21
|
+
VERSION = "1.0.2"
|
|
22
22
|
end
|
data/licenses/GPL3.erb
CHANGED
|
@@ -8,7 +8,7 @@ it under the terms of the GNU General Public License as published by
|
|
|
8
8
|
the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
(at your option) any later version.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
<%=copyright_software%> is distributed in the hope that it will be useful,
|
|
12
12
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
13
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
14
|
GNU General Public License for more details.
|