From 88cc419c8eafb9ce9253051f4ba095c56adb1a79 Mon Sep 17 00:00:00 2001 From: Jorge Garcia Date: Fri, 20 Oct 2023 17:07:14 -0600 Subject: [PATCH] Fix: specify dev dependencies only in Gemfile --- Gemfile | 4 ++-- Gemfile.lock | 3 ++- lib/slither/column.rb | 2 +- slither.gemspec | 7 ++----- 4 files changed, 7 insertions(+), 9 deletions(-) diff --git a/Gemfile b/Gemfile index c3cc67d..3a1d2c3 100644 --- a/Gemfile +++ b/Gemfile @@ -5,9 +5,9 @@ source "https://rubygems.org" # Specify your gem's dependencies in slither.gemspec gemspec +gem "bundler" +gem "pry" gem "rake", "~> 13.0" - gem "rspec", "~> 3.0" - gem "rubocop", "~> 1.21" gem "rubocop-rspec", "~> 2.22.0", require: false diff --git a/Gemfile.lock b/Gemfile.lock index 024b386..3f46812 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -14,7 +14,7 @@ GEM parallel (1.22.1) parser (3.2.0.0) ast (~> 2.4.1) - pry (0.14.1) + pry (0.14.2) coderay (~> 1.1) method_source (~> 1.0) rainbow (3.1.1) @@ -61,6 +61,7 @@ PLATFORMS ruby DEPENDENCIES + bundler pry rake (~> 13.0) rspec (~> 3.0) diff --git a/lib/slither/column.rb b/lib/slither/column.rb index f6d4bb8..849a99f 100644 --- a/lib/slither/column.rb +++ b/lib/slither/column.rb @@ -1,4 +1,4 @@ -require 'date' +require "date" module Slither class ParserError < RuntimeError; end diff --git a/slither.gemspec b/slither.gemspec index d7f77e4..ba6d345 100644 --- a/slither.gemspec +++ b/slither.gemspec @@ -10,7 +10,7 @@ Gem::Specification.new do |spec| spec.license = "MIT" spec.required_ruby_version = ">= 3.0.0" - spec.homepage = "https://github.com/JorgeGarciaxyz/slither" + spec.homepage = "https://github.com/ryanwood/slither" # 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. @@ -23,10 +23,7 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] - # Uncomment to register a new dependency of your gem - spec.add_development_dependency "pry" - spec.add_development_dependency "rspec", "~> 3.0" - spec.add_development_dependency "rubocop", "2.6" + spec.metadata["rubygems_mfa_required"] = "true" # For more information and examples about making a new gem, check out our # guide at: https://bundler.io/guides/creating_gem.html