matching_bundle 0.3.3 → 0.3.4

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: a53eb53ce724e96fef14a78d30754bfc83d1e14b5057a45305b3cecf4e947f00
4
- data.tar.gz: 702de7b23ff17e0f02414d5730fb0adb41f5aedd9adefdbe854f44634d06240a
3
+ metadata.gz: 7bb45ed9b4ca7255474e44ab7f0dea37e9e4192d24f10198c0a89ce91f7d5b9d
4
+ data.tar.gz: 33e67f71958e786eeed3a8fb5c0697000d9f9fc797d78e1e4212f0b6970b6214
5
5
  SHA512:
6
- metadata.gz: 95fc992c36fec9386791629f0d01a536fdd0d3164a79da0182973cb29189b7f6e7da0b0d16e54c226fb8e23e69af66c01e9b80cadb251985726cc71f4790c6de
7
- data.tar.gz: f688fecf36191e4b848c13ed6bcbf0931c4d150470b81e9e15dc25c96c81e7c0171e166f5edd0f1fbcddcbdec16c3233e99d3b5489ab34ef73eb2018268f5971
6
+ metadata.gz: e747e812b2b6c6c5c0ae4c63584f046ed156bbe5850516b884894bd0e13a4fec5f2171a5f37ff5d51315b60099335f255d5816a789381f6b7b9c6bf420aa3319
7
+ data.tar.gz: 0c2b47e9f7434a347e20a9371b31182158cde4bad3ac392d8806d49f749a28041a0b1e82dc9163cc0612b73a9f01c34b5d152628a28852e0c705b4ff54b6633e
@@ -20,11 +20,11 @@ end
20
20
  require 'matching_bundle'
21
21
  # require_relative '../lib/matching_bundle' # use this for local debugging
22
22
  if version = MatchingBundle.find_or_install_matching_version(content)
23
- # some gem/ruby combinations do not support `bundle _1.2.3_`
24
- if system("bundle _#{version}_ --version &>/dev/null")
25
- exec "bundle", "_#{version}_", *ARGV
26
- else
23
+ # some gem/ruby combinations do not support `bundle _1.2.3_` and exists with 0
24
+ if `bundle _#{version}_ --version 2>&1`.include?("Could not find command")
27
25
  warn "Unable to use _#{version}_, falling back to default version"
26
+ else
27
+ exec "bundle", "_#{version}_", *ARGV
28
28
  end
29
29
  end
30
30
  exec "bundle", *ARGV
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module MatchingBundle
3
- VERSION = "0.3.3"
3
+ VERSION = "0.3.4"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: matching_bundle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
@@ -40,7 +40,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
42
  requirements: []
43
- rubygems_version: 3.0.3
43
+ rubygems_version: 3.0.4
44
44
  signing_key:
45
45
  specification_version: 4
46
46
  summary: Find a matching bundler version for a Gemfile and use it