From 2fe4882982ee68a00ccf19762bd89cbe5cd55eec Mon Sep 17 00:00:00 2001 From: Doug Miller Date: Fri, 19 Feb 2021 08:39:16 -0600 Subject: [PATCH] Restoring tag hash references to string keys --- lib/github_changelog_generator/octo_fetcher.rb | 2 +- spec/unit/octo_fetcher_spec.rb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/github_changelog_generator/octo_fetcher.rb b/lib/github_changelog_generator/octo_fetcher.rb index 028aa9ffe..641245154 100644 --- a/lib/github_changelog_generator/octo_fetcher.rb +++ b/lib/github_changelog_generator/octo_fetcher.rb @@ -351,7 +351,7 @@ def commits_in_branch(name) def fetch_tag_shas(tags) # Reverse the tags array to gain max benefit from the @commits_in_tag_cache tags.reverse_each do |tag| - tag["shas_in_tag"] = commits_in_tag(tag[:commit][:sha]) + tag["shas_in_tag"] = commits_in_tag(tag["commit"]["sha"]) end end diff --git a/spec/unit/octo_fetcher_spec.rb b/spec/unit/octo_fetcher_spec.rb index e29f4e7bb..382f7be89 100644 --- a/spec/unit/octo_fetcher_spec.rb +++ b/spec/unit/octo_fetcher_spec.rb @@ -104,9 +104,9 @@ ] end - let(:tag0) { { name: "tag-0", commit: { sha: "0" } } } - let(:tag1) { { name: "tag-1", commit: { sha: "1" } } } - let(:tag6) { { name: "tag-6", commit: { sha: "6" } } } + let(:tag0) { { "name" => "tag-0", "commit" => { "sha" => "0" } } } + let(:tag1) { { "name" => "tag-1", "commit" => { "sha" => "1" } } } + let(:tag6) { { "name" => "tag-6", "commit" => { "sha" => "6" } } } before do allow(fetcher).to receive(:commits).and_return(commits)