bundle_update_interactive 0.8.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0cbe5e5a4fef836edfd7c1bc87939066c2f7460f4f1b883510ea065840747a54
4
- data.tar.gz: 26bc0b61f7d3d2830c3fd687bd8e723486446cdbe6acf91455e6d02dfbb93df6
3
+ metadata.gz: '092dad2541b41d82be0c6d26b8dc6a4b72c9555fcef8743919849f8b57b67a24'
4
+ data.tar.gz: b73e37e2d76480af7fbbbc22a2d8957f5a364bdacdefd2c9122830895c9de929
5
5
  SHA512:
6
- metadata.gz: d351f14505560566df5b09fd27ca1a537bca621208bb1859bb6ba1a430333a5889a2d8f1dfd6ce5b72ede3cecb3429c148a1e48a3a795c3290effe0e37c207d0
7
- data.tar.gz: c649e223608a24c65715f7c430abc64841b41a8d765612a57c64cc5c7c56f4cc1327389916521c5f19af0742e177b4f3e5d31267aacbda3048efa5b9b9b0cc78
6
+ metadata.gz: e4dcf48f02f99ee78f8a08e23d0168846c344f0ff7d6c6d5c29c34c6cbf690e16ad2465a299bbf9a2dd8a349f8960737a14ba3d96fbc66864a857ddfabb0736d
7
+ data.tar.gz: 9789ed423ff5c6a30d2410e873af33126268825dd3571252d087149ab28154d55de04f5027ceb2fcc3ade3bdc04d6f877b55a7e0084ed4d73edc4dac50a2d12e
@@ -31,7 +31,8 @@ module BundleUpdateInteractive
31
31
  return "https://github.com/#{changelog_path}" if changelog_path
32
32
 
33
33
  releases_url = "https://github.com/#{path}/releases"
34
- releases_url if HTTP.head("#{releases_url}/tag/v#{version}").success?
34
+ response = HTTP.get(releases_url)
35
+ releases_url if response.success? && response.body.include?("v#{version}")
35
36
  end
36
37
 
37
38
  private
@@ -38,8 +38,8 @@ module BundleUpdateInteractive
38
38
  @changelog_uri =
39
39
  if (diff_url = build_git_diff_url)
40
40
  diff_url
41
- elsif rubygems_source?
42
- changelog_locator.find_changelog_uri(name: name, version: updated_version.to_s)
41
+ elsif (found_uri = rubygems_source? && locate_changelog_uri)
42
+ found_uri
43
43
  else
44
44
  begin
45
45
  Gem::Specification.find_by_name(name)&.homepage
@@ -57,6 +57,10 @@ module BundleUpdateInteractive
57
57
 
58
58
  attr_reader :changelog_locator
59
59
 
60
+ def locate_changelog_uri
61
+ changelog_locator.find_changelog_uri(name: name, version: updated_version.to_s)
62
+ end
63
+
60
64
  def build_git_diff_url
61
65
  return nil unless git_version_changed?
62
66
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BundleUpdateInteractive
4
- VERSION = "0.8.0"
4
+ VERSION = "0.8.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundle_update_interactive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brictson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-25 00:00:00.000000000 Z
11
+ date: 2024-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -167,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  - !ruby/object:Gem::Version
168
168
  version: '0'
169
169
  requirements: []
170
- rubygems_version: 3.5.11
170
+ rubygems_version: 3.5.18
171
171
  signing_key:
172
172
  specification_version: 4
173
173
  summary: Adds an update-interactive command to Bundler