From b268319dfd4689cae30482f80086546ae8718b61 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Sun, 29 Dec 2019 13:06:36 +0100 Subject: [PATCH] Fill gemspec structure --- Gemfile | 9 --------- Gemfile.lock | 14 ++++++++++++-- noozoid.gemspec | 30 ++++++++++++++++++------------ 3 files changed, 30 insertions(+), 23 deletions(-) diff --git a/Gemfile b/Gemfile index 76b2bac..4558ef4 100644 --- a/Gemfile +++ b/Gemfile @@ -4,15 +4,6 @@ source "https://rubygems.org" git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } -# gem "rails" - -gem "nokogiri", "~> 1.10" - - -gem "curses", "~> 1.3" -source "https://rubygems.org" - # Specify your gem's dependencies in noozoid.gemspec gemspec -gem "rake", "~> 12.0" diff --git a/Gemfile.lock b/Gemfile.lock index 624ab92..47da42a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,3 +1,11 @@ +PATH + remote: . + specs: + noozoid (0.1.0) + curses (~> 1.3) + nokogiri (~> 1.10) + thor + GEM remote: https://rubygems.org/ specs: @@ -5,13 +13,15 @@ GEM mini_portile2 (2.4.0) nokogiri (1.10.7) mini_portile2 (~> 2.4.0) + rake (12.3.3) + thor (1.0.1) PLATFORMS ruby DEPENDENCIES - curses (~> 1.3) - nokogiri (~> 1.10) + noozoid! + rake (~> 12.0) BUNDLED WITH 2.1.2 diff --git a/noozoid.gemspec b/noozoid.gemspec index 6094395..5316fed 100644 --- a/noozoid.gemspec +++ b/noozoid.gemspec @@ -1,28 +1,34 @@ require_relative 'lib/noozoid/version' Gem::Specification.new do |spec| - spec.name = "noozoid" + spec.name = 'noozoid' spec.version = Noozoid::VERSION - spec.authors = ["Glenn Y. Rolland"] - spec.email = ["glenux@glenux.net"] + spec.authors = ['Glenn Y. Rolland'] + spec.email = ['glenux@glenux.net'] - spec.summary = %q{TODO: Write a short summary, because RubyGems requires one.} - spec.description = %q{TODO: Write a longer description or delete this line.} - spec.homepage = "TODO: Put your gem's website or public repo URL here." - spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0") + spec.summary = %q{A terminal-based mindmap editor for geeks.} + spec.description = %q{A terminal-based mindmap editor for geeks - longer text.} + spec.homepage = "https://glenux.net" + spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0') - spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'" + # spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'" spec.metadata["homepage_uri"] = spec.homepage - spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here." - spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here." + # spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here." + # spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here." # 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(File.expand_path('..', __FILE__)) do `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } end - spec.bindir = "exe" + + spec.bindir = 'exe' spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } - spec.require_paths = ["lib"] + spec.require_paths = ['lib'] + + spec.add_dependency 'thor' + spec.add_dependency 'nokogiri', '~> 1.10' + spec.add_dependency 'curses', '~> 1.3' + spec.add_development_dependency 'rake', '~> 12.0' end