Skip to content

Commit

Permalink
Change gemspec to load version directly, update info
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmurach committed Mar 10, 2020
1 parent 753c29f commit edebbb3
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions tty-logger.gemspec
@@ -1,15 +1,13 @@
lib = File.expand_path("lib", __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "tty/logger/version"
require_relative "lib/tty/logger/version"

Gem::Specification.new do |spec|
spec.name = "tty-logger"
spec.version = TTY::Logger::VERSION
spec.authors = ["Piotr Murach"]
spec.email = ["me@piotrmurach.com"]
spec.email = ["piotr@piotrmurach.com"]
spec.summary = %q{Readable, structured and beautiful terminal logging}
spec.description = %q{Readable, structured and beautiful terminal logging}
spec.homepage = "https://piotrmurach.github.io/tty"
spec.homepage = "https://ttytoolkit.org"
spec.license = "MIT"

spec.metadata["allowed_push_host"] = "https://rubygems.org"
Expand All @@ -19,10 +17,10 @@ Gem::Specification.new do |spec|
spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = "https://github.com/piotrmurach/tty-logger"

spec.files = Dir["lib/**/*.rb", "tty-logger.gemspec"]
spec.files += Dir["README.md", "CHANGELOG.md", "LICENSE.txt"]
spec.executables = []
spec.files = Dir["lib/**/*"]
spec.extra_rdoc_files = Dir["README.md", "CHANGELOG.md", "LICENSE.txt"]
spec.require_paths = ["lib"]

spec.required_ruby_version = ">= 2.0.0"

spec.add_dependency "pastel", "~> 0.7.0"
Expand Down

0 comments on commit edebbb3

Please sign in to comment.