capistrano-nvm 0.0.3 → 0.0.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: dd93e5f15895f76f4a8de5f384900286db4e477a
4
- data.tar.gz: b1ba82c69af769468b9eed5c8298766d9335930d
3
+ metadata.gz: 352c70c0b3310814f2991d19e6daf5a2224cea1c
4
+ data.tar.gz: 3704c101b96191d60574cc51c01931f3198e7613
5
5
  SHA512:
6
- metadata.gz: 2cd92bb7b0030bb8389baba1077a5e4f6738f30341d4e3110165a139f6c4933a1e1ab87c89741e230047a1356cd7874c6a7a06b37c99e537e414bbee882b2f80
7
- data.tar.gz: ae3399f17bdd2d89f68cf60cb2936be246819d3e5b81fbdf9ca9edea353db4547640be60c8740bb0ebfac9e0499007b97ef92cc1c9b02ec39e58f9f1224a2c7b
6
+ metadata.gz: 4cc3ee2e8f19db0ea307652d617f8e564d3afca7434111ab7049aeb6e5f65436889cc1a9b2dd091b184b4ac86b979b6d07a54e6346063b93ee43273189f5d72e
7
+ data.tar.gz: 276b2d2fa1ce3e5f41503331e96abc1c7d3bc75beac678b97ff7c5d5b9420c2de85ca3683e5dd8fa98a4eda7061b24b36ecf6c87eae7eb7f8dcfb5a689b69ded
data/README.md CHANGED
@@ -7,8 +7,8 @@
7
7
  Add this line to your application's Gemfile:
8
8
 
9
9
  ```ruby
10
- gem 'capistrano', '~> 3.0'
11
- gem 'capistrano-nvm'
10
+ gem 'capistrano', '~> 3.1'
11
+ gem 'capistrano-nvm', require: false
12
12
  ```
13
13
 
14
14
  And then execute:
@@ -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-nvm'
7
- spec.version = '0.0.3'
7
+ spec.version = '0.0.4'
8
8
  spec.authors = ['Koen Punt']
9
9
  spec.email = ['me@koen.pt']
10
10
  spec.description = %q{nvm support for Capistrano 3.x}
@@ -15,7 +15,8 @@ namespace :nvm do
15
15
  end
16
16
 
17
17
  task :map_bins do
18
- nvm_prefix = fetch(:nvm_prefix, -> { "NODE_VERSION=#{fetch(:nvm_node)} #{fetch(:tmp_dir)}/#{fetch(:application)}/nvm-exec.sh" } )
18
+ SSHKit.config.default_env.merge!({ node_version: "#{fetch(:nvm_node)}" })
19
+ nvm_prefix = fetch(:nvm_prefix, -> { "#{fetch(:tmp_dir)}/#{fetch(:application)}/nvm-exec.sh" } )
19
20
  fetch(:nvm_map_bins).each do |command|
20
21
  SSHKit.config.command_map.prefix[command.to_sym].unshift(nvm_prefix)
21
22
  end
@@ -43,7 +44,7 @@ namespace :load do
43
44
  nvm_path ||= if fetch(:nvm_type, :user) == :system
44
45
  "/usr/local/nvm"
45
46
  else
46
- "~/.nvm"
47
+ "$HOME/.nvm"
47
48
  end
48
49
  }
49
50
 
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.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Koen Punt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-16 00:00:00.000000000 Z
11
+ date: 2014-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  version: '0'
87
87
  requirements: []
88
88
  rubyforge_project:
89
- rubygems_version: 2.0.14
89
+ rubygems_version: 2.2.2
90
90
  signing_key:
91
91
  specification_version: 4
92
92
  summary: nvm support for Capistrano 3.x