bundle_update_interactive 0.11.2 → 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: 666efa68646d077bd09553e0d6a8b5616c11fa2039404c7c742345fed473cc87
4
- data.tar.gz: 11ccfc5e97a9de7d9fb7817d3a1d1579ee2735610ef576a5444e269772584cd1
3
+ metadata.gz: 684e52fd6757c57d6528530d9a936384eb34338f4159938d47ff6a125b236471
4
+ data.tar.gz: 477ad5ad4b4b81456a05169292addecf124da439068a8140d41d2e2306bec5e0
5
5
  SHA512:
6
- metadata.gz: 12248266b3033cd6b97f2f2b89b257522e5004787b325942d92c9b7cfd4c7f109d0f0dfc25a714e71ba5363206d846040cb14100cafada77419219f00ba46b4d
7
- data.tar.gz: '09bb43da14acc2a1b22f1d2a418ad0719e822a86928cf168cb381a07b8006c37f831b72a638c049cbc4cf824363433c2ba8b63b29fce8fd4add172273201369b'
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.2"
4
+ VERSION = "0.12.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundle_update_interactive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.2
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brictson