capistrano-bundler 2.0.1 → 2.1.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: 8053398d08ff32053d03773eee9c1e5d1a3984e681fc4e88b9154b3d51ede801
4
- data.tar.gz: 8bf98c42d9eed292d72d3a0993122b0d4c3b7ff4fa5ae0c2099d47c23ce9f05c
3
+ metadata.gz: eea30bf997db801e1bbb1932f44b0172b4e73c58a661aff968852cb96ad581db
4
+ data.tar.gz: 502e0187165f65283064bcd1eb7d6c686a932d6f50baea3f95a6260c29cbf610
5
5
  SHA512:
6
- metadata.gz: c980a9df70ef8f627147349540992413c6fe47a1744d17f802a5d2b278be573e9be9073de698f17854307a34dffcfd21b51d2cd355cfe324e003c8c37d0f525f
7
- data.tar.gz: f37e5b38046f9b89e6d8fd17d786190563b2ffa98162cbb3d83caccd42c0ab87034307bfca8dc538c5c81d2c1b23f1b22bf9d9b1622f79701de703ad30a90caa
6
+ metadata.gz: a996ce4e27d4a0f0253ac97e07bc839eeaf08195e30cf974db5ec8ea8b28e8a626e54d21b6ec5b31c9fcb31371569239eec9f359d97766ca42aeb6711e06b61e
7
+ data.tar.gz: 8e5ee6e16316078c4772311bb1346dab824eb648c4b1daeee129a1530e039e5fa251f044037ea3dcfb1985b8320ad9a8218d8426d7c36912bc583507271b8277
data/README.md CHANGED
@@ -75,9 +75,10 @@ set :bundle_roles, :all # this is defaul
75
75
  set :bundle_config, { deployment: true } # this is default
76
76
  set :bundle_servers, -> { release_roles(fetch(:bundle_roles)) } # this is default
77
77
  set :bundle_binstubs, -> { shared_path.join('bin') } # default: nil
78
+ set :bundle_binstubs_command, :install # this is default
78
79
  set :bundle_gemfile, -> { release_path.join('MyGemfile') } # default: nil
79
80
  set :bundle_path, -> { shared_path.join('bundle') } # this is default. set it to nil to use bundler's default path
80
- set :bundle_without, %w{development test}.join(' ') # this is default
81
+ set :bundle_without, %w{development test}.join(':') # this is default
81
82
  set :bundle_flags, '--quiet' # this is default
82
83
  set :bundle_env_variables, {} # this is default
83
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
@@ -117,6 +118,14 @@ Downsides to cleaning:
117
118
  * If a rollback requires rebuilding a Gem with a large compiled binary component, such as Nokogiri, the rollback will take a while.
118
119
  * In rare cases, if a gem that was used in the previously deployed version was yanked, rollback would entirely fail.
119
120
 
121
+ If you're using Bundler >= 2.1 and you are generating binstubs, you can configure capistrano-bundler to use the newer
122
+ `bundle binstubs` command. This will avoid the deprecation warning that you'd otherwise get when using `bundle install`
123
+ to generate binstubs:
124
+
125
+ ```ruby
126
+ set :bundle_binstubs_command, :binstubs
127
+ ```
128
+
120
129
  ### Environment Variables
121
130
 
122
131
  The `bundle_env_variables` option can be used to specify any environment variables you want present when running the `bundle` command:
@@ -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.0.1'
7
+ spec.version = '2.1.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']
@@ -44,9 +44,10 @@ namespace :bundler do
44
44
  set :bundle_config, { deployment: true }
45
45
  set :bundle_servers, -> { release_roles(fetch(:bundle_roles)) }
46
46
  set :bundle_binstubs, nil
47
+ set :bundle_binstubs_command, :install
47
48
  set :bundle_gemfile, -> { release_path.join('Gemfile') }
48
49
  set :bundle_path, -> { shared_path.join('bundle') }
49
- set :bundle_without, %w{development test}.join(' ')
50
+ set :bundle_without, %w{development test}.join(':')
50
51
  set :bundle_flags, '--quiet'
51
52
  set :bundle_jobs, 4
52
53
  set :bundle_env_variables, {}
@@ -60,10 +61,17 @@ namespace :bundler do
60
61
  info "The Gemfile's dependencies are satisfied, skipping installation"
61
62
  else
62
63
  options = []
63
- options << "--binstubs #{fetch(:bundle_binstubs)}" if fetch(:bundle_binstubs)
64
+ if fetch(:bundle_binstubs) &&
65
+ fetch(:bundle_binstubs_command) == :install
66
+ options << "--binstubs #{fetch(:bundle_binstubs)}"
67
+ end
64
68
  options << "--jobs #{fetch(:bundle_jobs)}" if fetch(:bundle_jobs)
65
69
  options << "#{fetch(:bundle_flags)}" if fetch(:bundle_flags)
66
70
  execute :bundle, :install, *options
71
+ if fetch(:bundle_binstubs) &&
72
+ fetch(:bundle_binstubs_command) == :binstubs
73
+ execute :bundle, :binstubs, '--all', '--path', fetch(:bundle_binstubs)
74
+ end
67
75
  end
68
76
  end
69
77
  end
@@ -107,6 +115,7 @@ namespace :load do
107
115
  set :bundle_config, { deployment: true }
108
116
  set :bundle_servers, -> { release_roles(fetch(:bundle_roles)) }
109
117
  set :bundle_binstubs, nil
118
+ set :bundle_binstubs_command, :install
110
119
  set :bundle_gemfile, nil
111
120
  set :bundle_path, -> { shared_path.join('bundle') }
112
121
  set :bundle_without, %w{development test}.join(':')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-bundler
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Clements
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-07-14 00:00:00.000000000 Z
13
+ date: 2022-05-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: capistrano
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  - !ruby/object:Gem::Version
115
115
  version: '0'
116
116
  requirements: []
117
- rubygems_version: 3.1.4
117
+ rubygems_version: 3.3.13
118
118
  signing_key:
119
119
  specification_version: 4
120
120
  summary: Bundler support for Capistrano 3.x