From aed6ce561fd887caa62a69ff5fb0981caa14d8df Mon Sep 17 00:00:00 2001 From: fynsta <63241108+fynsta@users.noreply.github.com> Date: Sun, 23 Jun 2024 00:18:04 +0200 Subject: [PATCH 1/3] Add changelog_uri to gemspec Documented here: https://guides.rubygems.org/specification-reference/#metadata Useful for running https://github.com/MaximeD/gem_updater --- simple_calendar.gemspec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/simple_calendar.gemspec b/simple_calendar.gemspec index 565bff8d..fac3dd81 100644 --- a/simple_calendar.gemspec +++ b/simple_calendar.gemspec @@ -11,6 +11,10 @@ Gem::Specification.new do |s| s.description = "A simple Rails calendar" s.license = "MIT" + s.metadata = { + 'changelog_uri' => https://github.com/excid3/simple_calendar/blob/main/CHANGELOG.md" + } + s.rubyforge_project = "simple_calendar" s.files = `git ls-files`.split("\n") From df588bb7f44fccf4c9e7fe5513b08e2d773ef2b8 Mon Sep 17 00:00:00 2001 From: Chris Oliver Date: Mon, 24 Jun 2024 08:27:33 -0500 Subject: [PATCH 2/3] Update simple_calendar.gemspec --- simple_calendar.gemspec | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/simple_calendar.gemspec b/simple_calendar.gemspec index fac3dd81..18437200 100644 --- a/simple_calendar.gemspec +++ b/simple_calendar.gemspec @@ -1,24 +1,25 @@ $:.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.metadata = { - 'changelog_uri' => https://github.com/excid3/simple_calendar/blob/main/CHANGELOG.md" - } + 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.rubyforge_project = "simple_calendar" + spec.rubyforge_project = "simple_calendar" - 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 From 25446bde220f88ba66fb644b92a0bba0f80974d0 Mon Sep 17 00:00:00 2001 From: Chris Oliver Date: Mon, 24 Jun 2024 08:27:55 -0500 Subject: [PATCH 3/3] Update simple_calendar.gemspec --- simple_calendar.gemspec | 2 -- 1 file changed, 2 deletions(-) diff --git a/simple_calendar.gemspec b/simple_calendar.gemspec index 18437200..274285da 100644 --- a/simple_calendar.gemspec +++ b/simple_calendar.gemspec @@ -15,8 +15,6 @@ Gem::Specification.new do |spec| spec.metadata["source_code_uri"] = spec.homepage spec.metadata["changelog_uri"] = "https://github.com/excid3/simple_calendar/blob/main/CHANGELOG.md" - spec.rubyforge_project = "simple_calendar" - spec.files = Dir.chdir(File.expand_path(__dir__)) do Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.md"] end