Skip to content

Commit

Permalink
Add LICENCE (CC-BY-NC-SA-4.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotcm committed Dec 19, 2022
1 parent 7dc04b4 commit e9f2110
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
2 changes: 2 additions & 0 deletions LICENCE
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Satisfactory © 2022 by Smart/Casual Ltd is licensed under CC BY-NC-SA 4.0.
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/
19 changes: 12 additions & 7 deletions satisfactory.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Gem::Specification.new do |spec|

spec.summary = "A DSL for navigating your factories and building test data"
spec.homepage = "https://github.com/SmartCasual/satisfactory"
spec.license = "CC-BY-NC-SA-4.0"

spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/v#{spec.version}/CHANGELOG.md"
spec.metadata["homepage_uri"] = spec.homepage
Expand All @@ -16,13 +17,17 @@ Gem::Specification.new do |spec|
spec.metadata["rubygems_mfa_required"] = "true"
spec.required_ruby_version = ">= 3.1.0"

# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
spec.files = Dir.chdir(__dir__) do
`git ls-files -z`.split("\x0").reject do |f|
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|circleci))})
end
end
spec.files = Dir.chdir(File.expand_path(__dir__)) {
Dir[
"{bin,lib}/**/*",
"CHANGELOG.md",
"LICENCE",
"Rakefile",
"README.md",
"satisfactory.gemspec",
]
}

spec.bindir = "bin"
spec.executables = spec.files.grep(%r{\Abin/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
Expand Down

0 comments on commit e9f2110

Please sign in to comment.