bundle_update_interactive 0.11.1 → 0.12.0

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: 5e52d480380d337ff9e53c7d26e42c64b62b7a2b5e569b4fc31e6210cc0bed49
4
- data.tar.gz: 010d0158a82797174d80c781ca1dec9bd60fe8b273a5fb4d24056057e95f24d9
3
+ metadata.gz: 684e52fd6757c57d6528530d9a936384eb34338f4159938d47ff6a125b236471
4
+ data.tar.gz: 477ad5ad4b4b81456a05169292addecf124da439068a8140d41d2e2306bec5e0
5
5
  SHA512:
6
- metadata.gz: '09f8110965f2ff670a108fc0770a623df698cb125915d7fab913cc95dcc2d43d9ea318cd078b4121adc836f88c07830058da8eb56d083ad6accf5c98c910b641'
7
- data.tar.gz: ed7622938bbfda9155644a1ea1874146a48470e38a589105fc35758461b07e3818141b9fe43cfba2dc7967ba7e397abb74481448f66cdf2e822b1ca3ca48e11c
6
+ metadata.gz: 4c9717eb6b4ae86060c451a8779b5df80eaf9f0e6aeb011dd9a522d0c3d995c5d0ff6c6031b5cf7adb9067ec0ec73ab26ac4bf4e243e066a4b889cea451c0eff
7
+ data.tar.gz: 5a974047ac21c99196342df39887bf8542524317e24a3b160eb9af4aa30d3b68c9be8b50891513c88058033106b5f695f718f44a85ce23285e777231403fbd15
data/README.md CHANGED
@@ -3,7 +3,6 @@
3
3
  [![Gem Version](https://img.shields.io/gem/v/bundle_update_interactive)](https://rubygems.org/gems/bundle_update_interactive)
4
4
  [![Gem Downloads](https://img.shields.io/gem/dt/bundle_update_interactive)](https://www.ruby-toolbox.com/projects/bundle_update_interactive)
5
5
  [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/mattbrictson/bundle_update_interactive/ci.yml)](https://github.com/mattbrictson/bundle_update_interactive/actions/workflows/ci.yml)
6
- [![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability/mattbrictson/bundle_update_interactive)](https://codeclimate.com/github/mattbrictson/bundle_update_interactive)
7
6
 
8
7
  **This gem adds an `update-interactive` command to [Bundler](https://bundler.io).** Run it to see what gems can be updated, then pick and choose which ones to update. If you've used `yarn upgrade-interactive`, the interface should be very familiar.
9
8
 
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "openssl"
3
4
  require "net/http"
4
5
  require "uri"
5
6
 
@@ -11,6 +12,22 @@ module BundleUpdateInteractive
11
12
  end
12
13
  end
13
14
 
15
+ class Error
16
+ attr_reader :exception
17
+
18
+ def initialize(exception)
19
+ @exception = exception
20
+ end
21
+
22
+ def code
23
+ nil
24
+ end
25
+
26
+ def success?
27
+ false
28
+ end
29
+ end
30
+
14
31
  class << self
15
32
  def get(url)
16
33
  http(:get, url)
@@ -28,6 +45,8 @@ module BundleUpdateInteractive
28
45
  http.public_send(method, uri.request_uri)
29
46
  end
30
47
  response.extend(Success)
48
+ rescue OpenSSL::OpenSSLError => e
49
+ Error.new(e)
31
50
  end
32
51
  end
33
52
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BundleUpdateInteractive
4
- VERSION = "0.11.1"
4
+ VERSION = "0.12.0"
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundle_update_interactive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brictson
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-04-05 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: bundler
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  - !ruby/object:Gem::Version
181
181
  version: '0'
182
182
  requirements: []
183
- rubygems_version: 3.6.6
183
+ rubygems_version: 3.6.9
184
184
  specification_version: 4
185
185
  summary: Adds an update-interactive command to Bundler
186
186
  test_files: []