capistrano-bundler 1.0.0 → 1.1.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
2
  SHA1:
3
- metadata.gz: 2729cf15cd5310fd2f14bc2adc5a7b043f9eafc8
4
- data.tar.gz: 05b8740a22f69d24f4d3d3862b4ce27f8f0a5d6e
3
+ metadata.gz: 8d7ca44025f1e0e1242d78934c73c3b489251f69
4
+ data.tar.gz: 95d08ddf1f27b656f2c9df0fec26d45f7253cc1d
5
5
  SHA512:
6
- metadata.gz: 8048b0ddf961cf96ea18e994c75d01ef1871db408743ae0ea178384a01997badd192bec842ffd33687f6465294d2c784f9aee2999a43aba6ccd5b6172204846f
7
- data.tar.gz: 75c68648599e0fba19010c26880aa1133b75d9efab6d7abbd16fd0d1dcaebfdc2e73f225659ddbfc667d7c9c5e61ecf3aa52f4befa8dd76f2ae17fb42897e222
6
+ metadata.gz: 4a1ae11c987e417c00255fcdba6e63f4f58bca6c22d5b447c11e9278eb88f76c603dd9e20a6c61e008fad1426059c4ca3e76e4173328844cb7d805acf246b410
7
+ data.tar.gz: 263a43bf5d594aeabb26264a59155082dd8f427fd03fa1751497cb2e21776ecd386070876f4a79850399bb9fb987533862741a2a970dd439cfd2bc95b594b1fb
@@ -0,0 +1 @@
1
+ *.gem
@@ -0,0 +1,8 @@
1
+ # 1.1.0
2
+
3
+ * Switching to new command map (https://github.com/capistrano/sshkit/pull/45)
4
+ Thanks to new command map, now this integration adds `bundle exec` to global executables (gem, ruby, rake). The list of executable can be tweaked by `bundle_bins`.
5
+
6
+ # 1.0.0
7
+
8
+ Initial release
data/README.md CHANGED
@@ -34,6 +34,13 @@ Configurable options, shown here with defaults:
34
34
  set :bundle_without, %w{development test}.join(' ')
35
35
  set :bundle_binstubs, -> { shared_path.join('bin') }
36
36
  set :bundle_roles, :all
37
+ set :bundle_bins, %w(gem rake ruby)
38
+
39
+ By default, the plugin adds `bundle exec` prefix to common executables listed in `bundle_bins` option. You can add any custom executable to this list:
40
+
41
+ ```ruby
42
+ set :bundle_bins, fetch(:bundle_bins).push %w(my_new_binary)
43
+ ```
37
44
 
38
45
  ## Contributing
39
46
 
@@ -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.0.0'
7
+ spec.version = '1.1.0'
8
8
  spec.authors = ['Tom Clements', 'Lee Hambley']
9
9
  spec.email = ['seenmyfate@gmail.com', 'lee.hambley@gmail.com']
10
10
  spec.description = %q{Bundler support for Capistrano 3.x}
@@ -17,7 +17,8 @@ Gem::Specification.new do |spec|
17
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
18
  spec.require_paths = ['lib']
19
19
 
20
- spec.add_dependency 'capistrano', '>= 3.0.0.pre'
20
+ spec.add_dependency 'capistrano', '~> 3.0'
21
+ spec.add_dependency 'sshkit', '>= 1.2.0'
21
22
 
22
23
  spec.add_development_dependency 'bundler', '~> 1.3'
23
24
  spec.add_development_dependency 'rake'
@@ -26,9 +26,19 @@ namespace :bundler do
26
26
  end
27
27
  end
28
28
 
29
+ task :map_bins do
30
+ fetch(:bundle_bins).each do |command|
31
+ SSHKit.config.command_map.prefix[command.to_sym].push("bundle exec")
32
+ end
33
+ end
34
+
29
35
  before 'deploy:updated', 'bundler:install'
30
36
  end
31
37
 
38
+ Capistrano::DSL.stages.each do |stage|
39
+ after stage, 'bundler:map_bins'
40
+ end
41
+
32
42
  namespace :load do
33
43
  task :defaults do
34
44
  set :bundle_gemfile, -> { release_path.join('Gemfile') }
@@ -37,5 +47,6 @@ namespace :load do
37
47
  set :bundle_without, %w{development test}.join(' ')
38
48
  set :bundle_binstubs, -> { shared_path.join('bin') }
39
49
  set :bundle_roles, :all
50
+ set :bundle_bins, %w{gem rake ruby}
40
51
  end
41
52
  end
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.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Clements
@@ -9,22 +9,36 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-08 00:00:00.000000000 Z
12
+ date: 2013-11-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ~>
19
+ - !ruby/object:Gem::Version
20
+ version: '3.0'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ~>
26
+ - !ruby/object:Gem::Version
27
+ version: '3.0'
28
+ - !ruby/object:Gem::Dependency
29
+ name: sshkit
16
30
  requirement: !ruby/object:Gem::Requirement
17
31
  requirements:
18
32
  - - '>='
19
33
  - !ruby/object:Gem::Version
20
- version: 3.0.0.pre
34
+ version: 1.2.0
21
35
  type: :runtime
22
36
  prerelease: false
23
37
  version_requirements: !ruby/object:Gem::Requirement
24
38
  requirements:
25
39
  - - '>='
26
40
  - !ruby/object:Gem::Version
27
- version: 3.0.0.pre
41
+ version: 1.2.0
28
42
  - !ruby/object:Gem::Dependency
29
43
  name: bundler
30
44
  requirement: !ruby/object:Gem::Requirement
@@ -61,6 +75,8 @@ executables: []
61
75
  extensions: []
62
76
  extra_rdoc_files: []
63
77
  files:
78
+ - .gitignore
79
+ - CHANGELOG.md
64
80
  - Gemfile
65
81
  - LICENSE
66
82
  - LICENSE.txt
@@ -95,3 +111,4 @@ signing_key:
95
111
  specification_version: 4
96
112
  summary: Bundler support for Capistrano 3.x
97
113
  test_files: []
114
+ has_rdoc: