diff --git a/.gitignore b/.gitignore index bc354e0..8855f6a 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,5 @@ build *xcuserdata* *.gem /docs/** +.bundle + diff --git a/Gemfile b/Gemfile index 3159a77..3c38980 100644 --- a/Gemfile +++ b/Gemfile @@ -2,3 +2,4 @@ source 'https://rubygems.org' gem 'activesupport' gem 'paint' +gem 'copyright-header' diff --git a/Gemfile.lock b/Gemfile.lock index 2920362..f381d3b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -6,10 +6,23 @@ GEM i18n (~> 0.7) minitest (~> 5.1) tzinfo (~> 1.1) + charlock_holmes (0.7.3) concurrent-ruby (1.0.5) + copyright-header (1.0.22) + github-linguist + escape_utils (1.1.1) + github-linguist (5.0.11) + charlock_holmes (~> 0.7.3) + escape_utils (~> 1.1.0) + mime-types (>= 1.19) + rugged (>= 0.25.1) i18n (0.8.4) + mime-types (3.1) + mime-types-data (~> 3.2015) + mime-types-data (3.2016.0521) minitest (5.10.2) paint (2.0.0) + rugged (0.25.1.1) thread_safe (0.3.6) tzinfo (1.2.3) thread_safe (~> 0.1) @@ -19,7 +32,7 @@ PLATFORMS DEPENDENCIES activesupport - concurrent-ruby + copyright-header paint BUNDLED WITH diff --git a/LinkLiar.xcodeproj/project.pbxproj b/LinkLiar.xcodeproj/project.pbxproj index ce7d873..7c61b2b 100644 --- a/LinkLiar.xcodeproj/project.pbxproj +++ b/LinkLiar.xcodeproj/project.pbxproj @@ -379,9 +379,9 @@ C23926A01F06C787008506E4 /* MACAddressQuestion.swift */, C23926A41F06C787008506E4 /* SoftMACCache.swift */, C23926C11F06CA80008506E4 /* MACVendors.swift */, - C2F477521F0ACABE00BCFA24 /* Resources */, C2BE6B991F0D011D0086A843 /* NSMenuItem+placeholder.swift */, C2BE6B9D1F0D791B0086A843 /* LaunchCtl.swift */, + C2F477521F0ACABE00BCFA24 /* Resources */, ); path = LinkLiar; sourceTree = ""; diff --git a/bin/copyright b/bin/copyright new file mode 100755 index 0000000..1e12176 --- /dev/null +++ b/bin/copyright @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +bundle exec copyright-header \ + --add-path . \ + --output-dir . \ + --license MIT \ + --copyright-software LinkLiar \ + --copyright-software-description "Link-Layer MAC spoofing GUI for macOS" \ + --copyright-holder "halo https://io.github.com/halo/LinkLiar" \ + --copyright-year 2017 \ + --word-wrap 130 \ + --syntax lib/copyright_syntax.yml diff --git a/lib/copyright_syntax.yml b/lib/copyright_syntax.yml new file mode 100644 index 0000000..3b75ca7 --- /dev/null +++ b/lib/copyright_syntax.yml @@ -0,0 +1,6 @@ +swift: + ext: ['.swift'] + comment: + open: '/*\n' + close: ' */\n\n' + prefix: ' * '