From 347523836ed68acbbbc5a89b9bc008bbb0bf4671 Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Wed, 30 Sep 2026 13:39:34 -0700 Subject: [PATCH] Add MIT license The repo and published gem carried no license. Add the same MIT LICENSE used by the other rubyatscale gems, declare it in the gemspec, and ship the LICENSE file in the packaged gem as MIT requires. Bump to 1.9.1 so the license metadata reaches rubygems.org. --- Gemfile.lock | 2 +- LICENSE | 21 +++++++++++++++++++++ README.md | 4 ++++ code_manifest.gemspec | 3 ++- lib/code_manifest/version.rb | 2 +- 5 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 LICENSE diff --git a/Gemfile.lock b/Gemfile.lock index 4383c12..de46b92 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - code_manifest (1.9.0) + code_manifest (1.9.1) GEM remote: https://rubygems.org/ diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..b94f527 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 Gusto + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index 80479d0..fdd8750 100644 --- a/README.md +++ b/README.md @@ -40,3 +40,7 @@ CodeManifest[:js].digest ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/rubyatscale/code_manifest. + +## License + +The gem is available as open source under the terms of the [MIT License](LICENSE). diff --git a/code_manifest.gemspec b/code_manifest.gemspec index b7e670f..81e7c2f 100644 --- a/code_manifest.gemspec +++ b/code_manifest.gemspec @@ -11,13 +11,14 @@ Gem::Specification.new do |spec| spec.summary = "A code manifest" spec.description = "A code manifest" spec.homepage = "https://github.com/rubyatscale/code_manifest" + spec.license = "MIT" spec.required_ruby_version = Gem::Requirement.new(">= 3.3") spec.metadata["homepage_uri"] = spec.homepage spec.metadata["source_code_uri"] = "https://github.com/rubyatscale/code_manifest" spec.metadata["changelog_uri"] = "https://github.com/rubyatscale/code_manifest/releases" - spec.files = Dir["README.md", "lib/**/*"] + spec.files = Dir["LICENSE", "README.md", "lib/**/*"] spec.add_development_dependency("rspec") spec.add_development_dependency("debug") diff --git a/lib/code_manifest/version.rb b/lib/code_manifest/version.rb index 1f105da..166e049 100644 --- a/lib/code_manifest/version.rb +++ b/lib/code_manifest/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module CodeManifest - VERSION = "1.9.0" + VERSION = "1.9.1" end