copyright-header 1.0.9 → 1.0.10
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 +7 -4
- data/lib/copyright_header/command_line.rb +1 -1
- data/lib/copyright_header/version.rb +1 -1
- metadata +40 -50
data/README.md
CHANGED
@@ -47,12 +47,14 @@ Full list of supported arguments:
|
|
47
47
|
--copyright-holder NAME The common name for this piece of software (e.g. "Erik Osterman <e@osterman.com>"). Repeat argument for multiple names.
|
48
48
|
--copyright-year YEAR The common name for this piece of software (e.g. "2012"). Repeat argument for multiple years.
|
49
49
|
-w, --word-wrap LEN Maximum number of characters per line for license (default: 80)
|
50
|
-
-a, --add-path PATH Recursively insert header in all files found in path (allows multiple
|
51
|
-
-r, --remove-path PATH Recursively remove header in all files found in path (allows multiple
|
50
|
+
-a, --add-path PATH Recursively insert header in all files found in path (allows multiple paths separated by platform path-separator ":")
|
51
|
+
-r, --remove-path PATH Recursively remove header in all files found in path (allows multiple paths separated by platform path-separator ":")
|
52
|
+
-g, --guess-extension Use the GitHub Linguist gem to guess the extension of the source code when no extension can be determined (experimental).
|
52
53
|
-c, --syntax FILE Syntax configuration file
|
53
54
|
-V, --version Display version information
|
54
55
|
-h, --help Display this screen
|
55
56
|
|
57
|
+
|
56
58
|
Examples
|
57
59
|
--------
|
58
60
|
|
@@ -71,7 +73,8 @@ Remove the header created in the previous step (without --dry-run argument):
|
|
71
73
|
Command used to generate copyright headers for this script:
|
72
74
|
|
73
75
|
copyright-header --license GPL3 \
|
74
|
-
--add lib/ \
|
76
|
+
--add-path lib/:bin/ \
|
77
|
+
--guess-extension \
|
75
78
|
--copyright-holder 'Erik Osterman <e@osterman.com>' \
|
76
79
|
--copyright-software 'Copyright Header' \
|
77
80
|
--copyright-software-description "A utility to manipulate copyright headers on source code files" \
|
@@ -87,7 +90,7 @@ You can specify an alternative syntax configuration file using the `--syntax` ar
|
|
87
90
|
Rake
|
88
91
|
----
|
89
92
|
|
90
|
-
|
93
|
+
The above example can be performed as rake task inside a Rakefile:
|
91
94
|
|
92
95
|
task :headers do
|
93
96
|
require 'rubygems'
|
@@ -80,7 +80,7 @@ module CopyrightHeader
|
|
80
80
|
@options[:remove_path] = path
|
81
81
|
end
|
82
82
|
|
83
|
-
@options[:guess_extension]
|
83
|
+
@options[:guess_extension] ||= false
|
84
84
|
opts.on( '-g', '--guess-extension', 'Use the GitHub Linguist gem to guess the extension of the source code when no extension can be determined (experimental).' ) do
|
85
85
|
@options[:guess_extension] = true
|
86
86
|
end
|
metadata
CHANGED
@@ -1,49 +1,45 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: copyright-header
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 1
|
7
|
-
- 0
|
8
|
-
- 9
|
9
|
-
version: 1.0.9
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.10
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Erik Osterman
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2013-04-03 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: github-linguist
|
22
|
-
|
23
|
-
|
24
|
-
requirements:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
25
19
|
- - ~>
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
segments:
|
28
|
-
- 2
|
29
|
-
- 6
|
30
|
-
- 7
|
20
|
+
- !ruby/object:Gem::Version
|
31
21
|
version: 2.6.7
|
32
22
|
type: :runtime
|
33
|
-
|
34
|
-
|
35
|
-
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 2.6.7
|
30
|
+
description: A utility which is able to recursively insert and remove copyright headers
|
31
|
+
from source code files based on file extensions.
|
32
|
+
email:
|
36
33
|
- e@osterman.com
|
37
|
-
executables:
|
34
|
+
executables:
|
38
35
|
- copyright-header
|
39
36
|
extensions: []
|
40
|
-
|
41
|
-
extra_rdoc_files:
|
37
|
+
extra_rdoc_files:
|
42
38
|
- README.md
|
43
39
|
- LICENSE
|
44
40
|
- AUTHORS
|
45
41
|
- contrib/syntax.yml
|
46
|
-
files:
|
42
|
+
files:
|
47
43
|
- .gitignore
|
48
44
|
- AUTHORS
|
49
45
|
- Gemfile
|
@@ -63,35 +59,29 @@ files:
|
|
63
59
|
- licenses/BSD-4-CLAUSE.erb
|
64
60
|
- licenses/GPL3.erb
|
65
61
|
- licenses/MIT.erb
|
66
|
-
has_rdoc: true
|
67
62
|
homepage: https://github.com/osterman/copyright-header
|
68
|
-
licenses:
|
63
|
+
licenses:
|
69
64
|
- GPL-3
|
70
65
|
post_install_message:
|
71
66
|
rdoc_options: []
|
72
|
-
|
73
|
-
require_paths:
|
67
|
+
require_paths:
|
74
68
|
- lib
|
75
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
requirements:
|
84
|
-
- -
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
|
87
|
-
- 0
|
88
|
-
version: "0"
|
69
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
70
|
+
none: false
|
71
|
+
requirements:
|
72
|
+
- - ! '>='
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
75
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
|
+
none: false
|
77
|
+
requirements:
|
78
|
+
- - ! '>='
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0'
|
89
81
|
requirements: []
|
90
|
-
|
91
82
|
rubyforge_project: copyright-header
|
92
|
-
rubygems_version: 1.
|
83
|
+
rubygems_version: 1.8.23
|
93
84
|
signing_key:
|
94
85
|
specification_version: 3
|
95
86
|
summary: A utility to insert copyright headers into various types of source code files
|
96
87
|
test_files: []
|
97
|
-
|