copyright-header 1.0.10 → 1.0.11

Sign up to get free protection for your applications and to get access to all the features.
data/contrib/syntax.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  ruby:
2
2
  ext: ['.rb']
3
- after: ['^#!']
3
+ after: ['^#!', '^#.*encoding:']
4
4
  comment:
5
5
  open: '#\n'
6
6
  close: '#\n'
@@ -8,22 +8,27 @@ ruby:
8
8
 
9
9
  perl:
10
10
  ext: ['.pl']
11
- after: ['^#!']
11
+ after: ['^#!', '^#.*encoding:']
12
12
  comment:
13
13
  open: '#\n'
14
14
  close: '#\n'
15
15
  prefix: '# '
16
16
 
17
+
18
+ # Support PEP 0263 comments:
19
+ # coding=<encoding name>
20
+ # -*- coding: <encoding name> -*-
21
+ # vim: set fileencoding=<encoding name> :
17
22
  python:
18
23
  ext: ['.py']
19
- after: ['^#!', '^#.*coding']
24
+ after: ['^#!', '^#.*coding:', '^#.*coding=', '^#.*fileencoding=']
20
25
  comment:
21
26
  open: '\n'
22
27
  close: '\n'
23
28
  prefix: '# '
24
29
 
25
30
  html:
26
- ext: ['.html', '.htm', '.xhtml', '.xml']
31
+ ext: ['.html', '.htm', '.xhtml']
27
32
  comment:
28
33
  open: '<!--\n'
29
34
  close: '-->\n'
@@ -87,3 +92,39 @@ coffee:
87
92
  open: '###\n'
88
93
  close: '###\n'
89
94
  prefix: ''
95
+
96
+ # M4 macro language, use #, not dnl
97
+ m4:
98
+ ext: ['.m4']
99
+ comment:
100
+ open: '#\n'
101
+ close: '#\n'
102
+ prefix: '# '
103
+
104
+ # Most shells, really
105
+ shell:
106
+ ext: ['.sh']
107
+ after: ['^#!']
108
+ comment:
109
+ open: '#\n'
110
+ close: '#\n'
111
+ prefix: '# '
112
+
113
+ # Use "-- " to make sure e.g. MySQL understands it
114
+ sql:
115
+ ext: ['.sql']
116
+ comment:
117
+ open: '-- \n'
118
+ close: '-- \n'
119
+ prefix: '-- '
120
+
121
+ # XML is *not* the same as HTML, and the comments need to go after a
122
+ # preprocessing directive, if present.
123
+ # FIXME: only supports single line directives
124
+ xml:
125
+ ext: ['.xml', '.xsd']
126
+ after: ['^<\?']
127
+ comment:
128
+ open: '<!--\n'
129
+ close: '-->\n'
130
+ prefix: ' '
@@ -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.10"
21
+ VERSION = "1.0.11"
22
22
  end
data/licenses/ASL2.erb ADDED
@@ -0,0 +1,15 @@
1
+ <%=copyright_software%> - <%=copyright_software_description%>
2
+
3
+ Copyright <%=copyright_years.join(', ')%> <%=copyright_holders.join(', ')%>
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: copyright-header
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.10
4
+ version: 1.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-03 00:00:00.000000000 Z
12
+ date: 2013-09-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: github-linguist
@@ -54,6 +54,7 @@ files:
54
54
  - lib/copyright_header/parser.rb
55
55
  - lib/copyright_header/version.rb
56
56
  - licenses/AGPL3.erb
57
+ - licenses/ASL2.erb
57
58
  - licenses/BSD-2-CLAUSE.erb
58
59
  - licenses/BSD-3-CLAUSE.erb
59
60
  - licenses/BSD-4-CLAUSE.erb