bundle_update_interactive 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '092dad2541b41d82be0c6d26b8dc6a4b72c9555fcef8743919849f8b57b67a24'
|
4
|
+
data.tar.gz: b73e37e2d76480af7fbbbc22a2d8957f5a364bdacdefd2c9122830895c9de929
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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
|
|
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.
|
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-
|
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.
|
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
|