Skip to content

Incompatibly with hoe 4.0 #6

Description

@loqs

Old style readme parsing was dropped in seattlerb/hoe@58e04a7

ruby_patience_diff v1.2.0
hoe v4.0.1 / v4.0.2
rake v13.0.3
ruby v3.0.6

Steps to reproduce

$ curl -LO https://github.com/watt/ruby_patience_diff/archive/v1.2.0/ruby-patience_diff-1.2.0.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 10883    0 10883    0     0  20080      0 --:--:-- --:--:-- --:--:-- 20080
$ bsdtar -xf ruby_patience_diff-1.2.0.tar.gz
$ cd ruby_patience_diff-1.2.0/
$ rake gem
rake aborted!
Please switch readme to hash format for urls.
/build/ruby_patience_diff-1.2.0/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)

Two possible fixes:
Adjust the README

diff --git a/README.md b/README.md
index 8d08891..480afec 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
 # ruby_patience_diff
 
-* http://github.com/watt/ruby_patience_diff
+home :: http://github.com/watt/ruby_patience_diff
 
 ## DESCRIPTION:

Specify the hopepage url in the Rakefile to avoid parsing the README.

diff --git a/Rakefile b/Rakefile
index 677f773..d01b24c 100755
--- a/Rakefile
+++ b/Rakefile
@@ -5,4 +5,7 @@ Hoe.spec 'patience_diff' do
   developer "Andrew Watt", "andrew@wattornot.com"
   dependency "optimist", "~> 3.0"
   license "MIT"
+  self.urls = {
+    "home" => "http://github.com/watt/ruby_patience_diff",
+  }
 end

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions