capistrano-bundler 1.3.0 → 1.4.0

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
- SHA1:
3
- metadata.gz: 9b1c1916ab0e176f784186ee7ea028c18b0559c1
4
- data.tar.gz: ecbe8ef7523ca08be476d843f15e49ca87521265
2
+ SHA256:
3
+ metadata.gz: 730ac19e3e769ebc01014ee593271273e95472433e15a8ad491c50b26c1becf5
4
+ data.tar.gz: 119ec70caae147c9b7f295d5197435a9802a0268c905b3bad30b51ac9959cfc3
5
5
  SHA512:
6
- metadata.gz: 77a72d5a04ae297c6e9197c0e5b9bd12eb36df53b378d7c30260e9c237df941a0665518125af959697591f71d6e05eaecd22bff3f03d72e5e3be2795ab065d02
7
- data.tar.gz: 05d8115080a4bc9280d67995ef6a7e64bfbea7be550988c8e340ec80907a687d758843bf18edb6c579f77886d66b77a7eaccdf4490a24fb2581c5dc2d7f22f77
6
+ metadata.gz: a08b82c037af7424af0468ffacb840c94ee510dd0fa1015c1c9b4530668f1f5f2aa5fe80e41bb0ffe7ad08a028e1dcbd4afdf52f1f3390e8b21ab063571cde9c
7
+ data.tar.gz: 4ebb6a808f4de83cfa2b6557e459ea365450cb2aed20eff7cb3ad1424b7a5576dd390616e783f7471a4ddb18f5c67b7e7ea9d43f2ebe87eeb0b8e2ab79c7869f
@@ -2,6 +2,16 @@
2
2
 
3
3
  * Your contribution here!
4
4
 
5
+ # [1.4.0][] (21 Oct 2018)
6
+
7
+ Breaking changes
8
+
9
+ * None
10
+
11
+ Added
12
+
13
+ * When "bundle install" is skipped due to a Gemfile's dependencies are being satisfied, print a message to the log instead of silently skipping
14
+
5
15
  # [1.3.0][] (22 Sep 2017)
6
16
 
7
17
  Breaking changes
@@ -57,6 +67,7 @@ Added
57
67
 
58
68
  Initial release
59
69
 
60
- [Unreleased]: https://github.com/capistrano/bundler/compare/v1.3.0...HEAD
70
+ [Unreleased]: https://github.com/capistrano/bundler/compare/v1.4.0...HEAD
71
+ [1.4.0]: https://github.com/capistrano/bundler/compare/v1.3.0...v1.4.0
61
72
  [1.3.0]: https://github.com/capistrano/bundler/compare/v1.2.0...v1.3.0
62
73
  [1.2.0]: https://github.com/capistrano/bundler/compare/v1.1.4...v1.2.0
data/README.md CHANGED
@@ -14,7 +14,7 @@ Add these lines to your application's Gemfile **[Recommended]**:
14
14
 
15
15
  ```ruby
16
16
  gem 'capistrano', '~> 3.6'
17
- gem 'capistrano-bundler', '~> 1.3'
17
+ gem 'capistrano-bundler', '~> 1.4'
18
18
  ```
19
19
 
20
20
  And then execute:
@@ -37,11 +37,33 @@ Require in `Capfile` to use the default task:
37
37
  require 'capistrano/bundler'
38
38
  ```
39
39
 
40
- The task will run before `deploy:updated` as part of Capistrano's default deploy, or can be run in isolation with `cap production bundler:install`
40
+ The task will run before `deploy:updated` as part of Capistrano's default deploy, or can be run in isolation with `cap production bundler:install`.
41
+
42
+ In order for Bundler to work efficiently on the server, its project configuration directory (`<release_path>/.bundle/`) should be persistent across releases.
43
+ You need to add it to the `linked_dirs` Capistrano variable:
44
+
45
+ Capistrano **3.5**+:
46
+
47
+ ```ruby
48
+ # config/deploy.rb
49
+
50
+ append :linked_dirs, '.bundle'
51
+ ```
52
+
53
+ Capistrano < 3.5:
54
+
55
+ ```ruby
56
+ # config/deploy.rb
57
+
58
+ set :linked_dirs, fetch(:linked_dirs, []) << '.bundle'
59
+ ```
60
+
61
+ It will still work fine with non-persistent configuration directory, but then it will have to re-resolve all gems on each deploy.
41
62
 
42
63
  By default, the plugin adds `bundle exec` prefix to common executables listed in `bundle_bins` option. This currently applies for `gem`, `rake` and `rails`.
43
64
 
44
65
  You can add any custom executable to this list:
66
+
45
67
  ```ruby
46
68
  set :bundle_bins, fetch(:bundle_bins, []).push('my_new_binary')
47
69
  ```
@@ -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 = '1.3.0'
7
+ spec.version = '1.4.0'
8
8
  spec.authors = ['Tom Clements', 'Lee Hambley', 'Kir Shatrov']
9
9
  spec.email = ['seenmyfate@gmail.com', 'lee.hambley@gmail.com', 'shatrov@me.com']
10
10
  spec.description = %q{Bundler support for Capistrano 3.x}
@@ -28,7 +28,9 @@ namespace :bundler do
28
28
  options = []
29
29
  options << "--gemfile #{fetch(:bundle_gemfile)}" if fetch(:bundle_gemfile)
30
30
  options << "--path #{fetch(:bundle_path)}" if fetch(:bundle_path)
31
- unless test(:bundle, :check, *options)
31
+ if test(:bundle, :check, *options)
32
+ info "The Gemfile's dependencies are satisfied, skipping installation"
33
+ else
32
34
  options << "--binstubs #{fetch(:bundle_binstubs)}" if fetch(:bundle_binstubs)
33
35
  options << "--jobs #{fetch(:bundle_jobs)}" if fetch(:bundle_jobs)
34
36
  options << "--without #{fetch(:bundle_without)}" if fetch(:bundle_without)
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: 1.3.0
4
+ version: 1.4.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: 2017-09-22 00:00:00.000000000 Z
13
+ date: 2018-10-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: capistrano
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  version: '0'
127
127
  requirements: []
128
128
  rubyforge_project:
129
- rubygems_version: 2.6.13
129
+ rubygems_version: 2.7.7
130
130
  signing_key:
131
131
  specification_version: 4
132
132
  summary: Bundler support for Capistrano 3.x