bundler-patch 1.1.0.pre1 → 1.1.0.pre2
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 +4 -4
- data/.travis.yml +40 -36
- data/lib/bundler/patch/target_bundle.rb +13 -10
- data/lib/bundler/patch/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e15e29ba6d792404c4675f7f0a9feb02675cdea
|
4
|
+
data.tar.gz: ea0d23abcdc4859e441ed3a378bde6858187bf75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9ff099ef9e01ef481be0b67ca8eb4e0e9d78a7d9cbfd7d907fa063122428e5050c53684d8a9b4856efad5c2271d74e8a6e75155007ecdd91c45d18576094409
|
7
|
+
data.tar.gz: a2399d339c85e883ed238eea4fb741daa97a7b7da0fdbac578d3e1761264543c7383e5d59cf1ae1aed0e1eba0cf84cbce1816f0c10687e5cba6d4136b0ebaf6c
|
data/.travis.yml
CHANGED
@@ -13,39 +13,43 @@ script: bundle exec rake test:all
|
|
13
13
|
|
14
14
|
matrix:
|
15
15
|
include:
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
env:
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
16
|
+
- rvm: 2.3.4
|
17
|
+
env:
|
18
|
+
- RVM_VER=2.3.4
|
19
|
+
- BUNDLER_TEST_VERSION=1.9.10
|
20
|
+
- BP_DEBUG=1
|
21
|
+
- rvm: 2.3.4
|
22
|
+
env:
|
23
|
+
- RVM_VER=2.3.4
|
24
|
+
- BUNDLER_TEST_VERSION=1.10.5
|
25
|
+
- BP_DEBUG=1
|
26
|
+
- rvm: 2.3.4
|
27
|
+
env:
|
28
|
+
- RVM_VER=2.3.4
|
29
|
+
- BUNDLER_TEST_VERSION=1.11.2
|
30
|
+
- BP_DEBUG=1
|
31
|
+
- rvm: 2.3.4
|
32
|
+
env:
|
33
|
+
- RVM_VER=2.3.4
|
34
|
+
- BUNDLER_TEST_VERSION=1.12.5
|
35
|
+
- BP_DEBUG=1
|
36
|
+
- rvm: 2.3.4
|
37
|
+
env:
|
38
|
+
- RVM_VER=2.3.4
|
39
|
+
- BUNDLER_TEST_VERSION=1.13.6
|
40
|
+
- BP_DEBUG=1
|
41
|
+
- rvm: 2.3.4
|
42
|
+
env:
|
43
|
+
- RVM_VER=2.3.4
|
44
|
+
- BUNDLER_TEST_VERSION=1.14.6
|
45
|
+
- BP_DEBUG=1
|
46
|
+
- rvm: 2.2.7
|
47
|
+
env:
|
48
|
+
- RVM_VER=2.2.7
|
49
|
+
- BUNDLER_TEST_VERSION=1.15.1
|
50
|
+
- BP_DEBUG=1
|
51
|
+
- rvm: 2.3.4
|
52
|
+
env:
|
53
|
+
- RVM_VER=2.3.4
|
54
|
+
- BUNDLER_TEST_VERSION=1.15.1
|
55
|
+
- BP_DEBUG=1
|
@@ -67,9 +67,13 @@ class TargetBundle
|
|
67
67
|
File.join(ruby_bin, "#{RbConfig::CONFIG['ruby_install_name']}#{RbConfig::CONFIG['EXEEXT']}")
|
68
68
|
end
|
69
69
|
|
70
|
-
# Have to run a separate process in the other Ruby, because
|
71
|
-
#
|
72
|
-
#
|
70
|
+
# Have to run a separate process in the other Ruby, because Gem.default_dir depends on
|
71
|
+
# RbConfig::CONFIG which is all special data derived from the active runtime. It could perhaps
|
72
|
+
# be redone here, but I'd rather not copy that code in here at the moment.
|
73
|
+
#
|
74
|
+
# At one point during development, this would execute Bundler::Settings#path, which in most
|
75
|
+
# cases would just fall through to Gem.default_dir ... but would give preference to GEM_HOME
|
76
|
+
# env variable, which could be in a different Ruby, and that won't work.
|
73
77
|
def gem_home
|
74
78
|
result = shell_command "#{ruby_bin_exe} -C#{@dir} -e 'puts Gem.default_dir'"
|
75
79
|
path = result[:stdout].chomp
|
@@ -78,18 +82,17 @@ class TargetBundle
|
|
78
82
|
expanded_path
|
79
83
|
end
|
80
84
|
|
81
|
-
# To properly update another bundle, bundler-patch _does_ need to live in the same
|
82
|
-
#
|
85
|
+
# To properly update another bundle, bundler-patch _does_ need to live in the same Ruby
|
86
|
+
# version because of its _dependencies_ (it's not a self-contained gem), and it can't both
|
83
87
|
# act on another bundle location AND find its own dependencies in a separate bundle location.
|
84
|
-
|
85
|
-
#
|
86
|
-
#
|
88
|
+
#
|
89
|
+
# One known issue: older RubyGems in older Rubies don't install bundler-patch bin in the right
|
90
|
+
# directory. Upgrading RubyGems fixes this.
|
87
91
|
def install_bundler_patch_in_target
|
92
|
+
# TODO: reconsider --conservative flag. Had problems with it in place on Travis, but I think I want it.
|
88
93
|
# cmd = "#{ruby_bin}#{File::SEPARATOR}gem install -V --install-dir #{gem_home} --conservative --no-document --prerelease bundler-patch"
|
89
94
|
cmd = "#{ruby_bin}#{File::SEPARATOR}gem install -V --install-dir #{gem_home} --no-document --prerelease bundler-patch"
|
90
95
|
shell_command cmd
|
91
|
-
|
92
|
-
shell_command "ls #{ruby_bin}#{File::SEPARATOR}**"
|
93
96
|
end
|
94
97
|
|
95
98
|
private
|