capistrano-bundler 2.1.0 → 2.2.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 +4 -4
- data/README.md +8 -0
- data/capistrano-bundler.gemspec +1 -1
- data/lib/capistrano/tasks/bundler.cap +7 -2
- metadata +3 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9e186786cf2769b6f9f3ef529a77764008d4447a60227d49798c678f84193810
|
|
4
|
+
data.tar.gz: 56b88acb9e1c2c03564456ec17f7691249f91174489b8e61f06713b492f39284
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fc03160d958a95df317cdf535b70debe039fc60c486925a96f45781d0ba37b059992d127dfa16f57f4c9cc8460cdbfb78113549e1c23ce20bb269677cfeba463
|
|
7
|
+
data.tar.gz: d4270dbeb4feb1be8e7d46a89a2989d52094d794885335c43ae5b1011f721964438d561f30ed675bbc590f7661c555c01fb4cf5922e09ebbd05d06b7e2592142
|
data/README.md
CHANGED
|
@@ -83,6 +83,14 @@ set :bundle_flags, '--quiet' # this is defaul
|
|
|
83
83
|
set :bundle_env_variables, {} # this is default
|
|
84
84
|
set :bundle_clean_options, "" # this is default. Use "--dry-run" if you just want to know what gems would be deleted, without actually deleting them
|
|
85
85
|
set :bundle_check_before_install, true # default: true. Set this to false to bypass running `bundle check` before executing `bundle install`
|
|
86
|
+
set :bundle_version, 2 # default: 2. Set to 4 for Bundler 4 compatibility
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
If you are using Bundler 4 (which is the default in Ruby 4),
|
|
90
|
+
make sure to set `:bundle_version` to avoid deprecation warnings:
|
|
91
|
+
|
|
92
|
+
```ruby
|
|
93
|
+
set :bundle_version, 4
|
|
86
94
|
```
|
|
87
95
|
|
|
88
96
|
You can parallelize the installation of gems with bundler's jobs feature.
|
data/capistrano-bundler.gemspec
CHANGED
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = 'capistrano-bundler'
|
|
7
|
-
spec.version = '2.
|
|
7
|
+
spec.version = '2.2.0'
|
|
8
8
|
spec.license = 'MIT'
|
|
9
9
|
spec.authors = ['Tom Clements', 'Lee Hambley', 'Kir Shatrov']
|
|
10
10
|
spec.email = ['seenmyfate@gmail.com', 'lee.hambley@gmail.com', 'shatrov@me.com']
|
|
@@ -2,7 +2,7 @@ require "shellwords"
|
|
|
2
2
|
|
|
3
3
|
namespace :bundler do
|
|
4
4
|
desc <<-DESC
|
|
5
|
-
Configure the Bundler environment for the release so that
|
|
5
|
+
Configure the Bundler environment for the release so that subsequent
|
|
6
6
|
`bundle check`, `bundle install`, `bundle clean`, and `bundle exec`
|
|
7
7
|
commands all behave consistently. The following settings will be
|
|
8
8
|
turned into the appropriate `bundle config` executions:
|
|
@@ -16,13 +16,15 @@ namespace :bundler do
|
|
|
16
16
|
on fetch(:bundle_servers) do
|
|
17
17
|
within release_path do
|
|
18
18
|
with fetch(:bundle_env_variables) do
|
|
19
|
+
config_args = fetch(:bundle_version, 2) >= 4 ? %w[config set] : %w[config]
|
|
20
|
+
|
|
19
21
|
configuration = fetch(:bundle_config).dup || {}
|
|
20
22
|
configuration[:gemfile] = fetch(:bundle_gemfile)
|
|
21
23
|
configuration[:path] = fetch(:bundle_path)
|
|
22
24
|
configuration[:without] = fetch(:bundle_without)
|
|
23
25
|
|
|
24
26
|
configuration.each do |key, value|
|
|
25
|
-
execute :bundle,
|
|
27
|
+
execute :bundle, *config_args, "--local", key, value.to_s.shellescape unless value.nil?
|
|
26
28
|
end
|
|
27
29
|
end
|
|
28
30
|
end
|
|
@@ -52,6 +54,8 @@ namespace :bundler do
|
|
|
52
54
|
set :bundle_jobs, 4
|
|
53
55
|
set :bundle_env_variables, {}
|
|
54
56
|
set :bundle_clean_options, ""
|
|
57
|
+
set :bundle_check_before_install, true
|
|
58
|
+
set :bundle_version, 2
|
|
55
59
|
DESC
|
|
56
60
|
task install: :config do
|
|
57
61
|
on fetch(:bundle_servers) do
|
|
@@ -124,5 +128,6 @@ namespace :load do
|
|
|
124
128
|
set :bundle_env_variables, {}
|
|
125
129
|
set :bundle_clean_options, ""
|
|
126
130
|
set :bundle_check_before_install, true
|
|
131
|
+
set :bundle_version, 2
|
|
127
132
|
end
|
|
128
133
|
end
|
metadata
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capistrano-bundler
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tom Clements
|
|
8
8
|
- Lee Hambley
|
|
9
9
|
- Kir Shatrov
|
|
10
|
-
autorequire:
|
|
11
10
|
bindir: bin
|
|
12
11
|
cert_chain: []
|
|
13
|
-
date:
|
|
12
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
14
13
|
dependencies:
|
|
15
14
|
- !ruby/object:Gem::Dependency
|
|
16
15
|
name: capistrano
|
|
@@ -99,7 +98,6 @@ licenses:
|
|
|
99
98
|
- MIT
|
|
100
99
|
metadata:
|
|
101
100
|
changelog_uri: https://github.com/capistrano/bundler/releases
|
|
102
|
-
post_install_message:
|
|
103
101
|
rdoc_options: []
|
|
104
102
|
require_paths:
|
|
105
103
|
- lib
|
|
@@ -114,8 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
114
112
|
- !ruby/object:Gem::Version
|
|
115
113
|
version: '0'
|
|
116
114
|
requirements: []
|
|
117
|
-
rubygems_version: 3.
|
|
118
|
-
signing_key:
|
|
115
|
+
rubygems_version: 3.7.2
|
|
119
116
|
specification_version: 4
|
|
120
117
|
summary: Bundler support for Capistrano 3.x
|
|
121
118
|
test_files: []
|