license_header 0.0.4 → 0.0.7

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: eae17f610f3eab30ffebfc8a01bd874c8a4b91792fc81f83df9603002a05bcef
4
+ data.tar.gz: 8efd1074cc1441d4804dd358c4c67d56feed0f00f04b8538b2a5ad5a7f66410f
5
+ SHA512:
6
+ metadata.gz: 3b169dcd6cd94278c174c0971977ca8115e5ec9d5966cf159286fa199702fe2e94e7fb08fdd9326e0a5f67c0a17c42f6e7fc663f70d2ada5583ec98a026cdcf6
7
+ data.tar.gz: 379cb1d04f6968ad6df7dcb3f525b15f47b964dc24950daf3d58ac6ccaf47a014b6ba8f9268226905b9990cec731862bf8f7db4d02194f6cca9ecf0bc95edada
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # LicenseHeader
2
2
 
3
- TODO: Write a gem description
3
+ Utility for updating license headers across the various components of the Avalon Media System project. This
4
+ tool is designed to be integrated into the development process to automate license management across several
5
+ standard formats such as CSS, Ruby, and Java.
4
6
 
5
7
  ## Installation
6
8
 
@@ -17,13 +19,15 @@ Or install it yourself as:
17
19
  $ gem install license_header
18
20
 
19
21
  ## Usage
20
-
21
- TODO: Write usage instructions here
22
-
23
- ## Contributing
24
-
25
- 1. Fork it
26
- 2. Create your feature branch (`git checkout -b my-new-feature`)
27
- 3. Commit your changes (`git commit -am 'Add some feature'`)
28
- 4. Push to the branch (`git push origin my-new-feature`)
29
- 5. Create new Pull Request
22
+ To see all of the options run:
23
+ ```
24
+ bundle exec license_header
25
+ ```
26
+ Identify the directories that have the source files that you want to apply license headers to then run the audit action. For a typical rails app this might look like:
27
+ ```
28
+ bundle exec license_header -a app/ db/ lib/ script/ spec/
29
+ ```
30
+ When you're ready to add/update headers run the update action:
31
+ ```
32
+ bundle exec license_header -u app/ db/ lib/ script/ spec/ -f FILE
33
+ ```
data/bin/license_header CHANGED
@@ -92,7 +92,7 @@ when :audit
92
92
  $stderr.puts files[:present].join("\n") if options[:verbose]
93
93
  when :update
94
94
  if options[:header].nil?
95
- put opts
95
+ puts opts
96
96
  exit 1
97
97
  end
98
98
  $stderr.puts "#{invalid.length} files have missing or incorrect headers"
@@ -134,7 +134,7 @@ module LicenseHeader
134
134
  @headers.each_pair do |lang,syntax|
135
135
  syntax[:header] = []
136
136
  syntax[:header] << syntax[:pre] unless syntax[:pre].nil?
137
- syntax[:header] += license_terms.collect {|line| syntax[:each] + line }
137
+ syntax[:header] += license_terms.collect {|line| (syntax[:each] + line).rstrip }
138
138
  syntax[:header] << "#{syntax[:each]}--- #{'E'}ND LICENSE_HEADER BLOCK ---"
139
139
  syntax[:header] << syntax[:post] unless syntax[:post].nil?
140
140
  syntax[:header] << "" if syntax[:sep]
@@ -1,3 +1,3 @@
1
1
  module LicenseHeader
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,64 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: license_header
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
5
- prerelease:
4
+ version: 0.0.7
6
5
  platform: ruby
7
6
  authors:
8
7
  - Nathan Rogers
9
8
  - Michael Klein
10
9
  - Chris Colvard
11
- autorequire:
10
+ autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2013-04-19 00:00:00.000000000 Z
13
+ date: 2025-04-01 00:00:00.000000000 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: highline
18
17
  requirement: !ruby/object:Gem::Requirement
19
- none: false
20
18
  requirements:
21
- - - ! '>='
19
+ - - ">="
22
20
  - !ruby/object:Gem::Version
23
21
  version: '0'
24
22
  type: :runtime
25
23
  prerelease: false
26
24
  version_requirements: !ruby/object:Gem::Requirement
27
- none: false
28
25
  requirements:
29
- - - ! '>='
26
+ - - ">="
30
27
  - !ruby/object:Gem::Version
31
28
  version: '0'
32
29
  - !ruby/object:Gem::Dependency
33
30
  name: bundler
34
31
  requirement: !ruby/object:Gem::Requirement
35
- none: false
36
32
  requirements:
37
- - - ~>
33
+ - - ">="
38
34
  - !ruby/object:Gem::Version
39
- version: '1.3'
35
+ version: '0'
40
36
  type: :development
41
37
  prerelease: false
42
38
  version_requirements: !ruby/object:Gem::Requirement
43
- none: false
44
39
  requirements:
45
- - - ~>
40
+ - - ">="
46
41
  - !ruby/object:Gem::Version
47
- version: '1.3'
42
+ version: '0'
48
43
  - !ruby/object:Gem::Dependency
49
44
  name: rake
50
45
  requirement: !ruby/object:Gem::Requirement
51
- none: false
52
46
  requirements:
53
- - - ! '>='
47
+ - - ">="
54
48
  - !ruby/object:Gem::Version
55
49
  version: '0'
56
50
  type: :development
57
51
  prerelease: false
58
52
  version_requirements: !ruby/object:Gem::Requirement
59
- none: false
60
53
  requirements:
61
- - - ! '>='
54
+ - - ">="
62
55
  - !ruby/object:Gem::Version
63
56
  version: '0'
64
57
  description: License header block auditing/updating
@@ -69,35 +62,33 @@ executables:
69
62
  extensions: []
70
63
  extra_rdoc_files: []
71
64
  files:
65
+ - README.md
66
+ - bin/license_header
67
+ - lib/license_header.rb
72
68
  - lib/license_header/auditor.rb
73
69
  - lib/license_header/version.rb
74
- - lib/license_header.rb
75
- - bin/license_header
76
- - README.md
77
- homepage:
78
- licenses: []
79
- post_install_message:
70
+ homepage:
71
+ licenses:
72
+ - Apache 2.0
73
+ metadata: {}
74
+ post_install_message:
80
75
  rdoc_options: []
81
76
  require_paths:
82
77
  - lib
83
78
  required_ruby_version: !ruby/object:Gem::Requirement
84
- none: false
85
79
  requirements:
86
- - - ! '>='
80
+ - - ">="
87
81
  - !ruby/object:Gem::Version
88
82
  version: '0'
89
83
  required_rubygems_version: !ruby/object:Gem::Requirement
90
- none: false
91
84
  requirements:
92
- - - ! '>='
85
+ - - ">="
93
86
  - !ruby/object:Gem::Version
94
87
  version: '0'
95
88
  requirements: []
96
- rubyforge_project:
97
- rubygems_version: 1.8.23
98
- signing_key:
99
- specification_version: 3
89
+ rubygems_version: 3.4.1
90
+ signing_key:
91
+ specification_version: 4
100
92
  summary: This gem will assist in making sure that all files have the right license
101
93
  block as a header.
102
94
  test_files: []
103
- has_rdoc: