From b64a9bf10b204e8f8d3c650cad7da721bb5133dd Mon Sep 17 00:00:00 2001 From: a14m Date: Sat, 12 Dec 2020 19:54:57 +0100 Subject: Include yardopts for autogenerated docs with private --- CLI/ruby/game_of_life.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CLI/ruby/game_of_life.gemspec') diff --git a/CLI/ruby/game_of_life.gemspec b/CLI/ruby/game_of_life.gemspec index 73ea1c8..fd8b0b9 100644 --- a/CLI/ruby/game_of_life.gemspec +++ b/CLI/ruby/game_of_life.gemspec @@ -20,7 +20,7 @@ Gem::Specification.new do |spec| spec.executables = ["game-of-life"] spec.require_paths = ["lib"] - spec.files = Dir["README.md", "game_of_life.gemspec", "bin/game-of-life", "lib/**/*.rb"] + spec.files = Dir["README.md", "game_of_life.gemspec", "bin/game-of-life", "lib/**/*.rb", ".yardopts"] spec.add_dependency "thor", "~> 1.0" -- cgit v1.2.3 From a85dc48d9f2b51d7926d5426adc1ebec072cf0f6 Mon Sep 17 00:00:00 2001 From: a14m Date: Sat, 12 Dec 2020 20:05:32 +0100 Subject: Add documentation and changelog URIs to the gem page --- CLI/ruby/game_of_life.gemspec | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CLI/ruby/game_of_life.gemspec') diff --git a/CLI/ruby/game_of_life.gemspec b/CLI/ruby/game_of_life.gemspec index fd8b0b9..030a830 100644 --- a/CLI/ruby/game_of_life.gemspec +++ b/CLI/ruby/game_of_life.gemspec @@ -17,6 +17,8 @@ Gem::Specification.new do |spec| spec.metadata["allowed_push_host"] = "https://rubygems.org" spec.metadata["homepage_uri"] = spec.homepage spec.metadata["source_code_uri"] = "https://gitlab.com/a14m/game-of-life/-/tree/master/CLI/ruby/" + spec.metadata["documentation_uri"] = "https://rubydoc.info/gems/terminal_game_of_life" + spec.metadata["changelog_uri"] = "https://gitlab.com/a14m/game-of-life/-/blob/master/CLI/ruby/CHANGELOG.md" spec.executables = ["game-of-life"] spec.require_paths = ["lib"] -- cgit v1.2.3 From 0c465900092042947ae3110ba0bf7da48a515545 Mon Sep 17 00:00:00 2001 From: a14m Date: Sat, 12 Dec 2020 20:46:17 +0100 Subject: Fix the required ruby version (2.4 isn't supported) Ruby 2.4 URI.open method is private and cannot be used I can support 2.4 by using `URI.send(:open, uri)` instead of `URI.open` but I haven't investigated that, and I don't think it's critical to support 2.4 --- CLI/ruby/game_of_life.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CLI/ruby/game_of_life.gemspec') diff --git a/CLI/ruby/game_of_life.gemspec b/CLI/ruby/game_of_life.gemspec index 030a830..9f88e68 100644 --- a/CLI/ruby/game_of_life.gemspec +++ b/CLI/ruby/game_of_life.gemspec @@ -12,7 +12,7 @@ Gem::Specification.new do |spec| spec.description = "Conway's game of life implementation as a CLI ruby gem." spec.homepage = "https://gitlab.com/a14m/game-of-life" spec.license = "MIT" - spec.required_ruby_version = ">= 2.4.0" + spec.required_ruby_version = ">= 2.5.0" spec.metadata["allowed_push_host"] = "https://rubygems.org" spec.metadata["homepage_uri"] = spec.homepage -- cgit v1.2.3