capistrano-nvm 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/capistrano-nvm.gemspec +3 -1
- data/lib/capistrano-nvm/version.rb +3 -0
- data/lib/capistrano/tasks/nvm.cap +6 -3
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9ca7c12ee984d2ff87c0b9d10bd343a307a9232
|
4
|
+
data.tar.gz: bb6df9ab966137eff3cf3e1e85fda78f7fba5063
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e60ec35e590fd2a6151a7743c77204680fe87775fc4995d6d5132359f7277ee04084535e5d41c5af992ceba3168fdef0fc1e97c4446a4777daaae57fb2b4d44c
|
7
|
+
data.tar.gz: 0d307fd3aa1d067a70981fc6cd396c3856dd4b5f04584e82016ee57d8c31ce1ec2ff84a6d13bc5187453da20862a7862b6b4d6ae17177d19249ed07404eea7bc
|
data/capistrano-nvm.gemspec
CHANGED
@@ -2,9 +2,11 @@
|
|
2
2
|
lib = File.expand_path('../lib', __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
4
|
|
5
|
+
require 'capistrano-nvm/version'
|
6
|
+
|
5
7
|
Gem::Specification.new do |spec|
|
6
8
|
spec.name = 'capistrano-nvm'
|
7
|
-
spec.version =
|
9
|
+
spec.version = CapistranoNvm::VERSION
|
8
10
|
spec.authors = ['Koen Punt']
|
9
11
|
spec.email = ['me@koen.pt']
|
10
12
|
spec.description = %q{nvm support for Capistrano 3.x}
|
@@ -7,8 +7,11 @@ namespace :nvm do
|
|
7
7
|
exit 1
|
8
8
|
end
|
9
9
|
|
10
|
-
|
11
|
-
|
10
|
+
nvm_node_path = fetch(:nvm_node_path)
|
11
|
+
nvm_node_path = [nvm_node_path] unless nvm_node_path.is_a?(Array)
|
12
|
+
|
13
|
+
unless test(nvm_node_path.map {|p| "[ -d #{p} ]" }.join(" || "))
|
14
|
+
error "nvm: #{nvm_node} is not installed or not found in any of #{nvm_node_path.join(" ")}"
|
12
15
|
exit 1
|
13
16
|
end
|
14
17
|
end
|
@@ -49,7 +52,7 @@ namespace :load do
|
|
49
52
|
}
|
50
53
|
|
51
54
|
set :nvm_roles, fetch(:nvm_roles, :all)
|
52
|
-
set :nvm_node_path, -> { "#{fetch(:nvm_path)}/#{fetch(:nvm_node)}" }
|
55
|
+
set :nvm_node_path, -> { ["#{fetch(:nvm_path)}/#{fetch(:nvm_node)}", "#{fetch(:nvm_path)}/versions/node/#{fetch(:nvm_node)}"] }
|
53
56
|
set :nvm_map_bins, %w{node npm}
|
54
57
|
end
|
55
58
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-nvm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Koen Punt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -64,6 +64,7 @@ files:
|
|
64
64
|
- Rakefile
|
65
65
|
- capistrano-nvm.gemspec
|
66
66
|
- lib/capistrano-nvm.rb
|
67
|
+
- lib/capistrano-nvm/version.rb
|
67
68
|
- lib/capistrano/nvm.rb
|
68
69
|
- lib/capistrano/tasks/nvm.cap
|
69
70
|
homepage: https://github.com/koenpunt/capistrano-nvm
|
@@ -86,8 +87,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
87
|
version: '0'
|
87
88
|
requirements: []
|
88
89
|
rubyforge_project:
|
89
|
-
rubygems_version: 2.
|
90
|
+
rubygems_version: 2.4.5
|
90
91
|
signing_key:
|
91
92
|
specification_version: 4
|
92
93
|
summary: nvm support for Capistrano 3.x
|
93
94
|
test_files: []
|
95
|
+
has_rdoc:
|