diff --git a/simple_calendar.gemspec b/simple_calendar.gemspec index 565bff8..274285d 100644 --- a/simple_calendar.gemspec +++ b/simple_calendar.gemspec @@ -1,20 +1,23 @@ $:.push File.expand_path("../lib", __FILE__) require "simple_calendar/version" -Gem::Specification.new do |s| - s.name = "simple_calendar" - s.version = SimpleCalendar::VERSION - s.authors = ["Chris Oliver"] - s.email = ["excid3@gmail.com"] - s.homepage = "https://github.com/excid3/simple_calendar" - s.summary = "A simple Rails calendar" - s.description = "A simple Rails calendar" - s.license = "MIT" +Gem::Specification.new do |spec| + spec.name = "simple_calendar" + spec.version = SimpleCalendar::VERSION + spec.authors = ["Chris Oliver"] + spec.email = ["excid3@gmail.com"] + spec.homepage = "https://github.com/excid3/simple_calendar" + spec.summary = "A simple Rails calendar" + spec.description = "A simple Rails calendar" + spec.license = "MIT" - s.rubyforge_project = "simple_calendar" + spec.metadata["homepage_uri"] = spec.homepage + spec.metadata["source_code_uri"] = spec.homepage + spec.metadata["changelog_uri"] = "https://github.com/excid3/simple_calendar/blob/main/CHANGELOG.md" - s.files = `git ls-files`.split("\n") - s.require_paths = ["lib"] + spec.files = Dir.chdir(File.expand_path(__dir__)) do + Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.md"] + end - s.add_dependency "rails", ">= 6.1" + spec.add_dependency "rails", ">= 6.1" end