capistrano-bundler 1.1.3 → 1.1.4

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
  SHA1:
3
- metadata.gz: 3fa261e6360e6bbd0fbe96e810df630b6c72b1c7
4
- data.tar.gz: c56dccc1b5c6fda98f5e66730ed085205e5c645d
3
+ metadata.gz: 4171f4d53229aa69f9b7efe265ff11cef104fc16
4
+ data.tar.gz: b845be8d3ea22e20c13dfad9b97e85b7a03fd921
5
5
  SHA512:
6
- metadata.gz: a5f9d95f241b4f489b133cbd9f5d1345019224bf30af8fb8d16f6b0d1e8931580b987ebba19f25a4bb8bcc4c4ade4f28f89853f047e5f20b1f36a4774bb1602f
7
- data.tar.gz: 3c14a38b4ff089ce707c6d6f94dbf304257f4f453b85ebc8798588ea14b0c3ad4117ffc0e23bcbe6633db686d57d097dd1acb6b5e845e13cc61dad5801a4211b
6
+ metadata.gz: 490de12e53ac8aafe7e69f6c46a426bc47705fb7553c4bdd2c7a372ff44474737e71f8bc68da11b68892be85ae0e5c8ef0b3c6aeeb87097264c8795a855bd26c
7
+ data.tar.gz: 7a26518cd23474aa1ee7a9bc0500c9dc6ab0921ec988bdf18460ff8dcd6b393fcff9d58ed8859db3935b2db731d947fb029246611db3c3d553a4561f2299e5c3
@@ -1,3 +1,7 @@
1
+ # 1.1.4 (22 Jan 2014)
2
+
3
+ * Don’t generate binstubs by default (#61)
4
+
1
5
  # 1.1.3 (4 Aug 2014)
2
6
 
3
7
  * Honor `:no_release` flag by using `release_roles` in Capistrano 3.1
data/README.md CHANGED
@@ -2,7 +2,9 @@
2
2
 
3
3
  Bundler specific tasks for Capistrano v3:
4
4
 
5
- * cap production bundler:install
5
+ ```sh
6
+ $ cap production bundler:install
7
+ ```
6
8
 
7
9
  It also prefixes certain binaries to use `bundle exec`.
8
10
 
@@ -10,22 +12,30 @@ It also prefixes certain binaries to use `bundle exec`.
10
12
 
11
13
  Add these lines to your application's Gemfile:
12
14
 
13
- gem 'capistrano', '~> 3.1'
14
- gem 'capistrano-bundler', '~> 1.1.3'
15
+ ```ruby
16
+ gem 'capistrano', '~> 3.1'
17
+ gem 'capistrano-bundler', '~> 1.1.2'
18
+ ```
15
19
 
16
20
  And then execute:
17
21
 
18
- $ bundle
22
+ ```sh
23
+ $ bundle
24
+ ```
19
25
 
20
26
  Or install it yourself as:
21
27
 
22
- $ gem install capistrano-bundler
28
+ ```sh
29
+ $ gem install capistrano-bundler
30
+ ```
23
31
 
24
32
  ## Usage
25
33
 
26
34
  Require in `Capfile` to use the default task:
27
35
 
28
- require 'capistrano/bundler'
36
+ ```ruby
37
+ require 'capistrano/bundler'
38
+ ```
29
39
 
30
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`
31
41
 
@@ -33,34 +43,46 @@ By default, the plugin adds `bundle exec` prefix to common executables listed in
33
43
 
34
44
  You can add any custom executable to this list:
35
45
  ```ruby
36
- set :bundle_bins, fetch(:bundle_bins, []).push %w(my_new_binary)
46
+ set :bundle_bins, fetch(:bundle_bins, []).push('my_new_binary')
37
47
  ```
38
48
 
39
49
  Configurable options:
40
50
 
41
- set :bundle_roles, :all # this is default
42
- set :bundle_servers, -> { release_roles(fetch(:bundle_roles)) } # this is default
43
- set :bundle_binstubs, -> { shared_path.join('bin') } # this is default
44
- set :bundle_gemfile, -> { release_path.join('MyGemfile') } # default: nil
45
- set :bundle_path, -> { shared_path.join('bundle') } # this is default
46
- set :bundle_without, %w{development test}.join(' ') # this is default
47
- set :bundle_flags, '--deployment --quiet' # this is default
48
- set :bundle_env_variables, {} # this is default
51
+ ```ruby
52
+ set :bundle_roles, :all # this is default
53
+ set :bundle_servers, -> { release_roles(fetch(:bundle_roles)) } # this is default
54
+ set :bundle_binstubs, -> { shared_path.join('bin') } # default: nil
55
+ set :bundle_gemfile, -> { release_path.join('MyGemfile') } # default: nil
56
+ set :bundle_path, -> { shared_path.join('bundle') } # this is default
57
+ set :bundle_without, %w{development test}.join(' ') # this is default
58
+ set :bundle_flags, '--deployment --quiet' # this is default
59
+ set :bundle_env_variables, {} # this is default
60
+ ```
49
61
 
50
62
  You can parallelize the installation of gems with bundler's jobs feature.
51
63
  Choose a number less or equal than the number of cores your server.
52
64
 
53
- set :bundle_jobs, 4 #This is only available for bundler 1.4+
65
+ ```ruby
66
+ set :bundle_jobs, 4 # default: nil, only available for Bundler >= 1.4
67
+ ```
68
+
69
+ To generate binstubs on each deploy, set `:bundle_binstubs` path:
54
70
 
55
- This would execute the following bundle command on all servers
71
+ ```ruby
72
+ set :bundle_binstubs, -> { shared_path.join('bin') }
73
+ ```
74
+
75
+ In the result this would execute the following bundle command on all servers
56
76
  (actual paths depend on the real deploy directory):
57
77
 
58
- bundle install \
59
- --binstubs /my_app/shared/bin \
60
- --gemfile /my_app/releases/20130623094732/MyGemfile \
61
- --path /my_app/shared/bundle \
62
- --without development test \
63
- --deployment --quiet
78
+ ```sh
79
+ $ bundle install \
80
+ --binstubs /my_app/shared/bin \
81
+ --gemfile /my_app/releases/20130623094732/MyGemfile \
82
+ --path /my_app/shared/bundle \
83
+ --without development test \
84
+ --deployment --quiet
85
+ ```
64
86
 
65
87
  If any option is set to `nil` it will be excluded from the final bundle command.
66
88
 
@@ -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.1.3'
7
+ spec.version = '1.1.4'
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}
@@ -42,7 +42,7 @@ namespace :bundler do
42
42
  Maps all binaries to use `bundle exec` by default.
43
43
  Add your own binaries to the array with the command shown below.
44
44
 
45
- set :bundle_bins, fetch(:bundle_bins).push %w(my_new_binary)
45
+ set :bundle_bins, fetch(:bundle_bins) + %w(my_new_binary)
46
46
  DESC
47
47
  task :map_bins do
48
48
  fetch(:bundle_bins).each do |command|
@@ -63,7 +63,6 @@ namespace :load do
63
63
 
64
64
  set :bundle_roles, :all
65
65
  set :bundle_servers, -> { release_roles(fetch(:bundle_roles)) }
66
- set :bundle_binstubs, -> { shared_path.join('bin') }
67
66
  set :bundle_path, -> { shared_path.join('bundle') }
68
67
  set :bundle_without, %w{development test}.join(' ')
69
68
  set :bundle_flags, '--deployment --quiet'
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.1.3
4
+ version: 1.1.4
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: 2014-08-04 00:00:00.000000000 Z
13
+ date: 2015-01-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: capistrano
@@ -107,9 +107,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  version: '0'
108
108
  requirements: []
109
109
  rubyforge_project:
110
- rubygems_version: 2.2.1
110
+ rubygems_version: 2.2.2
111
111
  signing_key:
112
112
  specification_version: 4
113
113
  summary: Bundler support for Capistrano 3.x
114
114
  test_files: []
115
- has_rdoc: