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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9799791c41c87ad359f69e1c9d5e3630e6d3ce09
4
- data.tar.gz: ea2680e1b3663549438b285980017e4bda3ed7cf
3
+ metadata.gz: a9ca7c12ee984d2ff87c0b9d10bd343a307a9232
4
+ data.tar.gz: bb6df9ab966137eff3cf3e1e85fda78f7fba5063
5
5
  SHA512:
6
- metadata.gz: 45c042a4683f9a855425ec25fa43413f941dc36f876fe89ae2d08581a629b51b9b31916cd663ce5c2ecabc879fddf18668426c5e8515a017dae697668d542eab
7
- data.tar.gz: 03f797f89e0db07b099f8f8334bbef3715e55fdef5091076838dd008e717d86d149b31b50ba4eb2e64591652ae23840d4b3bb050fa9b999e1d28eca09585216e
6
+ metadata.gz: e60ec35e590fd2a6151a7743c77204680fe87775fc4995d6d5132359f7277ee04084535e5d41c5af992ceba3168fdef0fc1e97c4446a4777daaae57fb2b4d44c
7
+ data.tar.gz: 0d307fd3aa1d067a70981fc6cd396c3856dd4b5f04584e82016ee57d8c31ce1ec2ff84a6d13bc5187453da20862a7862b6b4d6ae17177d19249ed07404eea7bc
@@ -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 = '0.0.5'
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}
@@ -0,0 +1,3 @@
1
+ module CapistranoNvm
2
+ VERSION = '0.0.6'
3
+ end
@@ -7,8 +7,11 @@ namespace :nvm do
7
7
  exit 1
8
8
  end
9
9
 
10
- unless test "[ -d #{fetch(:nvm_node_path)} ]"
11
- error "nvm: #{nvm_node} is not installed or not found in #{fetch(:nvm_node_path)}"
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.5
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-02-09 00:00:00.000000000 Z
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.2.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: