Skip to content

Commit

Permalink
Added copyright-header gem
Browse files Browse the repository at this point in the history
  • Loading branch information
halo committed Jul 7, 2017
1 parent 3986a1f commit 530648f
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -14,3 +14,5 @@ build
*xcuserdata*
*.gem
/docs/**
.bundle

1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -2,3 +2,4 @@ source 'https://rubygems.org'

gem 'activesupport'
gem 'paint'
gem 'copyright-header'
15 changes: 14 additions & 1 deletion Gemfile.lock
Expand Up @@ -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)
Expand All @@ -19,7 +32,7 @@ PLATFORMS

DEPENDENCIES
activesupport
concurrent-ruby
copyright-header
paint

BUNDLED WITH
Expand Down
2 changes: 1 addition & 1 deletion LinkLiar.xcodeproj/project.pbxproj
Expand Up @@ -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 = "<group>";
Expand Down
12 changes: 12 additions & 0 deletions 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
6 changes: 6 additions & 0 deletions lib/copyright_syntax.yml
@@ -0,0 +1,6 @@
swift:
ext: ['.swift']
comment:
open: '/*\n'
close: ' */\n\n'
prefix: ' * '

0 comments on commit 530648f

Please sign in to comment.