From 59946934142536f3370d553b1a73ff2f0a8a86da Mon Sep 17 00:00:00 2001 From: joaoGabriel55 Date: Sat, 17 Aug 2024 17:25:38 -0300 Subject: [PATCH] build: update gemspec --- Gemfile | 6 ------ Gemfile.lock | 2 +- lib/sinatra_scaffold/cli.rb | 2 +- sinatra-scaffold.gemspec | 20 ++++++++++++-------- 4 files changed, 14 insertions(+), 16 deletions(-) diff --git a/Gemfile b/Gemfile index 5fce8ac..c80ac6b 100644 --- a/Gemfile +++ b/Gemfile @@ -5,10 +5,4 @@ source "https://rubygems.org" # Specify your gem's dependencies in sinatra-scaffold.gemspec gemspec -gem "rake", "~> 13.0" - gem "rspec", "~> 3.0" - -gem "standard", "~> 1.3" - -gem "thor", "~> 1.3" diff --git a/Gemfile.lock b/Gemfile.lock index ab35770..85543ac 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,6 +2,7 @@ PATH remote: . specs: sinatra-scaffold (0.1.0) + thor (~> 1.3) GEM remote: https://rubygems.org/ @@ -76,7 +77,6 @@ DEPENDENCIES rspec (~> 3.0) sinatra-scaffold! standard (~> 1.3) - thor (~> 1.3) BUNDLED WITH 2.5.17 diff --git a/lib/sinatra_scaffold/cli.rb b/lib/sinatra_scaffold/cli.rb index bb1ada2..80f398b 100644 --- a/lib/sinatra_scaffold/cli.rb +++ b/lib/sinatra_scaffold/cli.rb @@ -154,7 +154,7 @@ def app RUBY File.write("#{app_name}/README.md", <<~RUBY) - # #{app_name} + # #{app_name} My Sinatra application diff --git a/sinatra-scaffold.gemspec b/sinatra-scaffold.gemspec index cce618b..7e32a10 100644 --- a/sinatra-scaffold.gemspec +++ b/sinatra-scaffold.gemspec @@ -13,24 +13,28 @@ Gem::Specification.new do |spec| spec.email = ["joaoGabriel55"] spec.summary = "Scaffold for Sinatra applications" - spec.description = "Scaffold for Sinatra applications" + spec.description = "Ruby gem to make more easy the getting start of web app development with Sinatra gem" spec.homepage = "https://github.com/joaoGabriel55/sinatra-scaffold" spec.license = "MIT" spec.required_ruby_version = ">= 3.0.0" - spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'" - - spec.metadata["homepage_uri"] = spec.homepage - spec.metadata["source_code_uri"] = "https://github.com/joaoGabriel55/sinatra-scaffold" - spec.metadata["changelog_uri"] = "https://github.com/joaoGabriel55/sinatra-scaffold/blob/main/CHANGELOG.md" + if spec.respond_to?(:metadata) + spec.metadata["homepage_uri"] = spec.homepage + spec.metadata["source_code_uri"] = spec.homepage + else + raise "RubyGems 2.0 or newer is required to protect against " \ + "public gem pushes." + end spec.files = Dir["*.md", "bin/*", "lib/**/*.rb"] spec.executables = ["sinatra-scaffold"] spec.require_paths = ["lib"] # Uncomment to register a new dependency of your gem - # spec.add_runtime_dependency 'thor', '~> 1.3' - # spec.add_development_dependency 'rake', '~> 13.0' + spec.add_development_dependency "standard", "~> 1.3" + spec.add_development_dependency "rake", "~> 13.0" + spec.add_development_dependency "rspec", "~> 1.3" + spec.add_dependency "thor", "~> 1.3" # For more information and examples about making a new gem, check out our # guide at: https://bundler.io/guides/creating_gem.html